agentleFS
AgriciDanielAgriciDaniel/skill-forge/skills/skill-forge-convert/SKILL.md

skill-forge-convert

Skill177 starsChanged 9 months agoMITView on GitHub

Convert Claude Code skills to work on OpenAI Codex, Google Gemini CLI, Google Antigravity, and Cursor. Analyzes platform-specific features, generates target files (openai.yaml, AGENTS.md, GEMINI.md, .mdc rules), adapts frontmatter, converts MCP config, and produces compatibility reports. Use when user says "convert skill", "port skill", "multi-platform", "skill for codex", "skill for gemini", "skill for antigravity", "skill for cursor", "cross-platform skill", "convert to codex", "convert to gemini", "convert to antigravity", or "convert to cursor".

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read the source SKILL.md and parse frontmatter

    line 24
  2. Distinctive:

    Run dry-run analysis first:

    line 31
  3. Distinctive:

    Run validation on each generated output:

    line 69
  4. Very specific:

    When converting for all platforms (--target all), the script auto-generates install-multiplatform.sh that:

    line 105

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill Conversion — Multi-Platform

Convert Claude Code skills to work on OpenAI Codex, Google Gemini CLI, Google Antigravity, and Cursor while maintaining quality and following each platform's best practices.

Process

Step 1: Read Source Skill

  1. Read the source SKILL.md and parse frontmatter
  2. Detect skill complexity tier (1-4)
  3. Inventory all files: scripts/, references/, agents/, sub-skills
  4. Identify MCP config (.mcp.json) if present

Step 2: Analyze Platform Compatibility

Run dry-run analysis first:

python scripts/convert_skill.py <path> --dry-run --target all

Review the compatibility report:

  • Portable fields: Transfer directly (name, description, license)
  • Adaptable fields: Need platform-specific handling
  • Claude-only fields: Will be stripped with warnings

Step 3: Convert to Target Platforms

Run the conversion:

python scripts/convert_skill.py <path> --target codex,gemini,antigravity,cursor --output dist/

For MCP config conversion:

python scripts/convert_skill.py <path> --target all --output dist/ --include-mcp

Step 4: Handle Claude-Only Features

Features that need manual adaptation per platform:

Claude FeatureCodexGemini/AntigravityCursor
allowed-toolsSupportedRemove; all tools availableRemove; no equivalent
context: forkNo equivalentNo equivalentNo equivalent
hooks1 event (notify)Partial (CLI)6 events (beta)
model selectionNo equivalentNo equivalentNo equivalent
Task delegationBreak into separate skillsBreak into separate skillsBackground Agents (Ultra plan)
/slash commands$mention syntaxDescription-based activationDescription-based + @rule
Sub-skill routingSeparate skills with $mentionSeparate skills, LLM-routedSeparate skills, LLM-routed

Step 5: Validate Converted Skills

Run validation on each generated output:

python scripts/validate_skill.py dist/codex/<skill-name>/
python scripts/validate_skill.py dist/gemini/<skill-name>/
python scripts/validate_skill.py dist/antigravity/<skill-name>/
python scripts/validate_skill.py dist/cursor/<skill-name>/

Fix any critical or high-priority issues before proceeding.

Step 6: Generate Deployment Report

Present the user with a summary:

## Conversion Report: {skill-name}

| Platform | Score | Files | Warnings | Manual Steps |
|----------|-------|-------|----------|-------------|
| Codex | 92% | 4 | 2 | 1 |
| Gemini | 88% | 3 | 3 | 1 |
| Antigravity | 88% | 3 | 3 | 1 |
| Cursor | 88% | 3 | 3 | 1 |

### Generated Files
[list per platform]

### Warnings
[list per platform]

### Manual Steps Required
[list per platform]

Step 7: Generate Multi-Platform Install Script

When converting for all platforms (--target all), the script auto-generates install-multiplatform.sh that:

  • Auto-detects the current agent platform
  • Installs to the correct skill path
  • Supports --platform flag for explicit selection

Platform Quick Reference

PlatformSkill PathInstruction FileConfig Format
Claude Code.claude/skills/CLAUDE.mdJSON (.mcp.json)
OpenAI Codex.agents/skills/AGENTS.mdTOML (config.toml)
Gemini CLI.gemini/skills/GEMINI.mdJSON (settings.json)
Antigravity.agent/skills/GEMINI.mdJSON (mcp_config.json)
Cursor.cursor/skills/.cursor/rules/*.mdcJSON (mcp.json)

For full platform specs, load references/platforms.md.

Tier Conversion Guidelines

  • Tier 1 (single SKILL.md): Converts cleanly. Auto-convert recommended.
  • Tier 2 (skill + scripts): Converts well. Verify script paths.
  • Tier 3 (multi-skill): Partial. Each sub-skill converts independently. Routing needs manual work.
  • Tier 4 (ecosystem): Manual review required. Subagent delegation needs platform adaptation.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.