- 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>
39 lines
1.2 KiB
Markdown
39 lines
1.2 KiB
Markdown
## 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:
|
|
|
|
1. **Temp file detection** — finds `*.tmp`, `*.bak`, `*.swp`, `*~` files
|
|
2. **Misplaced files** — files outside their expected directories
|
|
3. **Empty directories** — directories with no files
|
|
4. **Large files** — files exceeding reasonable size thresholds
|
|
5. **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:
|
|
|
|
```json
|
|
{
|
|
"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 check` as an explicit step in your prompt files where project cleanliness matters.
|