forge-uninstall
Skill2 starsChanged 5 months agoMITView on GitHub
Remove Forge filesystem state from the current project, and optionally
In this repository46 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- forge-opencode/CLAUDE.mdCLAUDE.md
- forge-adoptSkill
- forge-arch-proSkill
- forge-archSkill
- forge-autopilotSkill
- forge-autopilot-stopSkill
- forge-build-proSkill
- forge-buildSkill
- forge-deploySkill
- forge-doctorSkill
- dreamer-runSkill
- forge-evalSkill
- forge-feedbackSkill
- flowSkill
- forge-force-advanceSkill
- graduateSkill
- health-checkSkill
- forge-initSkill
- forge-monitorSkill
- forge-orchestrateSkill
- forge-plan-proSkill
- forge-planSkill
- preflightSkill
- forge-product-proSkill
- forge-productSkill
- forge-releaseSkill
- forge-resolveSkill
- forge-resumeSkill
- forge-retroSkill
- forge-reviewSkill
- forge-rulesSkill
- forge-set-profileSkill
- skill-creatorSkill
- forge-spec-proSkill
- forge-specSkill
- forge-sprint-proSkill
- forge-sprintSkill
- forge-srs-proSkill
- forge-srsSkill
- forge-statusSkill
- forge-trace-matrixSkill
- forge-validateSkill
- watchSkill
- watch-stopSkill
- forge-whySkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 5 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
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
- Distinctive: line 33
Always preview first: Run a dry-run BEFORE any destructive action:
- Distinctive: line 39
Ask for an explicit confirmation: "Should I proceed with removal?
- Distinctive: line 41
Only after the user replies with an unambiguous yes (or equivalent — "do it", "go ahead", "remove it"), run the actual removal:
- Very specific: line 46
If the user said "keep my SRS / specs / pipeline files", add --keep-artifacts.
- Very specific: line 48
If the user wants to also wipe ~/.forge/ (lessons across ALL their Forge projects), add --include-global.
- Distinctive: line 51
After the script completes, ALWAYS remind the user of the two follow-up steps:
- Distinctive: line 57
After running, all of these should be true:
- Very specific: line 98
If you change your mind later: /plugin marketplace add tonmoy007/forge-plugins then /plugin install forge@forge-plugins"
- Very specific: line 106
Remove Forge state from this project (.forge/ and pipeline/)
- Very specific: line 107
Remove cross-project lessons in ~/.forge/ (affects ALL your Forge projects, not just this one)
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Forge Uninstall
Removes Forge filesystem state — pipeline/ artifacts, .forge/ runtime state, and
optionally ~/.forge/ global lessons — from the user's project. Does not remove the
Claude Code plugin registration; that's a separate /plugin uninstall action.
When to Use
- User types
/forge:uninstallor/forge:remove - User says "uninstall Forge", "remove Forge from this project", "I want to start over"
- User says "clean up Forge files", "remove .forge/", "delete pipeline/"
- User is frustrated and considering abandoning Forge — offer this as a clean exit
- User wants to migrate a project away from Forge while keeping the SDLC documents
- User asks "how do I undo
/forge:init?"
Steps
- Always preview first. Run a dry-run BEFORE any destructive action:
python ${CLAUDE_PLUGIN_ROOT}/scripts/uninstall.py --dry-run --cwd "<project>" - Present the full plan output verbatim to the user. Do not paraphrase what will be removed; the user needs to see the exact paths, file counts, and sizes
- Ask for an explicit confirmation: "Should I proceed with removal? Reply 'yes' to confirm, or tell me to keep artifacts / include global state if those apply."
- Only after the user replies with an unambiguous yes (or equivalent — "do it",
"go ahead", "remove it"), run the actual removal:
python ${CLAUDE_PLUGIN_ROOT}/scripts/uninstall.py --cwd "<project>" --yes - If the user said "keep my SRS / specs / pipeline files", add
--keep-artifacts. This preservespipeline/and only removes.forge/ - If the user wants to also wipe
~/.forge/(lessons across ALL their Forge projects), add--include-global. Confirm this separately — it affects projects other than the current one - After the script completes, ALWAYS remind the user of the two follow-up steps:
/plugin uninstall forge@forge-plugins— unregister the plugin from Claude Code- To reinstall later:
/plugin marketplace add tonmoy007/forge-plugins && /plugin install forge@forge-plugins
Verification
After running, all of these should be true:
- A dry-run plan was shown to the user before any destructive action
- The user explicitly confirmed the removal in plain language
<project>/.forge/no longer exists<project>/pipeline/either no longer exists, or was preserved (if--keep-artifacts)- The user has been told that the plugin itself remains registered in Claude Code until
they run
/plugin uninstall forge@forge-plugins - The user has the reinstall command in case they want to come back later
Examples
User: "I want to uninstall Forge from this project"
Claude: [runs python ${CLAUDE_PLUGIN_ROOT}/scripts/uninstall.py --dry-run --cwd "$(pwd)"]
"Here's what would be removed:
Forge uninstall — plan
======================
Will remove:
• /home/user/proj/.forge
Forge runtime state (sessions, lessons.yaml, hook errors)
14 files, 132.5 KB
• /home/user/proj/pipeline
Pipeline artifacts (srs.md, prd.md, arch.md, etc.)
37 files, 1.2 MBProceed with removal? Reply 'yes' to confirm. If you'd like to keep your SRS / specs / architecture documents (and only remove the runtime), say 'keep artifacts'."
User: "yes, but keep my SRS"
Claude: [runs python ${CLAUDE_PLUGIN_ROOT}/scripts/uninstall.py --cwd "$(pwd)" --yes --keep-artifacts]
[Presents the output verbatim, including the next-steps reminder]
"Done. Two more things:
- To fully remove the plugin from Claude Code:
/plugin uninstall forge@forge-plugins - If you change your mind later:
/plugin marketplace add tonmoy007/forge-pluginsthen/plugin install forge@forge-plugins"
User: "I'm done with Forge across all my projects"
Claude: "Before I do this, I want to be explicit — you've asked for two things:
- Remove Forge state from this project (
.forge/andpipeline/) - Remove cross-project lessons in
~/.forge/(affects ALL your Forge projects, not just this one)
Both are destructive. Let me preview both:" [runs --dry-run --include-global]
"...
Proceed with all of this? I'd also recommend backing up ~/.forge/global-lessons.yaml
first if there's anything in there you want to keep."
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.

