harness-parity
БесплатноБез исполняемых скриптовНе проверенUse whenever you add, edit, rename, or delete any harness artifact — a skill, agent, command, rule, or instruction — in either .claude/ or .opencode/…
от fmflurry★ 173 звезды на GitHubОб этом скилле
Harness Parity — Keep Claude & OpenCode in Sync
When you add, edit, rename, or delete any artifact in .claude/ or .opencode/ (skills, agents, commands, rules, instructions), you MUST replicate the equivalent change in the other harness. This keeps the two harness codebases at parity, avoiding orphaned or divergent tools.
A. Replication Checklist
Follow these steps in order for every harness artifact change:
Identify artifact type and source harness
- Artifact type: skill / command / agent / rule-instruction
- Source: which harness changed (Claude
.claude/or OpenCode.opencode/)?
Locate or create the mirror path in the other harness
- Use the translation table (Section B) to find the equivalent path.
- Create the directory structure if it doesn't exist.
Apply the frontmatter/registration translation
- Consult the translation table for frontmatter fields and required registration entries.
- Copy the body verbatim (for skills, commands, rules, instructions).
- For agents: split the single Claude
.mdinto a prompt.txt+ JSONC config entry.
Wire the artifact into the registry/load-path
- Universal rules (every turn, no file type):
@-import in.claude/CLAUDE.mdand anopencode.jsoncinstructionsentry. The always-on set is enforcement-ladder, orchestration (OpenCode:subagent-routing), question-handling, autonomy, verification-gate, and tool-budget. - File-bound rules:
paths:in the Claude rule. Cursor derivesglobsfrom that frontmatter. Do not@-import them. OpenCode has no globs: keep the instruction file off theinstructionsarray and point the agent that edits those files at it (prompts/agents/coder.txtfor source,tdd-guidefor tests). - Situational rules: a skill whose
descriptionsays when to load it. Do not@-import them and do not add them toinstructions. - Commands and agents:
opencode.jsonccommandoragentobject, as before. - A file with no
paths, no skilldescription, and no registry entry is orphaned.
- Universal rules (every turn, no file type):
Bring across any reference sub-files
- For skills with reference files (
reference.md,templates.md, etc.), copy them too. - File paths are relative; preserve the directory structure.
- For skills with reference files (
For deletes/renames: remove mirrors and their registry entries
- Delete or rename the mirror artifact in the other harness.
- Remove any
@-import,instructionsarray entry, orcommand/agentobject entry referencing it.
Validate syntax and references
- OpenCode:
opencode.jsoncstill parses (JSONC allows trailing commas). - Claude: All
@-import paths resolve to existing files. - Cross-check wikilinks (
skill-name) — they must point to existing skills in the same harness.
- OpenCode:
B. Translation Table
| Artifact | Claude Path | OpenCode Path | Frontmatter | Registration | Notes |
|---|---|---|---|---|---|
| Skill | .claude/skills/<name>/SKILL.md |
.opencode/skills/<name>/SKILL.md |
Both: name + description (no changes) |
None (no registry entry either side) | Copy reference files (reference-*.md, etc.) with the same directory structure. |
| Command | .claude/commands/<name>.md (subdir allowed, e.g. opsx/new.md) |
.opencode/commands/<name>.md (flat; convert opsx/new → opsx-new) |
Claude: description only. Body includes > CC: delegate to <agent> note. |
OpenCode: description + agent: + subtask: true |
Add to opencode.jsonc command object for visibility. Drop the > CC: note when porting; it's replaced by agent: frontmatter. |
| Agent | .claude/agents/<name>.md (single file: frontmatter name/description/tools + prompt body) |
Prompt: .opencode/prompts/agents/<name>.txt (prompt body only). Config: entry in opencode.jsonc agent object. |
Claude: name, description, tools, frontmatter + prompt body. |
OpenCode: Remove name/description/tools from .txt, place in JSONC agent object with keys description, mode, model, prompt, temperature, topP, tools, optional permission. |
If delegatable, also add to conductor.permission.task allow-list in JSONC. Split the Claude file into prompt text + JSONC config. |
| Rule / Instruction | .claude/rules/**/*.md. Universal rules are @-imported from CLAUDE.md. File-bound rules use paths: and are not imported. |
instructions/<name>.md. Only universal rules are listed in opencode.jsonc instructions. |
File-bound Claude rules: a paths: list. |
Universal: @ import and an instructions entry. File-bound: paths: plus an agent pointer. Situational: a skill description. |
A file with no paths, no skill description, and no registry entry is orphaned. |
Key Translation Notes
- Skill references within text: Keep
skill-namewikilinks verbatim (they are harness-local). - Subdir flattening for commands:
opsx/newin Cl
Установить harness-parity в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл harness-parity?
Use whenever you add, edit, rename, or delete any harness artifact — a skill, agent, command, rule, or instruction — in either .claude/ or .opencode/. Replicate the equivalent change in the other harness with the correct frontmatter and registration translation, so the two trees stay in parity.
Как установить скилл harness-parity?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл harness-parity запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic