
Multi Harness Portability
Author and maintain agent skills that run on Claude Code, Cursor, Codex, Gemini CLI, OpenCode, and similar harnesses without rewriting for each platform.
Overview
Multi-Harness Portability is a journey-wide agent skill that encodes how to design agent skills and configs that work across major coding harnesses—usable whenever a solo builder needs to avoid platform lock-in before co
Install
npx skills add https://github.com/itallstartedwithaidea/agent-skills --skill multi-harness-portabilityWhat is this skill?
- Treats portability as an upfront architecture choice, not a post-ship refactor
- Maps platform-specific hooks, rules, and system prompts to a universal skill interface
- Targets Claude Code, Cursor, Codex, Gemini CLI, OpenCode, and other major harnesses
- Uses platform-specific adapters so one SKILL.md can compound across the org
- Encodes patterns from the Agent Skills™ repository portability model
- Explicitly covers Claude Code, Cursor, Codex, Gemini CLI, OpenCode, and additional harnesses
Adoption & trust: 1 installs on skills.sh; 18 GitHub stars; 3/3 security scanners passed (skills.sh audits); trending (+100% hot-view momentum).
What problem does it solve?
Your team uses different AI editors and CLIs, and skills written for one harness break or duplicate effort on every other tool.
Who is it for?
Indie builders and tiny teams building a shared skill library that must outlive any single agent product choice.
Skip if: One-off scripts tied to a single IDE extension with no plan to reuse procedural knowledge elsewhere.
When should I use this skill?
Before authoring or refactoring shared agent skills, prompts, or harness configuration that must work across multiple AI coding tools.
What do I get? / Deliverables
You ship skills behind a universal interface with per-harness adapters so the same procedural knowledge runs on Claude Code, Cursor, Codex, Gemini CLI, OpenCode, and peers.
- Portable skill architecture with harness adapters
- Documented universal skill interface for your library
Recommended Skills
Journey fit
Useful at every journey phase - explore requirements and options before committing to a direction.
Where it fits
Decide which harnesses your MVP skill pack must support before you freeze SKILL.md structure.
Implement universal skill interfaces and per-platform adapters for a new shared repo.
Audit a skill PR for Cursor-only assumptions before release.
Publish one skill install path that documents compatibility across harnesses.
Onboard Gemini CLI or OpenCode without rewriting every existing skill from scratch.
How it compares
Use as architectural guidance for SKILL.md and adapters, not as a single-harness rule dump or an MCP server integration.
Common Questions / FAQ
Who is multi-harness-portability for?
Solo builders and small teams who maintain agent skills across Claude Code, Cursor, Codex, Gemini CLI, OpenCode, and similar tools.
When should I use multi-harness-portability?
Before writing or refactoring any shared skill—during Build agent-tooling setup, Validate scoping of agent standards, Ship review of harness-specific drift, and Operate iterations when onboarding a new editor.
Is multi-harness-portability safe to install?
It is primarily design and documentation discipline; still review the Security Audits panel on this page and inspect bundled scripts or hooks in your fork before enabling shell or network permissions.
SKILL.md
READMESKILL.md - Multi Harness Portability
# Multi-Harness Portability Part of [Agent Skills™](https://github.com/itallstartedwithaidea/agent-skills) by [googleadsagent.ai™](https://googleadsagent.ai) ## Description Multi-Harness Portability is the engineering discipline of writing agent skills, prompts, and configurations that work across every major AI coding harness — Claude Code, Cursor, Codex, Gemini CLI, OpenCode, and beyond. The AI tooling landscape is fragmenting rapidly: teams use different editors, different CLI tools, different models. Skills that are locked to a single platform become liabilities; skills that are portable become assets that compound in value across the entire organization. This skill encodes the portability architecture developed for [Agent Skills™](https://github.com/itallstartedwithaidea/agent-skills) by [googleadsagent.ai™](https://googleadsagent.ai), where every skill in the repository is designed to function across all major harnesses. The key insight is that portability is an architectural decision, not an afterthought. It requires abstraction layers that map platform-specific capabilities (hooks, rules, instructions, system prompts) to a universal skill interface, with platform-specific adapters handling the translation. The portability layer handles three categories of platform differences: skill loading (how the skill enters the agent's context), tool access (what tools are available and how they're invoked), and output formatting (how the agent delivers results). Each category requires its own adapter pattern, and the combination provides true write-once-run-anywhere agent skills. ## Use When - Your team uses multiple AI coding tools (Claude Code, Cursor, Codex, etc.) - You want to maintain a single skill repository that serves all platforms - Skills developed for one platform need to be ported to others - You are building an open-source skill library for the community - CI/CD pipelines need to validate skills across multiple platforms - Organization policy requires platform-agnostic tooling ## How It Works ```mermaid graph TD A[Universal SKILL.md] --> B[Platform Detector] B --> C{Which Harness?} C -->|Claude Code| D[Claude Adapter] C -->|Cursor| E[Cursor Adapter] C -->|Codex| F[Codex Adapter] C -->|Gemini| G[Gemini Adapter] D --> H[CLAUDE.md Rules + Hooks] E --> I[.cursor/rules/ + Skills] F --> J[codex instructions] G --> K[System Prompt Config] H --> L[Unified Execution] I --> L J --> L K --> L ``` The portability layer sits between the universal skill definition (SKILL.md) and the platform-specific loading mechanism. A platform detector identifies the current execution environment. Platform adapters translate the universal skill format into the native configuration of each harness: Claude Code uses CLAUDE.md and hooks, Cursor uses `.cursor/rules/` and SKILL.md files, Codex uses instruction files, and Gemini uses system prompt configuration. The unified execution layer ensures that regardless of the loading path, the agent receives equivalent instructions and constraints. ## Implementation **Platform Detection:** ```bash #!/bin/bash detect_platform() { if [ -n "$CLAUDE_CODE" ] || [ -f "CLAUDE.md" ]; then echo "claude-code" elif [ -d ".cursor" ] || [ -n "$CURSOR_SESSION" ]; then echo "cursor" elif [ -n "$CODEX_SESSION" ] || [ -f ".codex/instructions.md" ]; then echo "codex" elif [ -n "$GEMINI_CLI" ]; then echo "gemini" else echo "generic" fi } ``` **Universal Skill Installer:** ```python import os import shutil from pathlib import Path class SkillInstaller: PLATFORM_CONFIGS = { "claude-code": { "skill_dir": ".", "rules