sync-tools

GitHub

同步源码到 Codex、OpenCode 和 Pi 等平台的插件技能文件,生成分发副本并检测漂移。包含验证工具的复制与一致性检查,确保各宿主环境读取的技能文件保持字节级一致。

.claude/skills/sync-tools/SKILL.md doodledood/manifest-dev

Trigger Scenarios

修改了 claude-plugins 下的技能文件后需要更新分发版本 需要检查或修复不同平台间技能文件的同步状态

Install

npx skills add doodledood/manifest-dev --skill sync-tools -g -y
More Options

Non-standard path

npx skills add https://github.com/doodledood/manifest-dev/tree/main/.claude/skills/sync-tools -g -y

Use without installing

npx skills use doodledood/manifest-dev@sync-tools

指定 Agent (Claude Code)

npx skills add doodledood/manifest-dev --skill sync-tools -a claude-code -g -y

安装 repo 全部 skill

npx skills add doodledood/manifest-dev --all -g -y

预览 repo 内 skill

npx skills add doodledood/manifest-dev --list

SKILL.md

Frontmatter
{
    "name": "sync-tools",
    "metadata": {
        "internal": true
    },
    "description": "Regenerate the Codex distribution copy of the plugin skills, and the copies of the shipped verify tool, and check them for drift. Run after changing anything under claude-plugins\/*\/skills. OpenCode and Pi read the source tree directly and need no sync.",
    "user-invocable": true
}

/sync-tools — distribution sync

Every host reads the same skill files. The Claude Code plugins under claude-plugins/ are the source; OpenCode (dist/opencode/plugin/index.js) and Pi (repo-root package.json, pi.skills) point straight at claude-plugins/*/skills. Only Codex needs a copy, because it installs a plugin into its own cache, and that copy is generated:

python3 scripts/sync_dist.py          # regenerate dist/codex/plugins/*/skills byte-identically from source
python3 scripts/sync_dist.py --check  # exit 1 on any drift (tests/test_dist_skill_references.py runs this)

The same commands copy the verification tool setup-project ships (setup-project/references/harness/verify and verify.mts) to scripts/ and into the eval scaffolds that embed it, and check those copies too.

Run the first command after any change under claude-plugins/*/skills, then commit the regenerated tree with the change. There is no per-host rewrite: shipped skill text names no host primitive (tests/test_skill_frontmatter.py enforces that), so a copy is a copy.

Hand-maintained packaging files

These are not generated. Edit them when what they describe changes:

File What it carries
dist/codex/plugins/manifest-dev/.codex-plugin/plugin.json, dist/codex/plugins/manifest-dev-tools/.codex-plugin/plugin.json Codex plugin manifests; version must equal the source plugin's .claude-plugin/plugin.json version
.agents/plugins/marketplace.json Codex marketplace registry pointing at the two plugin directories
dist/opencode/plugin/index.js, dist/opencode/plugin/package.json OpenCode plugin entry (registers the source skill dirs and slash-command wrappers); version tracks manifest-dev's
dist/opencode/AGENTS.md OpenCode instructions file the plugin registers
dist/pi/prompts/*.md Pi prompt-template aliases (/do, /auto, /babysit-pr)
dist/codex/README.md, dist/opencode/README.md, dist/pi/README.md Per-host install and update instructions

Version bumps follow the repo's Versioning rules; this skill does not bump anything.

Version History

  • 5d3a066 Current 2026-10-19 18:04

    新增 setup-project 验证工具的分发同步逻辑,支持 TypeScript 版本的 verify 工具同步及校验。

  • 3fc997a 2026-09-22 22:24

    重构为宿主中立技能文本,将委托作为技能处理,分发系统直接读取源文件,不再针对特定主机重写。

  • 2ac487e 2026-08-20 08:55

Same Skill Collection

.claude/skills/auto-optimize-prompt/SKILL.md
.claude/skills/compress-prompt/SKILL.md
.claude/skills/harden-task-file/SKILL.md
.claude/skills/learn-from-session/SKILL.md
.claude/skills/optimize-prompt-token-efficiency/SKILL.md
.claude/skills/sync-claude-code-plugins/SKILL.md
claude-plugins/manifest-dev-tools/skills/babysit-pr/SKILL.md
claude-plugins/manifest-dev-tools/skills/eli5/SKILL.md
claude-plugins/manifest-dev-tools/skills/handoff/SKILL.md
claude-plugins/manifest-dev-tools/skills/manifest-to-goal/SKILL.md
claude-plugins/manifest-dev-tools/skills/prompt-engineering/SKILL.md
claude-plugins/manifest-dev-tools/skills/re-pitch/SKILL.md
claude-plugins/manifest-dev-tools/skills/review-pr-holistic/SKILL.md
claude-plugins/manifest-dev-tools/skills/review-pr-judgment/SKILL.md
claude-plugins/manifest-dev-tools/skills/review-pr-thread-verify/SKILL.md
claude-plugins/manifest-dev-tools/skills/review-pr/SKILL.md
claude-plugins/manifest-dev-tools/skills/review-prompt/SKILL.md
claude-plugins/manifest-dev-tools/skills/walk-pr/SKILL.md
claude-plugins/manifest-dev/skills/auto/SKILL.md
claude-plugins/manifest-dev/skills/check-pr/SKILL.md
claude-plugins/manifest-dev/skills/define/SKILL.md
claude-plugins/manifest-dev/skills/design/SKILL.md
claude-plugins/manifest-dev/skills/do/SKILL.md
claude-plugins/manifest-dev/skills/done/SKILL.md
claude-plugins/manifest-dev/skills/escalate/SKILL.md
claude-plugins/manifest-dev/skills/figure-out-team/SKILL.md
claude-plugins/manifest-dev/skills/figure-out/SKILL.md
claude-plugins/manifest-dev/skills/init-context/SKILL.md
claude-plugins/manifest-dev/skills/just-auto/SKILL.md
claude-plugins/manifest-dev/skills/just-do/SKILL.md
claude-plugins/manifest-dev/skills/next-ticket/SKILL.md
claude-plugins/manifest-dev/skills/orchestrate/SKILL.md
claude-plugins/manifest-dev/skills/poll-slack/SKILL.md
claude-plugins/manifest-dev/skills/review-design/SKILL.md
claude-plugins/manifest-dev/skills/review-writing/SKILL.md
claude-plugins/manifest-dev/skills/run-ticket/SKILL.md
claude-plugins/manifest-dev/skills/sweep-tickets/SKILL.md
claude-plugins/manifest-dev/skills/ticket-up/SKILL.md
claude-plugins/PLUGIN_TEMPLATE/skills/example/SKILL.md
claude-plugins/manifest-dev-tools/skills/teach-me/SKILL.md
claude-plugins/manifest-dev/skills/chat-surface/SKILL.md
claude-plugins/manifest-dev/skills/manifest-dev-help/SKILL.md
claude-plugins/manifest-dev/skills/review-code/SKILL.md
claude-plugins/manifest-dev/skills/setup-project/SKILL.md

Metadata

Files
0
Version
5d3a066
Hash
649e6c79
Indexed
2026-08-20 08:55

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-24 23:34
浙ICP备14020137号-1