sync-skills
Skill1 starsChanged 3 months agoMITView on GitHub
Sync local Claude Code skills from GitHub repositories into ~/.claude/skills. Use this whenever the user asks to update, refresh, fetch, pull, or install skills from anthropics/skills, herohua/skills, or similar skill repositories, especially for commands like /sync-skills.
- Deletes or force-pushes
15 other projects use a version of this.
Adopted by
Most recently taken up by
- t0ddharris/compound-marketingtheir own version, first seen Oct 5, 2026
- morodomi/dev-crewtheir own version, first seen Oct 5, 2026
- Terum-Inc/terum-skillstheir own version, first seen Sep 20, 2026
- andrevictor23-tech/claude-skillstheir own version, first seen Aug 11, 2026
- mimoccc/my-claude-skillstheir own version, first seen Aug 1, 2026
- t0ddharris/claude-code-skillstheir own version, first seen Jul 6, 2026
Other versions15 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 15
- Tasihi89/sync-skills★ 29same name
- Terum-Inc/terum-skills★ 27same name
- qa-aman/claude-skills★ 20same name
- madnpc/skills★ 3same name
- paulo-yamagishi/claude-code-setup★ 2same name
- t0ddharris/claude-code-skills★ 2same name
- GalvinGao/skills★ 1same name
- GuanqiHe/claude-skills★ 1same name
- mimoccc/my-claude-skills★ 1same name
- morodomi/dev-crew★ 1same name
5 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- bug-reportSkill
- code-coverage-policySkill
- coding-agents-setupSkill
- repo-agents-setupSkill
- review-designSkill
- review-prSkill
- self-reviewSkill
- threat-modelSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. 0 are common, 6 are distinctive, and 10 are very specific to this project.
0
Common
Most of the 13 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Update the local skills directory at ~/.claude/skills from these repositories:
- Very specific: line 19
Keep local skills current while avoiding accidental deletion of unrelated directories.
- Very specific: line 23
Only sync directories that contain a SKILL.md file.
- Distinctive: line 27
Do not delete directories that are not being replaced from the current source repo.
- Very specific: line 28
Use gh for fetching or cloning.
- Very specific: line 29
Do not assume Python is installed.
- Very specific: line 30
If gh authentication fails, stop and ask the user to run gh auth login.
- Distinctive: line 33
Prefer replacing each targeted skill directory atomically by deleting that one directory and copying in the refreshed version, but only …
- Distinctive: line 37
When invoked without extra arguments, sync both repositories:
- Distinctive: line 42
If any skill names overlap between the two repos, stop and ask the user whether to allow those specific cross-source overwrites.
- Very specific: line 43
If approved, copy each official skills/<name> folder that contains SKILL.md into ~/.claude/skills/<name>.
- Very specific: line 49
If $ARGUMENTS mentions one source only, support it:
- Very specific: line 54
If $ARGUMENTS is ambiguous, ask the user whether to sync official, personal, or both.
- Distinctive: line 58
Use bash commands like these, adjusted only if needed:
- Very specific: line 74
Run an overlap check first using gh --jq and shell.
- Distinctive: line 84
If nothing was synced because authentication or repository access failed, say so plainly and stop.
“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Sync Skills
Update the local skills directory at ~/.claude/skills from these repositories:
- Official skills:
https://github.com/anthropics/skills - Personal skills:
https://github.com/herohua/skills
This skill is for the user's local environment. Prefer generic home-folder references such as ~/.claude/... in user-facing text, and avoid exposing the account name or absolute home path.
Goal
Keep local skills current while avoiding accidental deletion of unrelated directories.
Safety rules
- Only sync directories that contain a
SKILL.mdfile. - For
anthropics/skills, only sync directories under the repository'sskills/subdirectory. - For
herohua/skills, only sync top-level directories that containSKILL.md. - Preserve all non-target directories in
~/.claude/skills. - Do not delete directories that are not being replaced from the current source repo.
- Use
ghfor fetching or cloning. - Do not assume Python is installed. Prefer
gh --jqand shell for overlap detection and sync steps. - If
ghauthentication fails, stop and ask the user to rungh auth login. - Same-source refresh is allowed without confirmation: official skills may overwrite their own local copies, and personal skills may overwrite their own local copies.
- Cross-source overwrite is not allowed without confirmation. If a skill name exists in both repos, or the current sync would replace a skill that belongs to the other source, stop and ask the user before proceeding.
- Prefer replacing each targeted skill directory atomically by deleting that one directory and copying in the refreshed version, but only after the overwrite rules above are satisfied.
Default behavior
When invoked without extra arguments, sync both repositories:
- Clone
anthropics/skillsto a temporary directory. - Clone
herohua/skillsto a temporary directory. - Build the set of official skill names and personal skill names using
gh --jqand shell. - If any skill names overlap between the two repos, stop and ask the user whether to allow those specific cross-source overwrites.
- If approved, copy each official
skills/<name>folder that containsSKILL.mdinto~/.claude/skills/<name>. - Then copy each personal top-level
<name>folder that containsSKILL.mdinto~/.claude/skills/<name>. - Print a concise summary of synced skill names and any confirmed overlap decisions.
Optional behavior
If $ARGUMENTS mentions one source only, support it:
officialoranthropics: sync onlyanthropics/skillspersonalorherohua: sync onlyherohua/skills
If $ARGUMENTS is ambiguous, ask the user whether to sync official, personal, or both.
Recommended commands
Use bash commands like these, adjusted only if needed:
Sync official skills
target_dir="$HOME/.claude/skills" && tmpdir=$(mktemp -d) && gh repo clone anthropics/skills "$tmpdir/skills-repo" -- --depth=1 && for d in "$tmpdir/skills-repo/skills"/*; do if [ -d "$d" ] && [ -f "$d/SKILL.md" ]; then name=$(basename "$d"); rm -rf "$target_dir/$name"; cp -R "$d" "$target_dir/$name"; printf 'synced %s\n' "$name"; fi; doneSync personal skills
target_dir="$HOME/.claude/skills" && tmpdir=$(mktemp -d) && gh repo clone herohua/skills "$tmpdir/personal-skills" -- --depth=1 && for d in "$tmpdir/personal-skills"/*; do if [ -d "$d" ] && [ -f "$d/SKILL.md" ]; then name=$(basename "$d"); rm -rf "$target_dir/$name"; cp -R "$d" "$target_dir/$name"; printf 'synced %s\n' "$name"; fi; doneSync both in sequence
Run an overlap check first using gh --jq and shell. If there is no cross-source overlap, sync the official repo first, then the personal repo.
Reporting back
After syncing, report:
- Which repo or repos were synced
- Which skill directories were updated
- That non-target directories were preserved
If nothing was synced because authentication or repository access failed, say so plainly and stop.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

