Update Agent Skills

VerifiedCaution

Maintain release communication and update every explicitly requested Agent Skill library with provenance awareness, without confusing scope, agent, or channel.

Sby Skills Guide Bot
DevOpsAdvanced
8/29/2026
Claude CodeCursorCodex
#agent-skills#release-management#skill-sync#provenance#cli

Recommended for

Automated summary

Updates Agent Skill libraries on the explicitly requested planes, inventorying existing installs first and distinguishing the CLI channel from native plugins and manual copies.

Strengths

  • Requires a machine-readable inventory (`npx skills list --json`, global and project) before any write, plus a deduplicated target manifest of machine × scope × agent × path.
  • Tracks provenance carefully (CLI-managed, native plugin, manual copy, symlink) and keeps plugin identities separate from standalone bare skills.
  • Enforces a release communication gate: changelog, catalogue README, release notes and agent update guidance must exist before users are told to update.
  • Refuses to act without explicit scope, machine and agent-set authorization, and plans to report partial results.

Limitations

  • The file appears truncated (ends mid-sentence on "Re-i…"), so the post-write verification steps are incomplete.
  • Heavily dependent on the JSON output of `npx skills`, whose update command has no agent selector.
  • Does not publish or create releases; the target's publishing workflow must run first.
When to use it

Use it once a skill has been released and you need to bring several installs or scopes to that released version without losing provenance.

When not to use it

Don't use it to publish unreleased source or to mutate local skill libraries when no scope was explicitly requested.

Security analysis

Caution
Quality score80/100

The skill is a maintenance workflow that legitimately needs Bash and package-runner access to inventory and refresh installed skill libraries. Nothing in it exfiltrates data, pipes remote scripts into a shell, disables safety checks, or obfuscates payloads; in fact it repeatedly requires explicit user scope, forbids deleting skills that vanish upstream, and demands confirmation before destructive replacement. The residual risk is inherent to running `npx` update/add commands with `--yes` across global and wildcard agent scopes, so it is rated caution rather than safe.

Findings
  • •Uses Bash alongside `npx skills ... --yes` invocations, which download and execute third-party CLI/package code without interactive prompts
  • •`--agent '*'` and `--global` scope expansion could touch many installed skill directories if a user follows instructions loosely
  • •Instructions describe destructive replacement of unmanaged copies, though they mitigate it by requiring explicit confirmation and path disclosure
How this analysis is made

Examples

Sync everything on this machine
Update my agent skills everywhere on this machine. Start by running `npx skills list --global --json` and `npx skills list --json`, show me the deduplicated target manifest (scope, provenance, path, consumers), and then update only the skills I confirm.
Refresh project-scoped skills after a release
We just released v1.2.0 of the `pdf-tools` skill. Verify the changelog, README and release notes point to the published source, then update the project-scoped install with `npx skills update pdf-tools --project --yes` and report which agent projections actually changed.
Fix release communication first
Before telling anyone to update, check that the changelog is newest-version-first and that the release notes explain what changed, who should update, and whether a restart or migration is needed.

name: update-agent-skills description: "Update Agent Skills across every requested local plane." license: MIT compatibility: "Agent Skills-compatible agents; the generic Skills CLI for managed project/global installs; native plugin/package updaters or manual artifact channels where applicable." metadata: "group=workflow; lifecycle=release; version=1.0.0; author=crissmoldovan" allowed-tools: Read Write Grep Glob Bash Agent Workflow

Update Agent Skills

Maintain release communication and update every explicitly requested Agent Skill library without confusing one scope, agent, or channel for all of them. This skill is repository/account agnostic. It does not authorize publication, a new release, or mutation of an unmentioned machine, project, plugin, upload, or remote target.

When to Use

  • “Update my skills,” “sync this skill everywhere,” or “bring all my agents to the released version.”
  • A released skill changed and its changelog, catalogue README, release notes, or update guidance must be corrected before users are encouraged to update.
  • Installed project/global/native/manual copies need a provenance-aware refresh.

Do not use to publish unreleased source; use the target's publishing workflow first. Do not mutate real local libraries unless the user explicitly requests the scope, machine, agent/channel set, or “all supported agents on this machine.”

Release Communication Gate

Before encouraging an update, verify the authoritative release exists. Maintain these human and agent surfaces when they are part of the named source repository:

  1. Changelog: newest version/date first; outcomes, compatibility or migration, and affected users—not a commit list.
  2. Repository/catalogue README: exact skill description, source, install and update commands, scope behavior, and any native/manual alternatives.
  3. Release notes: human-readable “what changed / who should update / how to update / restart or migration needed.” A tag or generated diff is not release notes.
  4. Agent-facing update guidance: an executable prompt that inventories first, preserves provenance and namespaces, updates only requested planes, verifies readback, and reports partial results.

Encourage users and agents to update only after those surfaces resolve to the published source. Communication is not authorization to update their machines.

Inventory Every Requested Plane

Resolve the published source and literal skill identities. Then inventory both Skills CLI scopes in machine-readable form:

npx skills list --global --json
npx skills list --json

Record scope, source provenance, managed/unmanaged ownership, install path, copy/symlink form, and every consuming agent projection. Also discover:

  • native plugin/package channels and their namespaces/versions;
  • manual/upload/raw-file channels;
  • remote machines, containers, browser-only agents, and other runtimes;
  • unsupported clients reported by the owning installer.

Before writes, present a deduplicated target manifest: machine × scope/profile × agent/channel × physical path × mechanism. Several agents may consume one shared physical store; update it once and report every covered consumer. “All supported agents” authorizes only the discovered set shown in this manifest—not unknown profiles, undetected clients, or guessed directories.

A native plugin identity and a standalone bare skill are separate. A shared symlinked canonical copy and several copied agent directories are different freshness models. Never infer that this machine represents another target.

Update by Owning Channel

Generic Skills CLI

For CLI-managed skills, specify scope rather than relying on the current folder:

npx skills update <skill...> --global --yes
npx skills update <skill...> --project --yes

skills update has no agent selector. It updates managed records at the selected scope; it is not proof that every copied agent projection changed. Re-inventory and verify each selected target path afterwards. Use an explicit skills add only for missing selected projections, never as a substitute for provenance-aware update.

For a missing global projection across all supported agents:

npx skills add <published-source> --skill <skill...> --global --agent '*' --yes

Run a missing project install from the exact project without --global and name its intended agents. --agent '*' means every agent supported by the installed CLI, not every possible agent. Preserve copy/symlink form; use --copy only when selected by the user or existing install.

Unmanaged or provenance-less copies

Do not overwrite them as managed. Show the exact path, identity, requested scope, and authoritative replacement source. Ask before destructive replacement, remove only that identity/scope, reinstall, and preserve unrelated or namespaced skills. Do not delete a local skill merely because it disappeared upstream. Report it as a removal candidate and require separate destructive confirmation.

Native plugin/package plane

Use the native plugin marketplace or package registry refresh/update flow. Read back exact installed version, namespace, path, and skill bytes. A generic CLI update does not prove a native plugin updated.

Manual/upload and remote planes

Verify the released ZIP/raw file/artifact. Perform the UI replacement only when that target is requested and controllable; otherwise report manual action required. Update each remote machine/container independently. Report an agent the owning installer explicitly rejects as unsupported; report an explicitly requested but currently unreachable target as deferred. Never invent a folder.

Verify and Report

  1. Re-run both JSON inventories and native version queries.
  2. Confirm expected project/global precedence and every requested supported-agent projection.
  3. Where no trustworthy version exists, compare installed bytes or a cryptographic hash with the published artifact. If the authoritative source exposes no comparable version/ref/digest, report freshness as unknown after update rather than manufacturing certainty.
  4. Restart or reload affected agents whose loaders cache skills; an active session may continue using old instructions until reopened.
  5. Report scope × agent/channel × identity as updated, already current, manual action required, unsupported, deferred, failed, or out of scope.
  6. Include the release-note/update link and encourage affected humans and agents to update, but never collapse partial success into “everything is updated.”

Keeping a Pack Current

Nothing in the update path announces that a pack moved, and the Skills CLI cannot be asked. Its check is a bare alias for update: it mutates, there is no dry run, and its exit code reports failure rather than availability—exit 0 covers both “nothing to do” and “I just rewrote every tracked skill.” Anything that runs the CLI to see whether an update exists performs one instead, non-interactively, at a scope inferred from whatever directory it inherited.

Detection must therefore be built apart from application. This skill carries both halves, and the seam between them is where consent lives.

Detecting drift

scripts/check-pack-freshness.mjs is read-only. It reads the global lockfile, asks the source repository for one tree, and compares the folder hash the lockfile already records against the hash upstream now has. It starts no process, calls no CLI, and writes nothing but its own cache.

node scripts/check-pack-freshness.mjs --source <owner>/<repo>

Silence means current. Drift prints the stale skill names, the latest release, and the exact command that would apply it, then exits 2. Whatever it could not determine—an unreadable lockfile, an unreachable source, an entry carrying no comparable hash—is reported as unknown and exits 0. Unknown is a third state and is never folded into “current”: where silence is the healthy signal, a failure that renders as silence reads as health.

Answers are cached with two deliberately different lifetimes. A current answer expires in an hour; a drifted one in twelve. A drifted pack is re-announced every session because the user has not acted yet, while the request is not repeated because the answer cannot change until they do. The verdict is recomputed from the lockfile on every run, so an update silences the notice at once instead of at the end of a cache window.

Being told, and being updated

scripts/install-freshness-hook.mjs writes a SessionStart hook that runs the checker asynchronously, so it never delays a session, and rewakes the model on exit code 2, so the notice reaches the conversation instead of the scrollback. The user runs this. No skill may install it on their behalf.

node scripts/install-freshness-hook.mjs --mode notify --source <owner>/<repo>
node scripts/install-freshness-hook.mjs --mode auto --source <owner>/<repo>
node scripts/install-freshness-hook.mjs --remove

notify reports and stops. It cannot mutate anything, because the checker cannot.

auto applies exactly the update the checker named. Installing auto mode is the user's standing consent, for that source and that scope only. This is not an exception to the rule that mutation requires an explicit request—it is the one channel through which that request can be made ahead of time, recorded in a form that can be read back and withdrawn with --remove. It authorizes nothing beyond the source and scope named at install time: no other pack, no project scope, and no deletion.

Never widen that command into a bare skills update. Named skills bound what is rewritten, --global pins the scope instead of letting the working directory choose it, and --yes keeps an upstream deletion a printed warning rather than a removal. An applied update still proves nothing about the agent projections; re-inventory and verify each one.

Usage Examples

Update this released skill for all supported agents in global scope on this
machine. Inventory JSON and provenance first, preserve plugin namespaces and
copy/symlink form, update through each owning channel, reload cached runtimes, and
report unsupported or manual planes separately.
Prepare the update communication only. Make the changelog, repository README,
release notes, and agent-facing update guidance agree with the published release.
Do not update any local library.

Pitfalls

  • Update before release: branch bytes are not an update source.
  • One scope called all: project and global inventories are independent.
  • One agent called all: --agent '*' covers only the installed CLI's supported set; native/manual/remote and unsupported clients remain separate.
  • Shared path counted repeatedly: deduplicate physical targets while still reporting each consuming agent.
  • Portable name, nonportable payload: validate standard SKILL.md, relative carried files, and absence of one-agent-only interpolation before copying.
  • Upstream deletion mirrored: deletion is a separately confirmed destructive operation, never an ordinary update.
  • Unmanaged overwritten: absence of provenance requires approval, not guessing.
  • Successful command called current: verify version, namespace, bytes, or hash.
  • Changelog as commit dump: write outcomes and update action for a human reader.
  • Announcement as consent: encouraging adoption does not authorize mutation.
  • A check that updates: the CLI's check is an alias for update; asking it whether a pack moved moves it. Detect drift read-only, apply it deliberately.
  • Silence mistaken for health: when “no output” means current, a check that crashed or could not reach the network must report unknown, never nothing.

Verification

  • [ ] Published source/version/artifact exists and was read back.
  • [ ] Changelog, repository/catalogue README, human release notes, and agent update guidance agree.
  • [ ] Every mutated scope/machine/agent/channel was explicitly requested.
  • [ ] Global and project inventories were captured before and after.
  • [ ] A deduplicated target manifest was presented before every local write.
  • [ ] Managed/unmanaged and copy/symlink ownership was preserved.
  • [ ] Upstream-missing skills are removal candidates requiring separate destructive confirmation, not ordinary update deletions.
  • [ ] Without a comparable authoritative version/ref/digest, freshness is unknown, never inferred from command success or timestamps.
  • [ ] Native, manual/upload, remote, and unsupported planes have literal outcomes.
  • [ ] Installed bytes/version/namespace and runtime reload were verified.
  • [ ] Users and agents receive exact update guidance without false completion.
  • [ ] Freshness was detected without invoking a command that mutates.
  • [ ] Any standing auto-update names the source and scope it covers, was installed by the user, and can be withdrawn.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/update-agent-skills-mte1li8n/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/update-agent-skills-mte1li8n' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/update-agent-skills-mte1li8n/download' --output '.skill-downloads/update-agent-skills-mte1li8n/SKILL.md.part' && mv '.skill-downloads/update-agent-skills-mte1li8n/SKILL.md.part' '.skill-downloads/update-agent-skills-mte1li8n/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

Environment declared by the author: Agent Skills-compatible agents; the generic Skills CLI for managed project/global installs; native plugin/package updaters or manual artifact channels where applicable.

Tools declared by the author (check availability in your agent): Read Write Grep Glob Bash Agent Workflow

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/update-agent-skills-mte1li8n/SKILL.md' && test -s '.skill-downloads/update-agent-skills-mte1li8n/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/update-agent-skills' && cp -R '.skill-downloads/update-agent-skills-mte1li8n' '.claude/skills/update-agent-skills'

Cursor
test -f '.skill-downloads/update-agent-skills-mte1li8n/SKILL.md' && test -s '.skill-downloads/update-agent-skills-mte1li8n/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/update-agent-skills' && cp -R '.skill-downloads/update-agent-skills-mte1li8n' '.cursor/skills/update-agent-skills'

Codex
test -f '.skill-downloads/update-agent-skills-mte1li8n/SKILL.md' && test -s '.skill-downloads/update-agent-skills-mte1li8n/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/update-agent-skills' && cp -R '.skill-downloads/update-agent-skills-mte1li8n' '.agents/skills/update-agent-skills'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/update-agent-skills-mte1li8n'

openskills read 'update-agent-skills-mte1li8n'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/update-agent-skills-mte1li8n/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills