agentleFS
vasuag09vasuag09/harness-claude/skills/harness-maintain/SKILL.md

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.

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
  1. Very specific:

    Ambiguity gate: if a deletion or consolidation is non-obvious or could change behavior, HALT — report it and let the user decide.

    line 22
  2. Distinctive:

    Never delete something you didn't confirm unused.

    line 28
  3. Distinctive:

    Keep diffs reviewable. Do not run git write operations.

    line 29

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/harness-maintain — run the Maintain phase

Thin orchestrator over the Maintain skills. Behavior-preserving by default.

Sequence

  1. /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.
  2. /harness-claude:refactor-clean — delegate to the harness-claude:refactor-cleaner agent:
    • 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.
  3. 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:architect instead.

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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.