agent-converter

Converts agent definitions between Markdown (with YAML frontmatter) and TOML formats. Use when transforming agent configurations for different agent systems — MD format for rich tool restrictions, TOML format for Codex-style agents with sandbox modes.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "agent-converter" with this command: npx skills add qredence/skills/qredence-skills-agent-converter

Agent Converter

Objective

Convert agent definitions between two formats:

  1. Markdown format (.md with YAML frontmatter) — Rich format with explicit tool restrictions
  2. TOML format (.toml) — Simple format for Codex agents with sandbox modes

Inputs

  • Source file: Path to an agent .md file (or directory of agents)
  • Output format: toml (default) or md
  • Output directory: Where to write converted files (default: same as source)

Commands

Convert single agent MD → TOML

python3 skills/agent-converter/scripts/convert_agent.py <input.md> [--output <dir>]

Convert all agents in directory

python3 skills/agent-converter/scripts/convert_agent.py --batch <input_dir> [--output <dir>]

Convert TOML → MD

python3 skills/agent-converter/scripts/convert_agent.py <input.toml> --to-md [--output <dir>]

Format Mapping

MD FrontmatterTOML Field
name(derived from filename)
descriptionIncluded in developer_instructions
toolsMapped to sandbox_mode
Markdown bodydeveloper_instructions

Tool → Sandbox Mode Mapping

ToolsSandbox Mode
Read, Grep, Glob onlyread-only
Any Write/Edit toolsallow-edits
No tools specifiedallow-edits (default)

Sandbox Mode → Tool Mapping (reverse)

Sandbox ModeTools
read-onlyRead, Grep, Glob
allow-editsRead, Write, Edit, Bash, Glob, Grep

Example Conversion

Input: explorer.md

---
name: explorer
description: >
  Read-only codebase explorer.
tools:
  - Read
  - Grep
  - Glob
---

# Explorer — Read-Only Codebase Navigator

You are a read-only explorer agent...

Output: explorer.toml

sandbox_mode = "read-only"

developer_instructions = """
Role: Read-only codebase explorer.

Tools: Read, Grep, Glob

---

# Explorer — Read-Only Codebase Navigator

You are a read-only explorer agent...
"""

Workflow

  1. Parse source file (MD or TOML)
  2. Extract metadata and instructions
  3. Map format-specific fields
  4. Write output in target format
  5. Report conversion summary

Error Handling

ErrorResolution
Missing frontmatterTreat as plain markdown, use defaults
Invalid TOMLReport parse error with line number
Unknown toolsWarn and include in output as-is
File existsPrompt user or use --force to overwrite

References

  • Format specification: skills/agent-converter/references/format-spec.md
  • Example agents: .agents/sub-agents/

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

dspy-gepa

No summary provided by upstream source.

Repository SourceNeeds Review
General

dspy-fleet-rlm

No summary provided by upstream source.

Repository SourceNeeds Review
General

babysit-pr

No summary provided by upstream source.

Repository SourceNeeds Review
General

fastapi-router-py

No summary provided by upstream source.

Repository SourceNeeds Review