pipeline
3
总安装量
2
周安装量
#54625
全站排名
安装命令
npx skills add https://github.com/elliotjlt/claude-skill-potions --skill pipeline
Agent 安装分布
opencode
2
codex
2
claude-code
2
amp
1
kimi-cli
1
github-copilot
1
Skill 文档
Pipeline
When To Activate
Trigger when:
- Task has natural phases that must happen in order
- Output of one stage is input to the next
- Skipping stages would cause problems
- User describes multi-phase work (“first X, then Y, then Z”)
- Work involves: plan â implement â verify pattern
Do NOT trigger for:
- Independent tasks (use fan-out instead)
- Single-stage work
- Exploratory work with no clear sequence
The Pattern
[Input] â [Stage 1] â [Handoff] â [Stage 2] â [Handoff] â [Stage 3] â [Output]
â â â
âââ Checkpoint âââââââââââ´ââ Checkpoint âââââââââââ
Instructions
Step 1: Define the Pipeline
Map out all stages:
Pipeline: [Task Name]
Stages:
1. [Stage Name] - [What happens] - [Output artifact]
2. [Stage Name] - [What happens] - [Output artifact]
3. [Stage Name] - [What happens] - [Output artifact]
Dependencies:
- Stage 2 requires: [Stage 1 output]
- Stage 3 requires: [Stage 2 output]
Step 2: Define Checkpoints
Each stage needs exit criteria:
Stage 1 checkpoint:
- [ ] [Exit criterion 1]
- [ ] [Exit criterion 2]
- [ ] Artifact produced: [what]
Stage 2 checkpoint:
- [ ] [Exit criterion 1]
- [ ] Receives: [Stage 1 artifact]
- [ ] Artifact produced: [what]
Step 3: Execute Stage by Stage
For each stage:
âââââââââââââââââââââââââââââââââââââââ
STAGE [N]: [Name]
âââââââââââââââââââââââââââââââââââââââ
Input: [What this stage receives]
[Execute stage work]
Checkpoint:
- [â/â] Criterion 1
- [â/â] Criterion 2
Output: [What this stage produces]
[If all criteria pass] â Proceed to Stage N+1
[If any criterion fails] â Stop and resolve
Step 4: Handoff Protocol
Between stages, explicit handoff:
ââââââââââââââââââââââââââââââââââââââ
HANDOFF: Stage [N] â Stage [N+1]
ââââââââââââââââââââââââââââââââââââââ
Passing:
- [Artifact 1]: [description]
- [Artifact 2]: [description]
Context for next stage:
- [Key decision made]
- [Constraint to maintain]
- [Risk to watch for]
ââââââââââââââââââââââââââââââââââââââ
Step 5: Pipeline Completion
When all stages complete:
âââââââââââââââââââââââââââââââââââââââ
PIPELINE COMPLETE: [Task Name]
âââââââââââââââââââââââââââââââââââââââ
Stages completed: [N/N]
Final output:
[Description of what was produced]
Artifacts:
- [Final deliverable 1]
- [Final deliverable 2]
Summary:
- Stage 1: [Brief outcome]
- Stage 2: [Brief outcome]
- Stage 3: [Brief outcome]
Common Pipeline Templates
Bug Fix
1. Reproduce â Consistent repro steps
2. Diagnose â Root cause identified
3. Fix â Code change
4. Verify â Bug no longer occurs
Refactoring
1. Assess â Impact analysis
2. Prepare â Tests in place
3. Refactor â Code changed
4. Validate â Tests still pass
Documentation
1. Outline â Structure defined
2. Draft â Content written
3. Review â Feedback incorporated
4. Publish â Live documentation
Handling Stage Failures
- Stop the pipeline – Don’t proceed with bad input
- Diagnose the failure – What went wrong?
- Options:
- Fix and retry current stage
- Roll back to previous stage
- Abort pipeline with partial results
STAGE FAILURE: [Stage Name]
âââââââââââââââââââââââââââ
Failed criterion: [What didn't pass]
Reason: [Why it failed]
Options:
A) Retry after fixing [specific issue]
B) Roll back to [previous stage]
C) Abort - partial output available
Recommendation: [A/B/C] because [reason]
NEVER
- Skip stages, even when “obvious” they’ll pass
- Proceed without explicit checkpoint verification
- Let failures cascade to later stages
- Lose context between stages (use handoff protocol)
- Run stages in parallel (use fan-out for that)
ALWAYS
- Define all stages before starting
- Verify checkpoint criteria explicitly
- Document handoffs with context
- Stop on stage failure
- Report pipeline status at completion
Examples
Example 1: Feature Implementation
User: “Add password reset functionality”
Pipeline: Password Reset Feature
Stages:
1. Design â Security spec, API contract
2. Implement â Endpoint, email service, token handling
3. Test â Unit tests, integration tests
4. Review â Security review, code review
âââââââââââââââââââââââââââââââââââââââ
STAGE 1: Design
âââââââââââââââââââââââââââââââââââââââ
[Produces security spec covering token expiry,
rate limiting, email verification]
Checkpoint:
- [â] Security requirements defined
- [â] API contract specified
- [â] Edge cases documented
Output: Design spec
ââââââââââââââââââââââââââââââââââââââ
HANDOFF: Design â Implement
ââââââââââââââââââââââââââââââââââââââ
Passing: Design spec
Context: Tokens expire in 1 hour, max 3 attempts/hour
âââââââââââââââââââââââââââââââââââââââ
STAGE 2: Implement
âââââââââââââââââââââââââââââââââââââââ
[Implements based on spec]
...continues through all stages...
Example 2: Debugging Pipeline
User: “Users are seeing 500 errors on checkout”
Pipeline: Checkout 500 Error Fix
Stages:
1. Reproduce â Consistent repro steps
2. Diagnose â Root cause found
3. Fix â Code change
4. Verify â Error resolved
âââââââââââââââââââââââââââââââââââââââ
STAGE 1: Reproduce
âââââââââââââââââââââââââââââââââââââââ
Attempting to reproduce...
Checkpoint:
- [â] Error reproduced locally
- [â] Consistent reproduction steps documented
Output: Repro steps - 500 occurs when cart has
item with null price field
ââââââââââââââââââââââââââââââââââââââ
HANDOFF: Reproduce â Diagnose
ââââââââââââââââââââââââââââââââââââââ
Passing: Repro steps
Context: Only occurs with specific data condition
...continues...
Why This Elixir Exists
Sequential work needs sequential discipline. The temptation is to skip ahead – “I’ll just start coding and figure out the design as I go.” This leads to rework, bugs, and frustration.
Pipelines force the discipline: complete each stage before moving on. It feels slower but is faster in total time because you don’t backtrack.
The checkpoint isn’t bureaucracy – it’s the moment where you catch problems before they become expensive.