Skill: pipeio-flow-create — guided flow creation workflow¶
Problem: Creating a new pipeline flow requires assembling ~10 conventions from CLAUDE.md, pipeio-guide, and existing flows. During the pixecog preprocess_motion creation session, an agent hit multiple frictions: overwrote scaffolded files, removed configfile directive incorrectly, forgot to wire conditional rules, didn't know about registry_scan, etc.
Proposed skill: pipeio-flow-create
A skill that guides agents through the full flow creation workflow:
- Survey phase — examine existing flows for patterns (Snakefile structure, config schema, script template)
- Scaffold — call
pipeio_flow_new, thenpipeio_registry_scan - Config — write config.yml following the established schema: pybids_inputs, registry groups (with base_input, bids root/datatype, members), processing params
- Snakefile — write rules following the pattern:
configfile: "config.yml"+ manualsafe_loadoverride,BidsPathsadapter,in_paths/out_paths, dynamic input functions for conditional rules - Scripts — write processing scripts with the standard template: docstring, snakemake mock,
repo_abs,mkdirfor outputs - Datalad — create subdataset:
datalad run-procedure create-reckless-subdataset derivatives/<name> - Verify — dry-run via
pipeio_run(dryrun=True)
Key conventions to encode:
- Don't overwrite scaffolded files (Makefile, notebook.yml) — only customize what's needed
- configfile: "config.yml" is correct — flows run from their own directory
- Use pipeio_run MCP tool, not manual conda run / snakemake commands
- Pipeline env is cogpy
- After scaffold, must call pipeio_registry_scan
- Registry groups need base_input matching a pybids_inputs key
- Scripts use from sutil.repo_root import repo_abs for path resolution
Source context: pixecog¶
PixEcog (pixecog): Neuropixels and ECoG dataset and analysis
Recent commits:
27a75e5 Preprocess_ieeg DAG redesign: ttl_removal before interpolate, two-tier badlabel, auto-skip TTL, pre-lowpass LNR
42cf0d9 Preprocess_ieeg redesign: DAG reorder, two-tier badlabel, auto-skip TTL, pre-lowpass LNR, cross-subject TTL analysis, notebooks published
6b295b2 Update badlabel audit note: full pipeline comparison (85 new vs 7 legacy vs 71 TTL), zarr fix confirmed, 97.2% TTL catch rate
README:
type: readme
Quick Start for Collaborators¶
Follow this checklist to get started with Pixecog documentation and workflows.
🐀 Pixecog Project — Compact Overview¶
Core principles
- One immutable BIDS raw dataset (
raw/) as the canonical baseline - Each analysis pipeline ha
Related Notes¶
- idea-arash-20260403-172004-817050.md — Skill candidates note for projio ecosystem — pipeio-flow-create would be a natural addition to that list
- idea-arash-20260331-034700-514331.md — Migration guide encodes the same pipeio v2 Snakefile/config conventions this skill aims to automate
- idea-arash-20260331-033442-033443.md — Audits pipeio run tools and datalad run integration — directly relevant to the verify/run step in the proposed skill
- idea-arash-20260330-174518-164647.md — pipeio v2 roadmap defines the snakebids/DataLad alignment principles the skill would encode
- idea-arash-20260409-135130-379286.md — pipeio docs_collect manifest proposal overlaps with the docs/scaffold phase of the guided flow creation workflow