一键导入
entropy-clean
Post-wave entropy cleanup — remove debug artifacts, enforce style, ensure git hygiene
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Post-wave entropy cleanup — remove debug artifacts, enforce style, ensure git hygiene
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Harness 主入口 — 从想法到交付的一站式流程
Restore state, health check, determine current phase, suggest next step
Explain Harness plugin and available commands
Initialize Harness for your project — learn repo, team norms, generate customized framework
Start a new feature proposal — guided spec + design generation
Execute all tasks with auto-loop until completion — Stop Hook driven
基于 SOC 职业分类
| name | entropy-clean |
| description | Post-wave entropy cleanup — remove debug artifacts, enforce style, ensure git hygiene |
| argument-hint | <feature-id e.g. F001> [--wave N] |
| hidden | true |
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.