What problem does it solve?
This Skill eliminates the frustration of writing ineffective Claude Code rule files that are too vague, incorrectly scoped, or conflict with existing rules, which leads to inconsistent AI behavior and wasted context window space across your projects.
Core Features & Use Cases
- Rule Format & Structure Guidance: Provides the exact YAML frontmatter and markdown structure for valid rule files, including optional path scoping for file-type, test file, or domain-specific rules.
- Scoping Decision Support: Helps you choose between universal always-load rules for global behaviors and path-scoped rules for language-specific or directory-specific instructions, avoiding unnecessary context bloat.
- Anti-Pattern Avoidance: Flags common mistakes like vague wording, duplicate rules, contradictions, and over-specification, with clear good/bad examples to ensure your rules are actionable and effective.
- Use Case Example: If you want to enforce 2-space indentation for all TypeScript files and require Conventional Commits for all git operations, this Skill guides you to create two separate, correctly scoped rule files that work as expected without conflicts.
Quick Start
Ask the AI to create a new path-scoped rule for Go files that requires passing context.Context as the first parameter on all I/O functions, and it will generate a valid, properly formatted rule file ready to save to your project's .claude/rules/ directory.