create-rule
@cursor/create-rule
create-rule helps agents write Cursor rules (.mdc files) for project-specific AI behavior. Place rules in .cursor/rules/ for automatic context injection.
Last verified: 2026-06-22 · Cursor
create-rule
Create Cursor rules for persistent AI guidance in .cursor/rules/ directory.
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
Cursor · Development
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/.
Vercel Labs · Development
code-review applies structured review checklists covering correctness, maintainability, tests, and team conventions.
obra / Superpowers · Development
test-driven-development enforces red-green-refactor: no production code without a failing test first. Install with npx skills add obra/superpowers --skill test-driven-development.
Cursor · Development
review-bugbot performs structured code review focused on bugs, edge cases, and regressions. Ideal before merging PRs or after significant refactors.
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