cm-uninstall

cm-uninstall is a command for Claude Code from classicchins/compounding-marketing. It costs 0 tokens per session (1,527 once invoked), scanned C, original, MIT.

A command that reverses an earlier Compounding Marketing installation using the record of files and settings it changed.

In plain words
What is it for?
Use it to undo a setup, remove generated files and configuration entries, or clean up a project or temporary environment.
Why use it?
It removes the installation's changes while preserving user-authored content and restoring saved backup files.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions AGENTS.md.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ✓ Removed 77 symlinks from ./.claude/commands/.

Part of the compounding-marketing plugin — 39 skills, 16 commands shipped together

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/classicchins/compounding-marketing
agentmods
npx agentmods add commands/classicchins/compounding-marketing/cm-uninstall

Made for: Claude Code.

Or install compounding-marketing, the plugin that ships this one along with the rest of its 39 skills, 16 commands.

Wrote 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.

agentmods badge for cm-uninstall

README.md
[![agentmods](https://agentmods.dev/badge/commands/classicchins/compounding-marketing/cm-uninstall.svg)](https://agentmods.dev/commands/classicchins/compounding-marketing/cm-uninstall)
Your own site
<a href="https://agentmods.dev/commands/classicchins/compounding-marketing/cm-uninstall"><img src="https://agentmods.dev/badge/commands/classicchins/compounding-marketing/cm-uninstall.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,527 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01527
Opus 5 $0.00000 $0.00763
Sonnet 5 $0.00000 $0.00305
Haiku 4.5 $0.00000 $0.00153

Measured 6d ago against content hash 84f27c6efc61, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade C, and why

cm-uninstall scanned grade C 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 6d ago.

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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

1. **`rm -rf` on the install root** — always walk bottom-up and only remove empty dirs.
commands/cm-uninstall.md · 133 lines

How it starts

The opening of the file, as written. The whole thing — 133 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/cm-uninstall — Reverse a Compounding Marketing install

Reverse a previous /cm-setup or npx compounding-marketing install using the recorded manifest. Restores .bak backups byte-identical, strips marker blocks from CLAUDE.md / AGENTS.md, removes only files the wizard created.

What It Does

Loads .compounding-marketing-install.json and reverses every recorded change. Files the user authored remain untouched.

Manifest location:

  • Global installs: ~/.claude/.compounding-marketing-install.json
  • Project / custom installs: project root (./.compounding-marketing-install.json)

When To Use

  • You installed via the wizard and want to remove every trace.
  • You re-ran the wizard with a different scope/tool and want to undo the wrong one.
  • You're cleaning up a CI/scratch environment.

What Gets Reversed

Manifest field Action
appendedMarkers[] Open each instructions file, remove the block between <!-- COMPOUNDING-MARKETING-START --> and <!-- COMPOUNDING-MARKETING-END -->. All other content preserved verbatim.
mcpEntries[] For each {file, format, serverName}: delete that server from .mcp.json (mcpServers.<name>) or config.toml ([mcp_servers.<name>]). Delete the file if it becomes empty.
createdSymlinks[] Remove each symlink. The target file is never touched.
createdFiles[] Delete each path (deepest first).
modifiedFiles[].backupPath Restore the .bak to its original path. Delete the .bak.
installRoot, commandsDir, skillsLinkDir, parent of mcpConfigFile Walked bottom-up; empty dirs removed (including tool-config wrappers .claude/, .cursor/, .codex/, .agents/). Non-empty dirs left alone.
Manifest file itself Deleted last.

Process

Step 1: Locate the manifest

Search in order:

  1. ~/.claude/.compounding-marketing-install.json (global)
  2. ./.compounding-marketing-install.json (project, run from project root)
  3. ./compounding-marketing/../.compounding-marketing-install.json (project, run from a sibling dir)

Read the full file on GitHub · 133 lines

Changes

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.

  1. 6d ago First seen · 133 lines · 0 tokens per session scan C 84f27c6efc61

Subscribe to this mod's changes

cm-uninstall is a command published in the GitHub repository classicchins/compounding-marketing (8 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,527 tokens. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.