claude-to-cursor
Skill1 starsChanged 5 months agoMITView on GitHub
Convert Claude Code skills to Cursor-compatible rules (.mdc/.md files) for sharing or use in Cursor workspaces. Does NOT modify local Claude Code setup — outputs go to a separate repo. Trigger on: "convert to cursor", "cursor rules", "port to cursor", ".mdc", "cursor format", or any request to export skills for Cursor users.
In this repository32 other files it gives its agents.
- ansible-hardeningSkill
- budi-analyticsSkill
- code-consistencySkill
- code-qualitySkill
- config-auditorSkill
- container-sandboxSkill
- cost-optimizerSkill
- cpa-tax-specialistSkill
- database-designSkill
- differential-reviewSkill
- fleet-managerSkill
- grill-meSkill
- hydra-swarmSkill
- inbound-syncSkill
- infosec-architectSkill
- insecure-defaultsSkill
- model-evaluationSkill
- modern-pythonSkill
- ms-office-suiteSkill
- openclaw-opsSkill
- prd-to-planSkill
- project-managementSkill
- property-based-testingSkill
- session-miserSkill
- session-miserSkill
- skill-updaterSkill
- supply-chain-risk-auditorSkill
- systematic-debuggingSkill
- tddSkill
- token-miserSkill
- verification-before-completionSkill
- write-a-prdSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 54
Remove Claude-specific tool references (Agent tool, Bash tool, Read/Write/Edit, MCP)
- Distinctive: line 87
NEVER modify local Claude Code skills or configuration
- Distinctive: line 88
All output goes to the claude-to-cursor repo only
- Distinctive: line 89
Keep attribution on all converted files
- Distinctive: line 90
Test in Cursor before marking as ready
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Claude to Cursor Converter
Export Claude Code skills as Cursor-compatible rule files for sharing. All output goes to a dedicated repo — never modifies local Claude Code configuration.
Cursor Rule Format (.mdc)
Cursor uses .mdc files (Markdown with frontmatter) in .cursor/rules/:
---
description: One-line description (used for rule matching)
globs:
- "**/*.py" # optional: file patterns this rule applies to
alwaysApply: false # true = always loaded, false = matched by description
---
# Rule Title
Rule content here. Markdown format.Key differences from Claude SKILL.md:
- Extension:
.mdc(not.md— Cursor's convention for rules) - No
name:field — filename is the identifier globs:for file-pattern matching (Claude uses description triggers)alwaysApply:replaces Claude's always-loaded behavior- No
references/subdirectory convention — inline or split into companion rules
Conversion Process
1. Classify the skill
| Type | Converts? | Notes |
| Persona (infosec-architect, cpa-tax-specialist) | Yes | Direct conversion, strong match |
| Workflow (tdd, write-a-prd, prd-to-plan) | Yes | Direct conversion |
| Code quality (code-consistency, code-quality) | Yes | Use globs for language-specific rules |
| Tool-specific (token-miser, budi-analytics) | No | Claude Code-only features |
| Infrastructure (fleet-manager, openclaw-ops) | Partial | Remove Claude-specific tool refs |
2. Transform content
- Strip YAML frontmatter, rewrite as Cursor frontmatter (description, globs, alwaysApply)
- Remove Claude-specific tool references (Agent tool, Bash tool, Read/Write/Edit, MCP)
- Inline small reference files (<200 lines) directly
- Large references → separate
.mdccompanion files - Replace "Claude Code" with generic "AI assistant" where contextual
- Add attribution:
<!-- Converted from Claude Code skill: <name> -->
3. Output structure
claude-to-cursor/
├── rules/ # Converted .mdc files
│ ├── tdd.mdc
│ ├── tdd-tests-ref.mdc # Large reference companion
│ ├── code-quality.mdc
│ └── ...
├── agents/ # Converted agent files
│ └── ...
└── scripts/
└── convert.sh # Batch conversion script4. What to skip
- token-miser (Claude Code subagent routing — no Cursor equivalent)
- budi-analytics (Claude Code hook analytics — Cursor-specific)
- skill-updater (meta-skill for Claude Code skill management)
- inbound-sync (claude.ai ↔ Claude Code sync workflow)
- openclaw-ops (primary-host-specific deployment)
- fleet-manager (SSH/Ansible fleet ops — not IDE-relevant)
- ansible-hardening (infrastructure, not IDE-relevant)
Rules
- NEVER modify local Claude Code skills or configuration
- All output goes to the claude-to-cursor repo only
- Keep attribution on all converted files
- Test in Cursor before marking as ready
- .mdc extension for rules, .md for agents
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

