agentleFS
blueclover22blueclover22/mw_agent_kit/skills/teardown/SKILL.md

teardown

Skill1 starsChanged 8 days agoMITView on GitHub

Use when asked to remove the mak-managed rules block from ~/.claude/CLAUDE.md, especially before uninstalling the plugin.

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If it does not exist, or contains no <!-- mak:begin marker: report "nothing to remove" and stop.

    line 14
  2. Distinctive:

    If a begin marker exists without an end marker, or more than one begin/end marker exists (corrupted/duplicated state): do not guess the …

    line 16
  3. Very specific:

    Only the marker-delimited block is removed.

    line 22
  4. Very specific:

    Do not run git commands; ~/.claude may not be a repository.

    line 23

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “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

mak:teardown — Remove the mak Block from the Global CLAUDE.md

Reverses mak:setup: deletes the marker-delimited block from ~/.claude/CLAUDE.md. Content outside the markers is never touched.

Procedure

  1. Read ~/.claude/CLAUDE.md.
    • If it does not exist, or contains no <!-- mak:begin marker: report "nothing to remove" and stop.
  2. Remove the block — delete everything from the <!-- mak:begin marker line through the <!-- mak:end --> marker line, inclusive. Collapse any resulting runs of 3+ blank lines to one.
    • If a begin marker exists without an end marker, or more than one begin/end marker exists (corrupted/duplicated state): do not guess the block boundary. Show the user the marker locations and ask how far to remove.
  3. If the file is now empty or whitespace-only — tell the user; offer to delete the file or leave the empty file (their choice). Do not delete it unprompted.
  4. Report — state that the block was removed. If ~/.claude/CLAUDE.md.mak-backup exists, mention it: it holds the pre-setup snapshot and can be deleted by the user once they're satisfied, or used to compare (diff) if anything looks off. Do not delete the backup automatically.

Cautions

  • Only the marker-delimited block is removed. Never remove legacy (pre-plugin) manually-pasted sections here — that was only offered during mak:setup with confirmation.
  • Do not run git commands; ~/.claude may not be a repository.

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.