creating-rules

Create and organize Claude rule files under .claude/rules with templates.

Updated Dec 29, 2025
One-click install
npx skills add https://github.com/asakuno/template-repository --skill creating-rules-asakuno
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: creating-rules
Source: https://github.com/asakuno/template-repository/tree/main/.claude/skills/creating-rules
Command: npx skills add https://github.com/asakuno/template-repository --skill creating-rules-asakuno

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This rule creation skill provides a structured approach to writing and organizing Claude rule files under .claude/rules, ensuring consistency and clarity across projects.

Core Features & Use Cases

  • Templates and examples for standard rule file formats in .claude/rules.
  • Guidance on folder structure, file naming, and frontmatter conventions to support discoverability and automation.
  • Use cases include establishing coding standards, testing guidelines, security requirements, and sharing rules across teams.

Quick Start

Create a new rule file under .claude/rules with a clear topic, then draft practice-based guidance following the template.

Frequently Asked Questions about creating-rules

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

FAQPage Schema
How do I create Claude rules to enforce consistent project standards?▼

You create Claude rules by structuring and documenting best-practice rule files under the .claude/rules directory, applying frontmatter conventions and folder layouts to ensure each rule is machine-discoverable and maintains consistent project standards.

What is the recommended folder structure for Claude rule files?▼

The recommended folder structure organizes Claude rule files under .claude/rules across multiple project directories, applying specific naming conventions and frontmatter structure to support team sharing, automation, and machine-discoverability.

How does frontmatter structure work for markdown rule templates?▼

Frontmatter structure in markdown rule templates standardizes metadata at the top of each file under .claude/rules, ensuring the rule is well-scoped and descriptive for automated parsing and machine-discoverability.

Can I use Claude rules for testing guidelines and security requirements?▼

Yes, you can establish testing guidelines and security requirements by creating topic-specific rule files under .claude/rules, using provided templates to standardize coding styles and security practices across project directories and teams.

What is the best way to organize markdown guidelines for multiple project directories?▼

The best way to organize markdown guidelines is applying a structured folder layout under .claude/rules, using consistent naming conventions and frontmatter to keep rules well-scoped, descriptive, and machine-discoverable across multiple project directories.

Do I need any dependencies to set up best-practice rules under .claude/rules?▼

No dependencies are required to set up best-practice rules; you simply create markdown files under .claude/rules with proper frontmatter structure, following the provided templates and folder layout guidance for organization.