Deliverable hygiene
Skill batteryshark/skill-tap/skills/development/deliverable-hygiene
Keep or restore a codebase as a finished, human-readable work product by separating agent scratch from source, pruning excess documentation and tests, deleting obsolete compatibility paths, and validating that process residue does not leak into the deliverable. Use during implementation cleanup or when a repository has visibly drifted.From its SKILL.md
npx -y skills add batteryshark/skill-tap --skill deliverable-hygieneAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.8 KB, 513 tokens by cl100k_base, as published. Nobody here has run it
Deliverable hygiene
Keep the repository shaped like the artifact a human maintainer should inherit. Optimize for a clear mental model, a small useful surface, behavior-focused tests, and complete removal of obsolete paths.
Choose a mode
Use doctrine mode while adding or changing code:
- Read enough of the repository to understand its current model.
- Keep temporary reasoning and agent state outside the deliverable.
- Apply the rules in
references/doctrine.mdwhile editing. - Validate that the final repository is easier to understand than the starting point.
Use recovery loop mode when the repository has accumulated residue:
- Run
bin/deliverable-hygiene <repo>to collect review candidates. - Audit concrete violations using
references/filter-rubric.md. - Fix high-confidence findings without widening the requested scope.
- Validate from repository evidence.
- Repeat for at most three passes, then stop
GREEN,BLOCKED, orCAPPED.
Read references/workflow.md before recovery loop mode. Use references/examples.md when a classification is unclear.
Core rules
- Treat the repository as the deliverable. Keep plans, prompts, review dumps, and loop state in disposable scratch space.
- Put recovery state under
.agent-work/deliverable-hygiene/<run-id>/and ensure.agent-work/is ignored. - Prefer names, structure, and concise local comments over new documents.
- Preserve compatibility only when a public contract, persisted data, explicit requirement, or repository evidence makes it real.
- Keep tests that protect meaningful behavior. Rewrite or remove tests that freeze private structure.
- Add comments for intent, constraints, hazards, and external quirks that code cannot express.
Delegation
The portable role prompts in agents/ separate evidence gathering, editing, and validation:
Run the roles sequentially when independent subagents are unavailable. The fixer must verify the auditor's evidence, and the validator must inspect the repository rather than trust the fixer's summary.
Report
State the mode, categories fixed, files changed, checks run, final verdict, and any decision still blocked. Delete successful scratch before reporting.
What ships with it: 9 files
18.4 KB alongside SKILL.md, 2 of them executable
agents/
- auditor.md651 B
- fixer.md679 B
- validator.md625 B
bin/
- deliverable-hygieneruns230 B
references/
- doctrine.md3.2 KB
- examples.md2.0 KB
- filter-rubric.md3.0 KB
- workflow.md4.8 KB
scripts/
- scan_hygiene.pyruns3.2 KB