sync
Use when the user says sync, when a session reminder says packages are stale, or when a skill script prints 'blocked: package ... Run the sync skill'.
- License 许可
- MIT
- 最近更新
- 2026-11-06
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- sync
- owner
- r&d@example.com
- description
- Use when the user says sync, when a session reminder says packages are stale, or when a skill script prints 'blocked: package ... Run the sync skill'.
- data_sources
- none
02 资源文件 2
- 参考文档CHANGES.md497 B
- 参考文档examples/run.md265 B
03 SKILL.md 正文
sync
For each installed package, download that package's current.json with download_file_content, by the current_file_id in ~/.skills-hub/state.json. Then run:
python3 ~/.skills-hub/framework/current/tools/sync.py --root ~/.skills-hub --current <current.json download>
A current.json comes back inline: write its base64 content to a file and pass that. If it says the package is up to date, stop there for that package. Otherwise download the zip by zip_file_id the same way and run it again with --zip <zip download>, passing the file the host saved the result to. sync.py decodes both forms.
Never retype a zip's base64. If a zip comes back inline in Claude Code, stop and tell the user to add "env": {"MAX_MCP_OUTPUT_TOKENS": "2000"} to their Claude Code settings and start a new session.
A local dry-run directory works too: --from-release <dir>. If sync says the package is below min_version, finish the sync before using that package's skills. Then run:
python3 ~/.skills-hub/framework/current/tools/doctor.py --root ~/.skills-hub
On Cursor, then run:
python3 ~/.skills-hub/framework/current/tools/link.py --root ~/.skills-hub
On Claude Science, ~/.skills-hub means the workspace root in SKILLS_HUB_ROOT (START HERE); downloads arrive in the kernel, so decode content there and write the bytes to a file. After a package changed, republish its changed skills with host.skills (edit each file, then publish): the published copies are read-only and do not follow the install root.
If python3 --version does not print Python 3.9 or later, or on a Mac where xcode-select -p fails (there python3 opens an install dialog; never run it), run each command above as uv run --python-preference only-managed --script <tool>.py with the same arguments.
If sync printed kept local edits to ... in <dir>, the user had changed that installed skill. Tell them their version is saved in <dir>, the installed skill is now the released one, and they can submit their changes with the publish skill. Never copy the saved files back over the installed package. A was removed locally line means the update brought back a file they had deleted.
Report the doctor output. Use the downloaded files. Do not retype the zip.
04 同仓库更多 Skills
spike-hello
Spike test skill. Use only when the user says the exact phrase 'run spike hello'.
__SKILL__
__DESCRIPTION__
publish
Use when the user wants to submit a skill to a package.
feedback
Use when the user wants to record whether a skill worked, or when a Skills Hub install or sync did not go smoothly.
shared-terms
Fixture skill. Use only when the user says the exact phrase 'run shared terms'.
block-notes
Fixture skill. Use only when the user says the exact phrase 'run block notes'.