creating-rules

Create modular Claude Code rules with YAML frontmatter and path-specific scoping.

81|3|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/j5ik2o/okite-ai --skill creating-rules-j5ik2o
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: creating-rules
Source: https://github.com/j5ik2o/okite-ai/tree/main/.agent/skills/creating-rules
Command: npx skills add https://github.com/j5ik2o/okite-ai --skill creating-rules-j5ik2o

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creates modular Claude Code rules with YAML frontmatter and path-specific scoping.

Core Features & Use Cases

  • Modular rule blocks with path-scoped rules for file-type targeting
  • YAML frontmatter drives rule processing and discovery
  • Quick setup and templates for team coding standards

Quick Start

Create a new rule file under .claude/rules/ with appropriate frontmatter and scope for your target file patterns.

Frequently Asked Questions about creating-rules

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

FAQPage Schema
How do I create coding standards rules for specific file paths in Claude Code?

You can create coding standards rules by generating modular rule files with YAML frontmatter and path-specific scoping. This approach applies per-file or global guidelines to your Claude or Codex projects, organizing everything under the .claude/rules directory.

What is YAML frontmatter used for when setting up Claude Code rules?

YAML frontmatter drives rule processing and discovery in Claude Code. It structures path patterns and metadata at the top of your rule files, ensuring your modular coding standards are correctly validated and applied to the intended file types.

How do I apply per-file coding guidelines to a Codex project?

To apply per-file coding guidelines, you create a new rule file under .claude/rules/ with appropriate frontmatter. You then define path patterns in the YAML metadata to scope the rules, targeting specific file types within your Codex project.

Can I set up team coding standards quickly with modular rule blocks?

Yes, you can set up team coding standards quickly using templates for modular rule blocks. These blocks use path-scoped rules and YAML frontmatter to ensure file-type targeting and consistent guideline generation across your team's projects.

Does Claude Code validate the YAML frontmatter structure in generated rules?

Yes, the rule creation workflow validates the YAML frontmatter structure, path patterns, and documentation layout. This ensures your generated coding standards are correctly formatted and function properly within the Claude Code environment.