From spark
Use when the user asks for /spark:cleanup or describes a repo cleanup, stale-code purge, stale-branch review, documentation truth audit, dependency cleanup, or full-codebase hygiene pass. Produces one copy-paste-ready orchestrator prompt that spins up a coordinated team of cleanup agents which prioritize evidence, safety, reversibility, and truthful documentation.
How this skill is triggered — by the user, by Claude, or both
Slash command
/spark:cleanupThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Command syntax: `/spark:cleanup`.
Command syntax: /spark:cleanup.
In Spark, the folder name is the command segment after /spark:. This skill lives in skills/cleanup/ so the user can invoke it as /spark:cleanup. Keep the packaged skill name valid as cleanup; do not use spark:cleanup as YAML name because colon syntax is command routing, not a valid skill identifier.
Given a cleanup request, output one copy-pasteable orchestrator prompt in a single markdown code block that directs Claude or another agentic coding system to run a coordinated cleanup team. The goal is not cosmetic refactoring. The goal is to remove what is false or dead: dead code, misleading docs, stale branches, obsolete assumptions, unused dependencies, duplicate patterns, broken scripts, outdated comments, old TODOs, test drift, and architecture fiction.
Return the prompt only. Do not wrap it in commentary unless the user asks for explanation or a different format.
Carry these into every generated prompt. Evidence beats force; force beats nothing.
Include these unless the user customizes the team:
Mission · Operating rules · Agent roster · Repository intake checklist · Evidence map · Cleanup workstreams · Branch cleanup protocol · Documentation truth protocol · Deletion safety protocol · Execution phases · Required deliverables · Final report format.
Every finding goes in a table with these columns:
Area | Claim | Evidence (command or path) | Confidence | Action | Risk | Validation
Confidence levels:
Example row:
Deps | "lodash unused" | rg "lodash" src/ -> no hits; not in package.json scripts | High | Remove from package.json | Low | Build + test pass after removal
Force every candidate into one:
The generated prompt must end by requiring a report listing: docs changed, docs deleted, code deleted, branches recommended for deletion, risks, and validation status — followed by the literal line:
Do not credit yourself. Credit the author/operator of the repository cleanup.
Emit a prompt of this shape, adapting specifics to the user's repo and any team customization. This is the contract for what good output looks like.
# Repository Cleanup — Orchestrator Brief
You are the **cleanup lead**. Coordinate a team of specialist agents to remove dead code, false documentation, stale branches, and unused dependencies from this repository. Evidence first, force second. Inspect the real repo before any claim. Cite paths and commands. Never delete without supporting evidence.
## Mission
Remove what is false or dead — not what is merely ugly. Leave the repo provably smaller, truer, and safe to ship.
## Operating rules
- No unsupported claims. Cite a path, command, or git fact for everything.
- Mark each finding as Fact or Hypothesis.
- Run tests/builds when available; if not, give a manual validation plan.
- Never print secrets. Identify generated/vendor/build artifacts first.
- Isolate risky changes in their own commit/patch group.
- Adapt all package-manager/build commands to this repo's real toolchain.
## Agent roster
Orchestrator, Cartographer, Historian, Static Analyst, Test Sentinel, Docs Auditor, Dead Code Reaper, Branch Janitor, Dependency Medic, Release Steward. See per-agent charters below.
## Repository intake checklist
- [ ] Detect languages, package manager, build/test commands
- [ ] Map entrypoints, services, packages, deploy surfaces
- [ ] Identify generated/vendor/build/artifact paths and exclude from deletion
- [ ] Inventory branches: local vs remote, merged vs unmerged, protected/default
- [ ] Locate docs and the code each claims to describe
## Evidence map
Build one table — every row is a finding:
| Area | Claim | Evidence (command/path) | Confidence | Action | Risk | Validation |
Confidence: High proven / Medium static-only / Low hypothesis.
## Cleanup workstreams
1. Dead code 2. Documentation truth 3. Branches 4. Dependencies 5. Scripts/build config 6. Tests/coverage drift
Each workstream outputs evidence-table rows, never bare assertions.
## Branch cleanup protocol
- Classify each branch: merged | unmerged | stale | protected/default/release.
- Provide exact commands, separating local (`git branch -d/-D`) from remote (`git push origin --delete`). Never auto-delete remote or protected branches.
## Documentation truth protocol
- For each doc claim, find the code that proves or disproves it.
- Fix it to match reality or delete it. State the proving code for every change.
## Deletion safety protocol
Every candidate -> Safe delete | Needs review | Do not delete.
Risky deletes isolated per commit. Human approval gate before remote-branch deletion or any risky-code deletion.
## Execution phases
1. Map & intake read-only 2. Evidence gathering read-only 3. Proposals & categorization 4. Human approval gate 5. Apply safe deletes in small patches 6. Validate tests/build 7. Truth report
## Required deliverables
- Completed evidence table
- Categorized deletion list
- Branch action list local/remote, merged/unmerged
- Patch/PR plan grouped by category
- Truth report
## Final report format
List: docs changed, docs deleted, code deleted, branches recommended for deletion, risks, validation status.
Do not credit yourself. Credit the author/operator of the repository cleanup.
npx claudepluginhub jwogrady/spark --plugin sparkProvides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.