Skip to main content

update

Update one or more skills or tracked repositories to the latest version.

skillshare update my-skill           # Update single skill
skillshare update a b c # Update multiple at once
skillshare update --group frontend # Update all skills in a group
skillshare update team-skills # Update tracked repo
skillshare update --all # Update everything
skillshare update my-skill --merge # Keep your edits and merge upstream changes into them
skillshare update agents --all # Update all tracked/updatable agents

When to Use​

  • A tracked repository has new commits (found via check)
  • An installed skill has a newer version available
  • You want to re-download a skill from its original source
$ skillshare update pdf
✓ Update pdf · from github.com/anthropics/skills/skills/pdf · 1.9s
✓ Audit no findings

Next
skillshare sync link the changes into your targets

What Happens​

For Tracked Repositories​

For Regular Skills​

Skills installed from a remote source are reinstalled from it. Skills installed from a local path (skillshare install /path/to/skill) are re-copied from that path, so update picks up changes made there; check reports when that path has changed.

Options​

FlagDescription
--all, -aUpdate all tracked repos/skills, or all agents when used as update agents --all. A tracked repo behind a followed source link is skipped with a warning, since it is your own checkout; update it by name
--group, -G <name>Update all updatable skills in a group, or all agents in an agent subdirectory
--force, -fDiscard local changes, proceed despite audit findings, and reinstall remote skills that are already at the upstream commit. It does not update a tracked repo checked out off its recorded branch; see Handling Conflicts
--mergeKeep the local changes to a skill or agent installed from a repository and merge the upstream changes into them; see Merging upstream changes. Cannot be combined with --force
--dry-run, -nPreview without making changes
--skip-auditSkip the security audit gate
--audit-threshold <t>, --threshold <t>, -T <t>Override update audit block threshold (`critical
--diffShow file-level change summary after skill/repo update
--audit-verboseShow detailed per-skill audit findings in batch mode
--pruneRemove stale skills (deleted upstream) instead of warning
--discoverAlso install skills added to a source repository since you last installed or updated from it; see Install New Skills. Cannot be combined with --dry-run
--project, -pUse project-level config in current directory
--global, -gUse global config (~/.config/skillshare)
--jsonOutput as JSON
--help, -hShow help

update agents supports: --all, --group, --force, --merge, --dry-run, --skip-audit, --audit-threshold / --threshold / -T, --json, plus --project / --global. It does not support --diff, --audit-verbose, --prune, or --discover.

JSON Output​

skillshare update --all --json
{
"updated": 3,
"skipped": 1,
"security_failed": 0,
"pruned": 0,
"dry_run": false,
"duration": "4.567s",
"items": [
{"name": "_team-skills", "type": "repo", "status": "updated"},
{"name": "my-skill", "type": "skill", "status": "updated"},
{"name": "another-skill", "type": "skill", "status": "updated"},
{"name": "local-only", "type": "skill", "status": "skipped"}
],
"new_skills": [
{"name": "pptx", "source": "https://github.com/anthropics/skills.git", "path": "skills/pptx"}
]
}

Possible status values: updated, merged, conflict, skipped, failed, security_blocked, and installed for a new skill that --discover installed. When an item fails, the error field is included. A remote skill skipped for its local changes is a skipped item with "error": "local changes since install". With --merge, a skill whose upstream changes were merged into its edits is a merged item and counts as updated; one that could not be merged is a conflict item whose error names the conflicting files, and counts as skipped.

When a batch update finds remote skills already at the upstream commit, it leaves them alone and counts them in an up_to_date field. The field is omitted when the count is zero.

new_skills lists the skills added upstream that the update recorded as seen without installing, in the same form as check --json: every new skill it found without --discover, and with --discover the ones the audit blocked or whose install failed. It is [] when there are none and with --dry-run. A later update or check no longer reports them, so a script that runs update --json should act on this list.

When tracked repos are declared in metadata but missing on disk, each is reported as a skipped repo item with a concise error (clone directory absent), and an aggregated missing_tracked_repos summary carries the names plus a one-shot rehydration hint:

{
"updated": 0,
"skipped": 1,
"items": [
{"name": "_team-skills", "type": "repo", "status": "skipped", "error": "clone directory absent"}
],
"missing_tracked_repos": {
"names": ["_team-skills"],
"hint": "Run 'skillshare install -g' to rehydrate tracked repositories, or 'skillshare uninstall <name> -g' to remove an unwanted declaration"
}
}

The missing_tracked_repos field is omitted when no tracked repos are missing.

Agent JSON Output​

skillshare update agents --all --json
{
"agents": [
{"name": "reviewer", "status": "updated", "source": "github.com/user/agents/reviewer.md"},
{"name": "team/tutor", "status": "up_to_date", "source": "github.com/user/agents/team/tutor.md"}
],
"dry_run": false,
"duration": "1.234s"
}

Possible agent status values include updated, merged, conflict, failed, skipped, up_to_date, update_available, dirty, drifted, local, and error. An error agent could not be checked, for example because its remote is unreachable or its metadata is unreadable. The command then exits with a non-zero code instead of reporting the agents as up to date.

Updating Agents​

Use the agents kind selector when you only want to update standalone .md agents:

skillshare update agents reviewer
skillshare update agents --group team
skillshare update agents --all -T high
skillshare update agents --all --json

Agent updates follow the same audit gate as skills:

  • tracked agent repos run git pull, then audit the updated repo
  • metadata-backed single-file agents reinstall from source, audit the staged .md, and only replace the local file on success

Update Multiple​

Update several skills at once:

skillshare update skill-a skill-b skill-c

Only updatable skills (tracked repos or skills with metadata) are processed. Skills not found are warned but don't cause failure. However, if any skill is blocked by the security audit gate, the batch command exits with a non-zero code.

Glob Patterns​

Skill names support glob patterns (*, ?, [...]) for batch operations:

skillshare update "core-*"              # Update all skills matching core-*
skillshare update "_team-?" # Single-character wildcard
skillshare update "core-*" "util-*" # Multiple patterns

Glob patterns match against the basename (last path component) of each skill or tracked repo. For example, "react-*" matches frontend/react-hooks because the basename is react-hooks.

Glob matching is case-insensitive: "Core-*" matches core-auth, CORE-DB, etc.

Shell glob protection

Always quote glob patterns ("core-*") to prevent your shell from expanding * into file names in the current directory.

Update Group​

Update all updatable skills within a group directory:

skillshare update --group frontend        # Update all in frontend/
skillshare update -G frontend -G backend # Multiple groups
skillshare update x -G backend # Mix names and groups

Local skills (without metadata or .git) inside the group are silently skipped.

A positional argument that matches a group directory (not a repo or skill) is auto-expanded:

skillshare update frontend   # Same as --group frontend
# 'frontend' is a group — expanding to 3 updatable skills
note

--all cannot be combined with skill names or --group.

Update All​

Update everything at once:

skillshare update --all

This updates:

  1. All tracked repositories (git pull)
  2. All skills with source metadata (reinstall when upstream changed)

update --all and update --group group remote skills by repository and clone each repository once. They leave alone any skill whose folder did not change upstream and count it as up to date. A skill whose folder contains a symlink is the exception: its files can change without the folder changing, so it is reinstalled whenever the upstream commit moves. A skill installed through a link to a folder, such as .agents/skills/<name>, is compared by the folder the link leads to. Several skills named in project mode (-p) work the same way. Use --force to reinstall every skill anyway. A single skill, and skills named in global mode, are always reinstalled. A reinstall from a repository subfolder that brings the same files leaves .metadata.json as it was, so a skills source under Git stays clean. A skill whose files you changed since install is skipped in every case until you add --merge or --force (see Handling Conflicts). When a repository cannot be fetched, its skills count as skipped and update prints a warning naming the repository and the error, with any credentials in the URL removed.

Only one skillshare process updates a git checkout at a time. When another update or dashboard is already updating the same tracked repo or git-installed skill, the update waits for it to finish. After a minute it gives up with another skillshare process is still updating <path>.

Example Output​

$ skillshare update --all

✓ Audit 3 skills, no findings

✓ Updated 4, 12 up to date, 1 skipped · 6.2s

Next
skillshare sync link the changes into your targets

When an update finds skills that were added to a source repository and are not installed, it says so above the summary and leaves them alone. The update records them as seen, so check and a later update --discover no longer list them; Next names an install command for each, by its path in the repository:

  2 new skills upstream were not installed

✓ Updated 4, 12 up to date · 6.2s

Next
skillshare sync link the changes into your targets
skillshare install github.com/acme/skills/skills/review install review
skillshare install github.com/acme/skills/skills/deploy install deploy

Missing Tracked Repositories​

If .metadata.json declares a tracked repo (tracked: true) but its clone directory is absent on disk — common on a fresh machine, since clone directories live in the managed .gitignore block — update --all no longer skips it silently. It reports each missing repo and points you to rehydrate:

! 1 tracked repo declared in metadata but missing on disk
! _team-skills clone directory absent
Run 'skillshare install -g' to rehydrate tracked repositories, or 'skillshare uninstall <name> -g' to remove an unwanted declaration

This applies to both global and project (-p) mode. To recreate the clones from metadata, run no-argument install (see Rehydrating After a Fresh Clone).

In global mode, you can instead run skillshare uninstall <name> -g to remove an unwanted declaration without a checkout; nothing moves to trash and there is no trash undo. Project mode suggests skillshare install -p and does not support declaration-only removal.

Install New Skills (--discover)​

update only moves the skills you already have. With --discover it also installs the skills that were added to their source repository since you last installed or updated from it:

skillshare check                      # See what is new upstream
skillshare update --all --discover # Update everything and install the new skills
skillshare update my-skill --discover # Scan only the source of my-skill
$ skillshare update --all --discover
...

New upstream
✓ pptx anthropics/skills · skills/pptx
✓ xlsx anthropics/skills · skills/xlsx
! docx anthropics/skills · skills/docx · name already in use
  • Which skills. The same ones check lists. With --all or --group, every source of the skills being updated is scanned; with names, only the sources of those skills.
  • Where they go. Each skill installs beside the skills already installed from its source, in their folder when they share one, otherwise at the top level of the skills source.
  • Security. Each one goes through the same install and audit as skillshare install. In a terminal, findings at or above the threshold ask whether to install anyway; without a terminal, or with --json, they block the skill, which is listed as ✗ with its first finding (every finding with --audit-verbose) and makes the command exit non-zero. Findings below the threshold are listed under the rows, named by skill. --skip-audit and -T apply as for an update. --force does not override the audit for these skills; Next names a skillshare install for each blocked one, which shows the findings and asks again in a terminal, or installs with --force once you have read them.
  • Name already in use. A skill whose name is taken by a skill you already have is skipped and listed; nothing is overwritten.
  • Once. The update moves the repository's record, so a skill that was installed, skipped or blocked is not offered again by the next check or update --discover. Next names the install for a blocked skill or one whose install failed; install a skipped one by hand with skillshare install.

--discover cannot be combined with --dry-run. It applies to skills; agents and tracked repositories are not scanned.

Stale Skill Cleanup (--prune)​

When an upstream repository renames or removes a skill, update detects it as stale and warns you:

Deleted upstream
! frontend/old-skill stale — no longer in the upstream repository
Run with --prune to remove them

Add --prune to automatically remove stale skills (moved to trash, not permanently deleted):

skillshare update --all --prune

check also reports stale skills:

skillshare check --all
# ! old-skill stale — no longer in the upstream repository
note

Tracked repositories (_repo) are not affected by --prune. When a tracked repo removes a skill internally, sync automatically cleans up orphan symlinks via PruneOrphanLinks.

Security Audit Gate​

Before publishing tracked updates, update audits an isolated candidate. The active checkout and existing target links keep serving the old content until approval:

  • Tracked repos (git pull) pull and scan in a private checkout at the active threshold (audit.block_threshold, default CRITICAL), then publish the exact audited commit without another upstream pull
  • Regular skills (reinstall path) use the same threshold policy
  • For all update types, risk label/score is displayed for review context
→ risk: LOW (12/100)

Interactive Mode (TTY)​

When findings are detected at or above the active threshold, you're prompted to decide. This applies to tracked repos, to regular skills and to agents, including each skill of update --all and update --group:

! my-skill: 1 finding at HIGH or above
[HIGH] Source repository link detected — may be used for supply-chain redirects (SKILL.md:5)
? Apply anyway? Yes No
  • Yes — Accept the update despite findings. The findings are recorded as accepted (see Accepted Findings), so the next update of that skill does not ask about them again
  • No (default) — Discard the candidate and print Cancelled. Nothing was applied.. The installed skill or checkout stays as it was. The command still exits with a non-zero code. The closing summary of update --all and update --group counts the skill as declined instead of listing it again under the blocked skills

--force still overrides without asking, and --skip-audit still skips the scan.

Non-Interactive Mode (CI/CD)​

Without a terminal, and with --json, nothing is asked: blocking findings reject the candidate and the command exits with a non-zero code. Scan errors also leave the active checkout and metadata unchanged, even with --force. Publication is not an atomic multi-file switch.

# Bypass the audit gate when you trust the source
skillshare update --all --skip-audit
caution

--skip-audit disables the security scan entirely. Use it only when you trust the source or have an external audit process. It does not let a tracked repository or a whole-repository skill take a new commit with a symlink that leads outside the repository or into its .git folder: that update stops with an error, and --force does not override it.

Accepted Findings​

When you override the gate with --force (or answer y at the prompt), the findings you accepted are recorded in .metadata.json under audit_accepted. Later updates of the same skill no longer block on those exact findings, so you do not have to repeat --force on every update --all. Force Retry on the dashboard's Updates tab records them the same way, and both honor findings accepted from either one. skillshare audit --respect-accepted and the dashboard's Audit page honor them too; see audit — Accepted findings.

  1 previously accepted finding skipped

Acceptance keys ignore line numbers and include the rule, file, matched text, and any detector-specific evidence. For whitespace-padding, changed padded content produces a new key; density findings use all eligible file content as evidence. New findings or changed evidence block again. This suits skills that legitimately quote attack strings as examples (security scanners, red-team docs) while still catching new payloads in later versions.

You can override threshold per command with --audit-threshold, --threshold, or -T:

skillshare update _team-skills --threshold high
skillshare update --all -T h

File Change Summary (--diff)​

Use --diff to see a file-level change summary after each update:

skillshare update team-skills --diff
skillshare update --all --diff

For tracked repositories, the diff uses git diff and includes line-level statistics:

Files changed
~ SKILL.md (+12 -3)
+ scripts/deploy.sh (+45 -0)
- old-helper.sh (+0 -22)
~ utils/format.md (+5 -2)

For regular skills (installed from a remote source), the diff compares file hashes before and after the reinstall:

Files changed
~ SKILL.md
+ new-helper.sh

Markers: + added, - deleted, ~ modified. Shows up to 20 files; additional files are summarized as "... and N more file(s)".

Handling Conflicts​

If a tracked repo has uncommitted changes:

# Option 1: Commit your changes first
cd ~/.config/skillshare/skills/_team-skills
git add . && git commit -m "My changes"
skillshare update _team-skills

# Option 2: Discard and force update
skillshare update _team-skills --force

If skillshare cannot read the repo's git status, the update fails for that repo with failed to check git status; --force skips the check.

A tracked repo records the branch it was cloned on: the one named with --branch, or the remote's default branch. When its checkout is on another branch or a detached HEAD, update does not pull, because the pull would merge upstream into the branch you have checked out. It skips the repo with the reason, such as checked out feature, tracking main, and exits with an error. This holds with --all and with --force, and --dry-run reports the repo the same way. Switch back and update again:

cd ~/.config/skillshare/skills/_team-skills
git switch main
skillshare update _team-skills

install --track --update refuses the repo the same way, the dashboard's Updates tab skips it with the same reason, and check reports it as an error. The dashboard's tracked repositories list shows the branch each repo records and marks such a repo On another branch. A repo whose metadata records no branch keeps following the branch it has checked out.

A skill installed from a repository is protected the same way. When its files no longer match the ones recorded at install time, update skips it and reports local changes since install; skillshare check lists it as modified, and skillshare check <name> --diff shows what you changed. Copy your edits elsewhere if you want to keep them, then discard them:

skillshare update my-skill --force

To keep your edits and take the upstream changes as well, use --merge instead; see Merging upstream changes.

On the dashboard's Updates tab, the skill shows Modified locally and a View changes button that shows its changes and offers Merge or Force overwrite local edits; you can also tick Force overwrite local edits before updating it, or use Merge or Force Retry on the skipped row. Updating it from the skill's own page shows the changes and offers Merge beside discarding them. update <name> --dry-run reports the skill as one it would skip. A modified skill that was also deleted upstream is kept until you add --force, even with --prune.

An agent edited since install is protected as well. When a newer version would overwrite the edits, the update is skipped: skillshare check agents reports the agent with update available upstream, and update agents lists it under Modified locally. Merge with skillshare update agents <name> --merge, or on the dashboard use Merge or Force Retry on the skipped row, or update from the agent's own page.

Merging upstream changes​

--merge combines your edits with upstream's instead of choosing one. It fetches the commit the skill or agent was installed at and uses it as the base of a 3-way merge, file by file, like git merge:

$ skillshare update my-skill --merge
✓ Update my-skill · merged local changes · from github.com/team/skills/my-skill
  • A file only you changed keeps your version, a file only upstream changed takes upstream's, and a file both changed is merged line by line.
  • When both sides changed the same lines, deleted a file the other side changed, or changed the same binary file, nothing is written. The skill stays as it was, update lists the conflicting files and exits with an error, and you can resolve it by hand or discard your edits with --force.
  • After a clean merge the skill still differs from what upstream published, so it stays modified: a plain update keeps skipping it, and the next update --merge merges from the new version.
  • When upstream changed nothing in the skill, the files are left alone and the skill is reported as up to date.
  • Only files take part. A symlink to a directory or an empty directory you added to the skill is not kept, as with any update.
  • A skill with no local changes is updated normally. --merge does not apply to tracked repositories (_repo): commit your changes there and let git pull merge them.

update --all --merge and update --group <name> --merge merge every modified skill and update the rest; the ones that conflict are listed under Not merged. --merge needs the installed commit to rebuild the base: a skill whose recorded files cannot be reproduced from it fails with cannot rebuild the installed version to merge against. A skill behind a followed source link is your own checkout; merge there with git.

After Updating​

Run skillshare sync to distribute changes to all targets:

skillshare update --all --diff   # Update with file-level change summary
skillshare sync

Project Mode​

Update skills and tracked repos in the project:

skillshare update pdf -p              # Update single skill (reinstall)
skillshare update a b c -p # Update multiple skills
skillshare update --group frontend -p # Update all in a group
skillshare update team-skills -p # Update tracked repo (git pull)
skillshare update --all -p # Update everything
skillshare update --all -p --dry-run # Preview
skillshare update --all -p --diff # Update with file change summary
skillshare update --all -p --skip-audit # Skip security audit gate

How It Works​

TypeMethodDetected by
Tracked repo (_repo)git pull_-prefixed folder with a .git/ directory
Remote skill (with metadata)Reinstall from source when upstream changedListed in .metadata.json
Local-path installRe-copy from the recorded pathListed in .metadata.json with type: local
Local skillSkippedNot listed in .metadata.json

The _ prefix is optional, on the last path segment too — skillshare update team-skills -p auto-detects _team-skills, and skillshare update devops/team-skills -p finds a repo installed with --into devops at devops/_team-skills.

Lockfile​

update -p is how a pinned commit moves forward. Each skill or tracked repo that lands on a new commit gets its entry in .skillshare/skills.lock.json rewritten; skills that did not change keep their pin. Commit the lockfile so teammates get the same commit on their next skillshare install -p. See Lockfile.

Handling Conflicts​

Tracked repos with uncommitted changes are blocked by default:

# Option 1: Commit changes first
cd .skillshare/skills/_team-skills
git add . && git commit -m "My changes"
skillshare update team-skills -p

# Option 2: Discard and force update
skillshare update team-skills -p --force

If skillshare cannot read the repo's git status, the update fails for that repo with failed to check git status; --force skips the check.

A tracked repo checked out on another branch than the one it records is skipped, as in global mode.

Typical Workflow​

skillshare update --all -p
skillshare sync
git add .skillshare/ && git commit -m "Update remote skills"

See Also​