[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F4YGYBMT5ZA85ASNNT3RVA":3,"skill-same:01M7F4YGYBMT5ZA85ASNNT3RVA":66},{"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":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":6,"ownerDescription":36,"updatedAt":37,"install":38,"resources":51},"01M7F4YGYBMT5ZA85ASNNT3RVA","skill-install-improved",null,"Install an improved variant of one named skill: resolve it by local path, repo, or name, run skill-auto-improver on a throwaway copy, then install the improved result. Don't use for improving in place, upstream PRs, or plain asm install.","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-技能与代理开发\u002Fskill-install-improved\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: skill-install-improved\ndescription: \"Install an improved variant of one named skill: resolve it by local path, repo, or name, run skill-auto-improver on a throwaway copy, then install the improved result. Don't use for improving in place, upstream PRs, or plain asm install.\"\nlicense: MIT\ncompatibility: \"Claude Code; requires `asm` and `git` on PATH\"\nallowed-tools: Bash Read Write Edit Grep Glob\neffort: high\nmetadata:\n  version: 1.0.0\n  author: luongnv89\n---\n\n# Skill Install Improved\n\nYou install an **improved** variant of one skill instead of the skill as published: resolve the target to a local directory → run `skill-auto-improver` on it → install the improved result → report what was improved and from what. The improvement is a step inside the install, not a separate errand. One skill per run.\n\n## When to Use\n\n- The user says \"install `\u003Cskill>` but improve it first\" or \"install an improved version of `\u003Cskill>`\"\n- The user points at a catalog skill below the 85\u002F8 floor and wants the better version on their machine\n- The user has a local or cloned skill directory and wants the improved variant installed, not the raw one\n\nDo **not** trigger for: improving without installing (`skill-auto-improver`), contributing upstream (`skill-upstream-pr`), authoring from scratch (`skill-creator`), plain installs (`asm install \u003Csource>`), or bulk-improving many skills at once.\n\n## Prerequisites\n\nVerify each before resolving anything. Stop and tell the user if any fails.\n\n- `asm` and `git` on PATH\n- Python 3 and `~\u002F.claude\u002Fskills\u002Fskill-creator\u002Fscripts\u002Fquick_validate.py` — `skill-auto-improver` requires it\n- Network access to GitHub, for the repo and name forms\n- Write access to the install target — the directory for the chosen tool and scope (for `claude`: `~\u002F.claude\u002Fskills\u002F` global, `.claude\u002Fskills\u002F` project). Other tools install elsewhere; take the real path from `asm list --json` or the install output.\n\n### The user's own files are never modified (design decision)\n\n**Every input form is improved on a throwaway copy under `$(mktemp -d)` — local paths included.** Deliberate: an install that rewrites the user's working copy is a side effect they did not ask for, `skill-auto-improver` mandates `git fetch` + `git pull --rebase` before any edit (against a local path that rebases their branch), and copying makes all forms behave identically.\n\n**Trade-off:** the improvement lands only in the installed copy, not the user's tree. The copy has no `origin` and no history, so the improver's mandatory repo sync is **inapplicable** and is skipped — nothing to clobber, nothing pushed. Say so out loud when you skip it. To persist the change, point them at `skill-auto-improver` (their path) or `skill-upstream-pr` (the source repo).\n\n## Inputs\n\nThe user identifies **one** target skill, in any of four forms — a local path (`skills\u002Ffoo`), a local `SKILL.md` file path, a repo (`https:\u002F\u002Fgithub.com\u002Fowner\u002Frepo`, `owner\u002Frepo`), or a skill name (`code-review`). Phase 0 normalizes all of them to one local directory, `$SKILL_PATH`.\n\nAlso needed before Phase 3: the install **scope** (`global` or `project`) and the target **tool** (`-p\u002F--tool` — `claude`, `codex`, `agents`, …). Ask for either one the user did not state; never guess. `asm install` hard-fails without `--tool` in a non-interactive run, and `-y` does not cover it.\n\nOptional: a `--name \u003Calt>` intent.\n\n## Workflow\n\nExecute phases in order. Do not skip or reorder.\n\n### Phase 0 — Resolve the target to one local directory\n\nFull contract in `references\u002Ftarget-resolution.md`. In short, with `WORK=\"$(mktemp -d)\"`:\n\n- **Local path** — `cp -R` into `$WORK`. A `SKILL.md` **file** path folds to its parent first; `skill-auto-improver` takes a directory, not a file.\n- **Repo** — plain `git clone` into `$WORK`. **Never `gh repo fork`** — this skill performs no public GitHub action.\n- **Skill name** — `asm search \"\u003Cterm>\" --available --json`, then copy the string after `asm install ` from the chosen result's `installCommand` **verbatim**. Never hand-construct `github:owner\u002Frepo:path`. Clone what it names.\n\nSet `$SKILL_PATH` to the directory holding the chosen `SKILL.md`. If the checkout holds several and no subpath was given, enumerate them (`find \"$WORK\" -maxdepth 5 -name SKILL.md -type f`) and **ask which one. Never guess.**\n\nRecord for the report: the supplied identifier, the resolved install or clone URL, and the upstream commit SHA.\n\n### Phase 1 — Delegate to skill-auto-improver\n\nThis skill does not reimplement the improvement loop. Follow the workflow in `skills\u002Fskill-auto-improver\u002FSKILL.md` with `$SKILL_PATH` as the target: Phase 0 (baseline), Phase 1 (`asm eval --fix` plus frontmatter normalization), Phases 2–4 (Gate 1 fixes, then the category loop against the 85\u002F8 floor), Phases 5–7 (version bump, the 8-iteration cap, `.asm-improver\u002Freport.md`).\n\nTwo adaptations, because the target is a throwaway copy:\n\n- Its \"Repo Sync Before Edits\" step is **inapplicable**. Log `— repo sync skipped (throwaway copy, no origin)` and continue.\n- `.asm-improver\u002F` is written **relative to the current working directory**, so run the loop with cwd inside `$SKILL_PATH`, or Phase 2 has nothing to harvest.\n\nIf the baseline already clears both gates the improver stops without editing — a valid outcome, see Edge Cases.\n\n### Phase 2 — Harvest artifacts, then clean up\n\n**Harvest before any cleanup.** Everything lives under `$SKILL_PATH\u002F.asm-improver\u002F` and dies with the temp dir. Read `baseline.json`, the highest-numbered `iter-N.json`, and `report.md`; extract the fields listed in `references\u002Finstall-and-report.md`.\n\nOnly once those values are captured, remove the two artifacts that must not ship — the `SKILL.md.bak` backup left by `asm eval --fix`, and `.asm-improver\u002F`. `asm install` copies the source recursively, so leftovers land in the installed skill:\n\n```bash\nrm -f \"$SKILL_PATH\u002FSKILL.md.bak\"\nrm -rf \"$SKILL_PATH\u002F.asm-improver\"\n```\n\nBoth deletions are confined to the `mktemp -d` copy — confirm `$SKILL_PATH` is still inside `$WORK` first. Never point either command at a user-supplied path.\n\n### Phase 3 — Install the improved directory\n\n`skill-auto-improver` never renames, so the improved variant keeps the original frontmatter `name` and collides with any existing install of the original. **`asm install` never refuses on a collision** — it plans the force overwrite itself, and with `-y` it deletes and replaces the target directory with no prompt. `-f` changes nothing here. So probe **before** invoking it. Flags and the full policy are in `references\u002Finstall-and-report.md`.\n\n```bash\nasm list --json    # probe: is this skill already installed for $TOOL \u002F $SCOPE?\n```\n\n- **Neither name matches** — install; nothing is touched.\n- **Frontmatter `name` matches for `$TOOL`** — force is set, even if that entry sits in another scope. What gets deleted is the **target** directory (`$SKILL_PATH`'s basename, or `alt`, under the install base for `$TOOL`\u002F`$SCOPE`), which need not be the matched entry's `path`. Name that target path and whatever the probe shows there, and get **explicit confirmation before running `asm install`**. There is no failure to fall back on once it is invoked.\n- **Only the directory name matches** — no delete, but the copy still **merges into** the existing directory: colliding files are overwritten and the previous occupant's other files survive inside the installed skill. Confirm this one too.\n- **Opt-out** — `--name \u003Calt>` installs side by side, on request only. It does not suppress force, so anything already at `\u003Cbase>\u002F\u003Calt>` is deleted and replaced; check `alt` against the probe. Warn first: both then share one frontmatter `name` and identical triggers, the duplicate-trigger hazard the ASM auditor flags.\n\nBoth names come out of the same probe: the frontmatter `name` plus `$TOOL` decides whether force is set, the target directory name decides what is destroyed.\n\nOnly once the probe is read and any collision above is confirmed:\n\n```bash\nasm install \"$SKILL_PATH\" -p \"$TOOL\" --scope \"$SCOPE\" --json -y\n```\n\nInstall `$SKILL_PATH`, never the original source — that would install the unimproved skill. Take the installed path from the install command's own `--json` output (`.path`); never assume `~\u002F.claude\u002Fskills\u002F`.\n\n### Phase 4 — Report, then clean up\n\nFill in the template in `references\u002Finstall-and-report.md`. The output must state that an **improved variant** was installed rather than the published skill, the provenance (supplied identifier, resolved URL, upstream SHA), the before → after numbers, the collision path taken and what it replaced, and the installed path.\n\nRemove `$WORK` only after the report is complete.\n\n## Step Completion Reports (mandatory)\n\nEmit a compact status block after each phase:\n\n```\n◆ Phase N — [phase name] ([N of 5])\n··································································\n  [check 1]:         √ pass\n  [check 2]:         × fail — [reason]\n  Result:            PASS | FAIL | PARTIAL\n```\n\nUse `√` for pass, `×` for fail, `—` for context. Checks per phase:\n\n- **Phase 0** — `Form identified`, `Copied to temp`, `SKILL_PATH unambiguous`, `Provenance recorded`\n- **Phase 1** — `Baseline captured`, `Improver ran`, `Repo sync skipped`, `Gates cleared or stop reason known`\n- **Phase 2** — `Metrics harvested`, `.bak removed`, `.asm-improver removed`, `Deletions confined to temp`\n- **Phase 3** — `Collision probed before install`, `Overwrite confirmed (if any)`, `Tool and scope supplied`, `Install succeeded`\n- **Phase 4** — `Report printed`, `Provenance shown`, `Temp dir removed`\n\n## Acceptance Criteria\n\n- Exactly one target resolved, from a local path, a repo, or a skill name\n- `$SKILL_PATH` is a directory containing `SKILL.md`, under a `mktemp -d` copy — the user's files unmodified\n- Name resolution copied `installCommand` verbatim; no hand-constructed `github:` URL\n- Repo resolution used plain `git clone`; no fork, no push, no public GitHub action\n- Several `SKILL.md` candidates and no supplied path → the user was asked, not guessed\n- `skill-auto-improver` ran on `$SKILL_PATH`; `baseline.json`, `iter-N.json`, and `report.md` read before cleanup\n- `SKILL.md.bak` and `.asm-improver\u002F` removed before the install, both deletions confined to `$WORK`\n- `asm install` pointed at `$SKILL_PATH` — the improved directory — never the original source — with both `-p\u002F--tool` and `--scope` supplied\n- A collision was probed for **before** `asm install` ran; on a match the run overwrote only after explicit confirmation, or used `--name \u003Calt>` after warning; the report says which\n- The report names the installed path, says an improved variant was installed, and shows before → after plus provenance\n- `$WORK` removed only after the report is complete\n\n### Expected output\n\n- One skill installed under the chosen scope, containing the improved `SKILL.md`\n- A report per `references\u002Finstall-and-report.md`, leading with \"installed an improved variant of `\u003Cname>`\" and the before → after numbers\n- No `.asm-improver\u002F` and no `SKILL.md.bak` inside the installed skill\n- No change to the user's own skill directories, and no remote GitHub state touched\n\n### Example\n\n\"Install code-review, improved\" on a skill that starts at 71 ends like this:\n\n```\n◆ Installed an improved variant of `code-review`\n  Installed to:    ~\u002F.claude\u002Fskills\u002Fcode-review   (read from install --json .path)\n  Install path:    confirmed overwrite of the previous install at that path\n  Tool \u002F scope:    claude \u002F global\n  Supplied as:     code-review\n  Resolved from:   github:owner\u002Frepo:skills\u002Fcode-review @ a1b2c3d\n  Overall score:   71 (C) → 92 (A)   Min category: 5 → 8\n  Version:         1.0.0 → 1.3.0     Iterations: 3 of 8\n```\n\n## Edge Cases\n\n- **Baseline already passes both gates** — the improver stops without editing. Phase 2's cleanup and Phase 3's probe still run: Phase 0 of the improver writes `.asm-improver\u002F` before it decides no edits are needed, so clean up first, then probe for a collision. Install the **original, unchanged**, and report plainly that no improvement was needed, naming the baseline score. Never imply a delta that did not happen.\n- **Improver ends in BLOCKER** (8 iterations, or stalled) — better than baseline but below the floor. Show the blocker list and ask whether to install the partial result or abort. Never install one silently.\n- **Local-path target** — improved on a copy, so the user's tree is untouched and the repo sync is skipped. Point them at `skill-auto-improver` or `skill-upstream-pr` to persist the change.\n- **Several `SKILL.md` files in a clone** — enumerate and ask. Never batch, never guess.\n- **`asm search` returns nothing, or several equally-plausible matches** — show the candidates and ask; never install the first hit.\n- **Target has no frontmatter** — `asm eval --fix` cannot add it. Report and stop; do not install an unimprovable skill as if it were improved.\n- **Collision is a same-named skill from another source** — the install would silently replace someone else's skill, with no error and no prompt. The probe is the only chance to catch it: name the target directory and whatever the probe shows there (`name`, `dirName`, `provider`, `scope`), confirm, and offer `--name \u003Calt>` — all before `asm install` runs.\n- **Temp dir removed before harvesting** — the metrics are gone and the before\u002Fafter criterion cannot be met. Harvest in Phase 2, always before cleanup.\n- **Clone or disk failure mid-resolve** — stop, remove `$WORK`, report. Never install a partial checkout.\n\n## References\n\n- `references\u002Ftarget-resolution.md` — the three input forms normalized to one local `$SKILL_PATH`\n- `references\u002Finstall-and-report.md` — install flags, collision policy, harvested fields, report template\n- `skills\u002Fskill-auto-improver\u002FSKILL.md` — the improvement loop this skill delegates to\n- `skills\u002Fskill-upstream-pr\u002FSKILL.md` — the sibling path when the improvement should go back to the source repo\n- `asm install --help` and `asm search --help` — flag references\n","# Skill Install Improved\n\nYou install an **improved** variant of one skill instead of the skill as published: resolve the target to a local directory → run `skill-auto-improver` on it → install the improved result → report what was improved and from what. The improvement is a step inside the install, not a separate errand. One skill per run.\n\n## When to Use\n\n- The user says \"install `\u003Cskill>` but improve it first\" or \"install an improved version of `\u003Cskill>`\"\n- The user points at a catalog skill below the 85\u002F8 floor and wants the better version on their machine\n- The user has a local or cloned skill directory and wants the improved variant installed, not the raw one\n\nDo **not** trigger for: improving without installing (`skill-auto-improver`), contributing upstream (`skill-upstream-pr`), authoring from scratch (`skill-creator`), plain installs (`asm install \u003Csource>`), or bulk-improving many skills at once.\n\n## Prerequisites\n\nVerify each before resolving anything. Stop and tell the user if any fails.\n\n- `asm` and `git` on PATH\n- Python 3 and `~\u002F.claude\u002Fskills\u002Fskill-creator\u002Fscripts\u002Fquick_validate.py` — `skill-auto-improver` requires it\n- Network access to GitHub, for the repo and name forms\n- Write access to the install target — the directory for the chosen tool and scope (for `claude`: `~\u002F.claude\u002Fskills\u002F` global, `.claude\u002Fskills\u002F` project). Other tools install elsewhere; take the real path from `asm list --json` or the install output.\n\n### The user's own files are never modified (design decision)\n\n**Every input form is improved on a throwaway copy under `$(mktemp -d)` — local paths included.** Deliberate: an install that rewrites the user's working copy is a side effect they did not ask for, `skill-auto-improver` mandates `git fetch` + `git pull --rebase` before any edit (against a local path that rebases their branch), and copying makes all forms behave identically.\n\n**Trade-off:** the improvement lands only in the installed copy, not the user's tree. The copy has no `origin` and no history, so the improver's mandatory repo sync is **inapplicable** and is skipped — nothing to clobber, nothing pushed. Say so out loud when you skip it. To persist the change, point them at `skill-auto-improver` (their path) or `skill-upstream-pr` (the source repo).\n\n## Inputs\n\nThe user identifies **one** target skill, in any of four forms — a local path (`skills\u002Ffoo`), a local `SKILL.md` file path, a repo (`https:\u002F\u002Fgithub.com\u002Fowner\u002Frepo`, `owner\u002Frepo`), or a skill name (`code-review`). Phase 0 normalizes all of them to one local directory, `$SKILL_PATH`.\n\nAlso needed before Phase 3: the install **scope** (`global` or `project`) and the target **tool** (`-p\u002F--tool` — `claude`, `codex`, `agents`, …). Ask for either one the user did not state; never guess. `asm install` hard-fails without `--tool` in a non-interactive run, and `-y` does not cover it.\n\nOptional: a `--name \u003Calt>` intent.\n\n## Workflow\n\nExecute phases in order. Do not skip or reorder.\n\n### Phase 0 — Resolve the target to one local directory\n\nFull contract in `references\u002Ftarget-resolution.md`. In short, with `WORK=\"$(mktemp -d)\"`:\n\n- **Local path** — `cp -R` into `$WORK`. A `SKILL.md` **file** path folds to its parent first; `skill-auto-improver` takes a directory, not a file.\n- **Repo** — plain `git clone` into `$WORK`. **Never `gh repo fork`** — this skill performs no public GitHub action.\n- **Skill name** — `asm search \"\u003Cterm>\" --available --json`, then copy the string after `asm install ` from the chosen result's `installCommand` **verbatim**. Never hand-construct `github:owner\u002Frepo:path`. Clone what it names.\n\nSet `$SKILL_PATH` to the directory holding the chosen `SKILL.md`. If the checkout holds several and no subpath was given, enumerate them (`find \"$WORK\" -maxdepth 5 -name SKILL.md -type f`) and **ask which one. Never guess.**\n\nRecord for the report: the supplied identifier, the resolved install or clone URL, and the upstream commit SHA.\n\n### Phase 1 — Delegate to skill-auto-improver\n\nThis skill does not reimplement the improvement loop. Follow the workflow in `skills\u002Fskill-auto-improver\u002FSKILL.md` with `$SKILL_PATH` as the target: Phase 0 (baseline), Phase 1 (`asm eval --fix` plus frontmatter normalization), Phases 2–4 (Gate 1 fixes, then the category loop against the 85\u002F8 floor), Phases 5–7 (version bump, the 8-iteration cap, `.asm-improver\u002Freport.md`).\n\nTwo adaptations, because the target is a throwaway copy:\n\n- Its \"Repo Sync Before Edits\" step is **inapplicable**. Log `— repo sync skipped (throwaway copy, no origin)` and continue.\n- `.asm-improver\u002F` is written **relative to the current working directory**, so run the loop with cwd inside `$SKILL_PATH`, or Phase 2 has nothing to harvest.\n\nIf the baseline already clears both gates the improver stops without editing — a valid outcome, see Edge Cases.\n\n### Phase 2 — Harvest artifacts, then clean up\n\n**Harvest before any cleanup.** Everything lives under `$SKILL_PATH\u002F.asm-improver\u002F` and dies with the temp dir. Read `baseline.json`, the highest-numbered `iter-N.json`, and `report.md`; extract the fields listed in `references\u002Finstall-and-report.md`.\n\nOnly once those values are captured, remove the two artifacts that must not ship — the `SKILL.md.bak` backup left by `asm eval --fix`, and `.asm-improver\u002F`. `asm install` copies the source recursively, so leftovers land in the installed skill:\n\n```bash\nrm -f \"$SKILL_PATH\u002FSKILL.md.bak\"\nrm -rf \"$SKILL_PATH\u002F.asm-improver\"\n```\n\nBoth deletions are confined to the `mktemp -d` copy — confirm `$SKILL_PATH` is still inside `$WORK` first. Never point either command at a user-supplied path.\n\n### Phase 3 — Install the improved directory\n\n`skill-auto-improver` never renames, so the improved variant keeps the original frontmatter `name` and collides with any existing install of the original. **`asm install` never refuses on a collision** — it plans the force overwrite itself, and with `-y` it deletes and replaces the target directory with no prompt. `-f` changes nothing here. So probe **before** invoking it. Flags and the full policy are in `references\u002Finstall-and-report.md`.\n\n```bash\nasm list --json    # probe: is this skill already installed for $TOOL \u002F $SCOPE?\n```\n\n- **Neither name matches** — install; nothing is touched.\n- **Frontmatter `name` matches for `$TOOL`** — force is set, even if that entry sits in another scope. What gets deleted is the **target** directory (`$SKILL_PATH`'s basename, or `alt`, under the install base for `$TOOL`\u002F`$SCOPE`), which need not be the matched entry's `path`. Name that target path and whatever the probe shows there, and get **explicit confirmation before running `asm install`**. There is no failure to fall back on once it is invoked.\n- **Only the directory name matches** — no delete, but the copy still **merges into** the existing directory: colliding files are overwritten and the previous occupant's other files survive inside the installed skill. Confirm this one too.\n- **Opt-out** — `--name \u003Calt>` installs side by side, on request only. It does not suppress force, so anything already at `\u003Cbase>\u002F\u003Calt>` is deleted and replaced; check `alt` against the probe. Warn first: both then share one frontmatter `name` and identical triggers, the duplicate-trigger hazard the ASM auditor flags.\n\nBoth names come out of the same probe: the frontmatter `name` plus `$TOOL` decides whether force is set, the target directory name decides what is destroyed.\n\nOnly once the probe is read and any collision above is confirmed:\n\n```bash\nasm install \"$SKILL_PATH\" -p \"$TOOL\" --scope \"$SCOPE\" --json -y\n```\n\nInstall `$SKILL_PATH`, never the original source — that would install the unimproved skill. Take the installed path from the install command's own `--json` output (`.path`); never assume `~\u002F.claude\u002Fskills\u002F`.\n\n### Phase 4 — Report, then clean up\n\nFill in the template in `references\u002Finstall-and-report.md`. The output must state that an **improved variant** was installed rather than the published skill, the provenance (supplied identifier, resolved URL, upstream SHA), the before → after numbers, the collision path taken and what it replaced, and the installed path.\n\nRemove `$WORK` only after the report is complete.\n\n## Step Completion Reports (mandatory)\n\nEmit a compact status block after each phase:\n\n```\n◆ Phase N — [phase name] ([N of 5])\n··································································\n  [check 1]:         √ pass\n  [check 2]:         × fail — [reason]\n  Result:            PASS | FAIL | PARTIAL\n```\n\nUse `√` for pass, `×` for fail, `—` for context. Checks per phase:\n\n- **Phase 0** — `Form identified`, `Copied to temp`, `SKILL_PATH unambiguous`, `Provenance recorded`\n- **Phase 1** — `Baseline captured`, `Improver ran`, `Repo sync skipped`, `Gates cleared or stop reason known`\n- **Phase 2** — `Metrics harvested`, `.bak removed`, `.asm-improver removed`, `Deletions confined to temp`\n- **Phase 3** — `Collision probed before install`, `Overwrite confirmed (if any)`, `Tool and scope supplied`, `Install succeeded`\n- **Phase 4** — `Report printed`, `Provenance shown`, `Temp dir removed`\n\n## Acceptance Criteria\n\n- Exactly one target resolved, from a local path, a repo, or a skill name\n- `$SKILL_PATH` is a directory containing `SKILL.md`, under a `mktemp -d` copy — the user's files unmodified\n- Name resolution copied `installCommand` verbatim; no hand-constructed `github:` URL\n- Repo resolution used plain `git clone`; no fork, no push, no public GitHub action\n- Several `SKILL.md` candidates and no supplied path → the user was asked, not guessed\n- `skill-auto-improver` ran on `$SKILL_PATH`; `baseline.json`, `iter-N.json`, and `report.md` read before cleanup\n- `SKILL.md.bak` and `.asm-improver\u002F` removed before the install, both deletions confined to `$WORK`\n- `asm install` pointed at `$SKILL_PATH` — the improved directory — never the original source — with both `-p\u002F--tool` and `--scope` supplied\n- A collision was probed for **before** `asm install` ran; on a match the run overwrote only after explicit confirmation, or used `--name \u003Calt>` after warning; the report says which\n- The report names the installed path, says an improved variant was installed, and shows before → after plus provenance\n- `$WORK` removed only after the report is complete\n\n### Expected output\n\n- One skill installed under the chosen scope, containing the improved `SKILL.md`\n- A report per `references\u002Finstall-and-report.md`, leading with \"installed an improved variant of `\u003Cname>`\" and the before → after numbers\n- No `.asm-improver\u002F` and no `SKILL.md.bak` inside the installed skill\n- No change to the user's own skill directories, and no remote GitHub state touched\n\n### Example\n\n\"Install code-review, improved\" on a skill that starts at 71 ends like this:\n\n```\n◆ Installed an improved variant of `code-review`\n  Installed to:    ~\u002F.claude\u002Fskills\u002Fcode-review   (read from install --json .path)\n  Install path:    confirmed overwrite of the previous install at that path\n  Tool \u002F scope:    claude \u002F global\n  Supplied as:     code-review\n  Resolved from:   github:owner\u002Frepo:skills\u002Fcode-review @ a1b2c3d\n  Overall score:   71 (C) → 92 (A)   Min category: 5 → 8\n  Version:         1.0.0 → 1.3.0     Iterations: 3 of 8\n```\n\n## Edge Cases\n\n- **Baseline already passes both gates** — the improver stops without editing. Phase 2's cleanup and Phase 3's probe still run: Phase 0 of the improver writes `.asm-improver\u002F` before it decides no edits are needed, so clean up first, then probe for a collision. Install the **original, unchanged**, and report plainly that no improvement was needed, naming the baseline score. Never imply a delta that did not happen.\n- **Improver ends in BLOCKER** (8 iterations, or stalled) — better than baseline but below the floor. Show the blocker list and ask whether to install the partial result or abort. Never install one silently.\n- **Local-path target** — improved on a copy, so the user's tree is untouched and the repo sync is skipped. Point them at `skill-auto-improver` or `skill-upstream-pr` to persist the change.\n- **Several `SKILL.md` files in a clone** — enumerate and ask. Never batch, never guess.\n- **`asm search` returns nothing, or several equally-plausible matches** — show the candidates and ask; never install the first hit.\n- **Target has no frontmatter** — `asm eval --fix` cannot add it. Report and stop; do not install an unimprovable skill as if it were improved.\n- **Collision is a same-named skill from another source** — the install would silently replace someone else's skill, with no error and no prompt. The probe is the only chance to catch it: name the target directory and whatever the probe shows there (`name`, `dirName`, `provider`, `scope`), confirm, and offer `--name \u003Calt>` — all before `asm install` runs.\n- **Temp dir removed before harvesting** — the metrics are gone and the before\u002Fafter criterion cannot be met. Harvest in Phase 2, always before cleanup.\n- **Clone or disk failure mid-resolve** — stop, remove `$WORK`, report. Never install a partial checkout.\n\n## References\n\n- `references\u002Ftarget-resolution.md` — the three input forms normalized to one local `$SKILL_PATH`\n- `references\u002Finstall-and-report.md` — install flags, collision policy, harvested fields, report template\n- `skills\u002Fskill-auto-improver\u002FSKILL.md` — the improvement loop this skill delegates to\n- `skills\u002Fskill-upstream-pr\u002FSKILL.md` — the sibling path when the improvement should go back to the source repo\n- `asm install --help` and `asm search --help` — flag references\n",{"name":5,"effort":24,"license":15,"metadata":25,"description":7,"allowed-tools":28,"compatibility":29},"high",{"author":26,"version":27},"luongnv89","1.0.0","Bash Read Write Edit Grep Glob","Claude Code; requires `asm` and `git` on PATH","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","05-技能与代理开发\u002Fskill-install-improved",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":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill skill-install-improved",{"tool":44,"command":45},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill skill-install-improved",{"tool":47,"command":48},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill skill-install-improved","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fskill-install-improved\u002FSKILL.md",true,[52,58,62],{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"docs\u002FREADME.md","REFERENCE","参考文档",5931,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fskill-install-improved\u002Fdocs\u002FREADME.md",{"path":59,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Finstall-and-report.md",8269,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fskill-install-improved\u002Freferences\u002Finstall-and-report.md",{"path":63,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Ftarget-resolution.md",5833,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fskill-install-improved\u002Freferences\u002Ftarget-resolution.md",[67,74,79,86,93,100],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"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":75,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"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":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"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":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"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":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"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":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"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",[],[]]