From moltbloat
Interactive cleanup — review audit findings and selectively remove bloat with confirmation before each action (supports dry-run)
How this skill is triggered — by the user, by Claude, or both
Slash command
/moltbloat:cleanThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
<Purpose>
<Use_When>
/moltbloat:audit and seeing findings they want to address
</Use_When><Do_Not_Use_When>
/moltbloat:audit/moltbloat:token-budget
</Do_Not_Use_When>Parse the command
Check if the user specified --dry-run or dry-run:
/moltbloat:clean — interactive mode (default)/moltbloat:clean --dry-run or /moltbloat:clean dry-run — preview mode onlyIn dry-run mode, set a flag and announce:
Running in DRY-RUN mode — no changes will be made. Showing what would be cleaned.
Run the audit first
If no recent audit results are available in the conversation, run the /moltbloat:audit skill first to collect findings. If audit results are already present from an earlier invocation in this session, use those.
Present the cleanup menu
Show the user a numbered list of all findings from the audit, grouped by severity:
# Moltbloat Cleanup
Found X issues to review. I'll walk through each one — you decide what to fix.
## CRITICAL (fix these)
1. [Skills] 30+ skill name collisions between <plugin-a> and <plugin-b>
2. ...
## HIGH (act on these)
3. [Agents] 25 local agents duplicate <plugin> agents
4. ...
## MEDIUM (worth considering)
5. [Plugin] <name> — 0 skills, 0 MCP servers, 0 agents
6. [Cache] Stale versions consuming X MB
7. ...
## LOW (optional cleanup)
8. [Plugin] <name> — disabled for 60+ days
9. [Project] Orphaned config — X MB
10. ...
In interactive mode, prompt:
Reply with numbers to fix (e.g., "1, 3, 5") or "all high", "all", or "skip".
In dry-run mode, continue to step 4 with all findings selected automatically for preview.
Process each selected finding
In dry-run mode, for each finding, output:
## [DRY-RUN] Finding N: <description>
**Action that would be taken**: <specific command or removal>
**Estimated token savings**: ~X tokens/session
**Estimated disk savings**: X MB
**Risk**: <low/medium/high> — <explanation>
In interactive mode, for each finding the user selects, present the specific action and ask for confirmation.
For each finding type, use the appropriate template. Replace all placeholders with actual values from the audit.
## Finding N: <count> skill collisions between <plugin-a> and <plugin-b>
**What**: Both plugins provide skills with the same names: <list names>
**Why fix**: Only one version runs — you may not be getting the one you expect.
**Action**: Uninstall whichever plugin provides less unique value. Run
`/moltbloat:why <plugin>` on each to compare.
**Risk**: Losing skills unique to the removed plugin
Which plugin to remove? (<plugin-a> / <plugin-b> / skip)
If user chooses, run the uninstall command. If it fails, report the error and move on.
## Finding N: Duplicate agent — <name>.md
**What**: `<name>.md` exists in both ~/.claude/agents/ (local) and
<plugin> (plugin-provided).
**Comparison**: <read first 5 lines of each and summarize differences>
**Action**: Remove local ~/.claude/agents/<name>.md
**Risk**: Low if versions are identical. If the local version has custom
modifications, those will be lost.
Proceed? (yes/no/skip)
Before removing a local agent, read both versions. If the local version has custom modifications, warn the user and recommend keeping it.
## Finding N: <plugin> — no skills, no MCP, no agents
**What**: Plugin is installed but provides nothing detectable.
**Action**: Uninstall plugin
**Command**: `claude plugin remove <plugin>`
**Risk**: Plugin may provide hooks or rules not detected by this scan
Proceed? (yes/no/skip)
## Finding N: <plugin> — disabled for <X> days
**What**: Plugin is installed but disabled. Last updated <date>.
**Action**: Uninstall to reduce clutter
**Risk**: If you need it later, you can reinstall
Proceed? (yes/no/skip)
## Finding N: Old plugin cache — X MB recoverable
**What**: <count> old version cache directories consuming X MB total
**Action**: Remove old version caches (keeps current active versions)
**Risk**: Cannot roll back to previous plugin versions after removal
Proceed? (yes/no/skip)
## Finding N: Orphaned project config — X MB
**What**: Project config at <path> doesn't map to an existing project directory
**Action**: Delete the orphaned config directory
**Risk**: Loss of project-specific memory and settings for a project that no longer exists
Proceed? (yes/no/skip)
Generate cleanup report
In dry-run mode, output:
# Dry-Run Summary
## Findings Reviewed
- X findings would be addressed
- Y findings would be skipped (user preference or safety)
## Estimated Impact (if applied)
- Disk space that would be recovered: ~X MB
- Token overhead that would be removed: ~X tokens/session
- Estimated cost savings: ~$<calculated> per message
## Commands That Would Run
<list each command that would be executed>
To apply these changes, run: `/moltbloat:clean` (without --dry-run)
In interactive mode, after processing all selected findings:
# Cleanup Complete
## Actions Taken
- <list each action performed with specific names>
- ...
## Skipped
- <list each finding the user chose to skip>
- ...
## Disk Space Recovered
~X MB
## Estimated Token Savings
~X tokens per session
## Next Steps
- Run `/moltbloat:audit` again to verify clean state
- Run `/moltbloat:token-budget` to see updated context costs
- Run `/moltbloat:snapshot` to save this clean state as a baseline
Done
npx claudepluginhub jcgruesome/moltbloat --plugin moltbloatGuides collaborative design exploration before implementation: explores context, asks clarifying questions, proposes approaches, and writes a design doc for user approval.
Creates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.
Resolves in-progress git merge or rebase conflicts by analyzing history, understanding intent, and preserving both changes where possible. Runs automated checks after resolution.