
This is the interoperability layer you need when you're tired of rewriting agent configs for every framework. It converts agent definitions bidirectionally: export to Claude Code, OpenAI, CrewAI, Lyzr, and GitHub Models formats, or import from Claude, Cursor, and CrewAI projects into the gitagent format. The system-prompt export is genuinely useful since you can paste it into any LLM, and having standard formats for OpenAI Python or CrewAI YAML saves real time. The import side handles the reverse, pulling in CLAUDE.md files or .cursorrules and converting them to agent.yaml with proper structure. If you're migrating between frameworks or maintaining agents across multiple platforms, this beats manual translation every time.
$ npx -y skills add open-gitagent/opengap --skill export-agent --agent claude-codeInstalls into .claude/skills of the current project.
After exporting, check the output matches expectations:
# Verify export file was created and contains agent name
opengap export -f system-prompt -d ./my-agent | head -5
Convert a gitagent definition to another framework:
opengap export -f <format> -d ./my-agent [-o output-file]
| Format | Output | Use Case |
|---|---|---|
system-prompt | Markdown | Universal — paste into any LLM |
claude-code | CLAUDE.md | Drop into a Claude Code project |
openai | Python | Run with OpenAI Agents SDK |
crewai | YAML | Run with CrewAI |
openclaw | JSON + MD | Run with OpenClaw |
nanobot | JSON + MD | Run with Nanobot |
lyzr | JSON | Create agent on Lyzr Studio |
github | JSON | Call GitHub Models API |
# Get a system prompt for any LLM
opengap export -f system-prompt -d ./my-agent
# Generate a CLAUDE.md
opengap export -f claude-code -d ./my-agent -o CLAUDE.md
# Generate Python code for OpenAI
opengap export -f openai -d ./my-agent -o agent.py
# Preview what Lyzr API will receive
opengap export -f lyzr -d ./my-agent
# Preview GitHub Models payload
opengap export -f github -d ./my-agent
Convert existing agent frameworks into gitagent:
opengap import --from <format> <path> [-d target-dir]
| Source | Input | What It Creates |
|---|---|---|
claude | CLAUDE.md, .claude/skills/ | agent.yaml, SOUL.md, RULES.md, skills |
cursor | .cursorrules | agent.yaml, SOUL.md, AGENTS.md |
crewai | crew.yaml | agent.yaml, SOUL.md, agents/ |
# Import a Claude Code project
opengap import --from claude ./my-project
# Import from Cursor
opengap import --from cursor ./.cursorrules
# Import CrewAI config
opengap import --from crewai ./crew.yaml -d ./imported
Sponsors