Our review
Finalizes the current pipeline by verifying mandatory gates, updating the spec, moving files, capturing knowledge, and reporting metrics.
Strengths
- Enforces mandatory review and build checks before finalizing
- Maintains spec integrity and traceability
- Captures patterns and metrics for future reference
- Supports cancellation flow for incomplete pipelines
Limitations
- Assumes a specific project structure (.claude/)
- Relies on external scripts (rtk, sync-registry)
- No rollback mechanism after completion
After successful implementation and review to formally close a pipeline.
When the user is still iterating or hasn't run a review.
Security analysis
SafeThe skill manages internal pipeline state files (move, delete, update) and runs pre-existing project scripts; it does not exfiltrate data, execute downloaded payloads, or perform destructive system-wide actions. All file operations are scoped to the project's .claude directory.
No concerns found
Examples
/completeI want to cancel the current pipeline./complete - Finalize Pipeline
Trigger
/complete
Description
Finalizes the current pipeline, either completing or canceling.
Verification Gate (MANDATORY)
- Review completed: Check pipeline state — review agent MUST have run and returned APPROVED. If not → dispatch review first (see resume.md step 19)
- Build passes: run build command for each affected subproject (from pipeline-config.md)
- Changes match spec: each
[x]corresponds to a real file - Zero CRITICAL issues: review report shows zero CRITICAL violations (SOLID, design system, patterns, i18n, integration)
- No regressions: existing features still work
If ANY gate fails: do NOT mark complete → report what failed + suggest fix. If review wasn't run → run it now before completing.
Action
- Locate active spec in
.claude/spec/active/ - If none exists → inform user and stop
- Spec Checkpoint — update spec header:
### Status: completed### Phase: CLOSE### Checkpoint: {ISO timestamp now}- Mark all remaining
[ ]as[x]
- Entity Registry — update if needed:
node .claude/scripts/sync-registry.js
- Move spec from
.claude/spec/active/to.claude/spec/completed/ - Pipeline State — cleanup:
- Extract
spec-namefrom the spec directory (e.g.2026-02-26-linked-services-card) - Delete
.claude/.pipeline-states/{spec-name}.json(removes from statusline) 6b. Knowledge Capture: - Review patterns discovered during this pipeline
- For each significant pattern/convention/entity discovered:
echo '{"type":"pattern","name":"...","description":"...","source":"{spec-name}"}' | node .claude/scripts/knowledge-update.js - Focus on: naming conventions used, architectural decisions, integration patterns
- Skip trivial or already-known patterns
- Extract
6c. Token Economy — RTK report (if available):
- Run
rtk gain --all --format jsonvia Bash - If RTK available: extract
saved_tokensandsavings_pct - Include in output block below 6d. Metrics Archive:
- Read metrics from
.claude/.pipeline-states/{spec-name}.json - If metrics exist, ensure
.claude/metrics/directory exists - Save to
.claude/metrics/{spec-name}.json:{ "name": "{spec-name}", "completedAt": "{ISO timestamp}", "durationMs": "{calculated from startedAt to now}", "apiCalls": "{from metrics}", "retries": "{from metrics}", "toolBreakdown": "{from metrics}", "rtkSavings": { "saved": N, "pct": N } } - If no metrics in state file, skip silently
-
Output — visual feedback:
================================================================ PIPELINE COMPLETE — {spec-name} Agents: {n} ok | Files: {created} created, {modified} modified [v] Registry updated | [v] Spec moved to completed/ Token Economy: {saved}k saved ({pct}% reduction) — RTK ================================================================If RTK is not installed or the gain command fails, omit the Token Economy line.
Cancellation Flow
If the user wants to cancel (not complete):
- Update spec:
### Status: cancelled - Move to
completed/anyway (for history) - Delete
.claude/.pipeline-states/{spec-name}.json - Output: "Pipeline cancelled. Spec archived in completed/."
Results Documentation
On completion, the output must include:
- Summary of changes (what and why)
- Files created/modified
When to Use
- After successful implementation and review
- To cancel an ongoing pipeline
- To force close if something went wrong
Docker Compose Architect
DevOps
Designs optimized Docker Compose configurations.
Incident Postmortem Writer
DevOps
Writes structured and blameless incident postmortem reports.
Runbook Creator
DevOps
Creates clear operational runbooks for common DevOps procedures.