Add automatic detection of active marketplace plugins and verification that CLAUDE.md properly references them. This ensures projects using marketplace plugins will have proper documentation to guide Claude Code in using available tools. Changes: - Add claude-md-integration.md snippets to all 4 plugins (projman, cmdb-assistant, claude-config-maintainer, project-hygiene) - Update marketplace.json with MCP server mappings for plugin detection - Enhance /config-analyze to detect active plugins via MCP server names - Update maintainer agent with plugin integration workflow - Add plugin coverage percentage to analysis report - User confirmation required before adding plugin references Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
37 lines
1.2 KiB
Markdown
37 lines
1.2 KiB
Markdown
## Project Cleanup (project-hygiene)
|
|
|
|
This project uses the **project-hygiene** plugin for automated post-task cleanup.
|
|
|
|
### How It Works
|
|
|
|
The plugin automatically runs after file Write or Edit operations to:
|
|
|
|
1. **Delete temporary files** - Removes `*.tmp`, `*.bak`, `__pycache__/`, `.pytest_cache/`, etc.
|
|
2. **Warn about unexpected root files** - Alerts when files are created outside expected locations
|
|
3. **Identify orphaned files** - Detects supporting files that may no longer be needed
|
|
|
|
### 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
|
|
}
|
|
```
|
|
|
|
### Hook Events
|
|
|
|
The plugin registers on the following events:
|
|
- `PostToolUse` (matcher: `Write|Edit`) - Runs cleanup after file modifications
|
|
|
|
### Usage Guidelines
|
|
|
|
- Let the hook run automatically - no manual intervention needed
|
|
- Review warnings about unexpected root files
|
|
- Configure `.hygiene.json` to customize cleanup behavior for your project
|
|
- Check cleanup output if files seem to disappear unexpectedly
|