Skip to content

Commit 1fa5946

Browse files
kyle-sextonclaude
andauthored
fix(skill-quality): slash-invoke read-only check cases and say which blocks check 18 counts (#13736)
Refs: #7296 <!-- session: hitl-backlog --> ## Summary The read-only `skill-quality` check/setup suite (7 `ck-*` and 3 `su-check-*` cases) was INVALID twice on main, both times on the same two defects. This PR fixes both. One cause was a gap in the check hub, which is now filled; the rest were case prompts. ## Fix - **The skill never fired.** `ck-broken-ref-hand-verify`, `ck-precompute-warn-advisory` and `ck-verb-contract-fail-blocks` are output cases, not invocation probes: none carries the `invocation-probe` tag, and their graders score the reply. Their prompts never invoked the skill, so it fired in 0 of 9 with-arm runs per suite and the two arms tied. They now slash-invoke the hub, as `ck-check-gate-fail-verbatim` does (`/skill-quality:check check my-skill`). - **Searches outside the sandbox.** Sessions with no shell were asked to run the check, or were given files they could not find. They then searched the home directory for a plugin cache, the checker script, skill `audit` and the plugin-philosophy doc. `ck-outside-git-degrades` searched before its Skill call fired, so it is also slash-invoked now. Each prompt now states environment facts only: no shell, and the named files are not in the workspace. - **Removed `skill-fired`.** The `skill-fired` indicator is gone from all four cases, along with its samples. A slash expansion leaves no Skill call in the trace, the slash-invoked sibling cases carry no such grader, and in these cases it was `scored: false`, so no arm's score changes. - **Hub gap (`SKILL.md`).** In both suites of the first local pair, `ck-precompute-warn-advisory` with-arm run 1 grepped the plugin directory for `precompute`, because the hub did not say which blocks check 18 counts. The check 18 Gotchas entry now says so. Changelog fragment: `patch`. ## Verification - `validate-cases.py plugins/skill-quality`: 0 FAIL. The WARNs were already there, in other cases. - `check-skill.sh check` on the hub: PASS. - A local before/after `claude plugin eval` pair, `--runs 3`, `--allow-tools Read`, all 10 cases. The coordinator posts the results on #7296. ## Remaining on #7296 - The coordinator judges and records the local pair for skill-quality `check` and `setup`. - `ck-broken-ref-hand-verify` still ties at 0.6 in both arms with the skill loaded: `quotes-fail-line` and `verifies-before-edit` fail in both. This is a separate grader or skill question. ## Related - #7296 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
1 parent 7c173b7 commit 1fa5946

14 files changed

Lines changed: 27 additions & 61 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
bump: patch
3+
---
4+
5+
### Fixed
6+
7+
- `/skill-quality:check`: the check 18 Gotchas entry says which fenced shell blocks count as a precompute opportunity, so a reader no longer has to open the checker's source to find out.

‎plugins/skill-quality/evals/ck-broken-ref-hand-verify/case.yaml‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@ name: ck-broken-ref-hand-verify
33
context:
44
scaffold_script: scaffold.sh
55
graders:
6-
- name: skill-fired
7-
type: tool_used
8-
tool: Skill
9-
input_match: 'skill-quality:check'
10-
arm: with-only
116
- name: quotes-fail-line
127
type: regex
138
pattern: 'FAIL: broken skill-internal ref: reference/big-picture\.md'

‎plugins/skill-quality/evals/ck-broken-ref-hand-verify/prompt.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
---
2-
description: "Legacy check eval 4. Given a broken skill-internal ref FAIL line citing SKILL.md:42 of a scaffolded skill whose line 42 is an illustrative link, the reply quotes the FAIL line verbatim and reads the cited line before deciding anything. check SKILL.md Action: check: FAIL messages are self-describing, surface them rather than re-derive; hand-verify the cited SKILL.md line before editing, since it may be an illustrative example path. quotes-fail-line grades the verbatim quote (the legacy expectation is to quote it, so it shares the prompt's words); quotes-line-42 grades a term only line 42 or its heading carries (orchard, 'example only', 'no such file ships', 'spoke link'), which the reply has only by reading the line; verifies-before-edit judges that the decision follows from the line and no file is created, deleted or rewritten blind; no-edit and no-write grade that nothing changes; skill-fired (indicator) shows whether the check hub, which carries the quote-verbatim and hand-verify rules, was loaded, so a quoting miss can be told apart from a run where the skill never fired. Needs --scaffold."
2+
description: "Legacy check eval 4. Given a broken skill-internal ref FAIL line citing SKILL.md:42 of a scaffolded skill whose line 42 is an illustrative link, the reply quotes the FAIL line verbatim and reads the cited line before deciding anything. check SKILL.md Action: check: FAIL messages are self-describing, surface them rather than re-derive; hand-verify the cited SKILL.md line before editing, since it may be an illustrative example path. quotes-fail-line grades the verbatim quote (the legacy expectation is to quote it, so it shares the prompt's words); quotes-line-42 grades a term only line 42 or its heading carries (orchard, 'example only', 'no such file ships', 'spoke link'), which the reply has only by reading the line; verifies-before-edit judges that the decision follows from the line and no file is created, deleted or rewritten blind; no-edit and no-write grade that nothing changes. The prompt slash-invokes the hub, as the sibling ck-check-gate-fail-verbatim does, so the case measures the reply rather than triggering; a slash expansion leaves no Skill call in the trace, so the case has no skill-fired grader. Needs --scaffold."
33
tags: [skill-quality, check, outcome, scaffold, read-only, no-network]
44
max_turns: 10
55
timeout_seconds: 240
66
allowed_tools: [Read, Glob, Grep, Skill]
77
expected_outcome: "The reply quotes the FAIL line as given, reads .claude/skills/skill-x/SKILL.md line 42, reports that it is an illustrative example link (the orchard sample) rather than a real missing spoke, and proposes no blind fix: it neither creates reference/big-picture.md nor deletes the reference without that check."
88
---
99

10-
The skill-quality check on skill-x (`.claude/skills/skill-x`) returned this line:
10+
/skill-quality:check check skill-x
11+
12+
The check already ran on skill-x (`.claude/skills/skill-x`); this session has no shell, so it cannot be run again here. It returned this line:
1113

1214
`FAIL: broken skill-internal ref: reference/big-picture.md (no such file under the skill dir; cited at SKILL.md:42 — hand-verify the line before fixing, may be an illustrative example)`
1315

‎plugins/skill-quality/evals/ck-broken-ref-hand-verify/samples/skill-fired.json‎

Lines changed: 0 additions & 9 deletions
This file was deleted.

‎plugins/skill-quality/evals/ck-outside-git-degrades/case.yaml‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
schema_version: "1.1"
22
name: ck-outside-git-degrades
33
graders:
4-
- name: skill-fired
5-
type: tool_used
6-
tool: Skill
7-
input_match: 'skill-quality:check'
84
- name: names-git-backed-checks
95
type: regex
106
pattern: '\btrigger[- ](?:keyword[- ])?preservation\b|\bvendor\b|\bstale[- ](?:tracking[- ])?metadata\b|\bcommitted[- ]artifacts?\b'
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
---
2-
description: "Legacy check eval 6. Asked what happens when the check runs outside any git repository against a plugin-cache skills root set through CHECK_SKILL_SKILLS_ROOT, the reply says the non-git checks still run and the git-backed checks skip with a note; the checker does not exit 2 for the working directory alone. check SKILL.md Gotchas, 'A git repository is optional' and the plugin-cache paragraph under Skills-directory resolution. names-git-backed-checks grades a git-backed check named by the hub (trigger-keyword preservation, vendor byte-identity, stale-tracking metadata, committed-artifact scan); skips-not-aborts grades the skip wording; degrades-not-aborts judges the whole answer; skill-fired is an indicator."
2+
description: "Legacy check eval 6. Asked what happens when the check runs outside any git repository against a plugin-cache skills root set through CHECK_SKILL_SKILLS_ROOT, the reply says the non-git checks still run and the git-backed checks skip with a note; the checker does not exit 2 for the working directory alone. check SKILL.md Gotchas, 'A git repository is optional' and the plugin-cache paragraph under Skills-directory resolution. names-git-backed-checks grades a git-backed check named by the hub (trigger-keyword preservation, vendor byte-identity, stale-tracking metadata, committed-artifact scan); skips-not-aborts grades the skip wording; degrades-not-aborts judges the whole answer. The prompt slash-invokes the hub, as the sibling ck-check-gate-fail-verbatim does, so the hub loads before any search; a slash expansion leaves no Skill call in the trace, so the case has no skill-fired grader."
33
tags: [skill-quality, check, outcome, narration, read-only, no-network]
44
max_turns: 8
55
timeout_seconds: 240
66
allowed_tools: [Read, Glob, Grep, Skill]
77
expected_outcome: "The reply says the static gate still runs its non-git checks against the cache tree because CHECK_SKILL_SKILLS_ROOT gives it a skills root, the git-backed checks (trigger-keyword preservation, vendor byte-identity, stale metadata, committed-artifact scan) skip with a note, and the script exits 2 only when no skills root override, no CLAUDE_PROJECT_DIR and no git toplevel is available."
88
---
99

10-
Run the skill-quality check from a working directory that is not inside any git repository, pointed at a marketplace plugin-cache skills root via CHECK_SKILL_SKILLS_ROOT. What happens?
10+
/skill-quality:check
11+
12+
This session has no shell, no plugin cache is installed here, and the checker's source is not in this workspace, so nothing can be run or looked up. What happens when the check runs from a working directory that is not inside any git repository, pointed at a marketplace plugin-cache skills root via CHECK_SKILL_SKILLS_ROOT?

‎plugins/skill-quality/evals/ck-outside-git-degrades/samples/skill-fired.json‎

Lines changed: 0 additions & 9 deletions
This file was deleted.

‎plugins/skill-quality/evals/ck-precompute-warn-advisory/case.yaml‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
schema_version: "1.1"
22
name: ck-precompute-warn-advisory
33
graders:
4-
- name: skill-fired
5-
type: tool_used
6-
tool: Skill
7-
input_match: 'skill-quality:check'
84
- name: names-check-18
95
type: regex
106
pattern: '\bcheck\s*#?\s*18\b'
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
---
2-
description: "Legacy check eval 7. Given a check 18 precompute-opportunity WARN line, the reply calls it an advisory WARN that does not block shipping, explains the read-only block could become a load-time ! injection instead of a tool call on each invocation, and treats it as a candidate to hand-verify. check SKILL.md Gotchas, check 18 paragraph. The prompt already carries '!-injection' and 'inline at load time', so no regex grades those words: names-check-18 (indicator: the legacy expectations never require the number, only its expected_output names it) shows the hub reached the reply; not-blocking grades the advisory or non-blocking wording; per-invocation grades the per-invocation or tool-call contrast; candidate-to-judge judges the hand-verify stance; skill-fired is an indicator. allowed_tools is Skill only: the answer comes from the check hub's check 18 Gotchas paragraph, which the Skill call loads, and no file read is part of the legacy case; a plugin-directory grep is denied in the sandbox (seen in the sibling ck-verb-contract-fail-blocks, smoke 2)."
2+
description: "Legacy check eval 7. Given a check 18 precompute-opportunity WARN line, the reply calls it an advisory WARN that does not block shipping, explains the read-only block could become a load-time ! injection instead of a tool call on each invocation, and treats it as a candidate to hand-verify. check SKILL.md Gotchas, check 18 paragraph. The prompt already carries '!-injection' and 'inline at load time', so no regex grades those words: names-check-18 (indicator: the legacy expectations never require the number, only its expected_output names it) shows the hub reached the reply; not-blocking grades the advisory or non-blocking wording; per-invocation grades the per-invocation or tool-call contrast; candidate-to-judge judges the hand-verify stance. The prompt slash-invokes the hub, as the sibling ck-check-gate-fail-verbatim does, so the case measures the reply rather than triggering; a slash expansion leaves no Skill call in the trace, so the case has no skill-fired grader. allowed_tools is Skill only: the answer comes from the check hub's check 18 Gotchas paragraph, which the slash invocation loads, and no file read is part of the legacy case; a plugin-directory grep is denied in the sandbox (seen in the sibling ck-verb-contract-fail-blocks, smoke 2)."
33
tags: [skill-quality, check, outcome, narration, read-only, no-network]
44
max_turns: 8
55
timeout_seconds: 240
66
allowed_tools: [Skill]
77
expected_outcome: "The reply names check 18, says the WARN is advisory and does not fail the skill or block shipping, explains the fenced read-only block could be inlined through ! dynamic-context injection instead of a tool call each invocation, and says to hand-verify the block: convert it only if it runs every invocation to gather context, ignore it if it is illustrative."
88
---
99

10-
The skill-quality check on skill Y returned: `WARN: precompute opportunity: a fenced shell block runs read-only context-gathering commands the skill could inline at load time via !-injection ...`. What does it mean and what should I do?
10+
/skill-quality:check
11+
12+
The check on skill Y already ran; skill Y's files are not in this workspace, and this session has no shell. It returned: `WARN: precompute opportunity: a fenced shell block runs read-only context-gathering commands the skill could inline at load time via !-injection ...`. What does it mean and what should I do?

‎plugins/skill-quality/evals/ck-precompute-warn-advisory/samples/skill-fired.json‎

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)