harness-maintain
Skill2 starsChanged 6 months agoMITView on GitHub
Orchestrate the MAINTAIN phase — understand the codebase (if unfamiliar) then safely remove dead code, duplication, and tech debt. Use after shipping or on an accumulating codebase. Sequences /onboard and /refactor-clean, delegates to the harness-claude:refactor-cleaner agent, and halts before ambiguous deletions.
In this repository35 other files it gives its agents.
- rules/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- architectSkill
- benchmarkSkill
- build-fixSkill
- deploySkill
- design-reviewSkill
- designSkill
- discoverSkill
- evalSkill
- extractSkill
- fixSkill
- harness-implementSkill
- harness-planSkill
- harnessSkill
- harness-verifySkill
- healthSkill
- implementSkill
- lazySkill
- observeSkill
- onboardSkill
- operateSkill
- orchestrateSkill
- plan-checkSkill
- planSkill
- refactor-cleanSkill
- researchSkill
- resume-sessionSkill
- reviewSkill
- save-sessionSkill
- security-reviewSkill
- shipSkill
- specSkill
- testSkill
- verifySkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Ambiguity gate: if a deletion or consolidation is non-obvious or could change behavior, HALT — report it and let the user decide.
- Distinctive: line 28
Never delete something you didn't confirm unused.
- Distinctive: line 29
Keep diffs reviewable. Do not run git write operations.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/harness-maintain — run the Maintain phase
Thin orchestrator over the Maintain skills. Behavior-preserving by default.
Sequence
/harness-claude:onboard— only if the codebase is unfamiliar or you've been away from it. Build a lean codemap (structure, entry points, conventions, where things live) so cleanup is safe. If you already know the codebase, skip and say so./harness-claude:refactor-clean— delegate to theharness-claude:refactor-cleaneragent:- Find candidates with analyzers (knip/depcheck/ts-prune/ruff/vulture) or the graph.
- Confirm truly unused before deleting (all references, dynamic usage).
- Consolidate duplication (DRY); split files >800 lines by responsibility.
- Small reversible steps; run tests/build after each.
- Ambiguity gate: if a deletion or consolidation is non-obvious or could change
behavior, HALT — report it and let the user decide. When a "cleanup" turns into a
redesign, route to
/harness-claude:architectinstead.
Rules
- Behavior-preserving only. No feature/API changes unless asked.
- Never delete something you didn't confirm unused.
- Keep diffs reviewable. Do not run git write operations.
Output
What was removed/consolidated (with reference checks), what was deliberately left, and confirmation tests/build still pass.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

