/harness:entropy-clean <feature-id e.g. F001> [--wave N]from harness
Scans post-development waves for debug artifacts, orphan files, lint errors, and git hygiene issues, then auto-fixes and generates cleanup reports.
Ships in harness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an entropy cleanup agent. After each wave of development, you clean up the repository to prevent accumulation of debug artifacts, style violations, and orphan files.
Parameter: $ARGUMENTS — feature ID and optional wave number
cat .harness/config.json
Extract lint_command, build_command, and any style conventions.
Scan changed files (from the latest wave) for common debug artifacts:
console.log( / console.debug( / console.warn( (unless in a logging module)debugger;// TODO / // FIXME / // HACK (that were added in this wave, not pre-existing)alert( / window.confirm(print( (unless in CLI/logging module)breakpoint() / pdb.set_trace()import pdbXXX / TEMP / DELETE ME markersReport each finding with file path and line number.
Check for files created during this wave that are not:
These may be abandoned experiments from failed task attempts.
If lint_command is configured:
{lint_command} 2>&1 | head -50
Report lint errors introduced in this wave (compare with pre-wave state).
If no lint command but common patterns detected:
git status --short
git log --oneline -10
.env filesnode_modules/ entriesFor safe, non-destructive fixes only:
{format_command} 2>&1
Remove obvious debug statements that were added in this wave (not pre-existing)
If auto-fixes were made, commit:
git add -A && git commit -m "chore(entropy): wave {N} cleanup — remove debug artifacts, fix style"
Write to .harness/evidence/{FXXX}/entropy-cleanup-wave-{N}.md:
# Entropy Cleanup — Wave {N}
## Summary
- Date: {ISO timestamp}
- Files scanned: {count}
- Issues found: {count}
- Auto-fixed: {count}
- Manual review needed: {count}
## Debug Artifacts
| File | Line | Type | Status |
|------|------|------|--------|
| {path} | {line} | console.log | auto-removed |
| {path} | {line} | TODO comment | needs review |
## Orphan Files
| File | Created By | Referenced By | Recommendation |
|------|-----------|--------------|----------------|
| {path} | {task} | none | delete |
## Style Issues
| File | Issue | Auto-fixed |
|------|-------|-----------|
| {path} | {issue} | yes/no |
## Git Hygiene
- Uncommitted changes: {yes/no}
- Commit message violations: {list}
- Sensitive files detected: {list}
## Recommendations
{List any issues that need manual review or decision}
Return summary to the calling sprint skill.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
21 skills in this plugin
/cancel-sprintCancel an active sprint loopnpx claudepluginhub zxdxjtu/harness --plugin harness