create-rule
Spec compliantcreate-rule helps agents write Cursor rules (.mdc files) for project-specific AI behavior. Place rules in .cursor/rules/ for automatic context injection.
Create Cursor rules for persistent AI guidance in .cursor/rules/ directory.
Copy prompt for your AI
Send this to your agent to install the skill.
First read https://skill123.app/install/skill123.md. Then install the "create-rule" agent skill by running:
npx skills add https://github.com/cursor/skills-cursor/tree/main/create-rule Other install methods
CLI install
npx skills add https://github.com/cursor/skills-cursor/tree/main/create-rule Manual install
.cursor/skills/create-rule/ When to use
- → Creating coding standards rules
- → Project-specific AI guidance
- → .cursor/rules setup
Platforms
Resources
Source
https://github.com/cursor/skills-cursor/create-ruleRelated Skills
create-skill teaches agents how to author new Agent Skills with valid SKILL.md frontmatter, trigger descriptions, and optional scripts. Install via npx skills add or copy to ~/.cursor/skills/create-skill/.
code-review applies structured review checklists covering correctness, maintainability, tests, and team conventions.
review-bugbot performs structured code review focused on bugs, edge cases, and regressions. Ideal before merging PRs or after significant refactors.
skill-creator is a meta-skill that scaffolds, validates, and packages Agent Skills following the agentskills.io specification.
FAQ
How do I install create-rule?
Send the install prompt to your AI, or run npx skills add https://github.com/cursor/skills-cursor/tree/main/create-rule.
Which platforms support create-rule?
Cursor