Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add sdsrss/claudemd/plugin install claudemdWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/sdsrss/claudemd/claudemd-uninstall)<a href="https://agentmods.dev/commands/sdsrss/claudemd/claudemd-uninstall"><img src="https://agentmods.dev/badge/commands/sdsrss/claudemd/claudemd-uninstall.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00099 | $0.00745 |
| Opus 5 | $0.00049 | $0.00373 |
| Sonnet 5 | $0.00020 | $0.00149 |
| Haiku 4.5 | $0.00010 | $0.00075 |
Grade B, and why
claudemd-uninstall scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
Surface the script's JSON output to the user: `specAction`, plus — when present — `warning` (`already-uninstalled` or `restore-empty`), `settingsWarning`, and a `statusline.action` of `error`. On a restore, `restored` li What it actually says
Usage:
-
Default (keep spec, keep state + log):
node ${CLAUDE_PLUGIN_ROOT}/scripts/uninstall.js -
Also drop
~/.claude/.claudemd-state/and the rule-hits log — opt-in, and NOT recoverable (the log is the §13.1 demote-review corpus):CLAUDEMD_PURGE=1 node ${CLAUDE_PLUGIN_ROOT}/scripts/uninstall.js -
Restore your pre-claudemd
~/.claude/CLAUDE*.mdfrom the most recent backup:CLAUDEMD_SPEC_ACTION=restore node ${CLAUDE_PLUGIN_ROOT}/scripts/uninstall.jsThis restores; it does not remove.CLAUDE-extended.md,CLAUDE-changelog.mdandOPERATOR.md— spec files claudemd added that you never had — are left in place, because removing spec files isCLAUDEMD_SPEC_ACTION=deleteand that path is gated behindCLAUDEMD_CONFIRM=1. Claude Code does not auto-load those three, so they are inert; delete them by hand if you want them gone. -
Full removal (delete spec files; requires hard-AUTH confirm):
CLAUDEMD_SPEC_ACTION=delete CLAUDEMD_CONFIRM=1 node ${CLAUDE_PLUGIN_ROOT}/scripts/uninstall.js
After this command finishes, run /plugin uninstall claudemd@claudemd to remove the plugin cache itself.
Two-step rationale: ${CLAUDE_PLUGIN_ROOT} and scripts/uninstall.js only exist while the plugin is still installed. /plugin uninstall deletes them along with the cache, so the cleanup MUST run first. Reversing the order leaves the manifest, ~/.claude/.claudemd-state/, and ~/.claude/logs/claudemd.jsonl orphaned with no in-tree tool to remove them.
Note: hooks remain registered until you also run /plugin uninstall. This command only clears the user-global state; the plugin's hooks/hooks.json is the authoritative registration site, removed when the cache is deleted.
Surface the script's JSON output to the user: specAction, plus — when present — warning (already-uninstalled or restore-empty), settingsWarning, and a statusline.action of error. On a restore, restored lists the files actually copied back; warning: "restore-empty" means that list is empty and the spec files are still in place — report that as a FAILED restore and point at ls -l on the backup dir, because specAction: "restore" is printed either way. The last two mean ~/.claude/settings.json could not be parsed, so anything claudemd owns inside that file (legacy hook entries, the statusLine) was left in place: say so and tell the user to fix the JSON and re-run. specAction: "keep" on its own does NOT mean the uninstall was complete.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today Changed · +1 lines 1c562bd76ff0
- 2d ago Changed · +3 lines · +20 tokens per session 127504977182
- 7d ago First seen · 24 lines · 79 tokens per session scan B e2d6d735623a
claudemd-uninstall is a command published in the GitHub repository sdsrss/claudemd (2 stars, last pushed yesterday), licensed MIT. It adds 99 tokens to every session and 745 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
plan
Turn an approved spec into an implementation plan an engineer with zero context could execute — with a quality controller that blocks placeholders and hollow tasks.
simplify
The over-engineering review: five tags (delete, stdlib, native, yagni, shrink), a mandatory replacement per finding, and a real null result when there is nothing to cut.
audit
Onboard an existing codebase: every domain's checks over the whole tree, then a triaged plan to bring it in line.
git
The pre-finish status: branch, hygiene findings, message checks, workflow lint, template state.
test
Run the repository's actual test suite: every ecosystem's canonical runner — NOT run is never green.
edit
An interview-style command for editing the trigger words used by existing personas. Personas are predefined viewpoints, such as a developer, designer, or lawyer, that guide how work is approached.