Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

ai-tool-converter

БесплатноБез исполняемых скриптовНе проверен

Convert AI coding assistant configuration files (agents, skills, commands, rules) between formats (Claude Code, Cursor, and future tools). Handles frontmatter…

diegosouzapwот 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

  1. Parse arguments to extract source format, target format, and file path
  2. If parameters are unclear, ask user to clarify
  3. Validate source and target formats are supported and different
  4. Verify file/directory exists

Step 3: Read and Parse Source

  1. Read the source file(s)
  2. Parse YAML frontmatter (if present)
  3. Extract Markdown body/prompt content
  4. 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: $ARGUMENTS and !`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, $0 substitutions - 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.mdc or AGENTS.md
  • File: .claude/rules/*.md -> .cursor/rules/*.mdc
  • Convert: paths -> globs
  • Remove: @import syntax (not supported)
  • Add: description, alwaysApply if 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:

  1. Replace directory prefix: .claude/ <-> .cursor/
  2. Replace global rule file: CLAUDE.md <-> AGENTS.md
  3. Update rule extensions: .md <-> .mdc
Полный SKILL.md на GitHub

Установить ai-tool-converter в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

metadata.json

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), без исполняемых скриптов.

Похожие скиллы

Сравнить ai-tool-converter с