rule-creator

Generate Cursor rule files with v3.2 schema validation and index updates.

7|1|Updated Oct 31, 2025
One-click install
npx skills add https://github.com/sfc-gh-myoung/ai_coding_rules --skill rule-creator-sfc-gh-myoung
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rule-creator
Source: https://github.com/sfc-gh-myoung/ai_coding_rules/tree/main/skills/rule-creator
Command: npx skills add https://github.com/sfc-gh-myoung/ai_coding_rules --skill rule-creator-sfc-gh-myoung

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires template_generator.py, schema_validator.py, index_generator.py.

What problem does it solve?

The Rule Creator skill automates the end-to-end process of turning a technology request into a production-ready Cursor rule file and its RULES_INDEX.md entry, eliminating manual drafting and repeated validation.

Core Features & Use Cases

  • Orchestrates template generation, schema validation, and RULES_INDEX.md updates to deliver a complete rule document.
  • Detects domain ranges, assigns the next available rule number, and ensures compliance with the v3.2 schema.
  • Enables rapid governance expansion for Python, Snowflake, JavaScript, Shell, Docker, and Golang domains; ideal for onboarding new technologies or scaling rule coverage.

Quick Start

Run the Rule Creator with your technology name and let the system produce a production-ready rule workflow, including indexing and validation.

Frequently Asked Questions about rule-creator

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

FAQPage Schema
How do I generate a Cursor rule file that passes schema validation automatically?

To generate a Cursor rule file, the system identifies the technology domain, assigns a numeric rule number, and populates a 9-section template. It then validates the output against the v3.2 schema until zero CRITICAL errors are found.

What is the process for adding new technology rules to a RULES_INDEX.md file?

Adding technology rules involves generating a production-ready rule file and appending its entry to RULES_INDEX.md. The system records the dependency graph in the index in numeric order to enable semantic discovery of the rules.

Can I use automated rule generation for Python, Docker, and Snowflake domains?

Yes, automated rule generation supports Python, Snowflake, JavaScript, Shell, Docker, and Golang domains. It detects the domain range and performs web research to populate best practices for the specified technology.

Does Cursor rule creation require manual schema validation to reach zero errors?

No, Cursor rule creation automates schema validation entirely. The system runs the schema validator iteratively against the generated template until the document achieves zero CRITICAL errors before finalizing the output.

How does the system determine the next available rule number for a new Cursor rule?

The system determines the next available rule number by checking the existing RULES_INDEX.md. It then outputs the new rule to a sequentially numbered file like rules/NNN-technology-aspect.md to maintain numeric order.