agentleFS
tonmoy007tonmoy007/forge-plugins/skills/forge-uninstall/SKILL.md

forge-uninstall

Skill2 starsChanged 5 months agoMITView on GitHub

Remove Forge filesystem state from the current project, and optionally

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
  1. Distinctive:

    Always preview first: Run a dry-run BEFORE any destructive action:

    line 33
  2. Distinctive:

    Ask for an explicit confirmation: "Should I proceed with removal?

    line 39
  3. Distinctive:

    Only after the user replies with an unambiguous yes (or equivalent — "do it", "go ahead", "remove it"), run the actual removal:

    line 41
  4. Very specific:

    If the user said "keep my SRS / specs / pipeline files", add --keep-artifacts.

    line 46
  5. Very specific:

    If the user wants to also wipe ~/.forge/ (lessons across ALL their Forge projects), add --include-global.

    line 48
  6. Distinctive:

    After the script completes, ALWAYS remind the user of the two follow-up steps:

    line 51
  7. Distinctive:

    After running, all of these should be true:

    line 57
  8. Very specific:

    If you change your mind later: /plugin marketplace add tonmoy007/forge-plugins then /plugin install forge@forge-plugins"

    line 98
  9. Very specific:

    Remove Forge state from this project (.forge/ and pipeline/)

    line 106
  10. Very specific:

    Remove cross-project lessons in ~/.forge/ (affects ALL your Forge projects, not just this one)

    line 107

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:uninstall or /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

  1. Always preview first. Run a dry-run BEFORE any destructive action:
    python ${CLAUDE_PLUGIN_ROOT}/scripts/uninstall.py --dry-run --cwd "<project>"
  2. 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
  3. 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."
  4. 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
  5. If the user said "keep my SRS / specs / pipeline files", add --keep-artifacts. This preserves pipeline/ and only removes .forge/
  6. 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
  7. 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 MB

Proceed 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:

  1. To fully remove the plugin from Claude Code: /plugin uninstall forge@forge-plugins
  2. If you change your mind later: /plugin marketplace add tonmoy007/forge-plugins then /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:

  1. Remove Forge state from this project (.forge/ and pipeline/)
  2. 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."

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.