Skip to content

feat(ci): commit the accepted skill-link table and a report-only check - #18495

Merged
kyle-sexton merged 7 commits into
mainfrom
feat/skill-link-uniformity-check
Nov 23, 2026
Merged

kyle-sexton merged 7 commits into
mainfrom
feat/skill-link-uniformity-check

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Closes #18473

Summary

Commits the owner-accepted Next/Related table as data and adds a report-only check that compares every skill against it, so the conversion items (#18474 to #18479) are judged on link targets.

Fix

  • scripts/skill-links.json: one entry per skill (362), {"next": [...], "related": [...]}. Next items are each skill's current ## Next kept verbatim (one entry per bullet or paragraph), or the drafted Next where the skill had none; Related items are condition: /plugin:skill [args] lines, and every current Related target is kept. Review annotations in parentheses and fragments with no target were dropped.
  • scripts/check-skill-links.sh (wrapping check-skill-links.py): per skill, compares the /plugin:skill target sets of ## Next and ## Related with the row and prints one DIFFERS: line naming missing and extra targets; prints NO ROW: and ROW WITHOUT SKILL: lines; prints WORDING: for a mention of another plugin's skill outside those sections (and outside frontmatter and code fences) that is not followed by "(if enabled)", unless the plugin is a declared dependency. Exits 0 when it ran (report-only, owner decision), 2 when it cannot run.
  • The Check Catalog job runs it next to the plugin-profiles step and writes the report to the job summary; it never fails the job. Registered in the check-script contract suite; scripts/README.md lists it among the members that diverge on purpose. The data file is excluded from the code-metrics size check (docs/conventions/code-metrics.yaml): it is one table with no responsibility split.

Verification

  • scripts/check-skill-links.sh at head 814858e: exit 0; 362 skills, 196 differ from the table, 0 have no row, 0 rows name no skill, 1091 optional-plugin mentions lack "(if enabled)". The same table against the 48ded7d snapshot also gives 196 (the issue estimated 195). No differing skill has an extra target: every difference is a link the table adds.
  • scripts/check-skill-links.test.sh: 9 passed at head 43672b5 (matching skill, differing skill, no-row skill, wrong optional-plugin wording, exit 2 on a missing table, exit 2 with no traceback on a malformed row, exit 0 on the checkout); its # test-scope: lines declare the SKILL.md and plugin.json files the checkout case reads. Replacing the "(if enabled)" test with an always-report fails 2 of them.
  • scripts/check-script-contract.test.sh: 72 passed. scripts/check-affected.sh: 21 passed, 3 skipped. shellcheck, ruff and actionlint clean.

Loosened checks

  • docs/conventions/code-metrics.yaml adds scripts/skill-links.json to the size check's scope.exclude. Reason: it is generated data, one 362-row table with no code to split; a one-line-per-skill layout would fit the size reference but trips check-vocabulary on joined prose. The check that reads the file (check-skill-links.sh) and its tests cover its content.

Related

🤖 Generated with Claude Code

https://claude.ai/code/session_01UJUn7LaiGLnfcEhW7oFi7L

kyle-sexton and others added 5 commits November 23, 2026 11:21
scripts/skill-links.json holds the owner-accepted Next and Related
entries for every skill. scripts/check-skill-links.sh compares each
SKILL.md's ## Next and ## Related target sets with its row, lists
skills with no row, and lists optional-plugin mentions outside those
sections that lack "(if enabled)". It exits 0 on findings; the Check
Catalog job writes its report to the job summary.

Closes #18473

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJUn7LaiGLnfcEhW7oFi7L
One skill per line put words from separate Next bullets on one line, which the line-scoped vocabulary check reads as one phrase. The table is data with no split along a responsibility, so code-metrics size excludes it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJUn7LaiGLnfcEhW7oFi7L
The table dropped existing Related targets from explainer-video:produce,
playwright:demo-video, review:reviewer-media, review:explain-change and
source-control:pull-request. The owner's decision keeps current links, so
the rows now carry them and the check reports no dropped current link.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJUn7LaiGLnfcEhW7oFi7L
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 23, 2026 16:45
@chatgpt-codex-connector

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

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T16:49:29.928993Z 814858e 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.

…case reads

Test Selection failed: the suite's real-checkout case reads every SKILL.md and
plugin.json, but no rule selected the suite when those change. Declare them in
a test-scope line (affected-tests.sh R8) so a change to any of them runs it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJUn7LaiGLnfcEhW7oFi7L
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 43672b52513b83d1f73b2b0fec85aa040d14162b: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Security review (incremental, blocking only): no security issues found

This was an incremental review of the push since 814858e013c0be4bf940fd9198c4301983bf2ca1. I read every hunk of both files in scope in .claude-lane/incremental.diff. This lane already reviewed an earlier head, so the review was blocking only: just CRITICAL and IMPORTANT findings would be reported. There are none.

scripts/check-skill-links.py. The changes only add input validation, and each failure now exits 2 through die on stderr:

  • an unreadable or non-object plugin.json;
  • a skills value that is not an object;
  • rows whose next or related are not lists of strings;
  • an unreadable SKILL.md.

The script still only reads files in the checkout and writes to stdout and stderr. It runs no subprocess, evaluates nothing and makes no network call. Error messages repeat a path or row key the PR author already controls, so no new injection surface opens up. Failing fast on bad input narrows the script's behaviour rather than widening it.

scripts/check-skill-links.test.sh. The changes are a new # test-scope: comment line and a test case. The test writes a malformed table under $TMP, checks for exit 2 with no traceback, and then puts the good table back. It touches no credentials and no control.

Other checks.

  • Neither file matches a trusted-path glob.
  • Neither file is a trust control or a merge-hold path.
  • No standing instruction is deleted or softened.
  • No .claude-plugin manifest is changed.
  • The PR context contains no embedded directives.
  • The one earlier post from this lane, a summary with no inline findings, has nothing to restate.

Spend. The one extra test case adds negligible runtime on the ordinary CI minutes the job already uses. That is not a hold.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 43672b52513b83d1f73b2b0fec85aa040d14162b: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Incremental review: 814858e → 43672b5 (blocking only)

This lane already reviewed an earlier head, so this round reports blocking findings only. The scope is the two files this push changed: scripts/check-skill-links.py and scripts/check-skill-links.test.sh. I read both hunks in full.

What changed

  • check-skill-links.py now exits 2 with a stderr message when its input is malformed, instead of crashing with a traceback:

    • a manifest it cannot read or parse, or one that is not a JSON object (dependencies());
    • a skills value that is not an object;
    • a row without string lists next and related;
    • a SKILL.md it cannot read or decode.

    This fixes the earlier advisory finding: malformed input produced a traceback and exit 1, a code the README reserves for findings. The row check runs before any row is used, so the later row["next"] and row["related"] lookups can no longer raise.

  • check-skill-links.test.sh adds a case that writes a row whose next is a string. It asserts exit 2, output on stderr only and no Traceback, then puts the good table back. It also adds a # test-scope: line for the SKILL.md and plugin.json files that the checkout case scans.

Earlier blocking finding (code-metrics exclusion)

  • The PR body now has a ## Loosened checks section that names the scripts/skill-links.json entry in scope.exclude of docs/conventions/code-metrics.yaml. Its reason: the file is generated data, one 362-row table with no code to split, and the check that reads it covers its content.
  • The size gate is an ordinary check, so that section can give a reason. The reason holds: the size reference exists to make files split by responsibility, and a single data table has none to split.
  • That loosening now passes under "Fail a change that loosens a check". The file did not change in this push and needs no further action.

Closing issue #18473

  • None of its "Done when" items is affected by this push.
  • The new test is a further case beyond the four the issue requires. The author reports 9 passing tests; I could not run them, so that count is unverified.

Inputs and policy

  • The prompt has no loosened_check_verdict: or loosened_check_patterns: line, so I used fail and no consumer entries. It has no loosened_check_decision_record: line either, so I did not check the citation requirement.
  • Loosened checks would be marked: fail (bundled default; no consumer layer in the prompt); patterns: 0
  • No plugin manifest changed. The prompt names no settled-threads file.
  • Spend: nothing new in this push.

No verifier subagent was dispatched: the review found no candidate that met the blocking bar.

Verifier dropped 0 of 0 candidates.

A malformed row, an unparsable plugin.json or an unreadable SKILL.md raised a
traceback and exit 1, which the check-script contract reserves for findings and
this report-only check never uses. Each now names the file and exits 2; a test
covers a malformed row.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJUn7LaiGLnfcEhW7oFi7L
@kyle-sexton

Copy link
Copy Markdown
Member Author

Replying to the claude-review summary on 814858e.

# Finding Classification Evidence Action
1 docs/conventions/code-metrics.yaml:13 excludes scripts/skill-links.json from the size check without a ## Loosened checks section VALID (fix now) The exclude entry is in the diff and the body had no such section Added ## Loosened checks to the PR body with the reason (generated 362-row data file, no code to split; the one-line layout trips check-vocabulary)
2 Malformed input crashes check-skill-links.py with a traceback and exit 1 VALID (fix now) A row whose next is not a list raised before the fix; dependencies() caught only FileNotFoundError 43672b5: a malformed row, an unparsable plugin.json or an unreadable SKILL.md now names the file and exits 2; new test "a malformed row exits 2 on stderr, no traceback" (9/9 pass)

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 8784cf3 Nov 23, 2026
115 of 118 checks passed
@kyle-sexton
kyle-sexton deleted the feat/skill-link-uniformity-check branch November 23, 2026 18:57
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

Killed 6, survived 1, timeout 0, no coverage 0, invalid 0, not run 0.
Covered-code score 86%; mutation score 86%.

File Killed Survived Timeout No coverage Invalid Not run
scripts/check-skill-links.py 5 1 0 0 0 0
scripts/check-skill-links.sh 1 0 0 0 0 0

Surviving mutants

Location Operator Disposition Cause
scripts/check-skill-links.py:32 AOR equivalent none

The run's summary has the full report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Commit the accepted skill-link table and a report-only uniformity check

1 participant