Post-task cleanup hook that runs after Claude completes work: - Deletes temp files (*.tmp, *.bak, __pycache__, etc.) - Warns about unexpected files in project root - Identifies orphaned files (test_*, debug_*, *_backup.*) - Logs actions to .dev/logs/ - Supports project-local config via .hygiene.json 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
23 lines
643 B
JSON
23 lines
643 B
JSON
{
|
|
"name": "project-hygiene",
|
|
"version": "0.1.0",
|
|
"description": "Post-task cleanup hook that removes temp files, warns about unexpected root files, and manages orphaned supporting files",
|
|
"author": {
|
|
"name": "Bandit Labs",
|
|
"email": "dev@banditlabs.io"
|
|
},
|
|
"license": "MIT",
|
|
"keywords": ["cleanup", "hygiene", "automation", "hooks", "maintenance"],
|
|
"repository": "https://github.com/bandit-labs/project-hygiene",
|
|
"config": {
|
|
"default_shell": "bash",
|
|
"environment": {
|
|
"PLUGIN_HOME": "${CLAUDE_PLUGIN_ROOT}"
|
|
}
|
|
},
|
|
"permissions": {
|
|
"file_access": ["read", "write"],
|
|
"shell_access": true
|
|
}
|
|
}
|