Skip to content
Agentmart
Submit a tool

claude-agent-converter

Convert Claude Code subagents (.claude/agents/*.md) to standard Agent Skills (skills/*/SKILL.md).

Skill by dceoy

IndexedAGPL-3.0★ 4
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/dceoy-claude-agent-converter

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Convert Claude Code subagents (.claude/agents/*.md) to standard Agent Skills (skills/*/SKILL.md). Use when migrating subagents to portable skill format, extracting reusable workflows from agents, or standardizing agent definitions across AI runtimes.

Use cases: agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/claude-agent-converter

What's inside

Skill name
claude-agent-converter
Description
Convert Claude Code subagents (.claude/agents/*.md) to standard Agent Skills (skills/*/SKILL.md). Use when migrating subagents to portable skill format, extracting reusable workflows from agents, or standardizing agent definitions across AI runtimes.
License
AGPL-3.0
Instructions
321 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# 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/*.md` subagent files to `skills/*/SKILL.md` format.
- 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`

```yaml
---
name: agent-name
description: When Claude should delegate to this subagent
tools: Read, Grep, Glob, Bash
disallowedTools: Write, Edit
model: fast | default | advanced | inherit
permissionMode: default | acceptEdits | dontAsk | bypassPermissions | plan
skills: skill-1, skill-2
hooks:
  PreToolUse:
    - matcher: "Bash"
      hooks:
        - type: command
          command: "./scripts/validate.sh"
---
[System prompt instructions for the subagent...]
```

### Standard Agent Skill Format

Location: `skills/<skill-name>/SKILL.md`

```yaml
---
name: skill-name
description: Complete description including what the skill does and when to use it.
---

# Skill Title

## When to Use

- Scenario 1
- Scenario 2

## Inputs

- Required input 1
- Optional input 2

## Workflow

1. Step 1
2. Step 2
...

## Outputs

- Output 1
- Output 2
```

## Conversion Workflow

1. **Read the source agent** from `.claude/agents/`.

2. **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.

3. **Extract metadata**:
   - `name` from YAML frontmatter.
   - `description` for triggering context.
   - `tools` and `disallowedTools` for capability constraints.
   - `model` preference if specified.
   - `skills` dependencies to reference.
   - `hooks` for validation logic to document.

4. **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.

5. **Create skill directory**: `skills/<skill-name>/`

6. **Transform content** to SKILL.md format:
   - **Frontmatter**: Keep only `name` and `description`.
   - **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.

7. **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.

8. **Remove runtime-specific content**:
   - Remove `tools`, `disallowedTools`, `model`, `permissionMode` from frontmatter.

From dceoy/ai-coding-agent-skills, AGPL-3.0.

More from dceoy/ai-coding-agent-skills

Signals

Stars
4
Forks
1
Open issues
2
Last commit (this folder)
Aug 12, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
AGPL-3.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from dceoy

Cite this page

claude-agent-converter skill. Agent Mart. https://agentmart.dev/skills/dceoy-claude-agent-converter (last updated 2026-10-24)