skills/forge-reset/SKILL.md
Clear pipeline run state and start fresh while preserving accumulated learnings and cross-run caches. Use when you want to abandon the current run completely, when state is too corrupted for /forge-repair-state, or before starting a clean pipeline run.
npx skillsauth add quantumbitcz/dev-pipeline forge-resetInstall 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.
Clear the pipeline run state so you can start fresh.
Before any action, verify:
git rev-parse --show-toplevel 2>/dev/null. If fails: report "Not a git repository. Navigate to a project directory." and STOP..claude/forge.local.md exists. If not: report "Forge not initialized. Run /forge-init first." and STOP..forge/ directory exists. If not: report "No pipeline state to reset. The .forge/ directory does not exist." and STOP.Use AskUserQuestion to confirm with the user:
.forge/ (state.json, checkpoints, stage notes, reports). Cross-run caches (explore-cache, plan-cache) are preserved. Learnings in .claude/forge-log.md are preserved."If confirmed:
Before cleanup, check for active pipeline runs:
.forge/.lock exists:
.forge/.lock (if present)kill -0 $pid 2>/dev/null)AskUserQuestion with options: "Force reset" / "Cancel"Before removing .forge/:
.forge/docker-compose.neo4j.yml exists:
docker compose -f .forge/docker-compose.neo4j.yml down -v to stop container and remove volumedocker ps -a to check." Continue with reset -- Docker failure should not block state cleanup..forge/worktree exists and is a git worktree:
git worktree remove .forge/worktree --force to cleanly remove the worktree.git/worktrees/git worktree list to check for dangling entries and git worktree prune to clean up." Continue with reset.Remove run state files but preserve cross-run caches:
# Remove run state
rm -f .forge/state.json
rm -f .forge/checkpoint-*.json
rm -f .forge/stage_*_notes_*.md
rm -f .forge/stage_final_notes_*.md
rm -f .forge/.lock
rm -f .forge/.check-engine-skipped
rm -rf .forge/reports/
rm -rf .forge/feedback/
rm -rf .forge/tracking/
rm -rf .forge/progress/
rm -f .forge/evidence.json
rm -f .forge/decisions.jsonl
rm -f .forge/automation-log.jsonl
# Preserve (do NOT delete):
# .forge/explore-cache.json -- cross-run codebase index
# .forge/plan-cache/ -- cross-run plan cache
# .forge/docs-index.json -- documentation index
# .forge/wiki/ -- auto-generated wiki (v1.20)
# .forge/agent-card.json -- A2A agent card (v1.19)
For full wipe including caches, manually run: rm -rf .forge/
.claude/forge-log.md. Ready for a fresh run with /forge-run."If not confirmed:
Deletes: state.json, checkpoint-.json, stage_notes.md, stage_final_notes_.md, .lock, .check-engine-skipped, reports/, feedback/, tracking/, progress/, evidence.json, decisions.jsonl
Preserves (inside .forge/): explore-cache.json, plan-cache/, docs-index.json, wiki/, agent-card.json
Does NOT touch (outside .forge/): forge-log.md, forge.local.md, forge-config.md
| Condition | Action |
|-----------|--------|
| Prerequisites fail | Report specific error message and STOP |
| Active pipeline detected (live PID) | Warn user and require explicit "Force reset" confirmation |
| Docker cleanup fails | Log warning, continue with reset -- Docker failure is non-blocking |
| Worktree removal fails | Log warning, suggest git worktree prune, continue with reset |
| File deletion fails (permissions) | Report which files could not be deleted and suggest manual cleanup |
| State corruption | Reset handles corrupt state -- that is one of its primary use cases |
.claude/forge-log.md -- this contains accumulated learnings across all runs.claude/forge.local.md -- this is the project configuration.claude/forge-config.md -- this contains auto-tuned runtime parameters.forge/ which contains ephemeral run state/forge-abort -- Stop an active pipeline gracefully while preserving state for resume (less destructive)/forge-resume -- Resume an aborted pipeline from its last checkpoint/forge-repair-state -- Fix specific state.json issues without wiping everything/forge-diagnose -- Read-only diagnostic to understand what went wrong before deciding to resetdevelopment
[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.