creating-claude-rules

★ 8.0 · vibe-coding

creating-claude-rules is a Claude Code skill that guides correct creation and repair of rule files in `.claude/rules/`, enforcing the use of the `paths` frontmatter field instead of Cursor-specific fields like `globs` and `alwaysApply`. Rules in this directory are discovered recursively and load automatically at the same priority as `CLAUDE.md`; path-scoped rules apply only to files matching glob patterns, while global rules require no frontmatter at all. The skill addresses common mistakes such as using wrong frontmatter keys, unquoted glob patterns, and inadvertently carrying over Cursor configuration. Subdirectories inside `.claude/rules/` are supported, making it straightforward to organize conventions by domain — for example, separating TypeScript, testing, and frontend rules. It is especially useful when migrating a Cursor-based project to Claude or establishing a modular ruleset for a team.