How this skill is triggered — by the user, by Claude, or both
Slash command
/automate:automate-cleanupThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Read `${CLAUDE_SKILL_DIR}/../../docs/shared-context.md` for registry format, merge algorithm, file markers, and deletion procedures.
Read ${CLAUDE_SKILL_DIR}/../../docs/shared-context.md for registry format, merge algorithm, file markers, and deletion procedures.
Read ~/.claude/automations-registry.json
If empty/missing, scan for created-by: automate markers (same logic as Registry Bootstrap in shared-context.md)
If no automations found at all:
"No automations found. Nothing to clean up. You can safely uninstall the plugin."
Stop here.
Show all found automations:
Automations that will be removed:
| # | Name | Type | Scope | Path |
|---|-----------------|--------|---------|-----------------------------------------|
| 1 | semver-hook | hook | global | ~/.claude/settings.json (hook entry) |
| 2 | semver | skill | global | ~/.claude/skills/semver/SKILL.md |
| 3 | code-reviewer | agent | project | .claude/agents/code-reviewer.md |
Use AskUserQuestion:
What would you like to do?
- Remove ALL automations listed above
- Select which automations to keep
- Cancel (keep everything)
If "Remove ALL": For each automation, in reverse order of creation, follow the deletion procedure for its type (see shared-context.md "Deletion Procedures by Type").
If "Select which to keep": Show a numbered list, ask which to KEEP (all others will be removed). Remove only the ones NOT selected.
If "Cancel": Stop.
IMPORTANT: Every JSON file modification during cleanup MUST be validated with jq after writing. Use the merge algorithm — never write partial JSON.
After removal, delete ~/.claude/automations-registry.json.
Cleanup complete:
- Removed: 3 automations (semver-hook, semver, code-reviewer)
- Kept: 0
- Registry: deleted
You can now safely uninstall the plugin with:
/plugin uninstall automate
npx claudepluginhub elmisi/claude-code-automation --plugin automateSafely removes plugin assets (skills, agents, rules, scripts, hooks) by detecting dependencies and cleaning up references. Invoke via /safe-remove for decluttering.
Uninstalls Pith from Claude Code: removes hooks, slash commands (/pith, /budget, /focus), and cleans settings.json pith entries. Preserves ~/.pith/state.json unless full wipe requested.
Scans Claude Code config (skills, memory, hooks, permissions, MCP servers, caches) for stale or redundant items and walks the user through confirm-each-deletion cleanup.