rule-create

Create rule files with frontmatter and register them in the Claude rules registry.

Updated Apr 2, 2026
One-click install
npx skills add https://github.com/oogDZ/2 --skill rule-create-oogdz
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: rule-create
Source: https://github.com/oogDZ/2/tree/main/.claude/skills/rule-create
Command: npx skills add https://github.com/oogDZ/2 --skill rule-create-oogdz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creation of a new rule file in .claude/rules/ with frontmatter and registration. This enables consistent governance for Claude Code rules across projects and teams.

Core Features & Use Cases

  • Automates frontmatter generation and rule registration for new Claude Code rules
  • Enforces SSOT-compliant templates and integrates with the internal rules registry
  • Use Case: add a new contextual or global rule to extend Claude Code behavior

Quick Start

Create and register a new rule by running /rule-create <name> [--global] [--paths <patterns>].

Frequently Asked Questions about rule-create

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

FAQPage Schema
How do I create a Claude Code rule with frontmatter?▼

To create a Claude Code rule, run the /rule-create command. It generates a new rule file in the .claude/rules/ directory, automatically enforcing the required frontmatter for SSOT-compliant governance across projects and teams.

What is the best way to register a global Claude rule across multiple projects?▼

The best way to register a global Claude rule is using the /rule-create <name> --global command. This extends Claude Code behavior organization-wide by validating the rule and integrating it directly with the internal rules registry.

Can I apply contextual rules to specific file paths in Claude Code?▼

Yes, you can apply contextual rules to specific file paths by running /rule-create <name> --paths <patterns>. This ensures the automation only triggers when the matching files are accessed during your workflow.

How does the Claude rules registry validate new rule files?▼

The Claude rules registry validates new rule files by enforcing required frontmatter generation and integrating with internal SSOT workflows. This automated validation process ensures consistent governance before a rule is registered.

Do I need to manually edit frontmatter when adding a new Claude Code rule?▼

No, you do not need to manually edit frontmatter. The rule creation process automates frontmatter generation and enforces SSOT-compliant templates, ensuring the file is correctly formatted before registry validation.