Назад към всички

export-agent

// Help users export agents to other frameworks and import from existing tools

$ git log --oneline --stat
stars:125
forks:24
updated:March 1, 2026
SKILL.mdreadonly
SKILL.md Frontmatter
nameexport-agent
descriptionConverts agent definitions between frameworks — exports to Claude Code, OpenAI, CrewAI, Lyzr, and GitHub Models formats, and imports from Claude, Cursor, and CrewAI projects. Use when the user wants to convert an agent, migrate to another framework, export to LangChain/AutoGen/CrewAI, or import from existing automation tools.
licenseMIT
metadata[object Object]

Export & Import Agents

Verify Export

After exporting, check the output matches expectations:

# Verify export file was created and contains agent name
gitagent export -f system-prompt -d ./my-agent | head -5

Export

Convert a gitagent definition to another framework:

gitagent export -f <format> -d ./my-agent [-o output-file]

Formats

FormatOutputUse Case
system-promptMarkdownUniversal — paste into any LLM
claude-codeCLAUDE.mdDrop into a Claude Code project
openaiPythonRun with OpenAI Agents SDK
crewaiYAMLRun with CrewAI
openclawJSON + MDRun with OpenClaw
nanobotJSON + MDRun with Nanobot
lyzrJSONCreate agent on Lyzr Studio
githubJSONCall GitHub Models API

Examples

# Get a system prompt for any LLM
gitagent export -f system-prompt -d ./my-agent

# Generate a CLAUDE.md
gitagent export -f claude-code -d ./my-agent -o CLAUDE.md

# Generate Python code for OpenAI
gitagent export -f openai -d ./my-agent -o agent.py

# Preview what Lyzr API will receive
gitagent export -f lyzr -d ./my-agent

# Preview GitHub Models payload
gitagent export -f github -d ./my-agent

Import

Convert existing agent frameworks into gitagent:

gitagent import --from <format> <path> [-d target-dir]

Sources

SourceInputWhat It Creates
claudeCLAUDE.md, .claude/skills/agent.yaml, SOUL.md, RULES.md, skills
cursor.cursorrulesagent.yaml, SOUL.md, AGENTS.md
crewaicrew.yamlagent.yaml, SOUL.md, agents/

Examples

# Import a Claude Code project
gitagent import --from claude ./my-project

# Import from Cursor
gitagent import --from cursor ./.cursorrules

# Import CrewAI config
gitagent import --from crewai ./crew.yaml -d ./imported