[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F1JB0JR7B3NRG4EH1XDQJG":3,"skill-same:01M7F1JB0JR7B3NRG4EH1XDQJG":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7F1JB0JR7B3NRG4EH1XDQJG","manage-skills",null,"Manage the user's shared agent-skill library via skills-manager-cli — install, update, remove, deploy or undeploy skills per agent, manage presets, organize tags, search, and adopt existing skills. Use this whenever the user wants Claude Code, Codex, Cursor, or another agent to gain or lose a skill, wants to organize the central library, or asks what is installed or deployed. Prefer this over direct agent-folder installs because Skills Manager preserves source metadata, preset membership, updates, and cross-agent deployment state.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fmanage-skills\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: manage-skills\ndescription: Manage the user's shared agent-skill library via skills-manager-cli — install, update, remove, deploy or undeploy skills per agent, manage presets, organize tags, search, and adopt existing skills. Use this whenever the user wants Claude Code, Codex, Cursor, or another agent to gain or lose a skill, wants to organize the central library, or asks what is installed or deployed. Prefer this over direct agent-folder installs because Skills Manager preserves source metadata, preset membership, updates, and cross-agent deployment state.\n---\n\n## Before doing anything\n\n1. **Resolve the CLI first, then use the path it prints.** Run this once (POSIX\n   shell):\n\n   ```bash\n   D=\"$HOME\u002F.skills-manager\u002Fbin\"\n   B=\"$D\u002Fskills-manager-cli\"; [ -e \"$B\" ] || B=\"$B.exe\"   # .exe on Windows\n   if [ -s \"$D\u002F.version\" ] && [ -x \"$B\" ]; then\n     echo \"$B\"\n   elif [ -s \"$D\u002F.version\" ] || [ -e \"$B\" ]; then\n     echo BRIDGE_BROKEN\n   else\n     P=\"$(command -v skills-manager-cli 2>\u002Fdev\u002Fnull || true)\"\n     [ -x \"$P\" ] && echo \"$P\"\n   fi\n   ```\n\n   **Substitute the printed path into every command below**, wherever the\n   examples write `$SM`. Do not carry `$SM` as a shell variable: each command\n   you run is a new shell, so an assignment made here is gone by the next one.\n\n   The three outcomes:\n\n   - **A path under `~\u002F.skills-manager\u002Fbin`** — the desktop app published this\n     copy, and the `.version` stamp appears only after it has been verified, so\n     it always matches the app the user is running. Use it.\n   - **`BRIDGE_BROKEN`** — something the app left behind is here but does not\n     add up: an unstamped binary, or a stamp with no binary beside it. Either is\n     what a copy that failed half-way leaves. **Stop.** Do not go looking\n     for another CLI: that binary may predate a safety fix, and the machine has\n     a desktop app whose version nothing here can match. Ask the user to open\n     the Skills Manager app once, which republishes it.\n   - **A path from PATH** — nothing was ever published here, so there is no\n     stale copy to worry about: this is a CLI-only machine (a server install, a\n     standalone download, a hand-built binary). Use it, but note it can be\n     older than a desktop app if one is also installed.\n\n   If nothing is printed at all, this skill doesn't apply — fall back to\n   find-skills, or tell the user to install Skills Manager.\n2. **Always pass `--json` when you parse output yourself.** Pretty-printed output is for the user; JSON is for you. Errors include `ok=false`, a stable `code`, and `message` on stderr with a non-zero exit code.\n\n```bash\n\"$SM\" --json skills list\n```\n\n### When a deployment is refused\n\nA deploy that would overwrite something that is not ours is refused outright —\nnothing at those paths is deleted, and nothing else in the batch is applied.\nThat failure is machine-readable, so report the actual paths rather than the\nsentence:\n\n```json\n{\"ok\": false, \"code\": \"TARGET_CONFLICT\", \"kind\": \"target_conflict\",\n \"message\": \"Refusing to deploy: 1 of 2 target(s) …\",\n \"details\": {\"conflicts\": [{\"path\": \"\u002FUsers\u002Fme\u002F.claude\u002Fskills\u002Fdb\",\n                            \"reason\": \"is not a managed deployment\"}]}}\n```\n\nTell the user which path is in the way, that its contents are untouched, and\noffer the two ways out: adopt it into the library (`skills adopt`), or move it\naside and retry. Never delete it for them.\n\n## Mental model\n\nThere's **one central library** at `~\u002F.skills-manager\u002Fskills\u002F` that all agents share. Each skill has source metadata, preset membership, tags, and zero or more real deployments in agent directories. A **preset** is a reusable group; several presets may be deployed at the same time.\n\nKeep these three states separate:\n- **Library**: install\u002Fremove controls whether Skills Manager owns the skill.\n- **Preset membership**: `presets add-skill\u002Fremove-skill` organizes the library only.\n- **Deployment**: `skills deploy\u002Fundeploy` and `presets deploy\u002Fundeploy` control what an agent can actually see.\n\nInternally, presets are still stored as scenarios for backward-compatible Git Backup. The CLI and UI call them presets.\n\n## Install\n\n```bash\n# From skills.sh marketplace\n\"$SM\" skills install vercel-labs\u002Fagent-skills@react-best-practices\n\n# Any git URL (use \u002Ftree\u002Fbranch\u002Fsubpath form when the skill lives in a sub-directory)\n\"$SM\" skills install https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fskills.git\n\"$SM\" skills install https:\u002F\u002Fgithub.com\u002Ffoo\u002Fbar\u002Ftree\u002Fmain\u002Fskills\u002Fbaz\n\n# Local folder\n\"$SM\" skills install .\u002Fmy-skill\n\n# Force a source type when the ref is ambiguous\n\"$SM\" skills install foo\u002Fbar --skillssh\n\"$SM\" skills install .\u002Flooks-like\u002Fowner-repo --local\n```\n\n**Default is library-only** — the skill enters the DB but doesn't appear in any agent yet. Prefer an explicit follow-up deployment so scope is unambiguous:\n\n```bash\n\"$SM\" skills deploy \u003Cskill> --agent claude_code --agent codex\n```\n\n`--sync` and `--sync-preset` remain legacy shortcuts for the exclusive active-preset workflow.\n\n**Ref resolution** is deterministic, no path-existence guessing:\n1. Starts with `.\u002F`, `..\u002F`, `\u002F`, or `~\u002F` → local path\n2. Contains `:\u002F\u002F`, ends in `.git`, or starts with `git@` → git URL\n3. Matches `owner\u002Frepo`, `owner\u002Frepo\u002Fskill`, or `owner\u002Frepo@skill` → skillssh\n4. Otherwise → error; pass `--local` \u002F `--git` \u002F `--skillssh` to disambiguate\n\n**Always verify after install** with `skills list` or `skills show \u003Cname>` so you can confirm the skill landed and report the preset \u002F sync state back to the user.\n\n## Search\n\n```bash\n\"$SM\" --json skills search \"react performance\" --limit 5\n```\n\nEach result has `install_ref` (paste straight into `skills install`), `installs` (popularity proxy), and `skills_sh_url`. Show the top 1–3 with install counts before installing — anything with 10K+ installs is battle-tested; anything under 100 needs a careful look at the source repo.\n\n## Update \u002F Check\n\n```bash\n# Re-fetch one skill (git\u002Fskillssh re-clones, local\u002Fimport re-imports source dir)\n\"$SM\" skills update \u003Cskill-name-or-id>\n\n# Re-fetch all eligible skills\n\"$SM\" skills update --all\n\n# Just probe remote revisions, don't touch files\n\"$SM\" skills check --all\n```\n\n`check` is the dry-run partner of `update`. Local-only skills (no git source) are reported as `skipped: true`.\n\n**An update replaces the skill's directory wholesale**, so anything written inside it that the new version does not have would be destroyed. When the CLI detects that, it applies nothing and reports the paths instead:\n\n```jsonc\n{ \"name\": \"ppt-master\", \"refreshed\": false,\n  \"held_back_removals\": [\"library: templates\u002Fmine.pptx\"] }\n```\n\nThe field is omitted entirely when nothing is held back, so test for its presence rather than for an empty array. `refreshed: false` *with* `held_back_removals` is **not a failure and not something to retry** — the skill is untouched and still on its old version. Show the user the listed paths and ask. There is no CLI flag to override this; only the desktop app can confirm and proceed, because only a person can say those files are expendable. The paths are prefixed with where they live (`library`, or an agent key for a deployed copy).\n\nNote what this does *not* cover: a file the user edited that the new version also ships is reported as surviving, because its path survives — the update overwrites their edits silently. Warn anyone keeping local modifications inside a skill folder.\n\n## Remove\n\n```bash\n# Always preview first when removing more than one\n\"$SM\" skills remove \u003Cskill> --dry-run\n\n# --yes is required for the actual delete; --json mode does NOT auto-confirm\n\"$SM\" skills remove \u003Cskill> --yes\n```\n\nRemove deletes the central-library copy, all synced targets across agents, and the DB row. It's not reversible without re-installing.\n\n## Deploy \u002F Undeploy\n\n```bash\n\"$SM\" skills deploy \u003Cskill> --agent claude_code\n\"$SM\" skills undeploy \u003Cskill> --agent codex\n\"$SM\" skills deploy \u003Cskill-a> \u003Cskill-b> --agent codex --dry-run\n\"$SM\" skills deploy \u003Cskill> --agent claude_code --agent codex\n\"$SM\" --json skills status \u003Cskill>\n```\n\nThese commands change real managed deployments without deleting the central-library copy or changing preset membership. `skills enable\u002Fdisable` are deprecated compatibility commands and do not change deployment; never use them.\n\n`skills deploy` and `skills undeploy` always require at least one explicit `--agent`, whether the command names one skill or several. `skills status` also reports target rows left by a custom agent that is no longer registered, so stale deployments stay visible and can be cleaned with an explicit undeploy while the row exists.\n\n## Legacy exclusive sync\n\n```bash\n# Sync current active preset to all enabled agents\n\"$SM\" skills sync\n\n# Preview the target list — safe, no writes\n\"$SM\" skills sync --dry-run\n\n# Switch the one legacy active preset, then sync\n\"$SM\" skills sync --preset \"Web Dev\"\n\n# Only sync to a single agent (useful when one agent's directory got out of sync)\n\"$SM\" skills sync --tool claude_code\n```\n\n## Adopt skills installed elsewhere\n\nWhen skills already live in an agent's directory (e.g. installed via `npx skills add` or manual `git clone`) but aren't in the central library, pull them in:\n\n```bash\n# Dry-run scan first — lists candidates without writing\n\"$SM\" skills adopt ~\u002F.claude\u002Fskills --dry-run\n\n# Adopt everything found — each becomes source_type=local (can't auto-update from git)\n\"$SM\" skills adopt ~\u002F.claude\u002Fskills\n\n# Adopt a single skill and pin it to a git source so `update` works later\n\"$SM\" skills adopt ~\u002F.claude\u002Fskills\u002Freact-best-practices \\\n  --git-url https:\u002F\u002Fgithub.com\u002Fvercel-labs\u002Fagent-skills\u002Ftree\u002Fmain\u002Freact-best-practices\n\n# Or pass --git-subpath explicitly when the URL is just the repo root\n\"$SM\" skills adopt ~\u002F.claude\u002Fskills\u002Freact-best-practices \\\n  --git-url https:\u002F\u002Fgithub.com\u002Fvercel-labs\u002Fagent-skills \\\n  --git-subpath react-best-practices\n\n# Skill lives at the repo root? Pass an empty subpath\n\"$SM\" skills adopt ~\u002F.claude\u002Fskills\u002Fmy-skill \\\n  --git-url https:\u002F\u002Fgithub.com\u002Fme\u002Fmy-skill --git-subpath \"\"\n```\n\n`adopt` auto-excludes anything already in the DB or already a sync target, so it's safe to re-run. `--git-url` requires either a URL with a subpath (`\u002Ftree\u002Fbranch\u002Fpath`) or an explicit `--git-subpath` — without that, future `update` would re-clone the wrong directory, so the CLI refuses to guess.\n\n`--git-url` only applies at the moment of adoption, while the directory is still unmanaged. Once a skill is in the library, use `set-source` below.\n\n## Re-point a skill at a git source\n\n```bash\n# Preview: resolves the source and reports whether content differs. It clones to\n# a temp dir, but writes nothing to the library or the DB.\n\"$SM\" --json skills set-source \u003Cskill> --git-url you\u002Fskills --subpath my-skill --dry-run\n\n# A GitHub \u002Ftree\u002F URL carries the branch and subpath already\n\"$SM\" skills set-source \u003Cskill> --git-url https:\u002F\u002Fgithub.com\u002Fyou\u002Fskills\u002Ftree\u002Fmain\u002Fmy-skill\n```\n\nThis is how a `local` skill becomes git-backed so `update` works, and how a\nskill pointed at the wrong repo gets corrected. It updates the row **in place**,\nso the skill id survives and the tags, preset membership and per-agent\ndeployments keyed to it all stay intact.\n\n- The flag is `--subpath` here, not `--git-subpath` — that one belongs to `adopt`. Pass `--subpath \"\"` when the skill is at the repo root, which must itself hold a `SKILL.md`.\n- `--branch` overrides a branch encoded in the URL.\n- The report carries `content_changed` — a single boolean, **not** a file list. It compares the new source against the hash currently recorded for the library copy, not a fresh hash of the directory on disk, so edits made inside the central copy afterwards do not register as a difference. When it is `false` the library copy is left untouched and those edits survive; copy-mode deployments are re-synced either way.\n\n**`--force` is destructive, and nothing stands between it and the user's files.**\nA content difference is refused without it. With it, the whole skill directory is\nreplaced — staged, swapped in, and the old copy deleted — so anything in the\nlibrary copy that the new source does not ship is gone. Unlike `skills update`,\nthis path has **no** `held_back_removals` check: nothing is withheld, and nothing\nasks. `--dry-run` cannot tell you which files are at stake, only that something\ndiffers. Never pass `--force` on the user's behalf — report `content_changed:\ntrue`, say that proceeding overwrites the library copy wholesale, and let them\ndecide.\n\n## Tag\n\n```bash\n\"$SM\" skills tag add \u003Cskill> web frontend\n\"$SM\" skills tag remove \u003Cskill> frontend\n\"$SM\" skills tag set \u003Cskill> web frontend\n\"$SM\" skills tag rename frontend web\n\"$SM\" skills tag delete obsolete --dry-run\n\"$SM\" skills tag delete obsolete --yes\n\"$SM\" skills tag list \u003Cskill>   # tags on one skill\n\"$SM\" skills tag list           # all distinct tags\n```\n\nUseful organization queries:\n\n```bash\n\"$SM\" --json skills list --untagged\n\"$SM\" --json skills list --no-preset\n\"$SM\" --json skills list --tag frontend\n\"$SM\" --json skills list --preset \"Web Dev\"\n\"$SM\" --json skills list --deployed-to codex\n```\n\n## Presets\n\n```bash\n\"$SM\" presets list\n\"$SM\" presets current\n\"$SM\" presets show \"Web Dev\"\n\"$SM\" presets create \"Web Dev\" --description \"Frontend work\"\n\"$SM\" presets update \"Web Dev\" --name \"Frontend\"\n\"$SM\" presets delete \"Old\" --dry-run\n\"$SM\" presets delete \"Old\" --yes\n\n\"$SM\" presets add-skill \u003Cpreset> \u003Cskill>...\n\"$SM\" presets remove-skill \u003Cpreset> \u003Cskill>...\n\n\"$SM\" presets deploy \u003Cpreset>                  # all enabled coding agents\n\"$SM\" presets deploy \u003Cpreset> --agent codex\n\"$SM\" presets undeploy \u003Cpreset> --agent claude_code\n\"$SM\" presets undeploy \u003Cpreset>                # every agent with target rows for this preset\n\"$SM\" --json presets status \u003Cpreset>\n```\n\n`deploy\u002Fundeploy` are additive and match the app's Preset pills. Explicit `presets apply\u002Fdeactivate` commands remain for the legacy exclusive active-preset model; do not use them for normal \"turn this preset on\u002Foff\" requests.\n\nThe no-`--agent` defaults intentionally differ: deploy targets all installed, enabled coding agents; undeploy discovers the preset's actual target rows and removes them even when an agent is now disabled, uninstalled, or no longer registered. Use the no-agent undeploy for \"turn this preset off everywhere.\"\n\nPreset create\u002Fupdate\u002Fdelete and add-skill\u002Fremove-skill are organization-only CLI operations. They never deploy or undeploy agent files implicitly.\n\n## Health check\n\nWhen sync misbehaves or a command errors in a confusing way:\n\n```bash\n\"$SM\" --json repo status   # base dir, skill \u002F preset counts, active preset\n\"$SM\" --json agents list  # detected agents and their target paths\n\"$SM\" agents enable codex\n\"$SM\" agents disable claude_code\n```\n\n`repo status` and `agents list` are read-only and are the first checks for \"why isn't this skill showing up in Cursor\" questions. `agents disable` is a real mutation: it removes every managed deployment for that agent. `agents enable` makes the agent globally available again and re-syncs the legacy active preset, if one exists; use explicit skill or preset deployment afterward when the requested state is additive.\n\nUse `agents disable \u003Cagent>` when the user wants the whole Agent integration turned off or wants every managed skill removed from it. If they only want one skill or preset removed while keeping the Agent available for future deployments, use `skills undeploy` or `presets undeploy` instead.\n\n## Typical workflows\n\n### \"Find me a skill for X\" \u002F \"Install a skill that does X\"\n\n1. `skills search \"X\" --limit 5` — show the top 1–3 hits with install counts and source.\n2. If a clear winner: `skills install \u003Cinstall_ref>`.\n3. If ambiguous: ask the user to pick.\n4. Deploy it to the agent(s) the user requested with `skills deploy`.\n5. `skills status \u003Cname>` to confirm the library and deployment state.\n\n### \"What skills do I have?\"\n\n```bash\n\"$SM\" --json skills list\n```\n\nThe `preset_ids`, `presets`, `deployed_to`, `tags`, and `source_type` fields are usually the most informative. The legacy `enabled` field is not deployment state.\n\n### \"Pull in the skills already installed in my agent directories\"\n\n1. `skills adopt ~\u002F.claude\u002Fskills --dry-run` (and any other agent dirs the user mentions) — show the candidate list.\n2. After user confirms: `skills adopt ~\u002F.claude\u002Fskills`.\n3. For any adopted skill where the user knows the original repo, restore the update link with `skills set-source \u003Cskill> --git-url ... --subpath ...`.\n\n### \"Update everything\"\n\n```bash\n\"$SM\" skills check --all     # see what has upstream changes\n\"$SM\" skills update --all    # apply\n```\n\nReport which skills actually refreshed (`refreshed: true` in the JSON) vs which were already up-to-date.\n\n## Pitfalls\n\n- **Install succeeded but skill doesn't appear in the agent** → install defaults to library-only. Use `skills deploy \u003Cskill> --agent \u003Ckey>`.\n- **Preset membership changed but agent files did not** → membership is organization only. Follow with `presets deploy` or `skills deploy` when the user also asked to make it visible.\n- **No active preset** only affects legacy `skills sync` \u002F `presets apply`; additive deploy commands do not require one.\n- **Adopted skills can't be `update`d from git** → `npx skills add` and manual `git clone` don't leave source metadata, so adopt has to treat them as `local`. Re-point them with `skills set-source`. Do **not** reach for `adopt --git-url` here: adopt only ever creates new library entries, and it fails *late* — `--dry-run` returns `ok: true` with the skill sitting in `skipped`, and only the real run errors with `--git-url requires exactly one adoptable skill, found 0`. Do **not** remove-then-reinstall either — that drops the skill id, and with it the tags, preset membership and every per-agent deployment.\n- Use `--dry-run` before bulk remove, tag delete, preset delete, deploy, or undeploy operations. Use `check` before `update`.\n","## Before doing anything\n\n1. **Resolve the CLI first, then use the path it prints.** Run this once (POSIX\n   shell):\n\n   ```bash\n   D=\"$HOME\u002F.skills-manager\u002Fbin\"\n   B=\"$D\u002Fskills-manager-cli\"; [ -e \"$B\" ] || B=\"$B.exe\"   # .exe on Windows\n   if [ -s \"$D\u002F.version\" ] && [ -x \"$B\" ]; then\n     echo \"$B\"\n   elif [ -s \"$D\u002F.version\" ] || [ -e \"$B\" ]; then\n     echo BRIDGE_BROKEN\n   else\n     P=\"$(command -v skills-manager-cli 2>\u002Fdev\u002Fnull || true)\"\n     [ -x \"$P\" ] && echo \"$P\"\n   fi\n   ```\n\n   **Substitute the printed path into every command below**, wherever the\n   examples write `$SM`. Do not carry `$SM` as a shell variable: each command\n   you run is a new shell, so an assignment made here is gone by the next one.\n\n   The three outcomes:\n\n   - **A path under `~\u002F.skills-manager\u002Fbin`** — the desktop app published this\n     copy, and the `.version` stamp appears only after it has been verified, so\n     it always matches the app the user is running. Use it.\n   - **`BRIDGE_BROKEN`** — something the app left behind is here but does not\n     add up: an unstamped binary, or a stamp with no binary beside it. Either is\n     what a copy that failed half-way leaves. **Stop.** Do not go looking\n     for another CLI: that binary may predate a safety fix, and the machine has\n     a desktop app whose version nothing here can match. Ask the user to open\n     the Skills Manager app once, which republishes it.\n   - **A path from PATH** — nothing was ever published here, so there is no\n     stale copy to worry about: this is a CLI-only machine (a server install, a\n     standalone download, a hand-built binary). Use it, but note it can be\n     older than a desktop app if one is also installed.\n\n   If nothing is printed at all, this skill doesn't apply — fall back to\n   find-skills, or tell the user to install Skills Manager.\n2. **Always pass `--json` when you parse output yourself.** Pretty-printed output is for the user; JSON is for you. Errors include `ok=false`, a stable `code`, and `message` on stderr with a non-zero exit code.\n\n```bash\n\"$SM\" --json skills list\n```\n\n### When a deployment is refused\n\nA deploy that would overwrite something that is not ours is refused outright —\nnothing at those paths is deleted, and nothing else in the batch is applied.\nThat failure is machine-readable, so report the actual paths rather than the\nsentence:\n\n```json\n{\"ok\": false, \"code\": \"TARGET_CONFLICT\", \"kind\": \"target_conflict\",\n \"message\": \"Refusing to deploy: 1 of 2 target(s) …\",\n \"details\": {\"conflicts\": [{\"path\": \"\u002FUsers\u002Fme\u002F.claude\u002Fskills\u002Fdb\",\n                            \"reason\": \"is not a managed deployment\"}]}}\n```\n\nTell the user which path is in the way, that its contents are untouched, and\noffer the two ways out: adopt it into the library (`skills adopt`), or move it\naside and retry. Never delete it for them.\n\n## Mental model\n\nThere's **one central library** at `~\u002F.skills-manager\u002Fskills\u002F` that all agents share. Each skill has source metadata, preset membership, tags, and zero or more real deployments in agent directories. A **preset** is a reusable group; several presets may be deployed at the same time.\n\nKeep these three states separate:\n- **Library**: install\u002Fremove controls whether Skills Manager owns the skill.\n- **Preset membership**: `presets add-skill\u002Fremove-skill` organizes the library only.\n- **Deployment**: `skills deploy\u002Fundeploy` and `presets deploy\u002Fundeploy` control what an agent can actually see.\n\nInternally, presets are still stored as scenarios for backward-compatible Git Backup. The CLI and UI call them presets.\n\n## Install\n\n```bash\n# From skills.sh marketplace\n\"$SM\" skills install vercel-labs\u002Fagent-skills@react-best-practices\n\n# Any git URL (use \u002Ftree\u002Fbranch\u002Fsubpath form when the skill lives in a sub-directory)\n\"$SM\" skills install https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fskills.git\n\"$SM\" skills install https:\u002F\u002Fgithub.com\u002Ffoo\u002Fbar\u002Ftree\u002Fmain\u002Fskills\u002Fbaz\n\n# Local folder\n\"$SM\" skills install .\u002Fmy-skill\n\n# Force a source type when the ref is ambiguous\n\"$SM\" skills install foo\u002Fbar --skillssh\n\"$SM\" skills install .\u002Flooks-like\u002Fowner-repo --local\n```\n\n**Default is library-only** — the skill enters the DB but doesn't appear in any agent yet. Prefer an explicit follow-up deployment so scope is unambiguous:\n\n```bash\n\"$SM\" skills deploy \u003Cskill> --agent claude_code --agent codex\n```\n\n`--sync` and `--sync-preset` remain legacy shortcuts for the exclusive active-preset workflow.\n\n**Ref resolution** is deterministic, no path-existence guessing:\n1. Starts with `.\u002F`, `..\u002F`, `\u002F`, or `~\u002F` → local path\n2. Contains `:\u002F\u002F`, ends in `.git`, or starts with `git@` → git URL\n3. Matches `owner\u002Frepo`, `owner\u002Frepo\u002Fskill`, or `owner\u002Frepo@skill` → skillssh\n4. Otherwise → error; pass `--local` \u002F `--git` \u002F `--skillssh` to disambiguate\n\n**Always verify after install** with `skills list` or `skills show \u003Cname>` so you can confirm the skill landed and report the preset \u002F sync state back to the user.\n\n## Search\n\n```bash\n\"$SM\" --json skills search \"react performance\" --limit 5\n```\n\nEach result has `install_ref` (paste straight into `skills install`), `installs` (popularity proxy), and `skills_sh_url`. Show the top 1–3 with install counts before installing — anything with 10K+ installs is battle-tested; anything under 100 needs a careful look at the source repo.\n\n## Update \u002F Check\n\n```bash\n# Re-fetch one skill (git\u002Fskillssh re-clones, local\u002Fimport re-imports source dir)\n\"$SM\" skills update \u003Cskill-name-or-id>\n\n# Re-fetch all eligible skills\n\"$SM\" skills update --all\n\n# Just probe remote revisions, don't touch files\n\"$SM\" skills check --all\n```\n\n`check` is the dry-run partner of `update`. Local-only skills (no git source) are reported as `skipped: true`.\n\n**An update replaces the skill's directory wholesale**, so anything written inside it that the new version does not have would be destroyed. When the CLI detects that, it applies nothing and reports the paths instead:\n\n```jsonc\n{ \"name\": \"ppt-master\", \"refreshed\": false,\n  \"held_back_removals\": [\"library: templates\u002Fmine.pptx\"] }\n```\n\nThe field is omitted entirely when nothing is held back, so test for its presence rather than for an empty array. `refreshed: false` *with* `held_back_removals` is **not a failure and not something to retry** — the skill is untouched and still on its old version. Show the user the listed paths and ask. There is no CLI flag to override this; only the desktop app can confirm and proceed, because only a person can say those files are expendable. The paths are prefixed with where they live (`library`, or an agent key for a deployed copy).\n\nNote what this does *not* cover: a file the user edited that the new version also ships is reported as surviving, because its path survives — the update overwrites their edits silently. Warn anyone keeping local modifications inside a skill folder.\n\n## Remove\n\n```bash\n# Always preview first when removing more than one\n\"$SM\" skills remove \u003Cskill> --dry-run\n\n# --yes is required for the actual delete; --json mode does NOT auto-confirm\n\"$SM\" skills remove \u003Cskill> --yes\n```\n\nRemove deletes the central-library copy, all synced targets across agents, and the DB row. It's not reversible without re-installing.\n\n## Deploy \u002F Undeploy\n\n```bash\n\"$SM\" skills deploy \u003Cskill> --agent claude_code\n\"$SM\" skills undeploy \u003Cskill> --agent codex\n\"$SM\" skills deploy \u003Cskill-a> \u003Cskill-b> --agent codex --dry-run\n\"$SM\" skills deploy \u003Cskill> --agent claude_code --agent codex\n\"$SM\" --json skills status \u003Cskill>\n```\n\nThese commands change real managed deployments without deleting the central-library copy or changing preset membership. `skills enable\u002Fdisable` are deprecated compatibility commands and do not change deployment; never use them.\n\n`skills deploy` and `skills undeploy` always require at least one explicit `--agent`, whether the command names one skill or several. `skills status` also reports target rows left by a custom agent that is no longer registered, so stale deployments stay visible and can be cleaned with an explicit undeploy while the row exists.\n\n## Legacy exclusive sync\n\n```bash\n# Sync current active preset to all enabled agents\n\"$SM\" skills sync\n\n# Preview the target list — safe, no writes\n\"$SM\" skills sync --dry-run\n\n# Switch the one legacy active preset, then sync\n\"$SM\" skills sync --preset \"Web Dev\"\n\n# Only sync to a single agent (useful when one agent's directory got out of sync)\n\"$SM\" skills sync --tool claude_code\n```\n\n## Adopt skills installed elsewhere\n\nWhen skills already live in an agent's directory (e.g. installed via `npx skills add` or manual `git clone`) but aren't in the central library, pull them in:\n\n```bash\n# Dry-run scan first — lists candidates without writing\n\"$SM\" skills adopt ~\u002F.claude\u002Fskills --dry-run\n\n# Adopt everything found — each becomes source_type=local (can't auto-update from git)\n\"$SM\" skills adopt ~\u002F.claude\u002Fskills\n\n# Adopt a single skill and pin it to a git source so `update` works later\n\"$SM\" skills adopt ~\u002F.claude\u002Fskills\u002Freact-best-practices \\\n  --git-url https:\u002F\u002Fgithub.com\u002Fvercel-labs\u002Fagent-skills\u002Ftree\u002Fmain\u002Freact-best-practices\n\n# Or pass --git-subpath explicitly when the URL is just the repo root\n\"$SM\" skills adopt ~\u002F.claude\u002Fskills\u002Freact-best-practices \\\n  --git-url https:\u002F\u002Fgithub.com\u002Fvercel-labs\u002Fagent-skills \\\n  --git-subpath react-best-practices\n\n# Skill lives at the repo root? Pass an empty subpath\n\"$SM\" skills adopt ~\u002F.claude\u002Fskills\u002Fmy-skill \\\n  --git-url https:\u002F\u002Fgithub.com\u002Fme\u002Fmy-skill --git-subpath \"\"\n```\n\n`adopt` auto-excludes anything already in the DB or already a sync target, so it's safe to re-run. `--git-url` requires either a URL with a subpath (`\u002Ftree\u002Fbranch\u002Fpath`) or an explicit `--git-subpath` — without that, future `update` would re-clone the wrong directory, so the CLI refuses to guess.\n\n`--git-url` only applies at the moment of adoption, while the directory is still unmanaged. Once a skill is in the library, use `set-source` below.\n\n## Re-point a skill at a git source\n\n```bash\n# Preview: resolves the source and reports whether content differs. It clones to\n# a temp dir, but writes nothing to the library or the DB.\n\"$SM\" --json skills set-source \u003Cskill> --git-url you\u002Fskills --subpath my-skill --dry-run\n\n# A GitHub \u002Ftree\u002F URL carries the branch and subpath already\n\"$SM\" skills set-source \u003Cskill> --git-url https:\u002F\u002Fgithub.com\u002Fyou\u002Fskills\u002Ftree\u002Fmain\u002Fmy-skill\n```\n\nThis is how a `local` skill becomes git-backed so `update` works, and how a\nskill pointed at the wrong repo gets corrected. It updates the row **in place**,\nso the skill id survives and the tags, preset membership and per-agent\ndeployments keyed to it all stay intact.\n\n- The flag is `--subpath` here, not `--git-subpath` — that one belongs to `adopt`. Pass `--subpath \"\"` when the skill is at the repo root, which must itself hold a `SKILL.md`.\n- `--branch` overrides a branch encoded in the URL.\n- The report carries `content_changed` — a single boolean, **not** a file list. It compares the new source against the hash currently recorded for the library copy, not a fresh hash of the directory on disk, so edits made inside the central copy afterwards do not register as a difference. When it is `false` the library copy is left untouched and those edits survive; copy-mode deployments are re-synced either way.\n\n**`--force` is destructive, and nothing stands between it and the user's files.**\nA content difference is refused without it. With it, the whole skill directory is\nreplaced — staged, swapped in, and the old copy deleted — so anything in the\nlibrary copy that the new source does not ship is gone. Unlike `skills update`,\nthis path has **no** `held_back_removals` check: nothing is withheld, and nothing\nasks. `--dry-run` cannot tell you which files are at stake, only that something\ndiffers. Never pass `--force` on the user's behalf — report `content_changed:\ntrue`, say that proceeding overwrites the library copy wholesale, and let them\ndecide.\n\n## Tag\n\n```bash\n\"$SM\" skills tag add \u003Cskill> web frontend\n\"$SM\" skills tag remove \u003Cskill> frontend\n\"$SM\" skills tag set \u003Cskill> web frontend\n\"$SM\" skills tag rename frontend web\n\"$SM\" skills tag delete obsolete --dry-run\n\"$SM\" skills tag delete obsolete --yes\n\"$SM\" skills tag list \u003Cskill>   # tags on one skill\n\"$SM\" skills tag list           # all distinct tags\n```\n\nUseful organization queries:\n\n```bash\n\"$SM\" --json skills list --untagged\n\"$SM\" --json skills list --no-preset\n\"$SM\" --json skills list --tag frontend\n\"$SM\" --json skills list --preset \"Web Dev\"\n\"$SM\" --json skills list --deployed-to codex\n```\n\n## Presets\n\n```bash\n\"$SM\" presets list\n\"$SM\" presets current\n\"$SM\" presets show \"Web Dev\"\n\"$SM\" presets create \"Web Dev\" --description \"Frontend work\"\n\"$SM\" presets update \"Web Dev\" --name \"Frontend\"\n\"$SM\" presets delete \"Old\" --dry-run\n\"$SM\" presets delete \"Old\" --yes\n\n\"$SM\" presets add-skill \u003Cpreset> \u003Cskill>...\n\"$SM\" presets remove-skill \u003Cpreset> \u003Cskill>...\n\n\"$SM\" presets deploy \u003Cpreset>                  # all enabled coding agents\n\"$SM\" presets deploy \u003Cpreset> --agent codex\n\"$SM\" presets undeploy \u003Cpreset> --agent claude_code\n\"$SM\" presets undeploy \u003Cpreset>                # every agent with target rows for this preset\n\"$SM\" --json presets status \u003Cpreset>\n```\n\n`deploy\u002Fundeploy` are additive and match the app's Preset pills. Explicit `presets apply\u002Fdeactivate` commands remain for the legacy exclusive active-preset model; do not use them for normal \"turn this preset on\u002Foff\" requests.\n\nThe no-`--agent` defaults intentionally differ: deploy targets all installed, enabled coding agents; undeploy discovers the preset's actual target rows and removes them even when an agent is now disabled, uninstalled, or no longer registered. Use the no-agent undeploy for \"turn this preset off everywhere.\"\n\nPreset create\u002Fupdate\u002Fdelete and add-skill\u002Fremove-skill are organization-only CLI operations. They never deploy or undeploy agent files implicitly.\n\n## Health check\n\nWhen sync misbehaves or a command errors in a confusing way:\n\n```bash\n\"$SM\" --json repo status   # base dir, skill \u002F preset counts, active preset\n\"$SM\" --json agents list  # detected agents and their target paths\n\"$SM\" agents enable codex\n\"$SM\" agents disable claude_code\n```\n\n`repo status` and `agents list` are read-only and are the first checks for \"why isn't this skill showing up in Cursor\" questions. `agents disable` is a real mutation: it removes every managed deployment for that agent. `agents enable` makes the agent globally available again and re-syncs the legacy active preset, if one exists; use explicit skill or preset deployment afterward when the requested state is additive.\n\nUse `agents disable \u003Cagent>` when the user wants the whole Agent integration turned off or wants every managed skill removed from it. If they only want one skill or preset removed while keeping the Agent available for future deployments, use `skills undeploy` or `presets undeploy` instead.\n\n## Typical workflows\n\n### \"Find me a skill for X\" \u002F \"Install a skill that does X\"\n\n1. `skills search \"X\" --limit 5` — show the top 1–3 hits with install counts and source.\n2. If a clear winner: `skills install \u003Cinstall_ref>`.\n3. If ambiguous: ask the user to pick.\n4. Deploy it to the agent(s) the user requested with `skills deploy`.\n5. `skills status \u003Cname>` to confirm the library and deployment state.\n\n### \"What skills do I have?\"\n\n```bash\n\"$SM\" --json skills list\n```\n\nThe `preset_ids`, `presets`, `deployed_to`, `tags`, and `source_type` fields are usually the most informative. The legacy `enabled` field is not deployment state.\n\n### \"Pull in the skills already installed in my agent directories\"\n\n1. `skills adopt ~\u002F.claude\u002Fskills --dry-run` (and any other agent dirs the user mentions) — show the candidate list.\n2. After user confirms: `skills adopt ~\u002F.claude\u002Fskills`.\n3. For any adopted skill where the user knows the original repo, restore the update link with `skills set-source \u003Cskill> --git-url ... --subpath ...`.\n\n### \"Update everything\"\n\n```bash\n\"$SM\" skills check --all     # see what has upstream changes\n\"$SM\" skills update --all    # apply\n```\n\nReport which skills actually refreshed (`refreshed: true` in the JSON) vs which were already up-to-date.\n\n## Pitfalls\n\n- **Install succeeded but skill doesn't appear in the agent** → install defaults to library-only. Use `skills deploy \u003Cskill> --agent \u003Ckey>`.\n- **Preset membership changed but agent files did not** → membership is organization only. Follow with `presets deploy` or `skills deploy` when the user also asked to make it visible.\n- **No active preset** only affects legacy `skills sync` \u002F `presets apply`; additive deploy commands do not require one.\n- **Adopted skills can't be `update`d from git** → `npx skills add` and manual `git clone` don't leave source metadata, so adopt has to treat them as `local`. Re-point them with `skills set-source`. Do **not** reach for `adopt --git-url` here: adopt only ever creates new library entries, and it fails *late* — `--dry-run` returns `ok: true` with the skill sitting in `skipped`, and only the real run errors with `--git-url requires exactly one adoptable skill, found 0`. Do **not** remove-then-reinstall either — that drops the skill id, and with it the tags, preset membership and every per-agent deployment.\n- Use `--dry-run` before bulk remove, tag delete, preset delete, deploy, or undeploy operations. Use `check` before `update`.\n",{"name":5,"description":7},"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","05-技能与代理开发\u002Fmanage-skills",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill manage-skills",{"tool":38,"command":39},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill manage-skills",{"tool":41,"command":42},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill manage-skills","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fmanage-skills\u002FSKILL.md",true,[],[47,54,59,66,73,80],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":55,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]