smart-connections-collection-pipeline
Installation
SKILL.md
Smart Connections Collection Pipeline
Use this skill when changing how Smart Connections collections, items, or actions normalize params, score and filter results, or preserve pinned and hidden-result semantics across the pipeline.
Critical
- Use this skill only for pipeline changes in
src/collections/**,src/items/**,src/actions/**, and the supporting utilities insrc/utils/**. - Never change the order of the pipeline in
src/items/connections_list.js:pre_process(params)→filter_and_score(params)→post_process(results, params)→merge_pinned_results(...). - Preserve hidden-result filtering and frontmatter include/exclude behavior. Do not bypass
src/utils/filter_hidden_results.jsorsrc/utils/merge_pinned_results.js. - Keep
src/actions/connections-list/pre_process.jsside-effect free except for mutatingparamswith defaults. - If settings are added or renamed, wire them through
src/collections/connections_lists.jsusing the same key names the pipeline already reads. Do not create a separate settings surface unless the existing collection settings object already exposes it.
Instructions
- Identify the pipeline stage that owns the requested behavior.
- Use
src/actions/connections-list/pre_process.jsfor default params and normalization. - Use
src/items/connections_list.jsfor filtering, scoring, and result merging. - Use
src/collections/connections_lists.jsfor collection-level settings. - Use
src/utils/merge_pinned_results.js,src/utils/filter_hidden_results.js, andsrc/utils/connections_list_item_state.jswhen the behavior depends on pinned/hidden state. - Verify the change belongs to one of those stages before proceeding to Step 2.
- Use