Command Palette

Search for a command to run...

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

config-sync

БесплатноБез исполняемых скриптовНе проверен

Sync configuration changes across the settings-opencode repo and live harness directories (OpenCode and Claude Code). Invoke when adding, updating, or…

fmflurryот fmflurry★ 173 звезды на GitHub

Об этом скилле

Configuration Sync

Overview

This repo is the single source of truth for both OpenCode and Claude Code harness configuration. Never hand-edit the live directories (~/.config/opencode, ~/.claude). Always edit the repo first, then propagate via settings-sync (works from any directory) or bash install.sh --yes (from the repo root).

What Goes Where: Decision & Mapping Table

Verified directory structure:

  • OpenCode target (~/.config/opencode) receives: entire repo tree minus .claude and excludes
  • Claude target (~/.claude) receives: ONLY the allowlist from .claude/ subtree
  • Skills are the only "edit once → both" case via union sync (root skills/ ∪ .claude/skills/, root wins)
Item Repo source location(s) OpenCode Claude Edit location(s) Notes
Agents (OpenCode) opencode.jsonc (inline defs) + prompts/agents/*.txt (prompts) ✓ ✗ opencode.jsonc or prompts/agents/ OpenCode-only. Agents defined inline in opencode.jsonc or as prompt templates. NO top-level agents/ dir exists.
Agents (Claude) .claude/agents/ ✗ ✓ .claude/agents/ Claude-only agent definitions.
Rules .claude/rules/ ✗ ✓ .claude/rules/ Claude-only rules (e.g., orchestration.md, verification-gate.md). File-bound rules use paths:; situational rules are skills.
Hooks .claude/hooks/ ✗ ✓ .claude/hooks/ Claude-only runtime hooks (e.g., installed by learning runtime).
Harness scripts scripts/agent-harness/ ✓ ⚠ scripts/agent-harness/ Autonomy CLI (agent-harness) and helpers. OpenCode gets it through the tree copy. Claude hooks that call it need the installer to expose it; confirm in install.sh before relying on it.
Claude mods .claude/mods/ ✗ ⚠ .claude/mods/ Claude-only status line and UI mods. Reaches Claude only if the .claude/ allowlist in install.sh includes it; confirm there.
Commands commands/ ✓ ✗ commands/ OpenCode-only slash commands.
Prompts prompts/ ✓ ✗ prompts/ (including prompts/agents/ for agent prompts) OpenCode-only prompt templates.
Contexts contexts/ ✓ ✗ contexts/ OpenCode-only context definitions.
Tools tools/ ✓ ✗ tools/ OpenCode-only tool definitions.
Plugins plugins/ ✓ ✗ plugins/ OpenCode-only plugins.
Skills (shared) skills/ (primary source) ✓ ✓ skills/ The ONLY "edit once, both harnesses" type. Root skills/ wins on name conflict with .claude/skills/ via union sync.
Skills (Claude-only/override) .claude/skills/ (secondary source) ✓ ✓ .claude/skills/ Lower priority; root skills/ overrides. Both targets receive via union sync.
Harness config opencode.jsonc ✓ ✗ opencode.jsonc OpenCode harness configuration (models, providers, settings, agent defs).
Global instructions .claude/CLAUDE.md + .claude/RTK.md ✗ ✓ .claude/CLAUDE.md, .claude/RTK.md Claude-only global instructions and token-optimization guide.
Personal: settings.json .claude/settings.json (seed) or settings.json (root seed, if exists) ⚠ ⚠ Manual merge if needed Seed-only; never overwritten on reinstall. Edit live copy or merge after repo changes.
Personal: settings.local.json .claude/settings.local.json (seed) ⚠ ⚠ Manual merge if needed Seed-only; local overrides.
Personal: policy-limits.json .claude/policy-limits.json (seed) ⚠ ⚠ Manual merge if needed Seed-only; rate limit policies. User edits in live dir will NOT propagate via reinstall.
*Personal: .local.json *.local.json (seed) ⚠ ⚠ Manual merge if needed Seed-only; any other .local.json files.

Legend:

  • ✓ = Item is propagated to this target
  • ✗ = Item does not reach this target
  • ⚠ (seed-only) = Only populated on first install; user edits in the live dir are NOT synced back to the repo on reinstall. To propagate changes: edit repo source, run bash install.sh --yes, then manually re-apply personal customizations to the live copy.

Workflow: Edit → Propagate → Verify

This workflow is cwd-independent — it works from any directory, not just the repo root. The settings-sync command (installed globally onto PATH by install.sh) locates the repo for you.

Repo discovery order

settings-sync resolves the repo path in this order:

  1. $SETTINGS_OPENCODE_REPO — exported by the managed shell rc block, if it points at a directory with an executable install.sh
  2. $HOME/Workspace/settings-opencode
  3. $HOME/.local/share/settings-opencode

If none resolve, it exits with an error asking you to set SETTINGS_OPENCODE_REPO.

Step 1: Edit the Repo

Edit files under $SETTINGS_OPENCODE_REPO/... (absolute paths — always edit the canonical repo, never a live harness directory). Example:

# A
Полный SKILL.md на GitHub

Установить config-sync в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл config-sync?

Sync configuration changes across the settings-opencode repo and live harness directories (OpenCode and Claude Code). Invoke when adding, updating, or removing agents, rules, hooks, commands, prompts, skills, or harness config. Keywords: "add agent", "change rule", "update skill", "modify config", "add hook", "keep configs in sync", "propagate settings", "update my config", "harness configuration"

Как установить скилл config-sync?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл config-sync запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить config-sync с