Skip to content

docs(code-metrics): tighten skill bodies to the skill criteria - #11938

Merged
kyle-sexton merged 4 commits into
mainfrom
feat/6560-code-metrics-concise-skills
Nov 1, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
feat/6560-code-metrics-concise-skills

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #6560

Summary

Rewrites the code-metrics skill bodies to the skill criteria, wording only, under the lane's Q7 protocol: every changed skill gets a two-labeler meaning diff, and a skill with outcome cases also gets a smoke pass. No description, frontmatter, rule, threshold, code block or script changed; setup is untouched.

Fix

Per-skill decision table:

Skill Ships Evidence
audit-suppressions rewrite 2 labelers PASS; after-smoke 4/4 cases at 1.00 (only skill with outcome cases)
coverage rewrite 2 labelers PASS
duplication rewrite 2 labelers PASS
principles rewrite 2 labelers PASS (the "Owners of the other measures" dedupe labeled RELOCATED / FALSE POSITIVE only)
complexity Gotchas wording only 1 of 2 labelers flagged the cut Purpose framing sentence as SEMANTIC LOSS; the union rule restored the Purpose paragraph (1dfda11); the Gotchas edit was FALSE POSITIVE for both
size unchanged (identical to main) same Purpose-sentence BLOCK; restored, so nothing else remained
type-debt unchanged (identical to main) same as size
setup unchanged not in scope

Unmeasured, and why: coverage, duplication, principles and complexity have no outcome eval cases, so they ship on the meaning diff alone (issue Done-when allows naming them). Volatile specifics in coverage (coverage.py "since 7.6.0") and the producer-defaults table are left as they were: changing them is not wording-only.

Verification

  • Meaning diff: 14 docs-hygiene:compare-labeler runs, 2 per changed skill, before copy from git archive origin/main. No AMBIGUITY or EMBEDDED INSTRUCTION rows after the restorations.
  • After-smoke on the 4 audit-suppressions cases (1 run, with-arm): VALID, 4/4 at 1.00.
  • Frozen-span diff 0; 44/44 plugin tests; skill-quality 0 FAIL / 11 WARN before and after (same set).
  • Merged origin/main (no plugins/code-metrics change on main since the base, so the meaning diff stands).

Related

🤖 Generated with Claude Code

kyle-sexton and others added 4 commits October 31, 2026 23:09
Wording-only pass over seven code-metrics SKILL.md bodies under the
skill criteria: cut Purpose-opener flavor ("most folklore", "on the
operator's list", "no bar to argue with"), a history aside in an
audit-coverage gotcha, and the five-times repeated presence-gate
clause in principles, stated once for the section. Frontmatter, fenced
blocks, headings, tables, injections, plugin paths and links are
byte-identical; setup is unchanged.

Refs: #6560

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…agged

One of two compare labelers marked each cut a SEMANTIC LOSS
(audit-complexity, audit-size, audit-type-debt); the union rule restores
the original paragraph in all three.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 1, 2026 14:15
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-01T14:16:30.557551Z 3f0ad9b Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 3f0ad9b9e327ddf99b23f918ddf83377a8c0dfa3: read 6 of 6 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #11938, docs(code-metrics): tighten skill bodies

I found no security issues.

What I read

I read every hunk in all 6 changed files:

  • .changes/code-metrics/feat-6560-...md: a new changelog fragment.
  • Five plugins/code-metrics/skills/*/SKILL.md files: audit-complexity, audit-coverage, audit-duplication, audit-suppressions and principles.

None of these files matches a TRUSTED PATHS glob. The PR touches no workflow, action, script, manifest (plugin.json or marketplace.json), hook or permission. It has no manifest items to report.

Checking the removed instructions

Each hunk rewords or shortens skill-body text, so I checked each one for a rule it might remove:

  • audit-complexity Gotchas: the sentence about the claim's basis, as-of date and recheck trigger is shorter. The same pointer to reference/collectors.md stays.
  • audit-coverage: a trailing clause ("the way it did before the roots were read at all") is gone. It described past behaviour and did not forbid anything.
  • audit-duplication: the paragraph about tool facts is rephrased. The pointer to the collectors.md duplication rows stays.
  • audit-suppressions Purpose: a framing sentence is gone. The report-only rule ("It reports and stops: no pass or fail…") is unchanged.
  • principles "Owners of the other measures": each bullet used to repeat "otherwise the concern is out of this plugin's scope and nothing here substitutes for it". That clause now appears once, in the section's opening sentence, with the exception "unless the bullet names its own fallback". The only bullet that names a fallback ("Comparing two reports") keeps it. What the section forbids is the same.

No removed rule protects against a destructive, credentialed, publishing or trust-boundary action, so this lens produced no finding. The instruction exception register file was not consulted. I judged each removed clause by what would break without it, and none controls a security-relevant action.

PR context

The description and the issue comments contain no text addressed to the review lane: nothing asks it to pass the PR, skip a check, drop a finding or post elsewhere.

Spend

The change starts no billed resource and does not change what runs or how often.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

claude-review reviewed 3f0ad9b9e327ddf99b23f918ddf83377a8c0dfa3: read 6 of 6 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #11938 found no problems

This PR only rewords skill bodies in code-metrics, plus a patch changelog fragment. I read every hunk of all 6 changed files. None of them is on a trusted path, and no plugin manifest changed.

What I checked

  • principles, "Owners of the other measures": the "otherwise the concern is out of this plugin's scope and nothing here substitutes for it" clause appeared in five bullets. The PR moves it into the section's opening sentence as one gate. The new "unless the bullet names its own fallback" exception keeps the only bullet with a different fallback correct: "Comparing two reports" still says to compare the JSON by hand (principles/SKILL.md#L113-L115). Eval case 3 in skills/principles/evals/evals.json expects the fallback to be stated ("out of scope, nothing here substitutes for it"). The section's opening sentence still says this, so the expectation still has text to match.
  • audit-complexity, audit-coverage, audit-duplication, audit-suppressions: the removed phrases are framing or repeated clauses. No rule, default, threshold, pointer or recheck record was removed. Each pointer to reference/collectors.md still names the basis, the as-of or verification date, and the recheck trigger, as .claude/rules/skill-bodies-state-current-rules.md requires. No new volatile upstream detail was added.
  • Changelog fragment: bump: patch fits a change that only rewords text.
  • Closing issue Concise skills rollout: code-metrics (7 skills, 6 model-invoked) #6560: the PR body has a per-skill decision table and names the skills that ship without outcome eval cases, with the reason. That meets the issue's "Done when" items. The PR says only audit-suppressions has outcome cases. That matches the plugin-level plugins/code-metrics/evals/, where all four cases are audit-suppressions cases. The labeler runs, the smoke pass and the test counts in the PR body are the author's claims, and I did not verify them.

Embedded text: none of the PR text or the closing-issue text is aimed at this review lane.

Spend: none. This is a change to docs only.

@kyle-sexton

Copy link
Copy Markdown
Member Author

HUB ARM REQUEST (lane 1, melo-lap-001 WSL, session b5d5a63d): please arm #11938 at head 3f0ad9b. Labels: none (no do-not-merge, needs-human or pr-verify-failed). mergeStateStatus CLEAN. ci-status and all 66 checks green from the ready (non-draft) run. claude-review: 0 findings; claude-security-review: critical-findings 0; Codex: no findings. Open review threads: 0. Lane 1 does not run gh pr merge. This is a PR comment because replies to the hub's sockets fail with ENOENT.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 1, 2026
Merged via the queue into main with commit 6e78283 Nov 1, 2026
69 checks passed
@kyle-sexton
kyle-sexton deleted the feat/6560-code-metrics-concise-skills branch November 1, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Concise skills rollout: code-metrics (7 skills, 6 model-invoked)

1 participant