generate-rule

Official

Auto-generate rule skeletons with proper schema.

Authorreporails
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Generate a reproducible, well-structured rule skeleton with coordinate-based IDs, directory layout, and placeholder files to streamline rule authoring and registry integration.

Core Features & Use Cases

  • Create a directory tree based on the rule coordinate (CORE:, CLAUDE:, etc.)
  • Generate rule.md frontmatter including id, slug, title, category, type, level, checks, backed_by
  • Produce rule.yml with deterministic or semantic patterns when available
  • Initialize tests/pass and tests/fail scaffolds for validation
  • Update registry/coordinate-map.yml to include the new rule and validate against tombstones
  • Validate coordinate availability and category resolution to prevent conflicts

Quick Start

Run /generate-rule CORE:S:0005 core "My New Rule" to generate a complete rule skeleton.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: generate-rule
Download link: https://github.com/reporails/rules/archive/main.zip#generate-rule

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.