skills/sequencer/SKILL.md
Parse concise pipeline instructions into ordered task sequences and execute them with accumulating context. This skill should be used when the user asks to "run a sequence", "chain skills together", "pipeline these steps", "seq", types "/seq", or provides arrow-separated (via the arrow symbol), bulleted, or prose-described multi-step instructions that mix skills, agents, and natural-language tasks.
npx skillsauth add synapseradio/ai-skills sequencerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Parse loose pipeline instructions — arrows, bullets, or plain prose — into an ordered task list, then execute each step via subagents with accumulating context. Steps run sequentially by default; parenthesized groups with | run in parallel.
Load only the reference needed for the current phase. Do NOT load all references upfront.
| Phase | Load | Do NOT Load |
|-------|------|-------------|
| Parsing input | references/parsing-guide.md | execution-model, syntax-reference |
| Executing steps | references/execution-model.md | parsing-guide, syntax-reference |
| Showing help | references/syntax-reference.md | parsing-guide, execution-model |
Skip guidance based on input:
| Condition | Skip | Why |
|-----------|------|-----|
| Input is a single step | Task tracking | Overhead exceeds value for one step |
| No ( ... \| ... ) groups | Parallel execution logic in execution-model.md | Nothing to parallelize |
| /seq help invocation | Parsing and execution entirely | Just display the reference |
Determine which subcommand the user invoked:
| Input starts with | Subcommand | Action |
|-------------------|------------|--------|
| /seq help | help | Load references/syntax-reference.md and display it verbatim |
| /seq generate <description> | generate | Parse the natural-language description into DSL form, show the user for approval, then execute via the default flow below |
| Everything else (/seq <pipeline>) | execute | Parse and execute the pipeline |
Track progress using available task tracking tools — pipelines of 3+ steps always qualify for task tracking.
Load references/parsing-guide.md. Read the user's input and identify each step and its type:
/something — will invoke via Skill("something")(agent: name) or @agent-name — will spawn a named agent( a | b ) — will run contained steps concurrentlyIf any step is ambiguous, decompose it into candidate interpretations and ask the user to pick one using AskUserQuestion. Never guess when the user's intent is unclear.
Create a run directory: /tmp/seq-{run-id}/ where {run-id} is a short random identifier.
Present the execution plan to the user as a numbered list:
Execution plan for seq-a1b2c3:
1. [skill] /skill-review path/to/skill
2. [inline] fix any issues found
3. [skill] /commit
Wait for user confirmation before executing. If the user modifies the plan, re-parse the modified version.
For each step in order:
Skill steps — spawn a general-purpose subagent:
Prompt: "Invoke Skill('{{skill-name}}') with args '{{args}}'.
Read /tmp/seq-{run-id}/step-{N-1}.md for context from the previous step.
Write your output summary to /tmp/seq-{run-id}/step-{N}.md when done."
Agent steps — spawn the named agent type:
Prompt: "{{original instruction}}.
Read /tmp/seq-{run-id}/step-{N-1}.md for context from the previous step.
Write your output summary to /tmp/seq-{run-id}/step-{N}.md when done."
Natural-language steps — execute inline (do NOT spawn a subagent). These stay in the main conversation because they may need user interaction. Write output to /tmp/seq-{run-id}/step-{N}.md yourself.
Parallel groups — spawn all contained steps simultaneously as separate subagents. Each writes to /tmp/seq-{run-id}/step-{N}-{sub}.md. When all complete, concatenate outputs into /tmp/seq-{run-id}/step-{N}.md for the next step.
After each step completes, mark the corresponding task as completed via TaskUpdate.
After all steps complete, present a summary:
/commit, custom scripts); silent execution removes the user's last chance to catch mistakes./something doesn't match a known skill, ask the user what they meant. Invoking a nonexistent skill wastes a subagent turn and produces a confusing error that breaks the pipeline.{run-id}. Reusing a directory from a prior run means stale step output files pollute the new pipeline's context.tools
Open the possibility space through curiosity-driven questioning
tools
Interactive tutoring that adapts to your pace
data-ai
Trace justification chains to bedrock
tools
Follow reasoning step-by-step