just tried this, work pretty well.
name: Sync Claude Skills to Cursor
description: Use when you want to sync agents and skills from ~/.claude to .cursor/{agents,skills} and generating AGENTS.md overview.
tags:
- meta-framework
- utility
- sync
- agents
- skills
---
# Sync Cursor Framework
Copy and overwrite the `agents` and `skills` directories from the `.claude` meta-framework source to `.cursor/{agents,skills}` in the current working directory. Then generate `AGENTS.md` with an overview of all available skills parsed from their SKILL.md frontmatter.
```bash
# Create target directories and sync
mkdir -p .cursor/agents .cursor/skills
cp -R ~/.claude/agents/* .cursor/agents/
cp -R ~/.claude/skills/* .cursor/skills/
# Generate AGENTS.md from SKILL.md frontmatter
echo "# Available Skills" > AGENTS.md
echo "" >> AGENTS.md
echo "This file is auto-generated by \`/sync-cursor-framework\`. Do not edit manually." >> AGENTS.md
echo "" >> AGENTS.md
echo "| Skill | Description | Location |" >> AGENTS.md
echo "|-------|-------------|----------|" >> AGENTS.md
for skill_file in .cursor/skills/*/SKILL.md; do
if [ -f "$skill_file" ]; then
skill_dir=$(dirname "$skill_file" | sed 's|.cursor/skills/||')
name=$(grep "^name:" "$skill_file" | head -1 | sed 's/name:[[:space:]]*//')
desc=$(grep "^description:" "$skill_file" | head -1 | sed 's/description:[[:space:]]*//')
echo "| **$name** | $desc | \`.cursor/skills/$skill_dir/SKILL.md\` |" >> AGENTS.md
fi
done
echo "" >> AGENTS.md
echo "## Usage" >> AGENTS.md
echo "" >> AGENTS.md
echo "Load a skill: \`Load the **[skill-name]** skill.\`" >> AGENTS.md
```

