Automated summary
Detects the current pipeline stage of a work item and automatically executes the next stage, including approval gates.
Strengths
- Full pipeline automation with a single command
- Intelligent stage detection by analyzing artifacts in dependency order
- Handles approval gate checks and execution
Limitations
- Requires strict artifact naming conventions
- Depends on WCP MCP and the pipeline-approve skill
- Does not handle parallel pipelines or rollback scenarios
Use this skill to quickly advance a work item through a predefined pipeline stages.
Do not use it if the pipeline requires complex human judgment at every stage or if artifact structure deviates from the expected pattern.
Security analysis
CautionThe skill orchestrates pipelines using powerful tools (Bash, Task) for legitimate automation. No destructive, exfiltrating, or obfuscated actions are present. Risk is mitigated by controlled, stated usage.
- •Uses Bash and Task tools, which can execute arbitrary commands, but only in the context of predefined pipeline stages.
Examples
Advance pipeline for SN-3Run the next pipeline stage for task ABC-123Check current stage and proceed for ticket PROJ-42name: pipeline-advance description: "Detect the current pipeline stage for a work item and run the next stage. Handles approval gates by invoking /pipeline-approve." category: orchestration tags: [orchestration, automation, stage-management] requires: mcp: [wcp] skills: [pipeline-approve] argument-hint: "<callsign>" allowed-tools:
- Read
- Bash
- Task
- AskUserQuestion
- Skill
- mcp__wcp__wcp_get
- mcp__wcp__wcp_get_artifact
- mcp__wcp__wcp_comment
Pipeline Advance — Single-Step Pipeline Advancement
You are a pipeline controller. You detect where a work item currently is in the pipeline, determine what needs to happen next, and execute it. You advance one step at a time — one stage, or one approval gate.
Inputs & Outputs
- Input:
$ARGUMENTS— a WCP callsign (e.g.,SN-3) - Output: The next pipeline stage is executed (via Task agent) or the approval gate is cleared (via /pipeline-approve)
Step-by-Step Procedure
Step 1: Read Work Item
wcp_get($ARGUMENTS)
Note the artifact list. You will use this to detect the current pipeline stage.
Step 2: Detect Current Pipeline Stage
Check artifacts in dependency order. Stop at the first missing or pending artifact — that determines the next action.
Run through this checklist top-to-bottom. For each artifact, check whether it exists in the work item's artifact list. For approval-gated artifacts, also read the artifact content and parse the Approval Checklist to check the Status field.
1. prd.md missing?
→ NEXT ACTION: Run /prd $ARGUMENTS (Stage 0)
2. Discovery report(s) — check for `discovery-report.md` OR any `discovery-report-*.md` artifacts:
- If NO discovery reports exist at all → NEXT ACTION: Run /discovery $ARGUMENTS (Stage 1)
- If discovery reports exist but the gameplan's milestones reference repos without discovery reports → tell user which repos still need discovery
3. architecture-proposal.md missing?
→ NEXT ACTION: Run /architecture $ARGUMENTS (Stage 2)
4. architecture-proposal.md exists — read it, check Approval Checklist Status:
- Status: Pending → NEXT ACTION: Approval gate (architecture)
- Status: Rejected → BLOCKED: Architecture was rejected
- Status: Approved / Approved with Modifications → continue
5. gameplan.md missing?
→ NEXT ACTION: Run /gameplan $ARGUMENTS (Stage 3)
6. gameplan.md exists — read it, check Approval Checklist Status:
- Status: Pending → NEXT ACTION: Approval gate (gameplan)
- Status: Rejected → BLOCKED: Gameplan was rejected
- Status: Approved / Approved with Modifications → continue
7. test-coverage-matrix.md missing?
→ NEXT ACTION: Run /test-generation $ARGUMENTS (Stage 4)
8. Check implementation progress:
- Read progress.md if it exists
- Parse the Milestone Status table
- Find the first milestone NOT marked "Complete" (skip M0 which is always complete)
- If an incomplete milestone exists:
→ NEXT ACTION: Run /implementation $ARGUMENTS [milestone] (Stage 5)
- If progress.md doesn't exist:
→ NEXT ACTION: Run /implementation $ARGUMENTS M1 (Stage 5)
- If ALL milestones are Complete → continue
9. review-report.md missing?
→ NEXT ACTION: Run /review $ARGUMENTS (Stage 6)
10. review-report.md exists — check verdict:
- Verdict: CHANGES REQUESTED → BLOCKED: Review has blockers
- Verdict: APPROVED → continue
11. qa-plan.md missing?
→ NEXT ACTION: Run /qa-plan $ARGUMENTS (Stage 7)
12. All artifacts present and approved:
→ NEXT ACTION: Run /create-pr $ARGUMENTS (Final)
Save the detected NEXT_ACTION.
Step 3: Report Current State
Tell the user what you found:
## Pipeline Status: $ARGUMENTS
**Current state:** [describe what's done and what's next]
**Artifacts present:** [list existing artifacts with approval status for gated ones]
**Multi-repo:** [Yes (N repos) / No]
**Next action:** [what needs to happen]
Step 4: Handle the Next Action
Based on the detected NEXT_ACTION:
If BLOCKED:
Report the blocker and stop:
"Pipeline is blocked: [reason]. Human intervention needed."
- If architecture rejected: "Revise the architecture, re-run
/architecture $ARGUMENTS, then/pipeline-approve $ARGUMENTS."- If gameplan rejected: "Revise the gameplan, re-run
/gameplan $ARGUMENTS, then/pipeline-approve $ARGUMENTS."- If review has blockers: "Address the review findings, then re-run
/review $ARGUMENTS."
Do NOT attempt to fix blockers automatically.
If APPROVAL GATE:
Ask the user:
Use AskUserQuestion:
- Question: "[Artifact type] needs approval before the pipeline can continue. How would you like to proceed?"
- Options:
- "Review now" — run the interactive approval flow (Recommended)
- "Skip for now" — stop here, I'll review manually later
If "Review now": invoke /pipeline-approve by using the Skill tool:
Skill(skill="pipeline-approve", args="$ARGUMENTS")
After /pipeline-approve completes:
- If the artifact was approved → report success and tell the user to run
/pipeline-advance $ARGUMENTSagain to continue to the next stage. - If the artifact was rejected → report the rejection. Pipeline is now BLOCKED.
If "Skip for now": Stop and report:
"Approval gate paused. Run
/pipeline-approve $ARGUMENTSwhen ready to review, then/pipeline-advance $ARGUMENTSto continue."
If NEXT ACTION is a pipeline stage:
Important: Each stage runs in a Task agent for context isolation. The stage may consume significant context reading artifacts, conventions files, and codebases. Running it inline would blow the orchestrator's context window.
Ask the user before running:
Use AskUserQuestion:
- Question: "Ready to run Stage [N] ([stage name]) for $ARGUMENTS?"
- Options:
- "Run it" — proceed (Recommended)
- "Not now" — stop here
If "Run it":
-
Report: "Running Stage [N] ([stage name])..."
-
Locate the conventions file in the current repo root — look for
CLAUDE.md,AGENTS.md, orCONVENTIONS.md(use the first one found). You need the repo path for the Task agent. -
Launch a Task agent to run the stage skill:
Task(
subagent_type="general-purpose",
description="Run pipeline stage [N] for $ARGUMENTS",
prompt="You are running a pipeline stage. Invoke the skill by using the Skill tool:
Skill(skill='[skill-name]', args='$ARGUMENTS [extra-args-if-any]')
After the skill completes, summarize:
1. What was produced (artifact name, key content)
2. Whether it succeeded or had issues
3. What the skill said should happen next"
)
Skill-to-stage mapping:
| Stage | Skill Name | Extra Args |
|-------|-----------|------------|
| 0 | prd | (none) |
| 1 | discovery | --repo <path> if multi-repo |
| 2 | architecture | (none) |
| 3 | gameplan | (none) |
| 4 | test-generation | --repo <path> if multi-repo |
| 5 | implementation | milestone + --repo <path> if multi-repo |
| 6 | review | --repo <path> if multi-repo |
| 7 | qa-plan | (none) |
| Final | create-pr | (none) |
For Stage 5 (implementation), include the milestone: args="$ARGUMENTS M1" (or whichever milestone is next).
Multi-repo stage handling:
For stages that accept --repo (1, 4, 5, 6), detect whether this is a multi-repo project:
- Check the work item's artifact list for multiple
discovery-report-*.mdartifacts, OR - Check the gameplan for milestones with
**Repo:**fields
When multi-repo is detected:
- Stage 1 (Discovery): If any repos still need discovery, determine which repo to run next. Read the PRD or work item body for the list of repos involved. Run
/discovery CALLSIGN --repo <path>for the next repo. - Stage 4 (Test Generation): Read the gameplan to find the first milestone's target repo. Run
/test-generation CALLSIGN --repo <repo-path>. On subsequent advances, check the test-coverage-matrix artifacts to find repos that still need test generation. - Stage 5 (Implementation): Read the gameplan milestone's
**Repo:**field. Pass--repo <repo-path>to/implementation CALLSIGN <milestone> --repo <path>. - Stage 6 (Review): Run once per repo that has implementation changes. Check for
progress-*.mdartifacts to determine which repos were implemented.
- When the Task agent returns, report the result to the user:
## Stage [N] Complete
[Summary from Task agent]
**Next:** Run `/pipeline-advance $ARGUMENTS` to continue to the next stage.
If "Not now": Stop and report what to run when ready.
If PIPELINE COMPLETE:
## Pipeline Complete
All stages have been executed for $ARGUMENTS. The project is ready for PR creation.
Run `/create-pr $ARGUMENTS` to push the branch and create a pull request.
Step 5: Log Progress
After any action (stage execution or approval), log a comment:
wcp_comment(
id=$ARGUMENTS,
author="pipeline/advance",
body="Pipeline advanced: [what was done]. Next: [what's needed next]."
)
What NOT To Do
- Do not run multiple stages in one invocation. Advance exactly one step. The user runs
/pipeline-advanceagain for the next step. (Use/pipeline-autopilotfor chaining.) - Do not skip approval gates. If an artifact needs approval, route through
/pipeline-approveor stop. - Do not run stages inline. Always use a Task agent for context isolation. The exception is
/pipeline-approvewhich runs via the Skill tool (it needs interactive AskUserQuestion access). - Do not fix blockers. Report them and stop. Blockers require human judgment.
- Do not guess the current stage. Always inspect artifacts via
wcp_getand read approval-gated artifacts to check their Status field.
When You're Done
Tell the user:
- What happened: "[Action taken] for
$ARGUMENTS" - Current state: "Pipeline is now at [stage/state]"
- Next step: "Run
/pipeline-advance $ARGUMENTSto continue" or "Pipeline is blocked/complete"
Success Criteria
- [ ] Correctly detects all pipeline states from artifact inspection
- [ ] Handles both approval gates (architecture and gameplan)
- [ ] Routes to /pipeline-approve for interactive review
- [ ] Runs stage skills in Task agents (context isolation)
- [ ] Correctly determines next implementation milestone for Stage 5
- [ ] Reports clear status and next steps
- [ ] Handles blocked states gracefully (rejected artifacts, review blockers)
- [ ] Logs progress as WCP comments
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/pipeline-advance-single-step-advancement-mrwak9ny/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/pipeline-advance-single-step-advancement-mrwak9ny' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/pipeline-advance-single-step-advancement-mrwak9ny/download' --output '.skill-downloads/pipeline-advance-single-step-advancement-mrwak9ny/SKILL.md.part' && mv '.skill-downloads/pipeline-advance-single-step-advancement-mrwak9ny/SKILL.md.part' '.skill-downloads/pipeline-advance-single-step-advancement-mrwak9ny/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/pipeline-advance-single-step-advancement-mrwak9ny/SKILL.md' && test -s '.skill-downloads/pipeline-advance-single-step-advancement-mrwak9ny/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/pipeline-advance' && cp -R '.skill-downloads/pipeline-advance-single-step-advancement-mrwak9ny' '.claude/skills/pipeline-advance'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/pipeline-advance-single-step-advancement-mrwak9ny'openskills read 'pipeline-advance-single-step-advancement-mrwak9ny'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/pipeline-advance-single-step-advancement-mrwak9ny/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
Configure a Chat Channel with SecretRefs
DevOps
Set up chat channels using non-interactive commands, with secrets only as SecretRefs. Covers gather, mutate, repair, and prove steps for reliable delivery.
Investigate ClickHouse CI Failures
DevOps
Investigate a ClickHouse CI failure end-to-end from a PR or S3 report URL. Fetches failed tests, classifies flaky vs real regression, and checks for existing issues/fixes.
Ansible PR Review
DevOps
Reviews an Ansible PR following the project's standardized process, including changelog checks, test coverage validation, and feedback tracking.