/safe-uninstall:safe-uninstallfrom safe-uninstall
Safely identifies, investigates, and removes macOS programs, daemons, and resource-hogging processes through a structured workflow.
Ships in safe-uninstall. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Safely identify, investigate, and remove macOS programs through a structured workflow: target identification, comprehensive investigation, removal approach selection, risk-assessed execution, and verification.
Splitting the removal into units uses Merismos (/apportion) from the
epistemic-protocols marketplace: /plugin install merismos@epistemic-protocols.
Target Identification → Investigation → Report → Approach Selection → Apportion → Execution → Verification
Support two entry points depending on user context.
When the user reports high resource usage, unknown processes, or Activity Monitor concerns, start with a resource scan to identify the target:
ps aux --sort=-%mem | head -20
ps aux --sort=-%cpu | head -20
codesign -dv --verbose=2 <binary_path> 2>&1 # vendor identity
When the user names a specific process or program, confirm the target and derive
search patterns (see references/investigation-paths.md for pattern derivation).
Delegate investigation to a subagent for efficient parallel execution.
Derive multiple search patterns from the target: binary path components, process name, vendor name, product name. Use case-insensitive grep across ALL locations.
Every investigation must cover all of these (no shortcuts):
| Category | Command Pattern |
|---|---|
| Running processes | ps aux | grep -i -E "<patterns>" |
| LaunchDaemons | ls /Library/LaunchDaemons/ | grep -i -E "<patterns>" |
| LaunchAgents (system) | ls /Library/LaunchAgents/ | grep -i -E "<patterns>" |
| LaunchAgents (user) | ls ~/Library/LaunchAgents/ | grep -i -E "<patterns>" |
| Application Support | ls "/Library/Application Support/" | grep -i -E "<patterns>" |
| Applications | ls /Applications/ | grep -i -E "<patterns>" |
| Kernel Extensions | ls /Library/Extensions/ | grep -i -E "<patterns>" |
| System Extensions | ls /Library/SystemExtensions/ | grep -i -E "<patterns>" |
| Privileged Helpers | ls /Library/PrivilegedHelperTools/ | grep -i -E "<patterns>" |
| Browser Plugins | ls "/Library/Internet Plug-Ins/" | grep -i -E "<patterns>" |
| Login Items | osascript -e 'tell application "System Events" to get the name of every login item' |
| Package Receipts | pkgutil --pkgs | grep -i -E "<patterns>" |
| Uninstaller search | find /Applications -iname "*uninstall*" | grep -i -E "<patterns>" |
For each LaunchDaemon/Agent plist found, read it to extract KeepAlive, RunAtLoad, and Program properties — these determine the removal strategy.
Also check for companion frameworks in sibling Application Support directories
(see references/investigation-paths.md for known companion patterns).
Present findings as a structured report so the user can make an informed decision.
Template:
## [Program Name] — Investigation Report
**Running Processes:**
| PID | User | %MEM | %CPU | Binary Path |
|-----|------|------|------|-------------|
**LaunchDaemons/Agents (KeepAlive services respawn after kill):**
| plist Path | KeepAlive | RunAtLoad |
|------------|-----------|-----------|
**Installed Files:**
| Category | Path | Notes |
|----------|------|-------|
**Uninstaller:** [path or "Not found"]
**Package Receipts:** [list or "None"]
**Companion Frameworks:** [list or "None"]
Present options based on findings:
When the report leaves nothing to remove, say in plain words that the removal step is skipped because nothing is left, give the Phase 6 status from the investigation itself, and end there.
Otherwise hand the removal to /apportion as one goal: remove the components
the report lists, by the approach the user selected. The Phase 6 verification
items for each component are the checks its unit's done is derived from. The
user takes the plan Merismos returns — units, each with its checks, accepted
gaps and held-open judgments — and execution follows that plan.
Contract. The plan the user takes is the contract for execution. In the
authority the apportion sheet shows, list every irreversible operation — file
deletion, service removal, process kill, uninstaller run, pkgutil --forget,
anything under sudo — with the target it acts on and the conditions that halt
execution. Only what the contract lists runs, and an approved operation
authorizes only the effects established before approval. Where an operation's
effects cannot be bounded beforehand — a recursive delete over contents not yet
inventoried, an uninstaller whose removals are unknown — establish its scope
before the user takes the plan, or leave it out of the plan as a held-open
judgment for the user to decide.
Runtime halt. Approval binds to the target itself, not to its name or number. Immediately before each irreversible operation, re-establish that the target is the one approved; after it, wait until its effects have settled and check the post-state that operation should leave. Run a unit's checks once all of its operations are done. Stop when an operation fails, a check fails, a target cannot be re-established as the one approved, a removed service returns, or anything the contract does not name appears. On a stop, leave the remaining units unrun, report what deviated and the state reached, and wait. Continue only on the user's explicit authorization to proceed under the amended contract; an answer that informs or clarifies does not authorize continuing.
Every path. A step handed to the user carries the same contract and halt.
When the session cannot answer a sudo password prompt, hand over only the
blocked operation, in its place in the order, with its re-check, as a command
the user runs with the ! prefix at the Claude Code prompt; continue once the
user reports it ran and its post-state checks out.
Merismos does not order units; run them in this order (KeepAlive-aware):
launchctl bootout/unload for KeepAlive plist (before kill)open /path/to/Uninstaller.app (if selected)kill <PID>launchctl remove <label>sudo rm -rf for remaining directoriessudo rm symlinks and plugin bundlessudo pkgutil --forget <id>Check the post-state the contract named, for every item it lists: a removed item is absent where it was found.
ps aux | grep -i -E "<patterns>" | grep -v greplaunchctl list 2>/dev/null | grep -i -E "<patterns>"pkgutil --pkgs | grep -i -E "<patterns>"Present final status:
## Removal Verification
| Item | Status |
|------|--------|
| [item description] | [Removed] / [Remaining] |
**Result:** [N] items removed, [M] remaining
mdfind -name "<name>")
to find installed-but-inactive programsls -la and include in cleanupWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub jongwony/cc-plugin --plugin safe-uninstallOther plugins' skills for the same job