What problem does it solve?
This Skill helps organize Claude rules by creating path-specific rule files, ensuring Claude only considers relevant rules for specific file types or directories, thereby streamlining rule management and improving Claude's focus.
Core Features & Use Cases
- Automated Rule File Creation: Generates
.claude/rules/ files based on glob patterns and descriptions.
- Conflict Detection: Checks for existing rule files and prompts for overwrite confirmation.
- Project Structure Analysis: Scans CLAUDE.md and the project for path-scoped content and suggests rule files.
- Use Case: When working on a large TypeScript project, you can use this Skill to automatically create
api-rules.md for all files in src/api/**/*.ts and component-rules.md for src/components/**/*.tsx.
Quick Start
Use the path-rules-advisor skill to create a rule file for all files in the src directory with the description "Ensure all source files adhere to project coding standards".