Skip to content
AI Skills Central

Type to search Agent Skills, workflows, tutorials, tools and the glossary.

Agent Skills guide

How to update Agent Skills safely: check, diff, re-pin and roll back

Find which installed skills have updates, read the diff before you take it, move the pin, test and roll back, with npx skills, gh skill, plugins and claude.ai.

By Intermediate · Updated 21 November 20269 min read
Bookmark

Bookmarks are kept in your free account, so you can find this page again on any device.

Sign in to bookmark
On this page

To update an Agent Skill safely, treat it like a dependency upgrade: find out which skills have a newer version, read the diff between the commit you installed and the new one, move the pin to the new commit only if the diff is acceptable, run the prompts you use the skill for, and keep the old commit so you can go back. npx skills check and gh skill update --dry-run tell you what has changed; neither tells you whether the change is safe.

A skill is instructions and often scripts that run with your agent’s permissions, so an update can change what your agent does without any code in your repository changing. This guide covers the consumer side: the person or team that installed someone else’s skill, or their own, and wants to move it forward. If you publish skills and want to version them so others can update cleanly, how to share an Agent Skill covers tags and changelogs. Commands were checked against the skills CLI and GitHub CLI documentation, Claude Code’s plugin and skills documentation, Anthropic’s Claude API skills guide and the Claude Help Center on 21 November 2026, and the npx skills commands were run with version 1.9.0. New to skills? Start with what Agent Skills are.

Why skill updates need a review step

Three things make a skill update riskier than it looks:

  • The description can change when the skill loads. A rewritten description can make a skill fire on prompts it ignored before, or stop firing on the ones you relied on.
  • Scripts can be added. A skill that was plain Markdown when you read it can ship a scripts/ folder in a later commit, and an agent runs those with your permissions.
  • Some channels update without asking. Plugin marketplaces with auto-update on, skills shared with you on claude.ai and organisation skills all move to the new version without you installing anything.

The security checklist for third-party skills says to install the version you read. Updating safely is the same rule applied again: read the new version before you run it.

Step 1: find out what has an update

How you check depends on how the skill was installed.

Installed with Check for updates Apply them
npx skills add npx skills check npx skills update [skills...], or add again at a new commit
gh skill install gh skill update --dry-run gh skill update [skills...], or --all
Claude Code plugin /plugin, Installed or Marketplaces tab Update now, claude plugin update <plugin>@<marketplace>
claude.ai upload No update check: you hold the only copy Delete and upload the new zip
Claude API (/v1/skills) Compare the version IDs you pin with the skill’s versions POST /v1/skills/{skill_id}/versions, then move the pin
Copied folder git log in the upstream repository Copy the new folder over

npx skills

npx skills check compares project skills with skills-lock.json and the source. According to the skills CLI reference it exits with code 1 when any skill has an update or local changes, so it can gate CI. npx skills list (ls) reports each skill as tracked, modified, untracked or missing; modified means the files no longer match the hash in the lock.

When we ran version 1.9.0, a skill added at a full 40-character commit SHA (owner/repo@<sha>) was reported as up to date by check and left alone by update, even though the upstream branch had moved on. That is what you want from a pin, but it means check will not tell you about new commits for pinned skills. Check those by comparing your pinned commit with the upstream default branch (Step 2).

npx skills check           # exit code 1 if anything changed or has an update
npx skills ls --json       # status per skill: tracked, modified, untracked, missing
npx skills update -p -y    # update project skills that are not pinned

gh skill

gh skill install writes source tracking metadata into the installed SKILL.md, and gh skill update compares the local tree SHA with the remote repository. It scans the skills folders of every agent it knows, in project and user scope. Skills installed with --pin are skipped with a notice; --unpin clears the pin and includes them. --dry-run reports updates without touching files, and --force re-downloads even when nothing changed, overwriting local edits but not removing files you added.

gh skill update --dry-run   # list available updates, change nothing
gh skill update my-skill    # update one skill (asks before applying)

Claude Code plugins

Skills that came in a plugin update with the plugin. Plugins from claude-plugins-official and the other official marketplace names (except knowledge-work-plugins and first-party-plugins) auto-update by default, as do marketplaces added from claude.ai; every other marketplace, including third-party and community ones, does not. You can switch auto-update per marketplace on the Marketplaces tab in /plugin. To update one plugin, choose Update now on the Installed tab or run claude plugin update <plugin>@<marketplace>. Note that claude plugin marketplace update with no name refreshes the listings but leaves your installed plugins at their current versions. After an update, run /reload-plugins or start a new session.

Step 2: read the diff before you take it

You need two commits: the one you installed and the one you would move to. skills-lock.json records the first for npx skills installs; directory listings on this site record the commit we reviewed. Then compare only the skill’s folder:

git clone --filter=blob:none https://github.com/<owner>/<repo>.git
cd <repo>
git log --oneline <old-sha>..<new-sha> -- skills/<name>
git diff --stat <old-sha> <new-sha> -- skills/<name>
git diff <old-sha> <new-sha> -- skills/<name>

If you prefer not to clone, gh api repos/<owner>/<repo>/compare/<old-sha>...<new-sha> returns the changed files, and the same range in the browser is https://github.com/<owner>/<repo>/compare/<old-sha>...<new-sha>.

Read the diff in this order:

  1. Frontmatter. A changed description changes triggering. New fields such as allowed-tools (a spec field) or client extensions change what the skill may do without asking.
  2. New or changed scripts. Any new file under scripts/, any new network call, package install, credential read or write outside the working directory gets the same scrutiny as a first install. The workflow to scan a skill before installing lists the patterns to grep for, and skill scanner can run on the new commit.
  3. Renamed or removed files. A reference file the body points to that no longer exists (or changed case) makes the skill fail quietly.
  4. Instructions. Read the body changes as you would a pull request to your own repository: does the skill still do the job you installed it for?

Step 3: move the pin and test

Move to the new commit explicitly rather than by updating to whatever the branch head is today:

npx skills add <owner>/<repo>@<new-sha> --skill <name> -a claude-code
gh skill install <owner>/<repo> <name> --pin <new-sha>

Commit the change to skills-lock.json (or the skill folder) in its own pull request, so the diff you read and the version your team runs are reviewed together.

Then run the prompts you actually use the skill for, and one near miss that should not trigger it. If you kept an eval set when you first adopted the skill, run it against both versions; testing and evaluating Agent Skills covers how to build one, and skill creator can run a with-and-without comparison for you. In Claude Code, edits to SKILL.md under ~/.claude/skills/ or the project’s .claude/skills/ are picked up in the running session; if a skill does not appear, run /reload-skills, and restart after renaming a skill.

Step 4: keep a way back

Rolling back is easy if you kept the old commit and hard if you did not.

  • npx skills: run add again with the old SHA. If someone edited the installed files, check reports it and npx skills install --force restores the files recorded in the lock.
  • gh skill: install again with --pin <old-sha>.
  • Plugins: pin the marketplace itself to a tag when you add it (/plugin marketplace add your-org/plugins#v1.2.0), and turn off auto-update for marketplaces you do not control.
  • Claude API: keep requests pinned to a version ID (skver_...) and move the pin back. latest follows every new upload, so an upload by a colleague changes production at once; Agent Skills in the Claude API covers versions in detail.
  • claude.ai: download the skill (the “…” menu in Customize > Skills, then Download) before you replace it, so you can upload the old zip again.

Updates in the Claude apps and organisations

The Claude apps have no update command, and what happens depends on how the skill reached you, according to the Claude Help Center on 21 November 2026:

  • Skills you uploaded stay as they are until you delete them and upload a new zip. Download the current one first.
  • Skills shared with you are view-only, and you get the owner’s updated version at next use. If you depend on one for something that matters, ask the owner to tell you before changing it, or ask for a copy you control.
  • Skills published to your organisation go through review again when the author publishes a new version, and users stay on the approved version until it is approved. Reviewers see what changed since the published version and, on Enterprise plans with scanning on, the scan result. Approving a version updates everyone who uses the skill.

Claude Code also loads skills from your claude.ai account when you sign in with it (version 2.1.273 or later): it downloads them into ~/.claude/skills/synced/ and checks for changes about every 10 minutes during active work. Edits you make to those synced files are not uploaded and can be overwritten by the next sync, so make changes on claude.ai instead. Setting syncClaudeAiSkills to false turns the sync off on a machine.

A short policy for teams

  1. Pin every third-party skill to a full commit SHA, and record it where people can see it (lock file, marketplace entry or a README).
  2. Turn auto-update off for marketplaces you do not control; leave it on for your own reviewed marketplace if merges to it need review.
  3. Update on a schedule rather than whenever, one skill per pull request, with the diff read and the result of the test prompts noted.
  4. Run npx skills check in CI if you use the lock file, so local edits to installed skills do not slip through.
  5. Keep the previous commit or zip until the new version has been used for a while.

For a whole team, a private plugin marketplace turns these steps into pull requests on one repository. If you are adding a skill for the first time rather than updating one, start with how to install Agent Skills and the security checklist.

Check your understanding

Updating Agent Skills safely quiz

Why skill updates need review, checking for updates, reading the diff, moving the pin, rolling back and Claude app updates.

10 questions · pass mark 70%

Question 1 of 100 answered
  1. Why can a skill update change your agent's behaviour even when no code in your repository changed?
Back to top