Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Sync Skill Upstreams?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/bolens-sync-skill-upstreams)
---
name: sync-skill-upstreams
description: Check upstream revisions or import reviewed changes into agent-skills hard forks. Preserve local changes, licenses, and invocation policy.
---
# Sync skill upstreams
Work in the canonical `agent-skills` repository. Read `UPSTREAMS.json`, the target `UPSTREAM.md`, its `SKILL.md`, repository guidance, and commits since its last audited upstream update.
## Audit
Run `python3 scripts/audit-upstreams.py` to compare exact audited commits with tracked branches. An advanced branch is only an update candidate. Do not change the audited reference until its subtree has been reviewed and imported.
Clone or fetch the candidate into an isolated temporary directory. Review the complete old-upstream-to-new-upstream diff, then compare the candidate subtree with the maintained fork. Check executable code, dependencies, permissions, network access, destructive behavior, trigger expansion, host assumptions, licenses, generated artifacts, and renamed or removed paths. Use `sensitive-info-audit` on imported content.
## Import
Update only the upstream-owned subtree. Preserve every `preserve_paths` entry and reapply each documented `local_changes` item from `UPSTREAMS.json`. Treat conflicts as review work, not permission to discard either side. Keep `UPSTREAM.md` generated by this repository.
Before copying a subtree, read its license and the applicable ancestor licenses
at the exact candidate revision. Check exceptions for bundled code and assets.
Retain the full license, copyright, and applicable NOTICE text inside the copied
skill, even when upstream stores them at its repository root. Preserve the
recorded `license.path` across imports and verify its bytes against
`license.upstream_path` at the audited revision. Update the SPDX identifier and
SHA-256 only after reviewing changed terms. A provenance link or hard-fork label
does not replace a required license copy. Keep modification notices in changed
files when required, including Apache-2.0 files. If the source has no applicable
license or its terms do not permit the intended use, leave that import pending.
For independently bundled material, retain its own notices and record the scope
in the skill's third-party notices. Check generated artifacts as well as source
files. Do not assume the parent project's license grants rights to brand marks
or overrides share-alike, non-commercial, or source-distribution conditions.
Run the upstream skill's focused checks when they are self-contained, followed by `make check`. Record unavailable monorepo-only checks precisely. After the candidate passes, update `audited_ref`, regenerate provenance, inspect the complete repository diff, and commit the upstream import separately from unrelated local changes.
Never let the scheduled audit or a dependency bot merge upstream skill content automatically. Publishing, pushing, or changing installed links still requires the authority granted by the user's request.
When the requested import also includes PR follow-through or release preparation or publication, automatically use [babysit](../babysit/SKILL.md) once the PR exists or release preparation begins. Carry the reviewed upstream diff, preserved local changes, and check evidence into that workflow. A drift audit or local import alone does not start delivery.