path-rules-advisor

Generate path-specific rule files in .claude/rules/ from glob patterns.

2|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/shawn-sandy/agentics --skill path-rules-advisor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: path-rules-advisor
Source: https://github.com/shawn-sandy/agentics/tree/main/plugins/claude-md-optimizer/skills/path-rules-advisor
Command: npx skills add https://github.com/shawn-sandy/agentics --skill path-rules-advisor

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

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".

Frequently Asked Questions about path-rules-advisor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I organize Claude rules by file type in a large project?

You can organize Claude rules by generating path-specific rule files within the .claude/rules/ directory using glob patterns. This ensures Claude only applies relevant configuration to specific file types or directories, improving its focus.

Can I automatically create Claude rule files based on my project structure?

Yes, you can automatically create Claude rule files by analyzing your CLAUDE.md and project structure. The tool scans for path-scoped content and recommends generating rule files based on detected file types and directories.

What are path-specific rules in Claude Code and when do I need them?

Path-specific rules are configuration files that apply coding standards to specific file paths using glob patterns. You need them in large projects to prevent Claude from considering irrelevant rules when editing different file types.

How do I set up coding standards for specific TypeScript directories in Claude?

You can set up directory-specific coding standards by creating rule files like api-rules.md for src/api/**/*.ts and component-rules.md for src/components/**/*.tsx. This targets glob patterns to apply configuration only to matching file paths.

Will generating new Claude rule files overwrite my existing configuration?

No, the tool includes conflict detection that checks for existing rule files in the .claude/rules/ directory and prompts for overwrite confirmation before replacing any current path-specific configuration.

Does path-rules-advisor work without any external dependencies?

Yes, path-rules-advisor operates without external dependencies. It independently analyzes your CLAUDE.md and project structure to recommend and create path-specific rule files.