Skip to content

feat(skill-quality): read the description target and warn thresholds from settings - #12157

Merged
kyle-sexton merged 3 commits into
mainfrom
work-resolve-issue/issue-11971-41358540427-1
Nov 2, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
work-resolve-issue/issue-11971-41358540427-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #11971

Summary

Opened by the work-resolve-issue lane. The run's own summary:

check-skill.sh check 30 now reads description_target (default 250, prints an INFO line when exceeded) and description_warn (default 419, warns when exceeded) from the repository's convention home: <home>/skill-quality.yaml, then the personal <home>/skill-quality.local.yaml, a later layer winning key by key. <home> comes from the plugin's own copy of the shared resolve-convention-home.sh, falling back to docs/conventions when the repository binds no home. A value that is not a whole number from 1 to 1,024 is named in a WARN and that layer is dropped, so a valid later layer wins, otherwise the default (the ADR 0075 invalid-value rule). The 1,024 field maximum stays the fixed check 2b FAIL, which treats 1,024 as allowed and 1,025 as the first failure, per the Agent Skills spec. The skill criteria's Descriptions section now states the standard: one sentence saying what the skill is, "Use when" with one trigger per branch, at most three hook terms that probes show move triggering, and the 250/419 thresholds as settings. Design choice: I reused the shared lib copies (registered in scripts/shared-copies.txt) that ai-slop, attribution and others already use, so the plugin does not get its own parser.

Not verified

  • plugins/skill-quality/scripts/check-skill.test.sh was not executed: this lane's Bash runs only the named wrappers. I checked the new cases by reading them against the code, and the reviewer did the same. Left to the PR's CI.
  • The skill-quality settings surface is not registered in the docs/contracts/config-cascade/README.md Implementers table. Adding the row makes validate-plugins fail, because a registered owner of tracked config cannot keep /skill-quality:setup check-only: setup would need a narrow-write apply that wri
  • No userConfig layer for either key; only the default, team and personal file layers are read.
  • Review finding left as is (low): parse-concern-value.sh reads an empty value, a nested mapping or a flow sequence for a key as an absent key, so that layer is skipped silently rather than named. A quoted number such as "300" is accepted.
  • Tidy skipped: the change has 11 changed files in 3 areas and touches the shared path scripts/, which is over the tidy cutoffs (10 files, 1 area, no shared paths).
  • Blocker #11954 could not be checked from this lane (no tracker access, shallow history). #11965's changelog fragment is already in the tree.

Fix

  • plugins/skill-quality/scripts/check-skill.sh: check 30 resolves description_target and description_warn through the convention-home cascade (default, team YAML, personal .local YAML), prints the value and source layer of each, prints an INFO line above the target and a WARN above the warn threshold,
  • plugins/skill-quality/scripts/check-skill.test.sh: the 420-character WARN assertion matches the new message. New cases cover: the default settings and the INFO above the target; a team-layer description_warn of 280 moving the warning; personal-layer overrides of both keys; an out-of-range personal v
  • plugins/skill-quality/README.md: new ## Settings section listing the two keys, their defaults, their layers and the invalid-value behavior; the Skill size check bullet names the settings.
  • plugins/skill-quality/schemas/skill-quality.schema.json: new JSON Schema for <home>/skill-quality.yaml (two integer keys, each 1 to 1024).
  • plugins/skill-quality/lib/resolve-convention-home.sh, plugins/skill-quality/lib/parse-concern-value.sh, plugins/skill-quality/lib/yaml-subset.awk: generated shared copies of lib/ (sync-shared-copies).
  • scripts/shared-copies.txt: registers the three skill-quality lib copies.
  • plugins/playbooks/skills/skill-authoring/reference/skill-criteria.md: ## Descriptions states the one-sentence what, "Use when" with one trigger per branch, at most three probe-proven hook terms, and the 250 target / 419 warn / fixed field-maximum thresholds as /skill-quality:check settings.
  • .changes/skill-quality/work-resolve-issue-issue-11971-41358540427-1-2bc65188.md: minor changelog fragment.
  • .changes/playbooks/work-resolve-issue-issue-11971-41358540427-1-31ef9fb6.md: patch changelog fragment.

Verification

The runner ran each check from the base copy against a243397:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • check-changelog-fragments: all 4 fragments under .changes/ valid
  • check-changed-skills: plugins/playbooks/skills/skill-authoring PASS, 0 errors (5 warnings that were already there). It ran the lane's installed check-skill.sh, not the changed one.
  • check-affected: 12 passed, 6 skipped over 11 changed files. The first run failed validate-plugins after I added a config-cascade Implementers row; I removed the row and it passed (see not_done).
  • sync-shared-copies --check: all 556 registered copies match their canonical sources
  • cant-fail-scan --file plugins/skill-quality/scripts/check-skill.test.sh --lines 5408-5480: no can't-fail tests found
  • fresh-context review subagent: found that the out-of-range test asserted a WARN that could not fire (fixed: it now asserts 'warn above 419 (default)' and no description WARN), confusing wording for an unparseable file (fixed: separate message), and an ambiguous README sentence (fixed)
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41358540427

Left out: the items under Not verified.

Related

#11971

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #12157

I found no security issues.

I read every hunk of all 11 changed files. None of them matches a TRUSTED PATHS: glob. The PR doesn't touch any plugin manifest, workflow, token request, kill switch, merge hold or trusted-actor control. Since the previous review of a243397, the head has changed in two ways: a merge from main, and new test cases for the bound-home and unresolvable-region arms. Neither adds any security surface.

What I checked:

  • plugins/skill-quality/scripts/check-skill.sh, check 30 settings (L2567–L2615):
    • How a value is used. description_target and description_warn come from repository YAML files. A value is used only when it matches ^[1-9][0-9]{0,3}$. Because of && short-circuiting, that match runs before the arithmetic comparison ((value <= DESC_FIELD_CAP)). A crafted value therefore can't reach bash arithmetic evaluation and can't inject anything through it. A rejected value is only interpolated into a warn string.
    • Which files are read. The layer paths are $REPO_ROOT/<home>/skill-quality{,.local}.yaml. <home> comes from the bundled resolve-convention-home.sh, which rejects:
      • absolute paths, ~, backslashes and colons
      • . and .. segments, and a .git segment
      • any character outside [A-Za-z0-9._-]
      • a home reached through a symlink
    • What a value can change. Only which advisory INFO or WARN lines print. The 1,024-character check 2b FAIL stays fixed, and these settings can't loosen it.
  • plugins/skill-quality/lib/{parse-concern-value.sh,resolve-convention-home.sh,yaml-subset.awk}: These are generated copies of the canonical lib/ sources, registered in scripts/shared-copies.txt. They never eval file content:
    • --ref must be a 40-hex commit id or origin/<name>, and it is passed to git after --end-of-options.
    • Keys are limited to [A-Za-z0-9_.-]+ and reach awk through ENVIRON, not by interpolation.
    • The awk parser only emits records.
  • plugins/skill-quality/scripts/check-skill.test.sh, the schema, the README and the changelog fragments: Tests, data and docs, with no security surface.
  • plugins/playbooks/skills/skill-authoring/reference/skill-criteria.md: This narrows the description authoring guidance: at most three probe-tested hook terms, plus explicit length thresholds. It removes no rule that guards a protected class, so the instruction-surface lens finds nothing. I judged this by consequence, without reading the exception register.

The PR description and settled-thread text contain no directives aimed at this lane. The one settled thread, a test-coverage point, is outside this lane's scope.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on a243397de1aa8de0c6f933d5ae26124221cb45db; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed f689764d7037b48b4a8f1e0907ed27a54d787b3d: read 11 of 11 changed file(s); 1 finding(s), 0 as inline comments.

Code review: PR #12157, skill-quality description settings (round 2)

I read every hunk of all 11 changed files. I also checked the parts of check-skill.sh and check-skill.test.sh the change depends on: SCRIPT_DIR, REPO_ROOT/HAVE_GIT, DESC_FIELD_CAP, and how the fixture uses $TMP/docs. I could not run anything in this lane. The PR's test results are the author's claims and I have not checked them.

Fixed since the last round. The earlier inline finding was that no test covered the resolved-home (exit 0) branch. abdf14b4 fixes it, and that thread is resolved with lines changed since resolution: no. The new cases cover three paths:

  • An AGENTS.md region that binds team-conv, with a docs/conventions/skill-quality.yaml that must be ignored.
  • A team-conv/skill-quality.yaml with description_warn: 290 that moves the WARN.
  • A region with two pointer lines (resolver exit 3) that WARNs and falls back to the defaults.

I traced each one against check-skill.sh and expect them to behave as written. The cleanup (rm -rf "$TMP/docs", $TMP/AGENTS.md, $TMP/team-conv) only removes files these cases create.

Overall. I found no new correctness problem:

  • Resolver exits: case $? after the command substitution reads the resolver's exit code. Exit 4 (declined), exit 5 (not applicable) and runs outside git read no layer, as the README says.
  • Validation: values go through ^[1-9][0-9]{0,3}$, which also rules out octal readings, and then <= DESC_FIELD_CAP.
  • Bad layers: a bad layer resets the key to the default, so a later valid layer can still win. The README matches.
  • WARN/INFO: the two branches are mutually exclusive.
  • Field maximum: the 1,024 limit stays the fixed check 2b FAIL, and a test covers it at 1,025.
  • Shared copies: the three lib/ copies carry the generated header and are registered in scripts/shared-copies.txt.

Closing issue #11971

  1. Criterion 1, "Skill criteria state the description standard: one what-sentence, "Use when" with one trigger per branch, and at most three probe-proven hook terms."
    • Met in skill-criteria.md.
    • Finding (advisory, restated from the last round's summary): no test in the PR or the repository checks this wording. Deleting "at most three", or changing the 250/419 numbers so they no longer match DESC_TARGET_DEFAULT/DESC_WARN_DEFAULT in check-skill.sh, would still pass CI.
    • Fix: add a convention-facts check that ties the doc's thresholds to the script constants.
  2. Criterion 2, "reads the description target (default 250) and the warn threshold (default 419) as settings resolved through the convention home … A test changes the warn setting and observes the warning move."
    • Met and tested: the team layer, the personal layer, the bound home (team-conv) and the 1,025 FAIL all have cases.

Interpretation, not a finding. The issue says "fail at 1,024". Check 2b fails above 1,024 (1,024 is allowed), as the Agent Skills spec says. The README and the skill criteria both say "above".

Other checks

  • Plugin manifests: not changed, so there are no manifest lines.
  • Changelog fragments: minor for skill-quality (a new settings surface) and patch for playbooks (doc only) are the right bump levels.
  • Prior findings: the inline finding is fixed and resolved. The criterion-1 summary finding is restated above. This is round 2 of 3; the cap does not apply.
  • Settled threads and PR context: no embedded instructions.
  • Spend: none.

@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head f689764d7037b48b4a8f1e0907ed27a54d787b3d. The lanes clear this reason on their own; the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:unreadable)

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM6yfU0p
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on abdf14b.

Lane-Activity: pr-unblock/resolve-conflicts
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head f689764d7037b48b4a8f1e0907ed27a54d787b3d.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 2, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 2, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit aca26bc Nov 2, 2026
46 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-11971-41358540427-1 branch November 2, 2026 01:54
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.

feat(skill-quality): read the description target and warn thresholds from settings

1 participant