Cursor IDE Skill and Rules System
Date: 2026-03-31 Category: platform-research Status: Complete
Research Question
How does Cursor IDE support custom skills, rules, and agent instructions? What are the correct file formats, directory locations, and activation mechanisms?
Background
The PRD for rhel-devops-skills-cli assumes skills install to ~/.cursor/skills-cursor/ using a skill.json format. This research validates those assumptions against the actual Cursor IDE extension systems as of March 2026.
Methodology
- Reviewed official Cursor documentation at cursor.com/docs
- Fetched and analyzed the full Cursor Skills page and Rules page
- Reviewed the Agent Skills open standard at agentskills.io
- Reviewed community guides on Cursor rules best practices
Key Findings
Finding 1: Cursor Has Three Extension Systems
- Description: Cursor IDE supports three distinct mechanisms for providing AI agent context:
- Rules (
.cursor/rules/*.mdc): Persistent instructions with glob-based scoping - Skills (
.cursor/skills/<name>/SKILL.md): Agent Skills open standard packages - AGENTS.md: Simple markdown alternative for agent instructions
- Rules (
- Evidence: All three are documented separately in official Cursor docs
- Confidence: High
- Source: Cursor Rules, Cursor Skills
Finding 2: Skills Use SKILL.md (Not skill.json)
- Description: Cursor skills follow the Agent Skills open standard. Each skill is a folder containing a
SKILL.mdfile with YAML frontmatter (name,descriptionrequired). No JSON skill format exists. - Evidence: Official docs show
SKILL.mdwith---YAML frontmatter blocks - Confidence: High
- Source: Cursor Skills
Finding 3: Skill Directory Locations
- Description: Skills are auto-loaded from these directories:
.agents/skills/(project-level).cursor/skills/(project-level)~/.cursor/skills-cursor/(user-level/global)- For compatibility:
.claude/skills/,.codex/skills/,~/.claude/skills/,~/.codex/skills/
- Evidence: Explicitly listed in official documentation table
- Confidence: High
- Source: Cursor Skills docs
Finding 4: Rules Use .mdc Format with Frontmatter
- Description: Cursor rules are stored in
.cursor/rules/as.mdc(Markdown Cursor) or.mdfiles. They use YAML frontmatter withdescription,globs, andalwaysApplyfields. Four rule types exist: Always Apply, Apply Intelligently, Apply to Specific Files, Apply Manually. - Evidence: Official documentation with examples showing
.mdcformat - Confidence: High
- Source: Cursor Rules
Finding 5: Rules vs Skills Serve Different Purposes
- Description: Rules provide persistent, always-on context (coding standards, conventions). Skills provide on-demand, invocable capabilities (workflows, tools). Rules are scoped by file globs; skills are triggered by context relevance or explicit
/commandinvocation. - Evidence: Rules are included at prompt start; skills are loaded progressively on demand
- Confidence: High
- Source: Cursor Rules, Cursor Skills
Finding 6: Skills Support Optional Directories
- Description: Skills can include optional subdirectories:
scripts/: Executable code the agent can runreferences/: Additional documentation loaded on demandassets/: Static resources like templates, config files
- Evidence: Documented in official Cursor Skills specification table
- Confidence: High
- Source: Cursor Skills
Finding 7: Cross-Platform Compatibility
- Description: Cursor explicitly loads skills from
.claude/skills/and.codex/skills/directories in addition to its own directories. This means a single skill installed to.claude/skills/works in both Claude Code and Cursor. - Evidence: Documented compatibility table in Cursor Skills page
- Confidence: High
- Source: Cursor Skills
Finding 8: AGENTS.md as Simple Alternative
- Description:
AGENTS.mdfiles placed in the project root (or subdirectories) serve as a simple markdown alternative to structured rules. They are automatically applied. Nested AGENTS.md files in subdirectories are supported with additive inheritance. - Evidence: Documented as alternative to
.cursor/rules/ - Confidence: High
- Source: Cursor Rules
Finding 9: Rules Hierarchy
- Description: When rules conflict, precedence is: Team Rules > Project Rules (.cursor/rules/) > User Rules > Legacy Rules (.cursorrules) > AGENTS.md
- Evidence: Explicitly documented precedence order
- Confidence: High
- Source: Cursor Rules Guide
Implications
Architectural Impact
The PRD’s skill.json format is incorrect. The installer should:
- Create
SKILL.mdfiles for on-demand skill capabilities - Optionally create
.cursor/rules/*.mdcfiles for always-applied conventions - Install global skills to
~/.cursor/skills-cursor/or leverage.claude/skills/cross-compatibility
Technology Choices
- SKILL.md with YAML frontmatter (Agent Skills standard)
- Optional .mdc files for Cursor-specific always-on rules
- references/ directory for documentation embedding
Risk Assessment
- Low risk: Agent Skills standard is explicitly supported by Cursor
- Low risk: Cross-compatibility with
.claude/skills/reduces installation complexity - Medium risk: Rules (.mdc) require Cursor-specific formatting; skills are cross-platform
Recommendations
- Primary installation format: SKILL.md in skill directories
- Install to
~/.cursor/skills-cursor/for global Cursor skills - Optionally install to
~/.claude/skills/for cross-Claude/Cursor compatibility - Consider generating
.cursor/rules/*.mdcfor always-on project conventions - Keep SKILL.md focused; use references/ for detailed documentation
- Use AGENTS.md as a lightweight alternative for simple projects
Related ADRs
- ADR-001: Adopt Agent Skills Open Standard
- ADR-004: Correct Installation Target Paths
- ADR-005: Dual-Mode Installation (Skills + Optional Cursor Rules)