deleting-a-pipeline-step
Skill4 starsChanged 6 months agoMITView on GitHub
Remove a step from an existing named Superpipelines workflow while preserving topology continuity.
In this repository43 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms-full.txtllms.txt
- llms.txtllms.txt
- cutting-a-releaseSkill
- cutting-a-releaseSkill
- adding-a-pipeline-stepSkill
- brainstormingSkill
- change-modelsSkill
- creating-a-pipelineSkill
- finishing-a-development-branchSkill
- migrating-a-pipelineSkill
- optimizing-a-pipelineSkill
- pipeline-architect-protocolSkill
- pipeline-auditor-protocolSkill
- pipeline-failure-analyzer-protocolSkill
- pipeline-optimizer-protocolSkill
- pipeline-quality-reviewer-protocolSkill
- pipeline-spec-reviewer-protocolSkill
- pipeline-task-executor-protocolSkill
- running-a-pipelineSkill
- sk-4d-methodSkill
- sk-claude-code-conventionsSkill
- sk-dynamic-routingSkill
- sk-hashline-protocolSkill
- sk-hierarchical-contextSkill
- skill-architect-protocolSkill
- sk-model-migrationSkill
- sk-model-resolverSkill
- sk-pipeline-grillingSkill
- sk-pipeline-pathsSkill
- sk-pipeline-patternsSkill
- sk-pipeline-stateSkill
- sk-platform-dispatchSkill
- sk-rationalization-resistanceSkill
- sk-spec-driven-developmentSkill
- sk-worktree-safetySkill
- sk-write-review-isolationSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- updating-a-pipeline-stepSkill
- using-superpipelinesSkill
- verification-before-completionSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 34
Architect completion manifest gate: After the architect returns, read the STEP-DELETE completion manifest.
- Distinctive: line 38
Pre-audit residual-reference scan: Prefer the Phase 3 delta auditor as the authoritative gate.
- Very specific: line 50
Update the registry.json to reflect the removal.
- Very specific: line 51
Version Stamp: Update plugin_version in topology.json and the registry entry to the current superpipelines version.
- Very specific: line 55
NEVER assume a step is "unused" without verifying all depends_on entries in the topology graph.
- Distinctive: line 56
ALWAYS perform atomic promotion from a staging area to ensure rollback capability.
- Distinctive: line 57
NEVER delete a step that creates an unresolvable blocking-gap in the orchestration.
- Very specific: line 58
ALWAYS update plugin_version in topology.json and the registry entry to the current superpipelines version when promoting changes.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Deleting a Pipeline Step — Removal Workflow
<overview>
Removes a named step from an existing pipeline. Performs gap analysis to identify predecessor/successor disconnections, stages all file removals and topology mutations for audit, and enforces a mandatory human approval gate before any irreversible deletion occurs.
</overview><glossary>
<term name="Gap Analysis">The process of identifying predecessor/successor disconnections caused by a step removal.</term>
<term name="Through-gap">A condition where a deleted step sat between two active steps, requiring direct reconnection.</term>
<term name="Blocking-gap">A condition where a deleted step was the sole source of required inputs for a successor.</term>
</glossary>Workflow Phases
<protocol>
### PHASE 0: PIPELINE & STEP SELECTION
- Resolve scope registries and identify the target pipeline and step.
- Display the current `topology.json` as a graph showing all dependency chains.PHASE 1: GAP ANALYSIS
- Analyze the impact of removal on predecessors and successors.
<HARD-GATE>If a Blocking-gap is found (no alternative input source), STOP. The user must provide an alternative source or cancel the deletion.</HARD-GATE>
PHASE 2: MUTATION DESIGN (REWIRE)
- For through-gaps or entry-gaps, present a rewire plan to the user (e.g., "Wire A directly to C").
- Dispatch
pipeline-architectinSTEP-DELETEmode to stage all changes. <invariant>All mutations (file removals and topology updates) MUST be staged inedit-{ts}/. NEVER delete directly from production paths during design.</invariant>- Architect completion manifest gate: After the architect returns, read the STEP-DELETE completion manifest. It MUST cover every file the architect was tasked with touching and use only
edited,copied-unchanged, ordeleted.<HARD-GATE>If any expected markdown artifact (*.md) is listed ascopied-unchanged, STOP before Phase 3. Emit a blocking error naming the file and explain that unchanged markdown in STEP-DELETE staging indicates an architect partial exit.</HARD-GATE><HARD-GATE>If any expected file is missing from the manifest, STOP before Phase 3. The staging set is incomplete and cannot be audited as a coherent delta.</HARD-GATE>
- Staged markdown modification guard: Independently diff every staged
*.mdfile against its production original before Phase 3. If the staged file has a production source and is byte-identical to that source, STOP before Phase 3 with a blocking error naming both paths. This guard is independent of the manifest and catches partial exits even when the manifest is wrong or missing detail. - Pre-audit residual-reference scan: Prefer the Phase 3 delta auditor as the authoritative gate. If a manual grep is run as an additional pre-audit smoke check, it MUST explicitly include markdown files (for example,
--include="*.md") so.mdartifacts cannot be silently skipped.
PHASE 3: DELTA AUDIT
- Dispatch
pipeline-auditorinDELTAmode on the staged topology, entry skill, and neighbor steps. <HARD-GATE>SEV-0 or SEV-1 findings block deletion. A fragmented pipeline is a critical failure. Re-audit until the delta is clear.</HARD-GATE>
PHASE 4: HUMAN APPROVAL
- Present a "Deletion Manifest" showing exactly which files will be removed and which edges will be rewired.
<HARD-GATE>Wait for explicitAPPROVE. OnCANCEL, discard all staged changes and do NOT delete artifacts.</HARD-GATE>
PHASE 5: ATOMIC PROMOTION
- Execute file removals (agents/skills) and write updated
topology.jsonandtasks.md. - Update the
registry.jsonto reflect the removal. - Version Stamp: Update
plugin_versionintopology.jsonand the registry entry to the current superpipelines version.</protocol>
<invariants>
- NEVER assume a step is "unused" without verifying all `depends_on` entries in the topology graph.
- ALWAYS perform atomic promotion from a staging area to ensure rollback capability.
- NEVER delete a step that creates an unresolvable blocking-gap in the orchestration.
- ALWAYS update `plugin_version` in `topology.json` and the registry entry to the current superpipelines version when promoting changes.
</invariants>Red Flags — STOP
- "The pipeline will work without rewiring — it's obvious." → STOP. Obvious assumptions are the leading source of silent runtime failures.
- "I'll skip the human gate; deletion is a simple task." → STOP. Deletion is irreversible; the human gate is the final recovery point.
- "I'll delete the files first, then update the topology." → STOP. This results in a broken pipeline if the topology update fails.
Rationalization Table
<rationalization_table>
| Excuse | Reality |
| "The step is terminal, why audit?" | Removing a terminal step can still break final status reporting or cleanup logic. |
| "Rewiring is over-engineering." | A broken dependency chain blocks every subsequent pipeline run. Rewiring is essential maintenance. |
| "I can recover from git if I'm wrong." | Relying on git recovery for basic workflow errors indicates a failure of the safety protocol. |
| </rationalization_table> |
Reference Files
sk-pipeline-paths/SKILL.md— Path resolution.sk-pipeline-state/SKILL.md— Run state tracking.adding-a-pipeline-step/SKILL.md— Insertion workflow.updating-a-pipeline-step/SKILL.md— Modification workflow.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

