Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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:

  1. Identify artifact type and source harness

    • Artifact type: skill / command / agent / rule-instruction
    • Source: which harness changed (Claude .claude/ or OpenCode .opencode/)?
  2. 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.
  3. 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 .md into a prompt .txt + JSONC config entry.
  4. Wire the artifact into the registry/load-path

    • Universal rules (every turn, no file type): @-import in .claude/CLAUDE.md and an opencode.jsonc instructions entry. 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 derives globs from that frontmatter. Do not @-import them. OpenCode has no globs: keep the instruction file off the instructions array and point the agent that edits those files at it (prompts/agents/coder.txt for source, tdd-guide for tests).
    • Situational rules: a skill whose description says when to load it. Do not @-import them and do not add them to instructions.
    • Commands and agents: opencode.jsonc command or agent object, as before.
    • A file with no paths, no skill description, and no registry entry is orphaned.
  5. 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.
  6. For deletes/renames: remove mirrors and their registry entries

    • Delete or rename the mirror artifact in the other harness.
    • Remove any @-import, instructions array entry, or command/agent object entry referencing it.
  7. Validate syntax and references

    • OpenCode: opencode.jsonc still 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.

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-name wikilinks verbatim (they are harness-local).
  • Subdir flattening for commands: opsx/new in Cl
Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить harness-parity с