update-skills

SKILL.md

Update Skills

Update globally installed skills and/or project-level skills in one step.

When to Use

User says Mode
"更新 skills" / "update skills" (no qualifier) Global + Project (default)
"更新全局" / "global only" / "只更新全局" Global only
"更新项目" / "project only" / "只更新项目" Project only

Execution

Global Update

npx skills update

Project Update

First check if skills-lock.json exists in the current directory:

# Check
ls skills-lock.json 2>/dev/null && echo "found" || echo "not found"

# If found, run:
npx skills experimental_install

If skills-lock.json is not found, skip and inform the user:

"No skills-lock.json found in current directory — skipping project update."

Error Handling

Run all applicable steps regardless of individual failures. Report results at the end:

✅ Global skills updated
   (or: All global skills are up to date)

✅ Project skills updated (via skills-lock.json)

❌ Project update failed: <error message>
   Suggestion: run `npx skills experimental_install` manually

Notes

  • npx skills update compares a hash of installed files against the remote source. If they match, it reports "up to date" even after a remote push — use npx skills add <source> --skill <name> -y to force-reinstall.
  • experimental_install is an experimental command; the name may change in future CLI versions.

Source and Installation

Weekly Installs
2
First Seen
3 days ago
Installed on
amp2
cline2
opencode2
cursor2
kimi-cli2
codex2