Cursor2claude — Development skill for Claude Code
CLI that syncs Cursor rules into Claude Code’s CLAUDE.md.
How to install Cursor2claude
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open hcastro/cursor2claude and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Cursor2claude does
CLI that syncs Cursor rules into Claude Code’s CLAUDE.md.
Alternatives in Development
- Understand Anything — Graphs that teach graphs that impress 80.7k ★
- Agent Rules — Rules and Knowledge to work better with agents such as Claude Code or Cursor 5.7k ★
- Claude SEO — Multi-Platform Agent Instructions — For Cursor, Cursor Cloud Agents, Google Antigravity, and Gemini CLI 5k ★
README
cursor2claude
**Translate Cursor IDE rules into a single, tidy `CLAUDE.md` so Claude Code understands your project.**
✨ Why?
_Cursor_ lets you write granular `.mdc` rules that keep its AI agent on‑brand. _Claude Code_ only looks at one Markdown file – `CLAUDE.md`. Keeping those in sync is a chore.
**cursor2claude** is a tiny CLI that:
- Scans
.cursor/rules/**/*.{md,mdc}at any depth - Categorizes rules (always‑apply • context‑specific • other)
- Decides whether to inline short / critical rules or import long ones
- Writes / updates
CLAUDE.md, preserving any notes below a marker - Offers
sync,watch, andstatuscommands for smooth DX.
Write a rule once ⇒ both AIs follow it.
🚀 Quick Start
One-off (no install required)
# pnpm
pnpm dlx cursor2claude sync
# npm
npx cursor2claude sync
# Yarn (≥2 / Berry)
yarn dlx cursor2claude sync
Install as a dev-dependency
# pnpm
pnpm add -D cursor2claude
pnpm cursor2claude sync
# npm
npm install --save-dev cursor2claude
npx cursor2claude sync # or add to package.json scripts
# Yarn
yarn add -D cursor2claude
yarn cursor2claude sync
📋 Commands
cursor2claude sync # One-time sync of rules to CLAUDE.md
cursor2claude watch # Watch for changes and auto-sync
cursor2claude status # Check current sync status
🔧 How It Works
- Discovers all
.mdand.mdcfiles in.cursor/rules/ - Parses YAML frontmatter to understand rule properties
- Categorizes rules based on
alwaysApplyanddescriptionfields - Generates a clean
CLAUDE.mdwith:- Auto-generated header
- Organized rule imports
- Preserved user content below marker
Rule Types
- Always-Apply Rules: Global context rules (
alwaysApply: true) - Agent-Selected Rules: Context-specific rules with descriptions
- Other Rules: Manual or auto rules without descriptions
Visual Example
cursor2claude transforms y
Related Skills
Sync Skills
Zero-dependency Bash CLI that syncs agent skills across Claude Code, Cursor, Codex and Gemini CLI.
Coding Agent Rules
Ten Commandments for Coding Agents — a minimal AGENTS.md / CLAUDE.md drop-in for Claude Code, Codex, Gemini CL
Jsonlogic Skill
Agent skill that turns business requirements into JsonLogic rules: generate, run, validate, and debug JsonLogi
Dr SKILLs
Reusable Al developer skills, plugins, MCP tools, and rules for Google Antigravity, Claude Code, Cursor, and C
Lazyeng
Token-efficient coding rules that install into the agent you already use — Claude Code, Codex, Cursor, Copilot
MCP Linker
mcp store manager, add & syncs MCP server configurations across clients like Claude code, Cursor💡mcphub
Related Agents
Airbyte Manager
Manages self-hosted Airbyte deployments via the REST API CLI. Use when working with Airbyte sources, destinati
WordPress Docs Research Agent
Syncs the WordPress documentation mirrors in docs/wordpress/ against their live sources on developer.wordpress
Claudable
by Ethan Park - Claudable is an open-source web builder that leverages local CLI agents, such as Claude Code a