skills/forge-abort/SKILL.md
[writes] Stop an active pipeline run gracefully. Use when you want to pause work, need to change approach mid-pipeline, or want to interrupt a long-running run. Preserves state for /forge-recover resume. Safer than /forge-recover reset which clears all state.
npx skillsauth add quantumbitcz/dev-pipeline forge-abortInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
See shared/skill-contract.md for the standard exit-code table.
.forge/state.json exists. If not: "No active pipeline to abort." STOP.story_state from state.json. If COMPLETE or ABORTED: "Pipeline already finished (state: {story_state})." STOP.story_state, convergence.phase, total_iterationsbash shared/forge-state.sh transition user_abort_direct --forge-dir .forge
b. Release .forge/.lock if held: rm -f .forge/.lock
c. Do NOT delete worktree (preserves work for resume)
d. Report: "Pipeline aborted at {stage}. State preserved. Run /forge-recover resume to continue."/forge-recover resetImportant: Never write directly to state.json. Always use forge-state.sh transition to maintain state machine integrity.
story_state: ABORTEDprevious_state: preserved for /forge-recover resume| Condition | Action |
|-----------|--------|
| Prerequisites fail | Report specific error message and STOP |
| state.json missing | Report "No active pipeline to abort." and STOP |
| Pipeline already finished | Report "Pipeline already finished (state: {story_state})." and STOP |
| State transition fails | Report "Could not transition to ABORTED state. State machine error: {error}." Suggest /forge-recover repair |
| Lock file removal fails | Log WARNING. Lock file will be detected as stale on next run |
| state.json write fails | Report error. State may be partially updated. Suggest /forge-recover repair |
| State corruption | Attempt abort anyway via state machine. If that fails, suggest /forge-recover reset |
/forge-recover resume -- Resume the aborted pipeline from where it stopped/forge-recover reset -- Clear all state (more destructive -- use when resume is not needed)/forge-status -- Check pipeline state before deciding to abort/forge-recover rollback -- Rollback code changes made before the abortdevelopment
[writes] Build, fix, deploy, review, or modify code in this project. Universal entry for the forge pipeline. Auto-bootstraps on first run; brainstorms before planning when given a feature description. Use when you want to take any productive action: implementing features, fixing bugs, reviewing branches, deploying, committing, running migrations.
tools
[writes] Manage forge state and configuration: recovery, abort, config edits, session handoff, automations, playbooks, output compression, knowledge graph maintenance. Use when you need to recover from broken pipeline state, edit settings, or manage long-lived state.
development
[writes] Create, list, show, resume, or search forge session handoffs. Use when context is getting heavy and you want to transfer a forge run or conversation into a fresh Claude Code session, or to resume from a prior handoff artefact. Subcommands - no args (write), list, show, resume, search.
development
[writes] Manage the Neo4j knowledge graph. Subcommands: init, rebuild (writes); status, query <cypher>, debug (read-only). Requires Docker. No default — an explicit subcommand is required. Use when setting up the graph for the first time, rebuilding after major refactors, checking graph health, or running ad-hoc Cypher diagnostics.