ai-tool-converter
БесплатноБез исполняемых скриптовНе проверенConvert AI coding assistant configuration files (agents, skills, commands, rules) between formats (Claude Code, Cursor, and future tools). Handles frontmatter…
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
AI Tool Converter
Convert agents, skills, commands, and rules between different AI coding assistant formats while preserving functionality and adapting format-specific features.
Supported File Types
Both Claude Code and Cursor support these concepts:
| File Type | Purpose | Claude Code | Cursor |
|---|---|---|---|
| Agents | Specialized subagents for delegation | Yes | Yes |
| Skills | Reusable capabilities with references | Yes | Yes |
| Commands | Custom slash commands | Yes | Yes |
| Rules | Project-wide instructions | Yes | Yes |
File Locations
| File Type | Claude Code | Cursor |
|---|---|---|
| Agents | .claude/agents/**/*.md |
.cursor/agents/**/*.md |
| Skills | .claude/skills/<name>/SKILL.md |
.cursor/skills/<name>/SKILL.md |
| Commands | .claude/commands/*.md |
.cursor/commands/*.md |
| Rules | .claude/rules/*.md, CLAUDE.md |
.cursor/rules/*.mdc, AGENTS.md |
Compatibility: Cursor reads .claude/ directories as fallback for agents and skills.
Parameters
source-format- Source format (claude-code,cursor)target-format- Target format (claude-code,cursor)file-path- Path to file or directory to convert
Steps
Step 1: Identify File Type
Determine the file type from its path:
.claude/agents/foo.md -> Agent
.claude/skills/foo/SKILL.md -> Skill
.claude/commands/foo.md -> Command
.claude/rules/foo.md -> Rule
CLAUDE.md -> Rule
If unclear, ask: "What type of file is this? (agent, skill, command, or rule)"
Step 2: Validate Input
- Parse arguments to extract source format, target format, and file path
- If parameters are unclear, ask user to clarify
- Validate source and target formats are supported and different
- Verify file/directory exists
Step 3: Read and Parse Source
- Read the source file(s)
- Parse YAML frontmatter (if present)
- Extract Markdown body/prompt content
- Identify format-specific fields
Step 4: Apply Conversion Rules
Agents
Claude Code -> Cursor:
- Preserve:
name,description - Convert model:
haiku->fast,sonnet/opus->inherit - Remove:
tools,disallowedTools,permissionMode,color,skills,hooks,disabled - Add if applicable:
readonly: true,is_background: true
Cursor -> Claude Code:
- Preserve:
name,description - Convert model:
fast->haiku - Remove:
readonly,is_background - Add if applicable:
tools,permissionMode
Skills
Claude Code -> Cursor:
- Keep:
name,description,disable-model-invocation - Remove:
argument-hint,user-invocable,allowed-tools,model,context,agent,hooks - Add if needed:
license,compatibility,metadata - Warning:
$ARGUMENTSand!`cmd`syntax won't work in Cursor
Cursor -> Claude Code:
- Keep:
name,description,disable-model-invocation - Remove:
license,compatibility,metadata - Add if needed:
argument-hint,allowed-tools,model
Important: Copy entire skill directory (SKILL.md + references/ + scripts/), not just SKILL.md
Commands
CRITICAL DIFFERENCE: Cursor commands have NO YAML frontmatter - they are plain Markdown only!
Claude Code -> Cursor:
- Remove ALL frontmatter - Cursor doesn't support it
- Remove
$ARGUMENTS,$0substitutions - won't work - Remove
!`cmd`dynamic context - won't work - Keep body as plain Markdown only
Cursor -> Claude Code:
- Add frontmatter (optional) to enhance functionality
- Consider adding:
description,argument-hint,disable-model-invocation - Keep body unchanged
Rules
Claude Code -> Cursor:
- File:
CLAUDE.md->.cursor/rules/main.mdcorAGENTS.md - File:
.claude/rules/*.md->.cursor/rules/*.mdc - Convert:
paths->globs - Remove:
@importsyntax (not supported) - Add:
description,alwaysApplyif needed
Cursor -> Claude Code:
- File:
.cursor/rules/*.mdc->.claude/rules/*.md - File:
AGENTS.md->CLAUDE.md - Convert:
globs->paths - Remove:
description,alwaysApply
Step 5: Update Internal References
CRITICAL: Scan file contents for references to agents, commands, and skills, then update them for the target format.
Common patterns to find:
| Pattern Type | Claude Code | Cursor |
|---|---|---|
| Agent paths | .claude/agents/foo |
.cursor/agents/foo |
| Skill paths | .claude/skills/bar |
.cursor/skills/bar |
| Command paths | .claude/commands/baz |
.cursor/commands/baz |
| Rule paths | .claude/rules/qux.md |
.cursor/rules/qux.mdc |
| Slash commands | /foo |
/foo (no change) |
| Global rules | CLAUDE.md |
AGENTS.md |
Update strategy:
- Replace directory prefix:
.claude/<->.cursor/ - Replace global rule file:
CLAUDE.md<->AGENTS.md - Update rule extensions:
.md<->.mdc
Установить ai-tool-converter в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ai-tool-converter?
Convert AI coding assistant configuration files (agents, skills, commands, rules) between formats (Claude Code, Cursor, and future tools). Handles frontmatter mapping, directory structure, and format-specific fields.
Как установить скилл ai-tool-converter?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ai-tool-converter запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic