- claude-config-audit-settings.md: update hook inventory to post-Decision #29 state - maintainer.md: remove PostToolUse references, update to current hook types - settings-optimization.md: update review layer table and hooks.json format - claude-config-optimize-settings.md: fix stale doc-guardian PostToolUse reference - project-hygiene/claude-md-integration.md: rewrite for manual /hygiene check - doc-guardian: update doc-sync.md and sync-workflow.md hook references - MIGRATION-v9.md: mark deleted commands as Removed, not renamed - projman/task-sizing.md: PostToolUse → PreToolUse in example - scripts/setup.sh: /labels-sync → /labels sync - docs/CONFIGURATION.md: doc-guardian "Commands and hooks" → "Commands only" - docs/prompts/INDEX.md: add prompt execution index Version: 9.0.1 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1.2 KiB
1.2 KiB
Project Cleanup (project-hygiene)
This project uses the project-hygiene plugin for file organization and cleanup checks.
How It Works
Run /hygiene check to scan for common project cleanliness issues:
- Temp file detection — finds
*.tmp,*.bak,*.swp,*~files - Misplaced files — files outside their expected directories
- Empty directories — directories with no files
- Large files — files exceeding reasonable size thresholds
- Debug artifacts — leftover debug logs, console.log, print statements
Usage
/hygiene check # Run all checks
/hygiene check --fix # Auto-fix safe issues (delete temp files, remove empty dirs)
Configuration
The plugin can be configured via .hygiene.json in the project root:
{
"temp_patterns": ["*.tmp", "*.bak", "*.swp"],
"ignore_dirs": ["node_modules", ".git", ".venv"],
"allowed_root_files": ["CLAUDE.md", "README.md", "LICENSE"],
"warn_on_root_files": true
}
Notes
- This was previously a PostToolUse hook (automatic). Since v8.1.0 (Decision #29), it runs manually via
/hygiene check. - Add
/hygiene checkas an explicit step in your prompt files where project cleanliness matters.