cursor-rules-synchronizer
Synchronizes Cursor Rules (.mdc files in .cursor/rules/) to CLAUDE.md by generating a Rules section with context-efficient descriptions and usage instructions. Use when setting up Cursor Rules for the first time, after adding or modifying rules, or when the Rules section in CLAUDE.md is missing or outdated.
Best use case
cursor-rules-synchronizer is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Synchronizes Cursor Rules (.mdc files in .cursor/rules/) to CLAUDE.md by generating a Rules section with context-efficient descriptions and usage instructions. Use when setting up Cursor Rules for the first time, after adding or modifying rules, or when the Rules section in CLAUDE.md is missing or outdated.
Teams using cursor-rules-synchronizer should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/cursor-rules-synchronizer-amhuppert/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How cursor-rules-synchronizer Compares
| Feature / Agent | cursor-rules-synchronizer | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Synchronizes Cursor Rules (.mdc files in .cursor/rules/) to CLAUDE.md by generating a Rules section with context-efficient descriptions and usage instructions. Use when setting up Cursor Rules for the first time, after adding or modifying rules, or when the Rules section in CLAUDE.md is missing or outdated.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Cursor Rules Synchronizer
## Overview
Synchronizes Cursor Rules to CLAUDE.md, creating a self-contained Rules section that enables Claude Code to discover and apply rules in future sessions.
## When to Use
Run this skill when:
- Setting up Cursor Rules in a project for the first time
- After adding new Cursor Rule files
- After modifying existing rule descriptions or organization
- When the Rules section in CLAUDE.md is missing, incomplete, or outdated
## Synchronization Workflow
Follow these steps to synchronize Cursor Rules to CLAUDE.md:
### Step 1: List Rules
Use the helper command to get all Cursor Rule file paths:
```bash
ai skill cursor-rules-synchronizer list
```
This outputs one file path per line (e.g., `.cursor/rules/meta/creating-rules.mdc`).
### Step 2: Read All Rules
Read each rule file using the Read tool to understand:
- Frontmatter metadata (description, globs, alwaysApply)
- Full rule content
- Purpose and when the rule should be applied
### Step 3: Generate Descriptions
For each rule, generate a context-efficient description following the Description Writing Standards below.
### Step 4: Update CLAUDE.md
Add or update the Rules section in CLAUDE.md with:
1. **Rules Discovery Instructions** (if not already present):
- Explain how to use the Rules section
- Instruct to review descriptions and read relevant rule files
2. **Rules Section**:
- Organize rules by category (extract from directory structure)
- List each rule with path and generated description
## Description Writing Standards
When generating descriptions for CLAUDE.md, follow Claude Skill description best practices:
**Format requirements:**
- Third person perspective ("This rule should be used when..." not "Use this rule when...")
- Concrete language specifying what the rule does
- Include specific triggers (contexts, file types, tasks)
- Keep under 2 sentences for context efficiency
**Adaptation process:**
- Use the rule's frontmatter description as starting point
- Read full rule content to understand complete purpose
- Transform into third-person, trigger-rich format
- Prioritize discovery information over implementation details
<example type="valid">
**Input** (from rule):
```yaml
description: USE WHEN creating Mermaid diagrams
globs: **/*.{md,mdc}
```
**Output** (for CLAUDE.md):
"This rule should be used when creating Mermaid diagrams for AI consumption in markdown or .mdc files. Provides standards for inline comments, self-contained diagrams, and embedded context to eliminate external documentation dependencies."
</example>
<example type="invalid">
**Output:**
"Use for diagrams."
❌ Not third person, too vague, missing triggers, doesn't specify what rule provides.
</example>
## CLAUDE.md Structure
The Rules section should follow this structure:
```markdown
## Project Rules
Review rule descriptions below to identify relevant rules for the current task. Read full rule files when determined to be relevant.
### [category]
- **[path-to-rule]**: [description]
- **[path-to-rule]**: [description]
```
## Helper Command
```bash
ai skill cursor-rules-synchronizer list
```
Lists all Cursor Rule file paths in the project.
**Output:** One file path per line, suitable for reading with the Read tool.
## Context Efficiency Requirements
CLAUDE.md is always loaded into context, so minimize token usage:
- Descriptions under 2 sentences each
- Focus on "what" and "when", not "how"
- Implementation details stay in rule files
- Only essential discovery information in CLAUDE.mdRelated Skills
framer-motion-rules
Defines framer motion is being used for animations
cursor
Translates task requirements into Cursor CLI commands. Used by cursor-driver agent to execute coding tasks via Cursor.
cursor-rules-review
Audit Cursor IDE rules (.mdc files) against quality standards using a 5-gate review process. Validates frontmatter (YAML syntax, required fields, description quality, triggering configuration), glob patterns (specificity, performance, correctness), content quality (focus, organization, examples, cross-references), file length (under 500 lines recommended), and functionality (triggering, cross-references, maintainability). Use when reviewing pull requests with Cursor rule changes, conducting periodic rule quality audits, validating new rules before committing, identifying improvement opportunities, preparing rules for team sharing, or debugging why rules aren't working as expected.
cursor-best-practices
Best practices for using Cursor—rules, commands, skills, subagents, ignore files, Agent security, workflows, and community resources. Use when setting up Cursor, initializing or creating the .cursor folder, writing .cursor/rules or AGENTS.md, creating commands or skills, configuring .cursorignore, working with Agent, discovering rules or MCPs (e.g. cursor.directory), making codebases cursor-compatible, or asking about Cursor workflows, TDD, git commands, or large codebases.
cursor-agent
Use the Cursor CLI (agent) for software engineering tasks. Includes installation, auth, commands, terminal-based automation, and best practices for AI coding workflows.
metadata-and-seo-rules
Focuses on optimizing metadata and SEO to improve discoverability of the documentation.
vercel-kv-database-rules
Defines how to interact with Vercel's KV database for storing and retrieving session and application data.
python-fastapi-scalable-api-cursorrules-prompt-fil
Apply for python-fastapi-scalable-api-cursorrules-prompt-fil. --- description: Defines conventions specific to FastAPI usage in the backend. globs: backend/src/**/*.py
python-django-best-practices-cursorrules-prompt-fi
Apply for python-django-best-practices-cursorrules-prompt-fi. --- description: Configurations for Django settings file with the list of dependencies and conventions. globs: **/settings.py
pre-configured-apis-rules
Rules for using pre-configured APIs in the project, using them only if they are required by the project.
optimise-cursor-repo
Audit a repository and produce prioritised recommendations for improving Cursor performance and developer experience. Use when the user wants to optimise their repo for Cursor, improve indexing, add rules, or assess their Cursor configuration.
laravel-tall-stack-best-practices-cursorrules-prom-cursorrules
Apply for laravel-tall-stack-best-practices-cursorrules-prom. --- description: Laravel specific best practices for different modules and features. globs: /**/*.php