sync-tools

GitHub

用于同步和验证插件技能文件,确保Codex分发版与源码一致。通过脚本生成副本并检测漂移,维护各宿主平台的打包配置和版本信息。

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

Trigger Scenarios

修改了 claude-plugins/*/skills 目录下的文件后 需要检查分发版技能文件是否存在漂移时

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 check it 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)

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

  • 3fc997a Current 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/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/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/review-code/SKILL.md

Metadata

Files
0
Version
d76241f
Hash
e20ef072
Indexed
2026-08-20 08:55

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-29 09:54
浙ICP备14020137号-1