[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77MP1RPRVE8A1NM8PMN4JCM":3,"skill-same:01M77MP1RPRVE8A1NM8PMN4JCM":58},{"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":36,"ownerDescription":37,"updatedAt":38,"install":39,"resources":51},"01M77MP1RPRVE8A1NM8PMN4JCM","check",null,"Static quality gate for Claude Code skills. Use when checking or linting a SKILL.md or its frontmatter before shipping a skill or plugin, validating a skill's legacy evals.json (new cases: \u002Fevals:validate), checking whether the shared skill listing budget overflows, or measuring description auto-invocation against probes. Not for writing new skills, or running model-graded evals.","melodic-software\u002Fclaude-code-plugins","melodic-software","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F58273638?v=4","01M77JVQTXNGKCE4MDFY2BC936","Melodic Software","01M77JVQVN9QDWKAH6W03ANP76",30,"MIT","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-quality\u002Fskills\u002Fcheck\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\ndescription: \"Static quality gate for Claude Code skills. Use when checking or linting a SKILL.md or its frontmatter before shipping a skill or plugin, validating a skill's legacy evals.json (new cases: \u002Fevals:validate), checking whether the shared skill listing budget overflows, or measuring description auto-invocation against probes. Not for writing new skills, or running model-graded evals.\"\nargument-hint: \"[check|validate-evals|listing-budget|measure-invocation] [\u003Cskill-or-root> ...]\"\nuser-invocable: true\ndisable-model-invocation: false\nshell: bash\nmetadata:\n  workflow-stage: review\n  summary: Static QA gate for skill frontmatter, caps, and evals\n---\n\n## Purpose\n\nStatic, deterministic quality gate for skill authoring. The `check` action runs the bundled\n`check-skill.sh`. Thirty checks with no model invocation, so results are reproducible in CI or a\npre-commit hook. The `validate-evals` action checks a skill's existing `\u003Cskill>\u002Fevals\u002Fevals.json`\n(new evals are `case.yaml` suite cases, which `\u002Fevals:validate` checks) against the bundled JSON\nschema, then runs the bundled `check-evals-quality.sh`, a deterministic eval-quality lint\n(duplicate case ids\u002Fnames, missing fixtures, empty or vague grading criteria, set-coverage\nwarnings) that goes beyond structure without ever running a model-graded eval. The `listing-budget` action runs `check-listing-budget.sh`, a separate, always-advisory\nreport on the SHARED listing budget every loaded skill draws from together (a different, cross-skill\nlimit from `check`'s per-skill entry cap). The `measure-invocation` action runs\n`measure-invocation.sh`, a repeatable probe harness that scores whether a skill's listing text\nwould win the requests it should.\n\n## Skills-directory resolution\n\nThe checker never assumes a repo layout (convention-resolution ladder). It resolves the skills root in\nthis order. First hit wins:\n\n1. `${user_config.skills_root}`. Set it when your skills live outside `.claude\u002Fskills` (run\n   `\u002Fskill-quality:setup` to configure).\n2. `${CLAUDE_PROJECT_DIR}\u002F.claude\u002Fskills`. The conventional default.\n\nThe skill passes the resolved root to the script via the `CHECK_SKILL_SKILLS_ROOT` environment\nvariable. When `skills_root` is configured, export it before invoking the script:\n\n```shell\nCHECK_SKILL_SKILLS_ROOT=\"${user_config.skills_root}\" \\\n  bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-skill.sh\" \u003Cskill-name>\n```\n\nWhen it is unset, invoke the script plain. It falls back to `${CLAUDE_PROJECT_DIR}\u002F.claude\u002Fskills`.\n\n**Gating a marketplace-installed skill.** A `plugin:skill` name (e.g. `source-control:setup`) is\nnot auto-resolved: the checker resolves a bare skill name under one root and does not walk Claude\nCode's plugin cache to locate an install. More than one installed version can be on disk at once,\nand the checker will not guess which one you mean. To gate an installed skill, point the root at\nthe `skills` dir of the installed version you mean:\n\n- **Pointer**: when locating an installed version on disk, or judging which versions stay there,\n  fetch \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fplugins\u002Floading#find-plugins-on-disk> and\n  \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fplugins\u002Floading#cleanup-of-previous-versions> live.\n\n```shell\nCHECK_SKILL_SKILLS_ROOT=\u003Cinstalled-version-dir>\u002Fskills \\\n  bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-skill.sh\" \u003Cskill-leaf-name>\n```\n\nThe cache is a **copy, not a git checkout**, so the git-backed checks (3 trigger-preservation, 8\nvendor byte-identity, 9 stale-metadata, 13 committed-artifact scan) no-op against it. A \"new skill \u002F\nskipped\" result is expected there, not a defect. Passing a `plugin:skill` name unresolved prints\nguidance to this effect.\n\n## Arguments\n\nParse `$ARGUMENTS`:\n\n- **`check \u003Cskill-name>`** (default action). Run the static contract gate over one skill.\n- **`check`** *(no name)*. Run the gate over every skill under the resolved root.\n- **`check \u003Croot> [\u003Croot> ...]`**. Run the gate over every skill under each given root, grouped\n  per root with a `N passed, M failed` rollup (e.g. every plugin's skills dir in a marketplace\n  repo). Every root given must exist, and must be a skills root rather than a skill directory\n  holding its own `SKILL.md`; either mistake exits 2 naming the argument. A root that exists but\n  holds no skills is named and is not an error. A skill name and a root cannot be mixed in one\n  call. A bare argument that resolves as a skill under the already resolved root is always read as\n  that skill, never as a root, so a relative root whose name collides with an existing skill has to\n  be written with a path separator (`.\u002F\u003Cname>`) or as an absolute path.\n- **`validate-evals \u003Cskill-name>`**. Validate one skill's `\u003Cskill>\u002Fevals\u002Fevals.json` against the schema.\n- **`validate-evals`** *(no name)*. Validate every skill's `\u003Cskill>\u002Fevals\u002Fevals.json` that exists.\n- **`listing-budget`** *(no root)*. Report the shared listing-budget estimate over every\n  listing-eligible skill under the resolved root.\n- **`listing-budget \u003Croot> [\u003Croot> ...]`**. Pool every listing-eligible skill under each given root\n  into ONE shared aggregate (e.g. every plugin's skills dir in a marketplace repo). Every root given\n  must exist.\n- **`measure-invocation`** *(default `validate` then `score`)*. Run the description-invocation\n  probe harness. See Action: measure-invocation.\n\n## Action: check\n\n1. Resolve the skills root (above). If the directory does not exist, report it and offer\n   `\u002Fskill-quality:setup`.\n2. For a named skill, run:\n\n   ```shell\n   bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-skill.sh\" \u003Cskill-name>\n   ```\n\n   For no name, pass the resolved root itself rather than enumerating by hand. The script walks\n   every immediate subdirectory holding a `SKILL.md`, runs the gate once per skill, prints a\n   header per root and ends with the rollup:\n\n   ```shell\n   bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-skill.sh\" \u003Cresolved-root>\n   ```\n\n   To gate several trees in one run, pass each root: `check-skill.sh \u003Croot> [\u003Croot> ...]`.\n3. Report per skill:\n   - **PASS \u002F FAIL \u002F INCOMPLETE** from the script's exit code (0 = pass, 1 = one or more `FAIL:`\n     lines, 3 = no failure, but a deadline left script tests unrun, each named on a `SKIP` line; that\n     is not a pass). In root mode that exit code is the AGGREGATE over every skill, so the per-skill\n     verdict is that skill's own `CHECK-SKILL \u003Cname>: PASS`, `CHECK-SKILL \u003Cname>: FAIL` or\n     `CHECK-SKILL \u003Cname>: INCOMPLETE` line instead.\n   - The `FAIL:` lines verbatim (each is an actionable defect). A description\u002Fverb-contract polarity\n     mismatch is a FAIL that blocks; fix it by correcting the listing, or use `--fix` in the\n     description as the compliant override.\n   - `WARN:` lines grouped after failures (advisory: a trigger phrase dropped or moved vs the\n     base ref, missing gotchas surface, action-router without evals, orphan\n     spokes, an injection with no `shell:` whose commands only *look* portable, an injected\n     command carrying no `|| \u003Cfallback>`, same-context judgment language with no fresh-eyes\n     declaration or a stale exemption directive). A dropped-trigger warning is a review item: confirm the description still names\n     the intent each dropped phrase carried, or restore the phrase.\n4. For a multi-skill run, the script prints the rollup `N passed, M failed`, and when a deadline\n   left script tests, one more line after it counting those skills, which are in neither number.\n   Surface both verbatim. The action is complete when every `FAIL:` and `SKIP` line and the rollup\n   are reported.\n\nThe `FAIL:` messages are self-describing. Do not re-derive their meaning; surface them and, when the\nuser asks, fix the cited skill. A broken-internal-ref FAIL points at a `SKILL.md:\u003Cline>`. Hand-verify\nthat line before editing, since it may be an illustrative example path rather than a real broken ref.\n\n## Action: validate-evals\n\nThis action reads only the skill-creator JSON file a skill may still carry. A skill's new evals\nare `case.yaml` cases in its plugin's `evals\u002F` directory: `\u002Fevals:design skill \u003Cname>` writes them\nand `\u002Fevals:validate` checks them. Point an author adding evals there. Under `check\n--require-evals`, check 14 passes a skill with no JSON file when a case in its plugin's `evals\u002F`\nlists the skill's directory name in a one-line `tags: [...]`.\n\n1. Locate `\u003Cskills-root>\u002F\u003Cskill-name>\u002Fevals\u002Fevals.json`. If absent, report that the skill ships no\n   skill-creator file (not a failure) and that its suite cases, if any, are `\u002Fevals:validate`'s.\n2. Read the bundled schema at\n   [`${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fevals.schema.json`](..\u002F..\u002Freference\u002Fevals.schema.json) and the\n   skill's `evals.json`.\n3. If a JSON-schema validator is available (`check-jsonschema`, `ajv`, or `python -m jsonschema`),\n   run it and report conformance. Otherwise validate structurally against the schema: `skill_name`\n   and a non-empty `evals` array are required; each case requires `id`, `prompt`, and at least one\n   non-empty grading criterion: a non-empty `expected_output` string, a non-empty `expectations`\n   array, or a non-empty `assertions` array (a case that cannot be graded is not an eval); a\n   rich-form case may add `name` (kebab-case) and `files`, and any case may add `difficulty`\n   (`hard` or `routine`), `why_hard` (the reason a person judged it hard) and `source` (where\n   the case came from).\n4. Report each violation with its JSON path, or confirm the file conforms.\n5. Run the deterministic eval-quality lint over every located file, all at once. The script\n   accepts multiple paths:\n\n   ```shell\n   bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-evals-quality.sh\" \u003Cskills-root>\u002F\u003Cskill>\u002Fevals\u002Fevals.json\n   ```\n\n   Report its `FAIL:` lines verbatim (each is an actionable defect: duplicate case ids\u002Fnames,\n   an unresolvable `files` fixture, an empty criterion item), then its `WARN:` lines grouped\n   after (advisory quality heuristics: vague criterion phrasing, thin sole-criterion\n   `expected_output`, identical prompt+files pairs, a set with no refusal\u002Fanti-pattern case, a criterion that leaves an\n   evaluative word such as \"appropriate\" or \"correctly\" undefined, a `difficulty: hard` case\n   with no `why_hard`).\n   The script exits 0 when only warnings remain; run `--help` for the full Q1-Q11 check list.\n   If `jq` is absent the script exits 2. Report that the quality lint was skipped for that\n   reason; the schema verdict from steps 3-4 still stands.\n\n`validate-evals` checks structure and lint only. A suite case runs with and without the plugin,\nand `\u002Fevals:plugin-eval` reads the delta.\n\n## Action: listing-budget\n\n1. Resolve the root(s): explicit `\u003Croot> ...` arguments if given; otherwise the same\n   skills-root resolution as `check` (above).\n2. Run, with `--from-settings` so the budget is the one this machine resolves rather than the\n   documented default:\n\n   ```shell\n   bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-listing-budget.sh\" --from-settings [\u003Croot> ...]\n   ```\n\n   Drop the flag only when the user asks what a default consumer sees; that is the form CI runs.\n3. Report the printed aggregate, every budget row it was compared against with its verdict (one\n   row, or a band of context-window sizes when no window is pinned), the source the script labels\n   for the budget or fraction (a settings file, `SLASH_COMMAND_TOOL_CHAR_BUDGET`, an override, or\n   the documented default), and the biggest contributors when it overflows. Say that managed\n   policy is not read. The action is complete when the report names all of those elements; the\n   script exiting 0 alone is not the done-condition (it is advisory and always exits 0 on a\n   successful run). `--help` lists the settings scopes it reads and their order.\n\nThis is a **different, cross-skill limit** from `check`'s per-skill listing-entry cap\n(`description` + `when_to_use`): the shared budget every loaded skill draws from together. The\nscript exits 0 regardless of overflow, because the live budget depends on session and policy\ninputs no repository file records (the budget's basis: pointer below). Point `\u002Fdoctor` at the live session for the authoritative resolved cost. The scripts'\nencoded constants are recorded once each: in the comment above `DESC_CHAR_CAP=` in\n[`${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-skill.sh`](..\u002F..\u002Fscripts\u002Fcheck-skill.sh) and in the header\nof [`${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-listing-budget.sh`](..\u002F..\u002Fscripts\u002Fcheck-listing-budget.sh)\n(scripts, so no section anchor).\n\n- **Pointer**: when you need the per-entry cap, the shared budget's basis, its default, or its\n  override, fetch \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fsettings-reference#skilllistingmaxdescchars>,\n  \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fsettings-reference#skilllistingbudgetfraction> and\n  \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fskills#skill-descriptions-are-cut-short> live.\n\n**Only listing-eligible skills count.** The report skips a skill with\n`disable-model-invocation: true` and counts the rest, so a skill whose description never reaches\nthe listing does not inflate the aggregate. The reported figure is an upper bound for a consumer\nwho sets `skillOverrides`, which repository content cannot reveal (what it frees:\n[Skills, \"Skill descriptions are cut short\"](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fskills#skill-descriptions-are-cut-short)).\nA missing explicit root and a nonnumeric override are both\nenvironment errors (exit 2), never a silent skip or a coerced-to-zero budget.\n\n- **Pointer**: when deciding which skills' descriptions reach the listing, fetch\n  \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fskills#control-who-invokes-a-skill> and\n  \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fskills#override-skill-visibility-from-settings> live.\n\n## Action: measure-invocation\n\nRepeatable probe harness for whether a skill's listing text would win the auto-invocation match.\nDefault method is a deterministic lexical floor (`listing-overlap`) that runs without a model. CI\nvalidates the probe schema and runs the harness tests; `score` and `compare` are run by hand.\nModel-graded `claude plugin eval` cases are emitted on demand. Contract:\n[reference\u002Finvocation-probes.md](..\u002F..\u002Freference\u002Finvocation-probes.md).\n\n1. Resolve the probes directory. Use a directory the user supplied. Otherwise use\n   `${CLAUDE_PLUGIN_ROOT}\u002Fprobes` only when its `skill_dir` paths resolve in the current repo, which\n   they do inside the marketplace checkout. Otherwise stop and ask for a probes directory. The\n   shipped seed set is this marketplace's own skills; it is not a general default, and `score`\n   exits 2 when none of its `skill_dir` paths resolve.\n2. Run, in this order unless the user named one sub-action:\n\n   ```shell\n   bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fmeasure-invocation.sh\" validate \u003Cprobes-dir>\n   bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fmeasure-invocation.sh\" score \u003Cprobes-dir>\n   ```\n\n   `validate` WARNs when a should-trigger probe shares 4 or more consecutive words with the target\n   listing (`--copy-span N` changes the span); reword such a probe the way a user would ask.\n   `compare \u003Cbaseline> \u003Ctreatment>` prints per-skill train and validation deltas, each trigger-rate\n   delta with a 95% interval and a \"within noise\" line when the interval contains 0.\n   `emit-plugin-eval [--runs N] \u003Cprobes-dir> \u003Cout-dir>` writes `claude plugin eval` cases into an\n   empty or new `\u003Cout-dir>`; runs per case come from `--runs`, else the `plugin_eval_runs` setting\n   (README, Settings), else 3, and its INFO line names the value and layer to report. Each case\n   checks that the target skill fired through a `tool_used` grader on the `Skill` tool.\n   - **Pointer**: when an emitted case fails to load or its grader shape is in doubt, fetch\n     \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fplugin-evals#write-a-case-manually> and\n     \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fplugin-evals#grader-types> live.\n3. Report per skill, per split (`train` and `validation`): `trigger_rate` and\n   `false_trigger_rate`, sample size, and the method name. A rewrite is compared with `compare`\n   against `probes\u002Fbaselines\u002Flisting-overlap.json` beside the scored probes directory (or a later\n   model-graded snapshot), since `compare` needs both reports over the same skills; a delta\n   reported \"within noise\" is not a gain. The action is complete when both splits are named; a\n   single blended rate is not the done-condition.\n4. `listing-overlap` is a floor, not a model-graded auto-invocation rate. Say so when reporting.\n   Do not treat a 1.0 positive rate on the floor as proof the description saturates live\n   auto-invocation.\n\nThe seed probe set is two skills chosen for competitor density (`skill-quality:check` here,\n`mcp-tools:audit` in the `mcp-tools` plugin's `probes\u002F`). Fleet-wide description rewrites stay\nattended.\n\n## Cross-skill invocation (doctrine)\n\nMake one Skill call per skill a step needs. Do not instruct Skill-tool invocation of a\n`disable-model-invocation: true` (user-invoked-only) target. Tell the user to run `\u002Fplugin:skill`\ninstead. This gate does not automate that reachability check; author\nand review against the invariant.\n\n- **Pointer**: when deciding whether the Skill tool can reach a target, or how many skills one\n  call runs, fetch \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fskills#control-who-invokes-a-skill> live (the\n  tools reference's `Skill` row links to it and has no section anchor of its own).\n\n## Next\n\n- A FAIL or WARN to fix in a skill being authored: \u002Fplaybooks:skill-authoring.\n- All checks pass and the change is ready to ship: \u002Fverification:confirm.\n\n## Gotchas\n\n- `measure-invocation`'s default `listing-overlap` method is a lexical floor. A 1.0 positive\n  trigger rate means the description already contains the request's nouns, not that live\n  auto-invocation saturates. Report both splits and name the method.\n- The shipped probes are this marketplace's skills. Outside the marketplace checkout `score`\n  needs your own probes directory; no script turns `plugin-eval` or `claude -p` results into a\n  report for `compare`.\n- A git repository is optional. Git-backed checks (trigger-keyword preservation, vendor\n  byte-identity, stale-tracking metadata, committed-artifact scan) skip with a note when cwd\n  is outside a repo. Marketplace plugin-cache installs are plain trees. Set\n  `CHECK_SKILL_SKILLS_ROOT` (or `CLAUDE_PROJECT_DIR`) so the non-git checks still resolve a\n  skills root; without either and without a git toplevel, the script exits 2 naming the\n  missing root.\n- Check 31 (a `${user_config.KEY}` token as a condition with no fallback) FAILs only where a\n  settings-token baseline applies: `CHECK_SKILL_SETTINGS_TOKEN_BASELINE`, or the bundled default\n  when the checker runs from the repository holding the skill. In a consumer repository or a\n  plugin-cache tree its hits are WARNs; set that variable to your own baseline file (empty for\n  none) to make them block.\n- `check-skill.sh` runs `npx markdownlint-cli2` for check 6; when `npx` is absent that check downgrades\n  to a WARN rather than failing, so a run on a machine without Node still gates on every other check.\n- **Check 6 defers to the skill's own repo markdownlint config.** The checker runs `markdownlint-cli2`\n  from the top level of the git repo holding the skill, so a repo-root `.markdownlint-cli2.jsonc`\n  applies whichever directory or root you started from (where it discovers config:\n  [markdownlint-cli2 README, \"Configuration\"](https:\u002F\u002Fgithub.com\u002FDavidAnson\u002Fmarkdownlint-cli2#configuration)). A skill in no git repo (a marketplace-installed skill in the plugin cache, which has\n  no config) is linted where the checker stands, and markdownlint applies its DEFAULTS, so rules a repo deliberately disables (commonly\n  `MD013` line-length for injection blocks and tables, `MD041` first-line-heading for a frontmatter\u002FH2\n  start, `MD060` table-pipe style) fire as spurious failures on a skill that passes in-repo. This is the\n  usual cause of a \"shipped marketplace skill fails the marketplace's own gate\" report: it is a\n  wrong-config artifact, not a real regression. **Injection blocks are not special-cased**. A declared\n  `shell:` block with long lines is MD013-subject like any other content; whether it fails is entirely the\n  consumer's markdownlint config's call (disable `MD013`, or wrap the lines), never something this gate\n  overrides. In this marketplace's own CI the division of labor is explicit: the skill-quality gate skips\n  markdownlint (`CHECK_SKILL_SKIP_MARKDOWNLINT=1` in the repo's `check-changed-skills.sh` gate) and the\n  hygiene lane lints all repo markdown, SKILL.md included, under the repo config. In root mode\n  each skill is linted from its own repo's top level, so a root such as `plugins\u002F\u003Cx>\u002Fskills` gets the\n  repo-root config, not the defaults. A dispatched tree that ships no config still gets markdownlint's\n  defaults, exactly as the paragraph above describes.\n- Trigger-keyword preservation compares the working tree against `HEAD` by default, so a brand-new skill\n  (no committed version) skips check 3. That is expected, not a silent pass. For a post-commit audit\n  (where `HEAD` == the working tree hides an already-committed change), set `CHECK_SKILL_BASE_REF` to a\n  ref before the change (e.g. `HEAD^` or a merge-base) and run on a clean tree; it reroutes checks 3\u002F8\u002F9.\n- Check 1 accepts any frontmatter `model` that is a single non-empty token (`inherit`, an alias, or\n  a model id, including provider ids with `:`, `\u002F` or `@` such as Bedrock ids and ARNs) and fails an\n  empty or whitespace-containing value. The field is optional. What the runtime does with a named\n  model it will not use is runtime behavior, not a second finding.\n  - **Pointer**: when the accepted values or the runtime fallback are in doubt, fetch\n    \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fskills#frontmatter-reference> (the `model` row) live.\n- Check 1 also fails an unquoted plain `description` with a colon followed by a space on any line,\n  or a line ending in a colon (a YAML mapping indicator). A quoted or block-scalar description may\n  contain it.\n- Check 3 (trigger-keyword preservation) is advisory: it warns on a dropped phrase and never fails\n  the run. It tracks single-quoted `'phrase'` triggers and each unquoted comma-separated item of a\n  field's `Use when` clause, up to the period or semicolon that ends it. A dropped phrase found verbatim in a\n  sibling skill's description\u002Fwhen_to_use under the same skills root, where the sibling did NOT\n  already carry it at the base ref, is a trigger MOVE and warns naming the host, because the listing\n  still routes the phrase. A phrase absent everywhere, or one the sibling carried all along\n  (coincidental overlap, not a move), warns as dropped and asks the reviewer to confirm the\n  description still names the intent the phrase carried (a deliberate consolidation of near-synonym\n  triggers into an intent category) or to restore it. Treat that warning as a review item, not\n  noise.\n- Check 19 (injection shell-declaration) FAILs only when a `!` injection carries *detectable*\n  bash-only syntax (`\u002Fdev\u002Fnull`, `command -v`, a pipe into a Unix text tool) AND no `shell:` is\n  declared; portable-looking commands downgrade to a WARN, since static analysis cannot prove\n  portability. A `shell:` declaration is trusted wholesale. The check does not validate that the\n  injected commands actually match the declared shell (so `shell: pwsh` with bash-only commands is\n  out of scope). Both checks 19 and 20 scan the injected command text only. A bash-only token in a\n  plain `` ```bash `` example or in prose never trips them.\n- Check 21 (fresh-eyes declaration conformance) is WARN-only on its judgment-language heuristic;\n  only a malformed or reason-less `fresh-eyes-exempt` directive FAILs. Its proximity window is\n  per-file, so a declaration living in a referenced spoke file cannot satisfy it. The WARN says\n  so; hand-verify before editing. Literal directive examples belong inside code fences (both\n  detectors are fence- and inline-span-aware); a bare `\u003Cclass>` placeholder in prose FAILs as an\n  unknown class. Spec: `reference\u002Ffresh-eyes-declarations.md`.\n- Check 18 (precompute opportunity) is an advisory heuristic, never a FAIL. It cannot tell an\n  instruction-to-run shell block from an illustrative example, so a WARN is a candidate to judge, not a\n  defect. Like a check-5 ref, hand-verify the block before converting it. It reads only fenced shell\n  blocks (not prose \"run `git status` first\") and stays silent whenever the skill already uses any `!`\n  injection, so it under-reports by design; a clean run is not proof there is no precompute opportunity.\n  A block qualifies only when every line is an allowlisted reader (`ls`, `cat`, `find`, `wc`, a\n  read-only `git` subcommand such as `status`, `log` or `diff`, a `gh` read verb such as `view` or\n  `list`) with no redirection, substitution, chaining or pipe other than a trailing `|| echo`\n  fallback. A WARN line names no block, so finding it means reading the skill's fenced shell blocks.\n- Check 23 (completion-criteria signal) is an advisory heuristic, never a FAIL. It fires only when a\n  numbered procedure of three or more steps carries NO completion-signal token at all. It detects\n  the absence of any done-condition, and cannot grade whether a stated criterion is observable or\n  good; its broad token set means it under-reports by design. The write-side doctrine whose floor it\n  checks is `docs-hygiene:write-for-agents` (steps state observable completion criteria; guard\n  premature completion, post-completion obligations, and legwork). When authoring new agent docs or\n  fixing a flagged procedure, invoke `\u002Fdocs-hygiene:write-for-agents` via the Skill tool.\n- Check 24 (explicit invocation mode) FAILs a marketplace plugin skill (`plugins\u002F*\u002Fskills\u002F*`) whose\n  frontmatter omits `disable-model-invocation`, and only WARNs anywhere else, so a consumer's own\n  skill is informed by this fleet's convention rather than broken by it (the key's default:\n  [Skills, \"Frontmatter reference\"](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fskills#frontmatter-reference)). A non-boolean value FAILs everywhere: the check reads the bare scalar, so a quoted\n  `\"false\"` fails as the YAML string it is, while a trailing `# comment` naming the exception class\n  is fine. The rubric that owns the decision, the\n  model-invoked default and the only three exception classes a `true` may claim, is\n  [`docs\u002Fcontracts\u002Finvocation-mode\u002FREADME.md`](https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fdocs\u002Fcontracts\u002Finvocation-mode\u002FREADME.md).\n  Class attribution is NOT machine-checkable: only a `setup` skill's `true` is deterministic (class\n  (ii), the plugin-philosophy setup contract), so every other `true` emits a note to hand-verify\n  rather than a warning no scan could clear.\n- Check 25 (description\u002Fverb-contract polarity) FAILs on a listing-surface mismatch between the\n  description lead (before `Use when:`) and the Naming verb contract or the body: a report-only\n  leaf (`audit`\u002F`scan`) whose lead advertises mutation without an explicit override, a mutate leaf\n  (`clean`\u002F`tidy`\u002F`fix`) whose lead claims read-only\u002Freport-only, a read-only lead whose body\n  mutates on bare invocation, or a mutate-advertising lead whose body claims the skill never\n  mutates. `--fix` in the listing is the compliant override shape and clears a report-only verb.\n  Out of scope: whether any `audit` skill should gain a `--fix` path, and any rename. Trigger\n  phrases, \"read-only by default\",\n  the noun \"remediation\", and a negated \"or rewrites\" list do not advertise mutation.\n- `check-evals-quality.sh` requires `jq` (exit 2 without it, and the schema validation of\n  `validate-evals` steps 3-4 is unaffected). Its WARN-tier checks (Q5-Q11) are lexical heuristics:\n  Q9 (set-coverage) detects refusal\u002Fanti-pattern cases by wording, so a set whose guardrail case\n  phrases the prohibition unusually can WARN despite covering it. Read the set before adding a\n  case. It deliberately does not flag low case count: the marketplace's low eval volume is a recorded\n  divergence from the evaluation guidance.\n- `check-evals-quality.sh` resolves each case's `files` entries relative to the skill directory\n  first, then the evals directory. An entry that is prose (environment description) rather than a\n  real path FAILs Q4. Describe environment state in the case's `prompt` parenthetical instead,\n  or ship a fixture. When `files` is empty\u002Fabsent, path-shaped tokens in `prompt`\u002F`expected_output`\n  that resolve nowhere WARN under the same Q4 roots unless the case sets `narration: true`.\n- A clean `listing-budget` report is a signal to investigate against `\u002Fdoctor` in a live session,\n  not a guarantee nothing is dropped there. In this marketplace's own repo, each plugin owns its own\n  `plugins\u002F\u003Cplugin>\u002Fskills\u002F` root, so gating the whole marketplace means pooling every plugin's root\n  into one call (`check-listing-budget.sh plugins\u002F*\u002Fskills`) rather than running it once per plugin\n  in isolation. The marketplace's CI workflow runs that pooled call as a dedicated step on every run.\n- **`check \u003Croot> ...` pools nothing across roots.** Each skill is gated by its own child run\n  carrying its own root, so the cross-skill scans stay per root: check 3's trigger-move scan looks\n  for a moved phrase only among siblings under the same root, check 5's sibling-ref resolution only\n  names a sibling under the same root, and the `\u002Fplugins\u002F\u003Cx>\u002Fskills` plugin-root detection behind\n  the evals-warrant lookup is derived per root. Two roots in one call are two independent scans\n  sharing one rollup, never one merged corpus. Pooling them would change what those checks mean,\n  which is why it is not done. `listing-budget` is the opposite by design: it pools, because the\n  budget it reports is the shared one.\n- **In root mode each skill is gated with the DISPATCHED tree's git context, never the caller's.**\n  Every git-backed check (3 trigger preservation, 8 vendor byte-identity, 9 stale metadata, 13\n  committed artifacts) joins two values that both derive from the working directory: the repository\n  root, and the skill's path within it. A child left at the caller's directory takes those from two\n  different repositories and reports one against the other, so a path tracked in *your* repo\n  surfaces as a finding against a skill that lives somewhere else entirely. Each child therefore\n  runs at its own root. A root outside any repository skips the git-backed checks with their usual\n  named notes rather than borrowing the caller's repository, and `CHECK_SKILL_BASE_REF` is resolved\n  against the dispatched repository, so a ref that exists only there is accepted and one absent\n  there is an environment error in that child.\n- **One resolved root stays the DEFAULT deliberately.** An explicit root list is how you widen\n  coverage; the resolution ladder never grows on its own to the union of every skills tree in\n  reach. Widening the default would silently widen every existing consumer's gate, including this\n  repo's CI, so broader coverage is something a caller asks for rather than something the ladder\n  decides for them.\n","## Purpose\n\nStatic, deterministic quality gate for skill authoring. The `check` action runs the bundled\n`check-skill.sh`. Thirty checks with no model invocation, so results are reproducible in CI or a\npre-commit hook. The `validate-evals` action checks a skill's existing `\u003Cskill>\u002Fevals\u002Fevals.json`\n(new evals are `case.yaml` suite cases, which `\u002Fevals:validate` checks) against the bundled JSON\nschema, then runs the bundled `check-evals-quality.sh`, a deterministic eval-quality lint\n(duplicate case ids\u002Fnames, missing fixtures, empty or vague grading criteria, set-coverage\nwarnings) that goes beyond structure without ever running a model-graded eval. The `listing-budget` action runs `check-listing-budget.sh`, a separate, always-advisory\nreport on the SHARED listing budget every loaded skill draws from together (a different, cross-skill\nlimit from `check`'s per-skill entry cap). The `measure-invocation` action runs\n`measure-invocation.sh`, a repeatable probe harness that scores whether a skill's listing text\nwould win the requests it should.\n\n## Skills-directory resolution\n\nThe checker never assumes a repo layout (convention-resolution ladder). It resolves the skills root in\nthis order. First hit wins:\n\n1. `${user_config.skills_root}`. Set it when your skills live outside `.claude\u002Fskills` (run\n   `\u002Fskill-quality:setup` to configure).\n2. `${CLAUDE_PROJECT_DIR}\u002F.claude\u002Fskills`. The conventional default.\n\nThe skill passes the resolved root to the script via the `CHECK_SKILL_SKILLS_ROOT` environment\nvariable. When `skills_root` is configured, export it before invoking the script:\n\n```shell\nCHECK_SKILL_SKILLS_ROOT=\"${user_config.skills_root}\" \\\n  bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-skill.sh\" \u003Cskill-name>\n```\n\nWhen it is unset, invoke the script plain. It falls back to `${CLAUDE_PROJECT_DIR}\u002F.claude\u002Fskills`.\n\n**Gating a marketplace-installed skill.** A `plugin:skill` name (e.g. `source-control:setup`) is\nnot auto-resolved: the checker resolves a bare skill name under one root and does not walk Claude\nCode's plugin cache to locate an install. More than one installed version can be on disk at once,\nand the checker will not guess which one you mean. To gate an installed skill, point the root at\nthe `skills` dir of the installed version you mean:\n\n- **Pointer**: when locating an installed version on disk, or judging which versions stay there,\n  fetch \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fplugins\u002Floading#find-plugins-on-disk> and\n  \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fplugins\u002Floading#cleanup-of-previous-versions> live.\n\n```shell\nCHECK_SKILL_SKILLS_ROOT=\u003Cinstalled-version-dir>\u002Fskills \\\n  bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-skill.sh\" \u003Cskill-leaf-name>\n```\n\nThe cache is a **copy, not a git checkout**, so the git-backed checks (3 trigger-preservation, 8\nvendor byte-identity, 9 stale-metadata, 13 committed-artifact scan) no-op against it. A \"new skill \u002F\nskipped\" result is expected there, not a defect. Passing a `plugin:skill` name unresolved prints\nguidance to this effect.\n\n## Arguments\n\nParse `$ARGUMENTS`:\n\n- **`check \u003Cskill-name>`** (default action). Run the static contract gate over one skill.\n- **`check`** *(no name)*. Run the gate over every skill under the resolved root.\n- **`check \u003Croot> [\u003Croot> ...]`**. Run the gate over every skill under each given root, grouped\n  per root with a `N passed, M failed` rollup (e.g. every plugin's skills dir in a marketplace\n  repo). Every root given must exist, and must be a skills root rather than a skill directory\n  holding its own `SKILL.md`; either mistake exits 2 naming the argument. A root that exists but\n  holds no skills is named and is not an error. A skill name and a root cannot be mixed in one\n  call. A bare argument that resolves as a skill under the already resolved root is always read as\n  that skill, never as a root, so a relative root whose name collides with an existing skill has to\n  be written with a path separator (`.\u002F\u003Cname>`) or as an absolute path.\n- **`validate-evals \u003Cskill-name>`**. Validate one skill's `\u003Cskill>\u002Fevals\u002Fevals.json` against the schema.\n- **`validate-evals`** *(no name)*. Validate every skill's `\u003Cskill>\u002Fevals\u002Fevals.json` that exists.\n- **`listing-budget`** *(no root)*. Report the shared listing-budget estimate over every\n  listing-eligible skill under the resolved root.\n- **`listing-budget \u003Croot> [\u003Croot> ...]`**. Pool every listing-eligible skill under each given root\n  into ONE shared aggregate (e.g. every plugin's skills dir in a marketplace repo). Every root given\n  must exist.\n- **`measure-invocation`** *(default `validate` then `score`)*. Run the description-invocation\n  probe harness. See Action: measure-invocation.\n\n## Action: check\n\n1. Resolve the skills root (above). If the directory does not exist, report it and offer\n   `\u002Fskill-quality:setup`.\n2. For a named skill, run:\n\n   ```shell\n   bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-skill.sh\" \u003Cskill-name>\n   ```\n\n   For no name, pass the resolved root itself rather than enumerating by hand. The script walks\n   every immediate subdirectory holding a `SKILL.md`, runs the gate once per skill, prints a\n   header per root and ends with the rollup:\n\n   ```shell\n   bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-skill.sh\" \u003Cresolved-root>\n   ```\n\n   To gate several trees in one run, pass each root: `check-skill.sh \u003Croot> [\u003Croot> ...]`.\n3. Report per skill:\n   - **PASS \u002F FAIL \u002F INCOMPLETE** from the script's exit code (0 = pass, 1 = one or more `FAIL:`\n     lines, 3 = no failure, but a deadline left script tests unrun, each named on a `SKIP` line; that\n     is not a pass). In root mode that exit code is the AGGREGATE over every skill, so the per-skill\n     verdict is that skill's own `CHECK-SKILL \u003Cname>: PASS`, `CHECK-SKILL \u003Cname>: FAIL` or\n     `CHECK-SKILL \u003Cname>: INCOMPLETE` line instead.\n   - The `FAIL:` lines verbatim (each is an actionable defect). A description\u002Fverb-contract polarity\n     mismatch is a FAIL that blocks; fix it by correcting the listing, or use `--fix` in the\n     description as the compliant override.\n   - `WARN:` lines grouped after failures (advisory: a trigger phrase dropped or moved vs the\n     base ref, missing gotchas surface, action-router without evals, orphan\n     spokes, an injection with no `shell:` whose commands only *look* portable, an injected\n     command carrying no `|| \u003Cfallback>`, same-context judgment language with no fresh-eyes\n     declaration or a stale exemption directive). A dropped-trigger warning is a review item: confirm the description still names\n     the intent each dropped phrase carried, or restore the phrase.\n4. For a multi-skill run, the script prints the rollup `N passed, M failed`, and when a deadline\n   left script tests, one more line after it counting those skills, which are in neither number.\n   Surface both verbatim. The action is complete when every `FAIL:` and `SKIP` line and the rollup\n   are reported.\n\nThe `FAIL:` messages are self-describing. Do not re-derive their meaning; surface them and, when the\nuser asks, fix the cited skill. A broken-internal-ref FAIL points at a `SKILL.md:\u003Cline>`. Hand-verify\nthat line before editing, since it may be an illustrative example path rather than a real broken ref.\n\n## Action: validate-evals\n\nThis action reads only the skill-creator JSON file a skill may still carry. A skill's new evals\nare `case.yaml` cases in its plugin's `evals\u002F` directory: `\u002Fevals:design skill \u003Cname>` writes them\nand `\u002Fevals:validate` checks them. Point an author adding evals there. Under `check\n--require-evals`, check 14 passes a skill with no JSON file when a case in its plugin's `evals\u002F`\nlists the skill's directory name in a one-line `tags: [...]`.\n\n1. Locate `\u003Cskills-root>\u002F\u003Cskill-name>\u002Fevals\u002Fevals.json`. If absent, report that the skill ships no\n   skill-creator file (not a failure) and that its suite cases, if any, are `\u002Fevals:validate`'s.\n2. Read the bundled schema at\n   [`${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fevals.schema.json`](..\u002F..\u002Freference\u002Fevals.schema.json) and the\n   skill's `evals.json`.\n3. If a JSON-schema validator is available (`check-jsonschema`, `ajv`, or `python -m jsonschema`),\n   run it and report conformance. Otherwise validate structurally against the schema: `skill_name`\n   and a non-empty `evals` array are required; each case requires `id`, `prompt`, and at least one\n   non-empty grading criterion: a non-empty `expected_output` string, a non-empty `expectations`\n   array, or a non-empty `assertions` array (a case that cannot be graded is not an eval); a\n   rich-form case may add `name` (kebab-case) and `files`, and any case may add `difficulty`\n   (`hard` or `routine`), `why_hard` (the reason a person judged it hard) and `source` (where\n   the case came from).\n4. Report each violation with its JSON path, or confirm the file conforms.\n5. Run the deterministic eval-quality lint over every located file, all at once. The script\n   accepts multiple paths:\n\n   ```shell\n   bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-evals-quality.sh\" \u003Cskills-root>\u002F\u003Cskill>\u002Fevals\u002Fevals.json\n   ```\n\n   Report its `FAIL:` lines verbatim (each is an actionable defect: duplicate case ids\u002Fnames,\n   an unresolvable `files` fixture, an empty criterion item), then its `WARN:` lines grouped\n   after (advisory quality heuristics: vague criterion phrasing, thin sole-criterion\n   `expected_output`, identical prompt+files pairs, a set with no refusal\u002Fanti-pattern case, a criterion that leaves an\n   evaluative word such as \"appropriate\" or \"correctly\" undefined, a `difficulty: hard` case\n   with no `why_hard`).\n   The script exits 0 when only warnings remain; run `--help` for the full Q1-Q11 check list.\n   If `jq` is absent the script exits 2. Report that the quality lint was skipped for that\n   reason; the schema verdict from steps 3-4 still stands.\n\n`validate-evals` checks structure and lint only. A suite case runs with and without the plugin,\nand `\u002Fevals:plugin-eval` reads the delta.\n\n## Action: listing-budget\n\n1. Resolve the root(s): explicit `\u003Croot> ...` arguments if given; otherwise the same\n   skills-root resolution as `check` (above).\n2. Run, with `--from-settings` so the budget is the one this machine resolves rather than the\n   documented default:\n\n   ```shell\n   bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-listing-budget.sh\" --from-settings [\u003Croot> ...]\n   ```\n\n   Drop the flag only when the user asks what a default consumer sees; that is the form CI runs.\n3. Report the printed aggregate, every budget row it was compared against with its verdict (one\n   row, or a band of context-window sizes when no window is pinned), the source the script labels\n   for the budget or fraction (a settings file, `SLASH_COMMAND_TOOL_CHAR_BUDGET`, an override, or\n   the documented default), and the biggest contributors when it overflows. Say that managed\n   policy is not read. The action is complete when the report names all of those elements; the\n   script exiting 0 alone is not the done-condition (it is advisory and always exits 0 on a\n   successful run). `--help` lists the settings scopes it reads and their order.\n\nThis is a **different, cross-skill limit** from `check`'s per-skill listing-entry cap\n(`description` + `when_to_use`): the shared budget every loaded skill draws from together. The\nscript exits 0 regardless of overflow, because the live budget depends on session and policy\ninputs no repository file records (the budget's basis: pointer below). Point `\u002Fdoctor` at the live session for the authoritative resolved cost. The scripts'\nencoded constants are recorded once each: in the comment above `DESC_CHAR_CAP=` in\n[`${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-skill.sh`](..\u002F..\u002Fscripts\u002Fcheck-skill.sh) and in the header\nof [`${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-listing-budget.sh`](..\u002F..\u002Fscripts\u002Fcheck-listing-budget.sh)\n(scripts, so no section anchor).\n\n- **Pointer**: when you need the per-entry cap, the shared budget's basis, its default, or its\n  override, fetch \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fsettings-reference#skilllistingmaxdescchars>,\n  \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fsettings-reference#skilllistingbudgetfraction> and\n  \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fskills#skill-descriptions-are-cut-short> live.\n\n**Only listing-eligible skills count.** The report skips a skill with\n`disable-model-invocation: true` and counts the rest, so a skill whose description never reaches\nthe listing does not inflate the aggregate. The reported figure is an upper bound for a consumer\nwho sets `skillOverrides`, which repository content cannot reveal (what it frees:\n[Skills, \"Skill descriptions are cut short\"](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fskills#skill-descriptions-are-cut-short)).\nA missing explicit root and a nonnumeric override are both\nenvironment errors (exit 2), never a silent skip or a coerced-to-zero budget.\n\n- **Pointer**: when deciding which skills' descriptions reach the listing, fetch\n  \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fskills#control-who-invokes-a-skill> and\n  \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fskills#override-skill-visibility-from-settings> live.\n\n## Action: measure-invocation\n\nRepeatable probe harness for whether a skill's listing text would win the auto-invocation match.\nDefault method is a deterministic lexical floor (`listing-overlap`) that runs without a model. CI\nvalidates the probe schema and runs the harness tests; `score` and `compare` are run by hand.\nModel-graded `claude plugin eval` cases are emitted on demand. Contract:\n[reference\u002Finvocation-probes.md](..\u002F..\u002Freference\u002Finvocation-probes.md).\n\n1. Resolve the probes directory. Use a directory the user supplied. Otherwise use\n   `${CLAUDE_PLUGIN_ROOT}\u002Fprobes` only when its `skill_dir` paths resolve in the current repo, which\n   they do inside the marketplace checkout. Otherwise stop and ask for a probes directory. The\n   shipped seed set is this marketplace's own skills; it is not a general default, and `score`\n   exits 2 when none of its `skill_dir` paths resolve.\n2. Run, in this order unless the user named one sub-action:\n\n   ```shell\n   bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fmeasure-invocation.sh\" validate \u003Cprobes-dir>\n   bash \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fmeasure-invocation.sh\" score \u003Cprobes-dir>\n   ```\n\n   `validate` WARNs when a should-trigger probe shares 4 or more consecutive words with the target\n   listing (`--copy-span N` changes the span); reword such a probe the way a user would ask.\n   `compare \u003Cbaseline> \u003Ctreatment>` prints per-skill train and validation deltas, each trigger-rate\n   delta with a 95% interval and a \"within noise\" line when the interval contains 0.\n   `emit-plugin-eval [--runs N] \u003Cprobes-dir> \u003Cout-dir>` writes `claude plugin eval` cases into an\n   empty or new `\u003Cout-dir>`; runs per case come from `--runs`, else the `plugin_eval_runs` setting\n   (README, Settings), else 3, and its INFO line names the value and layer to report. Each case\n   checks that the target skill fired through a `tool_used` grader on the `Skill` tool.\n   - **Pointer**: when an emitted case fails to load or its grader shape is in doubt, fetch\n     \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fplugin-evals#write-a-case-manually> and\n     \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fplugin-evals#grader-types> live.\n3. Report per skill, per split (`train` and `validation`): `trigger_rate` and\n   `false_trigger_rate`, sample size, and the method name. A rewrite is compared with `compare`\n   against `probes\u002Fbaselines\u002Flisting-overlap.json` beside the scored probes directory (or a later\n   model-graded snapshot), since `compare` needs both reports over the same skills; a delta\n   reported \"within noise\" is not a gain. The action is complete when both splits are named; a\n   single blended rate is not the done-condition.\n4. `listing-overlap` is a floor, not a model-graded auto-invocation rate. Say so when reporting.\n   Do not treat a 1.0 positive rate on the floor as proof the description saturates live\n   auto-invocation.\n\nThe seed probe set is two skills chosen for competitor density (`skill-quality:check` here,\n`mcp-tools:audit` in the `mcp-tools` plugin's `probes\u002F`). Fleet-wide description rewrites stay\nattended.\n\n## Cross-skill invocation (doctrine)\n\nMake one Skill call per skill a step needs. Do not instruct Skill-tool invocation of a\n`disable-model-invocation: true` (user-invoked-only) target. Tell the user to run `\u002Fplugin:skill`\ninstead. This gate does not automate that reachability check; author\nand review against the invariant.\n\n- **Pointer**: when deciding whether the Skill tool can reach a target, or how many skills one\n  call runs, fetch \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fskills#control-who-invokes-a-skill> live (the\n  tools reference's `Skill` row links to it and has no section anchor of its own).\n\n## Next\n\n- A FAIL or WARN to fix in a skill being authored: \u002Fplaybooks:skill-authoring.\n- All checks pass and the change is ready to ship: \u002Fverification:confirm.\n\n## Gotchas\n\n- `measure-invocation`'s default `listing-overlap` method is a lexical floor. A 1.0 positive\n  trigger rate means the description already contains the request's nouns, not that live\n  auto-invocation saturates. Report both splits and name the method.\n- The shipped probes are this marketplace's skills. Outside the marketplace checkout `score`\n  needs your own probes directory; no script turns `plugin-eval` or `claude -p` results into a\n  report for `compare`.\n- A git repository is optional. Git-backed checks (trigger-keyword preservation, vendor\n  byte-identity, stale-tracking metadata, committed-artifact scan) skip with a note when cwd\n  is outside a repo. Marketplace plugin-cache installs are plain trees. Set\n  `CHECK_SKILL_SKILLS_ROOT` (or `CLAUDE_PROJECT_DIR`) so the non-git checks still resolve a\n  skills root; without either and without a git toplevel, the script exits 2 naming the\n  missing root.\n- Check 31 (a `${user_config.KEY}` token as a condition with no fallback) FAILs only where a\n  settings-token baseline applies: `CHECK_SKILL_SETTINGS_TOKEN_BASELINE`, or the bundled default\n  when the checker runs from the repository holding the skill. In a consumer repository or a\n  plugin-cache tree its hits are WARNs; set that variable to your own baseline file (empty for\n  none) to make them block.\n- `check-skill.sh` runs `npx markdownlint-cli2` for check 6; when `npx` is absent that check downgrades\n  to a WARN rather than failing, so a run on a machine without Node still gates on every other check.\n- **Check 6 defers to the skill's own repo markdownlint config.** The checker runs `markdownlint-cli2`\n  from the top level of the git repo holding the skill, so a repo-root `.markdownlint-cli2.jsonc`\n  applies whichever directory or root you started from (where it discovers config:\n  [markdownlint-cli2 README, \"Configuration\"](https:\u002F\u002Fgithub.com\u002FDavidAnson\u002Fmarkdownlint-cli2#configuration)). A skill in no git repo (a marketplace-installed skill in the plugin cache, which has\n  no config) is linted where the checker stands, and markdownlint applies its DEFAULTS, so rules a repo deliberately disables (commonly\n  `MD013` line-length for injection blocks and tables, `MD041` first-line-heading for a frontmatter\u002FH2\n  start, `MD060` table-pipe style) fire as spurious failures on a skill that passes in-repo. This is the\n  usual cause of a \"shipped marketplace skill fails the marketplace's own gate\" report: it is a\n  wrong-config artifact, not a real regression. **Injection blocks are not special-cased**. A declared\n  `shell:` block with long lines is MD013-subject like any other content; whether it fails is entirely the\n  consumer's markdownlint config's call (disable `MD013`, or wrap the lines), never something this gate\n  overrides. In this marketplace's own CI the division of labor is explicit: the skill-quality gate skips\n  markdownlint (`CHECK_SKILL_SKIP_MARKDOWNLINT=1` in the repo's `check-changed-skills.sh` gate) and the\n  hygiene lane lints all repo markdown, SKILL.md included, under the repo config. In root mode\n  each skill is linted from its own repo's top level, so a root such as `plugins\u002F\u003Cx>\u002Fskills` gets the\n  repo-root config, not the defaults. A dispatched tree that ships no config still gets markdownlint's\n  defaults, exactly as the paragraph above describes.\n- Trigger-keyword preservation compares the working tree against `HEAD` by default, so a brand-new skill\n  (no committed version) skips check 3. That is expected, not a silent pass. For a post-commit audit\n  (where `HEAD` == the working tree hides an already-committed change), set `CHECK_SKILL_BASE_REF` to a\n  ref before the change (e.g. `HEAD^` or a merge-base) and run on a clean tree; it reroutes checks 3\u002F8\u002F9.\n- Check 1 accepts any frontmatter `model` that is a single non-empty token (`inherit`, an alias, or\n  a model id, including provider ids with `:`, `\u002F` or `@` such as Bedrock ids and ARNs) and fails an\n  empty or whitespace-containing value. The field is optional. What the runtime does with a named\n  model it will not use is runtime behavior, not a second finding.\n  - **Pointer**: when the accepted values or the runtime fallback are in doubt, fetch\n    \u003Chttps:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fskills#frontmatter-reference> (the `model` row) live.\n- Check 1 also fails an unquoted plain `description` with a colon followed by a space on any line,\n  or a line ending in a colon (a YAML mapping indicator). A quoted or block-scalar description may\n  contain it.\n- Check 3 (trigger-keyword preservation) is advisory: it warns on a dropped phrase and never fails\n  the run. It tracks single-quoted `'phrase'` triggers and each unquoted comma-separated item of a\n  field's `Use when` clause, up to the period or semicolon that ends it. A dropped phrase found verbatim in a\n  sibling skill's description\u002Fwhen_to_use under the same skills root, where the sibling did NOT\n  already carry it at the base ref, is a trigger MOVE and warns naming the host, because the listing\n  still routes the phrase. A phrase absent everywhere, or one the sibling carried all along\n  (coincidental overlap, not a move), warns as dropped and asks the reviewer to confirm the\n  description still names the intent the phrase carried (a deliberate consolidation of near-synonym\n  triggers into an intent category) or to restore it. Treat that warning as a review item, not\n  noise.\n- Check 19 (injection shell-declaration) FAILs only when a `!` injection carries *detectable*\n  bash-only syntax (`\u002Fdev\u002Fnull`, `command -v`, a pipe into a Unix text tool) AND no `shell:` is\n  declared; portable-looking commands downgrade to a WARN, since static analysis cannot prove\n  portability. A `shell:` declaration is trusted wholesale. The check does not validate that the\n  injected commands actually match the declared shell (so `shell: pwsh` with bash-only commands is\n  out of scope). Both checks 19 and 20 scan the injected command text only. A bash-only token in a\n  plain `` ```bash `` example or in prose never trips them.\n- Check 21 (fresh-eyes declaration conformance) is WARN-only on its judgment-language heuristic;\n  only a malformed or reason-less `fresh-eyes-exempt` directive FAILs. Its proximity window is\n  per-file, so a declaration living in a referenced spoke file cannot satisfy it. The WARN says\n  so; hand-verify before editing. Literal directive examples belong inside code fences (both\n  detectors are fence- and inline-span-aware); a bare `\u003Cclass>` placeholder in prose FAILs as an\n  unknown class. Spec: `reference\u002Ffresh-eyes-declarations.md`.\n- Check 18 (precompute opportunity) is an advisory heuristic, never a FAIL. It cannot tell an\n  instruction-to-run shell block from an illustrative example, so a WARN is a candidate to judge, not a\n  defect. Like a check-5 ref, hand-verify the block before converting it. It reads only fenced shell\n  blocks (not prose \"run `git status` first\") and stays silent whenever the skill already uses any `!`\n  injection, so it under-reports by design; a clean run is not proof there is no precompute opportunity.\n  A block qualifies only when every line is an allowlisted reader (`ls`, `cat`, `find`, `wc`, a\n  read-only `git` subcommand such as `status`, `log` or `diff`, a `gh` read verb such as `view` or\n  `list`) with no redirection, substitution, chaining or pipe other than a trailing `|| echo`\n  fallback. A WARN line names no block, so finding it means reading the skill's fenced shell blocks.\n- Check 23 (completion-criteria signal) is an advisory heuristic, never a FAIL. It fires only when a\n  numbered procedure of three or more steps carries NO completion-signal token at all. It detects\n  the absence of any done-condition, and cannot grade whether a stated criterion is observable or\n  good; its broad token set means it under-reports by design. The write-side doctrine whose floor it\n  checks is `docs-hygiene:write-for-agents` (steps state observable completion criteria; guard\n  premature completion, post-completion obligations, and legwork). When authoring new agent docs or\n  fixing a flagged procedure, invoke `\u002Fdocs-hygiene:write-for-agents` via the Skill tool.\n- Check 24 (explicit invocation mode) FAILs a marketplace plugin skill (`plugins\u002F*\u002Fskills\u002F*`) whose\n  frontmatter omits `disable-model-invocation`, and only WARNs anywhere else, so a consumer's own\n  skill is informed by this fleet's convention rather than broken by it (the key's default:\n  [Skills, \"Frontmatter reference\"](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fskills#frontmatter-reference)). A non-boolean value FAILs everywhere: the check reads the bare scalar, so a quoted\n  `\"false\"` fails as the YAML string it is, while a trailing `# comment` naming the exception class\n  is fine. The rubric that owns the decision, the\n  model-invoked default and the only three exception classes a `true` may claim, is\n  [`docs\u002Fcontracts\u002Finvocation-mode\u002FREADME.md`](https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fdocs\u002Fcontracts\u002Finvocation-mode\u002FREADME.md).\n  Class attribution is NOT machine-checkable: only a `setup` skill's `true` is deterministic (class\n  (ii), the plugin-philosophy setup contract), so every other `true` emits a note to hand-verify\n  rather than a warning no scan could clear.\n- Check 25 (description\u002Fverb-contract polarity) FAILs on a listing-surface mismatch between the\n  description lead (before `Use when:`) and the Naming verb contract or the body: a report-only\n  leaf (`audit`\u002F`scan`) whose lead advertises mutation without an explicit override, a mutate leaf\n  (`clean`\u002F`tidy`\u002F`fix`) whose lead claims read-only\u002Freport-only, a read-only lead whose body\n  mutates on bare invocation, or a mutate-advertising lead whose body claims the skill never\n  mutates. `--fix` in the listing is the compliant override shape and clears a report-only verb.\n  Out of scope: whether any `audit` skill should gain a `--fix` path, and any rename. Trigger\n  phrases, \"read-only by default\",\n  the noun \"remediation\", and a negated \"or rewrites\" list do not advertise mutation.\n- `check-evals-quality.sh` requires `jq` (exit 2 without it, and the schema validation of\n  `validate-evals` steps 3-4 is unaffected). Its WARN-tier checks (Q5-Q11) are lexical heuristics:\n  Q9 (set-coverage) detects refusal\u002Fanti-pattern cases by wording, so a set whose guardrail case\n  phrases the prohibition unusually can WARN despite covering it. Read the set before adding a\n  case. It deliberately does not flag low case count: the marketplace's low eval volume is a recorded\n  divergence from the evaluation guidance.\n- `check-evals-quality.sh` resolves each case's `files` entries relative to the skill directory\n  first, then the evals directory. An entry that is prose (environment description) rather than a\n  real path FAILs Q4. Describe environment state in the case's `prompt` parenthetical instead,\n  or ship a fixture. When `files` is empty\u002Fabsent, path-shaped tokens in `prompt`\u002F`expected_output`\n  that resolve nowhere WARN under the same Q4 roots unless the case sets `narration: true`.\n- A clean `listing-budget` report is a signal to investigate against `\u002Fdoctor` in a live session,\n  not a guarantee nothing is dropped there. In this marketplace's own repo, each plugin owns its own\n  `plugins\u002F\u003Cplugin>\u002Fskills\u002F` root, so gating the whole marketplace means pooling every plugin's root\n  into one call (`check-listing-budget.sh plugins\u002F*\u002Fskills`) rather than running it once per plugin\n  in isolation. The marketplace's CI workflow runs that pooled call as a dedicated step on every run.\n- **`check \u003Croot> ...` pools nothing across roots.** Each skill is gated by its own child run\n  carrying its own root, so the cross-skill scans stay per root: check 3's trigger-move scan looks\n  for a moved phrase only among siblings under the same root, check 5's sibling-ref resolution only\n  names a sibling under the same root, and the `\u002Fplugins\u002F\u003Cx>\u002Fskills` plugin-root detection behind\n  the evals-warrant lookup is derived per root. Two roots in one call are two independent scans\n  sharing one rollup, never one merged corpus. Pooling them would change what those checks mean,\n  which is why it is not done. `listing-budget` is the opposite by design: it pools, because the\n  budget it reports is the shared one.\n- **In root mode each skill is gated with the DISPATCHED tree's git context, never the caller's.**\n  Every git-backed check (3 trigger preservation, 8 vendor byte-identity, 9 stale metadata, 13\n  committed artifacts) joins two values that both derive from the working directory: the repository\n  root, and the skill's path within it. A child left at the caller's directory takes those from two\n  different repositories and reports one against the other, so a path tracked in *your* repo\n  surfaces as a finding against a skill that lives somewhere else entirely. Each child therefore\n  runs at its own root. A root outside any repository skips the git-backed checks with their usual\n  named notes rather than borrowing the caller's repository, and `CHECK_SKILL_BASE_REF` is resolved\n  against the dispatched repository, so a ref that exists only there is accepted and one absent\n  there is an environment error in that child.\n- **One resolved root stays the DEFAULT deliberately.** An explicit root list is how you widen\n  coverage; the resolution ladder never grows on its own to the union of every skills tree in\n  reach. Widening the default would silently widen every existing consumer's gate, including this\n  repo's CI, so broader coverage is something a caller asks for rather than something the ladder\n  decides for them.\n",{"shell":24,"metadata":25,"description":7,"argument-hint":28,"user-invocable":29,"disable-model-invocation":20},"bash",{"summary":26,"workflow-stage":27},"Static QA gate for skill frontmatter, caps, and evals","review","[check|validate-evals|listing-budget|measure-invocation] [\u003Cskill-or-root> ...]",true,"main","d0e68c3f36b92a1d6381f0ba0060d7a0b8b886c5","plugins\u002Fskill-quality\u002Fskills\u002Fcheck",7,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins","https:\u002F\u002Fgithub.com\u002Fmelodic-software","https:\u002F\u002Fmelodicsoftware.com","Independent software studio building developer tools, automation, and application services, with roots in music.","2026-11-15 05:15:06",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":29},[41,44,47],{"tool":42,"command":43},"npx","npx skills add melodic-software\u002Fclaude-code-plugins --skill check",{"tool":45,"command":46},"bunx","bunx skills add melodic-software\u002Fclaude-code-plugins --skill check",{"tool":48,"command":49},"pnpm","pnpm dlx skills add melodic-software\u002Fclaude-code-plugins --skill check","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-quality\u002Fskills\u002Fcheck\u002FSKILL.md",[52],{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"reference\u002Ffresh-eyes-declarations.md","REFERENCE","参考文档",10824,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fskill-quality\u002Fskills\u002Fcheck\u002Freference\u002Ffresh-eyes-declarations.md",[59,66,73,80,85,92],{"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},"01M7DYYDG31B9YX7N9MB9QW2GW","track","Backlog reads through the bound tracker: search open and closed items, view one item with its comments and state history. Use when another skill searches or reads tracker items.","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fsession-flow\u002Fevals\u002Frecall-still-reports-reopened-bug\u002Fwork-items-stub\u002Fskills\u002Ftrack\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},"01M7DYXVBAVG3NV30PA7GKW9Q6","reviewer-media","Reviewer media for one pull request: decides whether it needs a narrated walkthrough, builds the storyboard from \u002Freview:explain-change's digest, has \u002Fexplainer-video:produce render it and hands the manifest to \u002Fsource-control:pull-request media. Use when asked for 'reviewer media', 'a walkthrough video for this PR', 'a produced video of this change', or when pull-request ready or monitor hands a PR over.","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Freview\u002Fskills\u002Freviewer-media\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},"01M7DYRZ5YD44AMYH26YR25GZ8","route","Model and effort per agent role (orchestrator, worker, verifier, retrieval) for a multi-agent run, resolved through the bundled defaults and the user, team and personal override config layers into fenced JSON with single-agent and fan-out variants and the layer behind each value. Use when asked 'which model for the subagents', 'route the roles' or 'model routing', or before a skill passes a role's model on a spawn.","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fdiscovery\u002Fevals\u002Fex-model-pin-without-override\u002Fmulti-agent-stub\u002Fskills\u002Froute\u002FSKILL.md",[],[],{"skillNo":81,"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":82,"categories":83,"keywords":84,"publishedAt":19},"01M7DYRTVT4FWTGDJY0HCCFJMZ","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fdiscovery\u002Fevals\u002Fex-model-override-from-route\u002Fmulti-agent-stub\u002Fskills\u002Froute\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7DYNZC8PNW3T27V2ADKECKJ","principles","Module-design vocabulary for architecture findings, and the checks built on it. Use when: 'what is a deep module', 'what is a seam', 'deep vs shallow module', 'what is the deletion test', 'leverage and locality', 'module design vocabulary', 'which word do we use for X in architecture findings'. Scanning a codebase for friction is \u002Farchitecture:improve.","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Farchitecture\u002Fskills\u002Fprinciples\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M7DYNMCZNEWBFHV9KTSS6H60","write","Structured five-field bug report (title, steps to reproduce, expected vs actual, justified severity, suggested fix location) from an informal description, read-only. Use when the user names a defect they observed, or asks for one written up ('report a bug', 'file a bug', 'write this up as a bug').","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Farchitecture\u002Fevals\u002Fdeepening-defect-goes-to-bugs-write\u002Fbugs-stub\u002Fskills\u002Fwrite\u002FSKILL.md",[],[]]