From code-forge
User-initiated pipeline teardown. Deletes the pipeline team, removes the worktree, and completes the sentinel task. Run after a pipeline reaches any terminal state (success, failure, escalation, abort) when you are done with the session — teardown is irreversible.
How this skill is triggered — by the user, by Claude, or both
Slash command
/code-forge:cleanupThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
The user-initiated cleanup command for pipeline teardown. Run this after a pipeline completes (success, failure, escalation, or abort) when you are ready to discard the worktree and close the session.
The user-initiated cleanup command for pipeline teardown. Run this after a pipeline completes (success, failure, escalation, or abort) when you are ready to discard the worktree and close the session.
What cleanup does:
pipeline-team agent teamWhen to invoke: Only when you are done with the current pipeline session. Teardown is irreversible — the worktree is deleted and cannot be recovered.
- **User-initiated only.** This skill is never called by the pipeline automatically. The user runs `/cleanup` when they are ready. - **No approval pause.** Invoking this skill is the user's confirmation to tear down. - **Graceful no-op.** If no active pipeline exists (no team, no sentinel task), explain that and exit cleanly — do not error. - **Sentinel last.** Complete the sentinel task as the final step, after team and worktree are gone.Call TaskGet(taskId = 1) first. If the task exists and has metadata.role = "team-lead" and metadata.phase = "orchestration", that is the sentinel — store its ID as SENTINEL_TASK_ID and proceed to Step 2.
If task 1 does not match (or does not exist), fall back: call TaskList, then call TaskGet on each in_progress task until one matches metadata.role = "team-lead" and metadata.phase = "orchestration". Store its ID as SENTINEL_TASK_ID.
If no match is found after the full scan, no active pipeline is present. Tell the user:
No active pipeline found. Nothing to clean up.
Then stop — do not proceed further.
TeamDelete(name = "pipeline-team")
If the call fails because the team does not exist, treat it as a no-op and continue.
ExitWorktree(action = "remove")
This deletes the worktree immediately without prompting the user.
TaskUpdate(
taskId = <SENTINEL_TASK_ID>,
status = "completed",
metadata = { completed_at: "<ISO 8601 timestamp>" }
)
Use the current UTC time for completed_at.
Tell the user:
Pipeline teardown complete. Team deleted, worktree removed, sentinel task closed.
npx claudepluginhub techyshishy/code-forge --plugin code-forgeGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.