dceoy/ai-coding-agent-skills/claude-agent-converter
Claude Code and agent skill by dceoy/ai-coding-agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Convert Claude Code subagents in `.claude/agents/<name>.md` files to standard Agent Skills in `skills/<name>/SKILL.md`. Use when migrating subagents to portable skill format, extracting reusable workflows from agents, or standardizing agent definitions across AI runtimes.
Install
npx vskill@latest install dceoy/ai-coding-agent-skills/claude-agent-converterSKILL.md
Claude Agent Converter
Convert Claude Code subagents to standard Agent Skills format for portability across AI coding assistants.
When to Use
- Migrating existing
.claude/agents/*.mdsubagent files toskills/*/SKILL.mdformat. - Extracting reusable workflows from subagent definitions.
- Creating portable skills from Claude Code-specific agents.
- Standardizing agent definitions for use with Claude Code, Codex CLI, Cursor CLI, and other runtimes.
Inputs
- Source agent file path (e.g.,
.claude/agents/my-agent.md). - Optional: target skill name (defaults to agent name from frontmatter).
- Optional: mode to extract (if agent supports multiple modes).
If input is missing, ask for the source agent file path.
Format Differences
Claude Code Subagent Format
Location: .claude/agents/<agent-name>.md
Standard Agent Skill Format
Location: skills/<skill-name>/SKILL.md
Conversion Workflow
- Read the source agent from
.claude/agents/.
- Analyze agent structure:
- Identify if agent has multiple modes (e.g., ask, exec, review, search).
- Determine if agent should become one skill or multiple skills.
- Note tool restrictions for skill documentation.
- Extract metadata:
namefrom YAML frontmatter.descriptionfor triggering context.toolsanddisallowedToolsfor capability constraints.modelpreference if specified.skillsdependencies to reference.hooksfor validation logic to document.
- Determine skill name(s):
- Single-mode agent: use agent name directly.
- Multi-mode agent: create separate skills per mode (e.g.,
agent-ask,agent-exec). - Use kebab-case for multi-word names.
- Create skill directory:
skills/<skill-name>/
- Transform content to SKILL.md format:
- Frontmatter: Keep only
nameanddescription. - Enhance description: Expand to include when to use the skill.
- Extract "When to Use": From mode selection criteria in agent prompt.
- Document Inputs: What information the skill needs to operate.
- Structure Workflow: Convert agent instructions to numbered steps.
- List Outputs: Expected artifacts or results.
- Note Tool Usage: Document which tools the workflow uses.
- Document Constraints: Read-only modes, permission requirements.
- Handle multi-mode agents:
- If agent has distinct modes (ask/exec/review/search), create separate skills.
- Each skill gets the mode-specific workflow and constraints.
- Shared context (CLI usage, verification) goes in each skill as needed.
- Remove runtime-specific content:
- Remove
tools,disallowedTools,model,permissionModefrom frontmatter. - Remove
skillsandhooksfrom frontmatter. - Convert tool restrictions to prose documentation.
- Replace runtime-specific variables with documented inputs.
- Extract helper scripts (optional):
- If agent uses hook scripts, consider including in
scripts/. - If agent references validation logic, document or include it.
- Validate skill structure:
- Frontmatter has only
nameanddescription. - Body has clear sections (When to Use, Inputs, Workflow, Outputs).
- No TODO placeholders remain.
- No runtime-specific fields in frontmatter.
- Report conversion result:
- Source agent path.
- Generated skill path(s).
- Key transformations applied.
- Multi-mode handling decisions.
- Manual review recommendations.
Transformation Rules
| Subagent Field | Skill Transformation | |
|---|---|---|
name | name in frontmatter | |
description | description expanded with usage triggers | |
tools | Documented in workflow (which tools are used) | |
disallowedTools | Documented as constraints (read-only, no modifications) | |
model | Noted in workflow if relevant (e.g., "use a fast model") | |
permissionMode | Documented as workflow constraints | |
skills | Referenced in "Related Skills" or workflow | |
hooks | Documented or extracted to scripts/ | |
| Mode sections | Separate skills or workflow phases | |
| CLI command patterns | Included in workflow steps | |
| Verification checklists | Included in workflow or outputs |
Multi-Mode Agent Handling
When an agent has multiple modes (common pattern: ask, exec, review, search):
Option A: Separate Skills (Recommended)
Create one skill per mode:
agent-ask- Read-only Q&Aagent-exec- Code generation/modificationagent-review- Code reviewagent-search- Web research
Benefits:
- Clear, focused skills.
- Appropriate constraints per skill.
- Easier to discover and use.
Option B: Single Skill with Modes
Keep as one skill if modes are tightly coupled:
- Document mode selection in workflow.
- Include all mode workflows.
- Clearly separate mode-specific sections.
Example Conversion
Input: .claude/agents/code-reviewer.md
Output: skills/code-reviewer/SKILL.md
Multi-Mode Example
Input: Multi-mode agent with ask/exec/review/search
Create four separate skills:
skills/agent-ask/SKILL.md- Q&A mode contentskills/agent-exec/SKILL.md- Execution mode contentskills/agent-review/SKILL.md- Review mode contentskills/agent-search/SKILL.md- Search mode content
Each skill includes:
- Mode-specific description and triggers.
- Mode-specific workflow from agent prompt.
- Mode-specific constraints (read-only for ask/review/search).
- CLI command patterns for that mode.
Key Rules
- Preserve all workflow logic and instructions.
- Remove runtime-specific frontmatter fields (tools, model, permissions, hooks).
- Keep only
nameanddescriptionin skill frontmatter. - Expand descriptions to include usage triggers.
- Use imperative voice in workflow steps.
- Convert tool restrictions to documented constraints.
- Keep skills self-contained and portable.
- Split multi-mode agents into focused skills.
- Don't add extraneous documentation files (README, CHANGELOG, etc.).
Next Steps
After conversion:
- Review generated SKILL.md for completeness.
- Verify workflow steps are clear and actionable.
- Check that constraints are documented accurately.
- Delete unused example files in
scripts/,references/,assets/. - Update AGENTS.md/CLAUDE.md skill inventory if applicable.
- Create symlinks for runtime integration if needed.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/claude-agent-converter/SKILL.md
Popularity
- Repository stars
- 4
- Repository forks
- 1
- 7-day trend score
- 8
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dceoy/ai-coding-agent-skills/claude-agent-converter)