create-rule
Installation
SKILL.md
Creating Cursor Rules
Create project rules in .cursor/rules/ to provide persistent context for the AI agent.
Gather Requirements
Before creating a rule, determine:
- Purpose: What should this rule enforce or teach?
- Scope: Should it always apply, or only for specific files?
- File patterns: If file-specific, which glob patterns?
Inferring from Context
If you have previous conversation context, infer rules from what was discussed. You can create multiple rules if the conversation covers distinct topics or patterns. Don't ask redundant questions if the context already provides the answers.
Required Questions
If the user hasn't specified scope, ask:
- "Should this rule always apply, or only when working with specific files?"