You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Spec-conformance sweep: audit fleet SKILL.md files against the Agent Skills spec #3612
Deferred vertical (V3) from the playground-article corpus effort (see docs/topics/playground-integration/PLAN.md for provenance). The Agent Skills standard site (agentskills.io, the redirect target of skill.md) states conformance rules worth sweeping this fleet's 70+ skills against:
name must match the parent directory, 1-64 chars, lowercase and hyphens, no consecutive hyphens; description max 1024 chars; body recommended under 500 lines / 5000 tokens (the fleet's check-skill.sh already enforces most of this; confirm full overlap and close any gap rather than double-enforcing).
Mechanical grep for the documented authoring bug: an unquoted colon inside a description: value breaks YAML parsing.
Audit whether any skill should carry the spec's compatibility field (the spec itself says most should not; decide and record).
Cross-check interop notes against Claude Code behavior: frontmatter is often stripped before the model sees it at activation; context compaction can silently drop skill instructions mid-session; .agents/skills/ is an emerging cross-client discovery convention (portability question for this marketplace).
Acceptance: one findings report, fixes for real violations, and a recorded decision per interop question.
Three corrections that change the shape of this work. An executing agent should start from these rather than from the body's numbers.
The scope is nearly four times larger than filed. The body says "70+ skills". The fleet now holds about 262 skills. This is a sweep over all of them.
The named enforcement script does not exist. The body says "the fleet's check-skill.sh already enforces most of this". There is no such file in this repository. The actual enforcement is split across the fleet contract validator (scripts/validate-plugin-contracts.mjs) and a family of scripts/check-skill-*.sh gates covering leaf names, portability, precompute composition and count claims. The overlap question the body asks is still the right question, but it must be asked of those surfaces. Note this same non-existent script is cited by argument-hint hygiene: six concrete fixes, a house style rule, and a lint criterion #3542 and Adopt named arguments on multi-slot skills; document verified substitution semantics; lint unescaped $N #3543 as well, so the correction is worth making once and applying to all three.
One mechanical check is already clean. The documented authoring bug, an unquoted colon inside a description value breaking YAML parsing, has zero occurrences across the fleet today. The grep half of this item is done; keep it as a lint criterion if one is added, but expect no fixes from it.
Agent Brief
Type: Task
Summary: Audit the fleet's skill definitions against the Agent Skills specification, fix real violations, and record a decision per interop question.
Current behavior:
The fleet's skills are governed by this repository's own contract gates, which were written independently of the published Agent Skills specification. Where the two overlap is not established, so it is unknown whether the local gates cover the spec's conformance rules, leave gaps, or would double-enforce if spec checks were added naively. Several spec-adjacent interop questions have no recorded position.
Desired behavior:
A findings report states, per spec conformance rule, whether the fleet conforms and whether an existing local gate already enforces it. Real violations are fixed. Each interop question has a recorded decision. Where a local gate already covers a rule, that is recorded as covered rather than a second check being added.
Conformance rules to sweep: the skill name matching its parent directory, its length and character constraints including no consecutive hyphens, the description length ceiling, and the recommended body size limits.
Interop questions to decide and record:
Whether any skill should carry the spec's compatibility field. The spec itself says most should not, so the expected outcome is a recorded "no, because" rather than adoption.
That frontmatter is often stripped before the model sees it at activation, and what that implies for any instruction the fleet places there.
That context compaction can silently drop skill instructions mid-session, and whether any skill depends on instructions surviving compaction.
Whether the emerging cross-client skill-discovery directory convention matters for this marketplace's portability.
Acceptance criteria:
One findings report covering all fleet skills, stating conformance per rule.
For each spec rule, the report names which existing local gate covers it, or records that none does.
Real violations are fixed; no new check duplicates an existing gate.
Each interop question has a recorded decision with its reason.
The report's counts are measured, not carried over from the body.
scripts/affected-tests.sh --run passes for any touched surfaces.
Out of scope:
Adding enforcement for rules an existing gate already covers.
This item is one of five deferred verticals from the playground-article corpus effort: #3612 (V3), #3614 (V5), #3615 (V6), #3616 (V7), #3617 (Q9). Each measures some part of this
fleet against upstream Agent Skills or plugin-distribution guidance and records a verdict.
They are independent enough to run separately, so no carrier is designated and no dependency edges
were created. Two shared notes apply to all five:
Provenance paths are not on the default branch. The effort's plan lives on its own branch,
so treat those references as historical rather than as files to read.
Recorded counts are stale. Verified 2026-09-06: the fleet is now about 262 skills, not
the "70+" and "237" figures these bodies carry. Re-inventory before trusting any recorded count.
This triage pass created, merged and closed nothing.
Feature-shaped C3 is human-gated: approve the scope and dispatch, or park?
Classification: C3 scoped, feature-shaped, not a defect fix. It is a fleet-wide spec-conformance sweep (triage re-sized it to about 262 skills, not 70+), with a findings report, fixes for real violations, and a recorded decision per interop question (compatibility field, frontmatter stripping, compaction, .agents/skills/ portability).
Disposition: the admission gate human-gates feature-shaped C3 (an operator tightening). The interop verdicts are decisions an operator should own. No hard gate (dependency SHA pins, checksum recomputation, CLAUDE.md inviolables) applies.
Intended dispatch if approved:/work-items:work via the work-loop, one draft PR with the findings report, closing only gaps that check-skill.sh does not already enforce.
Operator context: the body records no ratification phrase.
This comes from the 2026-09-29 audit of the unattended Cursor run. This was generated by AI.
Reopened: this issue is parked on four owner decisions, and the run dispatched it anyway.
Facts:
2026-09-27, operator decision on this issue: "stay parked until the operator answers its four interop questions (the compatibility field, frontmatter stripping, compaction, and .agents/skills/ portability). No dispatch until those are resolved."
Findings report (measured on the #5307 branch at dfb0498744983a9ae1330cb80f30fc00c2d6c058, 2026-09-29), summary:
303 marketplace skills swept across 82 plugins (312 SKILL.md files, minus 6 vendored, minus 3 eval fixtures). The issue said 70+ and triage said about 262.
Spec rules: name (chars, length, hyphens, matches directory) 0 violations; body under 500 lines 0 violations; description 1-1024: 2 violations, both already in the baseline (improvement/skills/find 1212, work-items/skills/setup 1273); unquoted : in a plain description 0; compatibility declared by 0 skills.
Body under 5000 tokens (a spec recommendation): 54 skills exceed it by the body-characters/4 estimate. No local gate exists. The issue put restructuring out of scope.
name is required by the spec and declared by 0 of 303 skills. Check 1 accepts absence on purpose.
Checker sweep: 298 PASS, 5 FAIL. Two are the baselined descriptions. Three are outside the spec rules: docs-hygiene/audit-encapsulation (check 25 mismatch), docs-hygiene/setup (check 7 test failures), architecture/skills/map-landscape (check 7 test failure). Those belong to other plugins' owners; fix(skill-quality): check 25 FAIL coherence, check 1 grammar, measure-invocation portability #5307 does not touch them.
Full report (per-rule counts, reproduce commands, gate line numbers): .work/fix/artifacts/skill-quality/3612-findings.md in the audit checkout; pasted below.
The issue body said "70+" and the triage comment said about 262. The measured figure is 303 across 82 plugins.
All commands below are in 3612-oneliners.sh (one echo per rule; run bash 3612-oneliners.sh from the worktree). 3612-rules.py is a Python cross-check that parses every frontmatter (python3 3612-rules.py). It agrees with the shell counts on every rule.
The checker sweep is 3612-checker-sweep.sh <outdir>: one check-skill.sh plugins/<p>/skills call per plugin with CHECK_SKILL_SKIP_MARKDOWNLINT=1 and no CHECK_SKILL_DESC_FIELD_BASELINE, so baselined breaches show as FAIL.
Result of the checker sweep: 82 plugin roots, 303 skills, 298 PASS, 5 FAIL. The failures are listed under "Checker sweep failures".
Per rule
checked is 303 for every rule. Gate line numbers are in plugins/skill-quality/scripts/check-skill.sh (branch).
Rule (spec)
Conforming
Violating
Reproduce
Existing local gate
name present (spec: required)
0
303 declare no name
SK | while read -r f; do sed -n '2,/^---$/p' "$f" | grep -q '^name:' && echo "$f"; done | wc -l gives 0 declared
Check 1 treats name as optional (Claude Code default is the directory name), lines 612-650. Nothing requires it.
name equals parent directory
303 (the effective name is the directory; no skill declares a different one)
0
same command, 0 declared names, so 0 divergent
Check 1, check-skill.sh:643 (declared name differs from directory). Also the harness itself.
name 1-64 chars
303 (longest directory leaf checked by the command below)
0
SK | awk -F/ 'length($4)>64' | wc -l gives 0
Check 1, NAME_MAX_LEN=64 at :504, error at :669. Runs on the effective name (declared, else directory).
name lowercase alphanumerics and hyphens, no leading or trailing hyphen
Check 1, regex ^[a-z0-9]+(-[a-z0-9]+)*$ at :640, error :641. Applies to a declared name only; a directory leaf is not pattern-checked, only length-checked (:669).
Same regex as the row above ((-[a-z0-9]+)* cannot match --), :641. Same declared-name-only limit.
description 1-1024 characters
301
2 (both recorded in the baseline): plugins/improvement/skills/find/SKILL.md (1212), plugins/work-items/skills/setup/SKILL.md (1273)
loop in 3612-oneliners.sh (R3): sed ... grep -m1 '^description:' | sed -E 's/^description: "(.*)"$/\1/' | LC_ALL=C.UTF-8 wc -m, minus 1 for the newline
Check 2b, DESC_FIELD_CAP=1024 at :468, FAIL at :797, baseline WARN at :795. Baseline scripts/skill-description-cap-baseline.txt holds exactly these two rows. CI reaches it through scripts/check-changed-skills.sh (ci.yml:1350-1359), changed skills only.
Body under 500 lines
303 (longest is claude-config/skills/audit-instructions/SKILL.md, 498)
Check 4, LINE_HARD_CAP=500 at :506, :911-913. Counts the whole file, frontmatter included, so it is stricter than the spec.
Body under 5000 tokens (recommended)
249 by estimate
54 by estimate (list below)
SK | while read -r f; do awk 'NR==1&&/^---/{fm=1;next} fm&&/^---/{fm=0;next} !fm{print}' "$f" | wc -m | awk '$1/4>=5000'; done | wc -l gives 54
none. No tokenizer is available locally, so this is the estimate body characters / 4. The 500-line gate is the only proxy.
Unquoted : in a plain description
303
0
the R6 line in 3612-oneliners.sh gives 0. Also all 303 descriptions are a single double-quoted line: grep -v '^description: ".*"$' count is 0 (R3 second line)
scripts/validate-plugin-contracts.mjs has no description, name-length, colon or compatibility rule. Its frontmatter checks cover disable-model-invocation, argument-hint, arguments, skills: entries and agent model: (grep -n -iE 'compat|1024|description' scripts/validate-plugin-contracts.mjs shows none that are skill-frontmatter conformance).
The scripts/check-skill-*.sh family covers leaf-name collisions (check-skill-leaf-names.sh), portability tokens, precompute composition and count claims. None reads a description scalar or compatibility.
claude plugin validate (run per plugin by scripts/validate-plugins.sh, CI ci.yml:1945-1954) does not surface either defect on Claude Code 2.1.284. A probe plugin with an unquoted Use when: ... description and a 600-character compatibility returned success: true and contents: [] under --json; plugins/skill-quality also returns contents: []. Probe files were scratch and are deleted.
The other rules the issue lists were already enforced by check 1, 2b and 4 before #5045. #5045 added no second copy of any of them.
Coverage gaps
Body-token rule has no gate (the 500-line cap is a proxy). Not added, per the issue's out-of-scope note.
name is required by the spec and declared by 0 of 303 skills. Check 1 accepts absence on purpose. Whether the fleet should declare name for cross-client use is part of the owner's interop portability question, not decided here.
A directory leaf is length-checked but not pattern-checked when name is absent (check-skill.sh:640 runs only for a declared name). All 303 leaves pass the pattern today (R2 above), so this is latent.
Full-corpus enforcement exists for none of these rules. CI runs the checker on changed skills (ci.yml:1350-1359). The only full-corpus step, scripts/check-all-skills-verb-contract.sh (ci.yml:1346-1348), tests check 25 only and does not run the checker (see the 4586 sweep record).
Checker sweep failures (5 of 303)
Skill
Failure
Spec rule?
plugins/improvement/skills/find
description 1212 codepoints
yes, 1024 cap (baselined)
plugins/work-items/skills/setup
description 1273 codepoints
yes, 1024 cap (baselined)
plugins/docs-hygiene/skills/audit-encapsulation
check 25 description/verb-contract mismatch ("Audit and remediate ..." on an audit leaf, no override)
no
plugins/docs-hygiene/skills/setup
check 7: scripts/setup-check.test.sh PASS=23 FAIL=2 ("bundled defaults pass", "an un-ignored overlay does not fail the run"); reproduces alone
no
plugins/architecture/skills/map-landscape
check 7: scripts/render-landscape.test.sh "lint: the rendered markdown passes markdownlint"; reproduces alone with markdownlint-cli2 on PATH
no
Cause of the two check 7 failures was not investigated.
Real violations outside plugins/skill-quality, per plugin (for cross-group requests)
improvement: skills/find description 1212 > 1024. Shorten the description, then remove the row from scripts/skill-description-cap-baseline.txt (the checker FAILs on a stale row).
work-items: skills/setup description 1273 > 1024. Same fix and same baseline row.
docs-hygiene: skills/audit-encapsulation check 25 mismatch (fix: add the --fix override wording or drop "remediate" from the lead). skills/setup test failure (setup-check.test.sh).
architecture: skills/map-landscape test failure (render-landscape.test.sh, markdownlint step).
Owner of scripts/ (not a plugin): scripts/check-all-skills-verb-contract.sh never runs check 25 (see 4586-sweep.md); once it does, it FAILs on docs-hygiene/audit-encapsulation until that skill is fixed. Fix the docs-hygiene skill first or in the same change.
Every plugin in the 54-skill list above exceeds the estimated 5000-token body recommendation. Advisory, out of scope per the issue.
No violation of name, name length, name characters, consecutive hyphens, 500 lines, colon or compatibility anywhere.
Acceptance criteria now met on the #5307 branch: the findings report, and per-rule gate coverage (each spec rule mapped to its gate, with the gaps listed). Still open: a recorded decision for each interop question, and fixes for real violations (the 2 baselined descriptions, owned by improvement and work-items).
Decision packet
Nothing below is implemented. Each RECOMMENDED line is an AI recommendation, not a decision.
1. compatibility field.
A) No skill carries it. The checker keeps absence = pass and length-gates a present value.
B) Some skills declare it, with a stated rule for which.
Unblocks: closes the question with no code change under A. B needs a rule and a per-skill audit.
2. Frontmatter stripping.
A) No rule; treat frontmatter as loader metadata only.
B) Add a check that flags instructions placed in frontmatter beyond description.
RECOMMENDED: A only if no fleet skill puts instructions in frontmatter, else B. The report has not counted this; it is a small script away. Basis: the Claude Code skills reference (https://code.claude.com/docs/en/skills, re-fetched 2026-09-29) does not say whether frontmatter is stripped from the activated prompt. It is silent, so no fetch settles it; a harness test would.
Unblocks: whether a frontmatter lint is worth adding.
3. Compaction.
A) Accept runtime behavior; no check.
B) Audit which skills depend on instructions surviving compaction and add the 5,000-token-per-skill and 25,000 combined limits to a check.
RECOMMENDED: A. Basis: the skills reference (re-fetched 2026-09-29) states that auto-compaction re-attaches the most recent invocation of each skill, keeping the first 5,000 tokens of each, with a shared 25,000-token budget, oldest dropped first. No skill was audited. 54 skills exceed 5,000 tokens by estimate, so B would flag them, but the docs' own remedy is re-invoking after compaction.
Unblocks: whether the 54-skill list becomes a gate.
Unblocks: a mirror or root under B; nothing under A.
Next: on the owner's four answers, the decisions go to a durable home (docs/specs/agent-doc-surfaces.md or an ADR, decisions-docs group), reconciled with #2911, and then this issue can close. #5307 says "Refs #3612" and does not close it. Labels: needs-human kept, status: needs-decision added, status: ready removed.
Owner decision (2026-09-29): accepted the recommendation. Question 1 (compatibility field): option A, no skill carries it. Question 3 (compaction): option A, accept runtime behavior, no check. Questions 2 (instructions in frontmatter) and 4 (.agents/skills/ root): decide with evidence. Owner's note: none.
Next: an agent gathers the evidence and posts it here. Q2: count fleet skills that put instructions in frontmatter beyond description (leaning: A if the count is 0, else B). Q4: locate or re-run the #2911 harness result on whether Claude Code reads .agents paths (leaning: A, do not add the root). The agent stops after posting the evidence; the final call on 2 and 4 stays with the owner (needs-human kept).
Bottom line: Q1 and Q3 are recorded as option A per your 2026-09-29 decision. Q2 measured 0 skills with instructions in frontmatter beyond description (your lean: A). Q4 is refuted by the existing #2911 harness verdict and a fresh re-run on 2.1.284 (your lean: A). The final call on Q2 and Q4 stays with you. Nothing is implemented, and this issue stays open with needs-human.
Recorded from the owner decision (2026-09-29)
Q1 compatibility field: option A. No skill carries it.
Q3 compaction: option A. Accept runtime behavior, no check.
Q2: instructions in frontmatter beyond description
Count: 0 of 305 skills. Method: enumerate plugins/*/skills/*/SKILL.md at depth 4 (excludes vendor/ and evals/fixtures/), parse every frontmatter, and classify each key as loader metadata or possible instruction-bearing content (any unknown key, or a long scalar reading as a directive). The script ran twice with identical output.
Total is 305, not the 303 in the earlier report: 2 skills were added since that measurement.
Unknown-key check: disallowed-tools (3) and background (1) are both documented loader keys in the skills frontmatter reference. No undocumented key exists.
One false positive, not counted: plugins/discovery/skills/explore has a description containing the trigger phrase "step 1 before a code change". It is a trigger, not a directive.
Currency check on Claude Code 2.1.284: a scratch project had .agents/skills/probe/SKILL.md and a control .claude/skills/probectl/SKILL.md, and nothing else. Command: claude -p "reply ok" --permission-mode auto --output-format stream-json --verbose, reading the skills array of the init event.
Result: 338 skills listed. probectl (control) listed, probe (.agents) not listed. The verdict still holds one version later, for the project-level path. The refuted row 5 concerns the personal ~/.agents/skills path, and it stays two-pool. This run did not probe the personal path.
Docs grep: 0 hits for .agents in the fetched skills reference.
Lean (yours, not a decision): A, do not add the .agents root now.
Left for the owner
The final call on Q2 and Q4 stays with the owner. This issue stays open with needs-human. No labels changed, and nothing was written to CHANGELOG, docs, specs or an ADR.
Owner decision (2026-09-29): accepted the recommendation: Q2 (instructions in frontmatter) option A, no rule, treat frontmatter as loader metadata only (measured count 0 of 305); Q4 (.agents/skills/ root) option A, do not add the root now (re-run on Claude Code 2.1.284 shows the .agents path is not read).
The owner accepted every standing recommendation on 2026-09-29. With Q1 and Q3 already recorded as option A, all four interop questions are decided.
Next: an agent records the four decisions and their reasons in a durable home (docs/specs/agent-doc-surfaces.md or an ADR), updates the stale pending-#2911 wording at docs/specs/agent-doc-surfaces.md:65 and `:91-94` to point at the closed #2911 verdict (docs/upstream/aihero-course.md:415), fixes or files the two over-limit descriptions (improvement/skills/find, work-items/skills/setup), and opens a draft PR. The issue closes when that PR merges.
Activity
docs(adr): record the wrap-not-rebuild playground decision
docs(topics): prune the contract slices before merge
feat(playgrounds): wrap the first-party playground plugin with routin…
claude commentedon Sep 6, 2026
Generated by Claude Code
claude commentedon Sep 6, 2026
This was generated by AI during triage.
Triage verification (2026-09-06)
Three corrections that change the shape of this work. An executing agent should start from these rather than from the body's numbers.
check-skill.shalready enforces most of this". There is no such file in this repository. The actual enforcement is split across the fleet contract validator (scripts/validate-plugin-contracts.mjs) and a family ofscripts/check-skill-*.shgates covering leaf names, portability, precompute composition and count claims. The overlap question the body asks is still the right question, but it must be asked of those surfaces. Note this same non-existent script is cited by argument-hint hygiene: six concrete fixes, a house style rule, and a lint criterion #3542 and Adopt named arguments on multi-slot skills; document verified substitution semantics; lint unescaped $N #3543 as well, so the correction is worth making once and applying to all three.Agent Brief
Type: Task
Summary: Audit the fleet's skill definitions against the Agent Skills specification, fix real violations, and record a decision per interop question.
Current behavior:
The fleet's skills are governed by this repository's own contract gates, which were written independently of the published Agent Skills specification. Where the two overlap is not established, so it is unknown whether the local gates cover the spec's conformance rules, leave gaps, or would double-enforce if spec checks were added naively. Several spec-adjacent interop questions have no recorded position.
Desired behavior:
A findings report states, per spec conformance rule, whether the fleet conforms and whether an existing local gate already enforces it. Real violations are fixed. Each interop question has a recorded decision. Where a local gate already covers a rule, that is recorded as covered rather than a second check being added.
Conformance rules to sweep: the skill name matching its parent directory, its length and character constraints including no consecutive hyphens, the description length ceiling, and the recommended body size limits.
Interop questions to decide and record:
Acceptance criteria:
scripts/affected-tests.sh --runpasses for any touched surfaces.Out of scope:
Cluster: playground-integration deferred verticals
This item is one of five deferred verticals from the playground-article corpus effort:
#3612 (V3), #3614 (V5), #3615 (V6), #3616 (V7), #3617 (Q9). Each measures some part of this
fleet against upstream Agent Skills or plugin-distribution guidance and records a verdict.
They are independent enough to run separately, so no carrier is designated and no dependency edges
were created. Two shared notes apply to all five:
so treat those references as historical rather than as files to read.
the "70+" and "237" figures these bodies carry. Re-inventory before trusting any recorded count.
This triage pass created, merged and closed nothing.
Generated by Claude Code
kyle-sexton commentedon Sep 27, 2026
This was generated by AI during work-loop.
Feature-shaped C3 is human-gated: approve the scope and dispatch, or park?
compatibilityfield, frontmatter stripping, compaction,.agents/skills/portability).CLAUDE.mdinviolables) applies./work-items:workvia the work-loop, one draft PR with the findings report, closing only gaps thatcheck-skill.shdoes not already enforce.10 remaining items
kyle-sexton commentedon Sep 29, 2026
This comes from the 2026-09-29 audit of the unattended Cursor run. This was generated by AI.
Reopened: this issue is parked on four owner decisions, and the run dispatched it anyway.
Facts:
compatibilityfield, frontmatter stripping, compaction, and.agents/skills/portability). No dispatch until those are resolved."plugins/skill-quality/CHANGELOG.mdunder a### Recordedheading. Those were not the operator's decisions. Fix PR fix(skill-quality): check 25 FAIL coherence, check 1 grammar, measure-invocation portability #5307 removes that text from main (deletion; no pre-Cursor text existed). It is not a decision.compatibility1-500 characters). They are spec-mandated checker changes. fix(skill-quality): check 25 FAIL coherence, check 1 grammar, measure-invocation portability #5307 (T3) extends the colon check to continuation lines.Findings report (measured on the #5307 branch at
dfb0498744983a9ae1330cb80f30fc00c2d6c058, 2026-09-29), summary:SKILL.mdfiles, minus 6 vendored, minus 3 eval fixtures). The issue said 70+ and triage said about 262.name(chars, length, hyphens, matches directory) 0 violations; body under 500 lines 0 violations;description1-1024: 2 violations, both already in the baseline (improvement/skills/find1212,work-items/skills/setup1273); unquoted:in a plain description 0;compatibilitydeclared by 0 skills.nameis required by the spec and declared by 0 of 303 skills. Check 1 accepts absence on purpose.validate-plugin-contracts.mjs,check-skill-*.sh, andclaude plugin validateon 2.1.284 all lack both rules).docs-hygiene/audit-encapsulation(check 25 mismatch),docs-hygiene/setup(check 7 test failures),architecture/skills/map-landscape(check 7 test failure). Those belong to other plugins' owners; fix(skill-quality): check 25 FAIL coherence, check 1 grammar, measure-invocation portability #5307 does not touch them.Full report (per-rule counts, reproduce commands, gate line numbers):
.work/fix/artifacts/skill-quality/3612-findings.mdin the audit checkout; pasted below.3612-findings.md
#3612 findings report: Agent Skills conformance sweep
Measured on branch
fix/audit-skill-qualityatdfb0498744983a9ae1330cb80f30fc00c2d6c058(2026-09-29), checkerplugins/skill-quality/scripts/check-skill.sh(26 checks). Spec read this session: https://agentskills.io/specification.The four interop questions are not answered here.
Inventory
Run from the worktree root
/home/kyle/worktrees/ccp-fix-skill-quality.SKILL.mdunderplugins/find plugins -name SKILL.md | wc -lvendor/trees (includescontext7/skills/lookup/vendor/cliand.../vendor/find-docs)find plugins -name SKILL.md | grep -cE '/vendor/'evals/fixtures/test inputsfind plugins -name SKILL.md | grep -c '/evals/fixtures/'plugins/<plugin>/skills/<skill>/SKILL.md)find plugins -mindepth 4 -maxdepth 4 -path 'plugins/*/skills/*/SKILL.md' | wc -lThe issue body said "70+" and the triage comment said about 262. The measured figure is 303 across 82 plugins.
All commands below are in
3612-oneliners.sh(one echo per rule; runbash 3612-oneliners.shfrom the worktree).3612-rules.pyis a Python cross-check that parses every frontmatter (python3 3612-rules.py). It agrees with the shell counts on every rule.The checker sweep is
3612-checker-sweep.sh <outdir>: onecheck-skill.sh plugins/<p>/skillscall per plugin withCHECK_SKILL_SKIP_MARKDOWNLINT=1and noCHECK_SKILL_DESC_FIELD_BASELINE, so baselined breaches show as FAIL.Result of the checker sweep: 82 plugin roots, 303 skills, 298 PASS, 5 FAIL. The failures are listed under "Checker sweep failures".
Per rule
checkedis 303 for every rule. Gate line numbers are inplugins/skill-quality/scripts/check-skill.sh(branch).namepresent (spec: required)nameSK | while read -r f; do sed -n '2,/^---$/p' "$f" | grep -q '^name:' && echo "$f"; done | wc -lgives 0 declarednameas optional (Claude Code default is the directory name), lines 612-650. Nothing requires it.nameequals parent directorycheck-skill.sh:643(declared name differs from directory). Also the harness itself.name1-64 charsSK | awk -F/ 'length($4)>64' | wc -lgives 0NAME_MAX_LEN=64at:504, error at:669. Runs on the effective name (declared, else directory).namelowercase alphanumerics and hyphens, no leading or trailing hyphenSK | awk -F/ '{print $4}' | grep -vcE '^[a-z0-9]+(-[a-z0-9]+)*$'gives 0^[a-z0-9]+(-[a-z0-9]+)*$at:640, error:641. Applies to a declared name only; a directory leaf is not pattern-checked, only length-checked (:669).nameno consecutive hyphensSK | awk -F/ '{print $4}' | grep -c -- '--'gives 0(-[a-z0-9]+)*cannot match--),:641. Same declared-name-only limit.description1-1024 charactersplugins/improvement/skills/find/SKILL.md(1212),plugins/work-items/skills/setup/SKILL.md(1273)3612-oneliners.sh(R3):sed ... grep -m1 '^description:' | sed -E 's/^description: "(.*)"$/\1/' | LC_ALL=C.UTF-8 wc -m, minus 1 for the newlineDESC_FIELD_CAP=1024at:468, FAIL at:797, baseline WARN at:795. Baselinescripts/skill-description-cap-baseline.txtholds exactly these two rows. CI reaches it throughscripts/check-changed-skills.sh(ci.yml:1350-1359), changed skills only.claude-config/skills/audit-instructions/SKILL.md, 498)SK | xargs grep -c '' | awk -F: '$2>=500' | wc -lgives 0LINE_HARD_CAP=500at:506,:911-913. Counts the whole file, frontmatter included, so it is stricter than the spec.SK | while read -r f; do awk 'NR==1&&/^---/{fm=1;next} fm&&/^---/{fm=0;next} !fm{print}' "$f" | wc -m | awk '$1/4>=5000'; done | wc -lgives 54:in a plaindescription3612-oneliners.shgives 0. Also all 303 descriptions are a single double-quoted line:grep -v '^description: ".*"$'count is 0 (R3 second line)check-skill.sh:700-716, added by #5045.compatibilitypresentSK | while read -r f; do sed -n '2,/^---$/p' "$f" | grep -q '^compatibility:' && echo "$f"; done | wc -lgives 0check-skill.sh:719-730, added by #5045. Absence is success.SKin the commands isfind plugins -mindepth 4 -maxdepth 4 -path 'plugins/*/skills/*/SKILL.md' | sort.Skills whose body is estimated at 5000 tokens or more (54)
Count per plugin: autonomy 1, bugs 1, claude-config 6, claude-ops 4, code-tidying 3, context-guard 1, discovery 2, disk-hygiene 1,
docs-hygiene 2, education 1, evals 1, gaming 1, implementation 2, instruction-placement 1, mutation-testing 1, overengineering 3,
planning 4, playbooks 1, plugin-quality 1, repo-fleet-hygiene 1, repo-hygiene 1, session-flow 2, skill-quality 1, source-control 6,
toolchain 1, work-items 5. Largest:
planning/skills/interview(~16100),planning/skills/plan(~11200).Full paths and estimates:
python3 3612-rules.py. The issue puts restructuring bodies to hit the size limits out of scope, and the specmarks 5000 tokens as a recommendation.
Does #5045 duplicate an existing gate
Criterion: "no new check duplicates an existing gate".
No. #5045 (
58ac845e0) added 32 lines tocheck-skill.shand nothing else in the gate stack. Evidence:git show 58ac845e0^:plugins/skill-quality/scripts/check-skill.sh | grep -c -E 'compatibility|mapping indicator'gives 0.scripts/validate-plugin-contracts.mjshas no description, name-length, colon or compatibility rule. Its frontmatter checks coverdisable-model-invocation,argument-hint,arguments,skills:entries and agentmodel:(grep -n -iE 'compat|1024|description' scripts/validate-plugin-contracts.mjsshows none that are skill-frontmatter conformance).scripts/check-skill-*.shfamily covers leaf-name collisions (check-skill-leaf-names.sh), portability tokens, precompute composition and count claims. None reads a description scalar orcompatibility.claude plugin validate(run per plugin byscripts/validate-plugins.sh, CIci.yml:1945-1954) does not surface either defect on Claude Code 2.1.284. A probe plugin with an unquotedUse when: ...description and a 600-charactercompatibilityreturnedsuccess: trueandcontents: []under--json;plugins/skill-qualityalso returnscontents: []. Probe files were scratch and are deleted.The other rules the issue lists were already enforced by check 1, 2b and 4 before #5045. #5045 added no second copy of any of them.
Coverage gaps
nameis required by the spec and declared by 0 of 303 skills. Check 1 accepts absence on purpose. Whether the fleet should declarenamefor cross-client use is part of the owner's interop portability question, not decided here.nameis absent (check-skill.sh:640runs only for a declared name). All 303 leaves pass the pattern today (R2 above), so this is latent.ci.yml:1350-1359). The only full-corpus step,scripts/check-all-skills-verb-contract.sh(ci.yml:1346-1348), tests check 25 only and does not run the checker (see the 4586 sweep record).Checker sweep failures (5 of 303)
plugins/improvement/skills/findplugins/work-items/skills/setupplugins/docs-hygiene/skills/audit-encapsulationauditleaf, no override)plugins/docs-hygiene/skills/setupscripts/setup-check.test.shPASS=23 FAIL=2 ("bundled defaults pass", "an un-ignored overlay does not fail the run"); reproduces aloneplugins/architecture/skills/map-landscapescripts/render-landscape.test.sh"lint: the rendered markdown passes markdownlint"; reproduces alone withmarkdownlint-cli2on PATHCause of the two check 7 failures was not investigated.
Real violations outside plugins/skill-quality, per plugin (for cross-group requests)
improvement:skills/finddescription 1212 > 1024. Shorten the description, then remove the row fromscripts/skill-description-cap-baseline.txt(the checker FAILs on a stale row).work-items:skills/setupdescription 1273 > 1024. Same fix and same baseline row.docs-hygiene:skills/audit-encapsulationcheck 25 mismatch (fix: add the--fixoverride wording or drop "remediate" from the lead).skills/setuptest failure (setup-check.test.sh).architecture:skills/map-landscapetest failure (render-landscape.test.sh, markdownlint step).scripts/(not a plugin):scripts/check-all-skills-verb-contract.shnever runs check 25 (see4586-sweep.md); once it does, it FAILs ondocs-hygiene/audit-encapsulationuntil that skill is fixed. Fix the docs-hygiene skill first or in the same change.compatibilityanywhere.Acceptance criteria now met on the #5307 branch: the findings report, and per-rule gate coverage (each spec rule mapped to its gate, with the gaps listed). Still open: a recorded decision for each interop question, and fixes for real violations (the 2 baselined descriptions, owned by
improvementandwork-items).Decision packet
Nothing below is implemented. Each RECOMMENDED line is an AI recommendation, not a decision.
1.
compatibilityfield.compatibilityfield" (re-fetched 2026-09-29, text confirmed), and 0 of 303 skills carry it.2. Frontmatter stripping.
description.3. Compaction.
4.
.agents/skills/portability.docs/specs/agent-doc-surfaces.md:91-94records the convention as confirmed directionally only (MEDIUM) and leaves whether Claude Code reads.agentspaths to claude-memory: aihero course lane 9: steering-surface validations (navigation pointers, harness claims, auto-memory, /init-then-prune eval) #2911's harness-claims bundle. Cross-repo reach, so the evidence that would settle it is the claude-memory: aihero course lane 9: steering-surface validations (navigation pointers, harness claims, auto-memory, /init-then-prune eval) #2911 harness result. claude-memory: aihero course lane 9: steering-surface validations (navigation pointers, harness claims, auto-memory, /init-then-prune eval) #2911 is closed, so its result should be located or re-run.Next: on the owner's four answers, the decisions go to a durable home (
docs/specs/agent-doc-surfaces.mdor an ADR, decisions-docs group), reconciled with #2911, and then this issue can close. #5307 says "Refs #3612" and does not close it. Labels:needs-humankept,status: needs-decisionadded,status: readyremoved.fix(skill-quality): check 25 FAIL coherence, check 1 grammar, measure…
kyle-sexton commentedon Sep 29, 2026
Owner decision (2026-09-29): accepted the recommendation. Question 1 (compatibility field): option A, no skill carries it. Question 3 (compaction): option A, accept runtime behavior, no check. Questions 2 (instructions in frontmatter) and 4 (.agents/skills/ root): decide with evidence. Owner's note: none.
Next: an agent gathers the evidence and posts it here. Q2: count fleet skills that put instructions in frontmatter beyond description (leaning: A if the count is 0, else B). Q4: locate or re-run the #2911 harness result on whether Claude Code reads .agents paths (leaning: A, do not add the root). The agent stops after posting the evidence; the final call on 2 and 4 stays with the owner (needs-human kept).
kyle-sexton commentedon Sep 29, 2026
This was generated by AI during work-loop.
Bottom line: Q1 and Q3 are recorded as option A per your 2026-09-29 decision. Q2 measured 0 skills with instructions in frontmatter beyond
description(your lean: A). Q4 is refuted by the existing #2911 harness verdict and a fresh re-run on 2.1.284 (your lean: A). The final call on Q2 and Q4 stays with you. Nothing is implemented, and this issue stays open withneeds-human.Recorded from the owner decision (2026-09-29)
compatibilityfield: option A. No skill carries it.Q2: instructions in frontmatter beyond
descriptionplugins/*/skills/*/SKILL.mdat depth 4 (excludesvendor/andevals/fixtures/), parse every frontmatter, and classify each key as loader metadata or possible instruction-bearing content (any unknown key, or a long scalar reading as a directive). The script ran twice with identical output.disallowed-tools(3) andbackground(1) are both documented loader keys in the skills frontmatter reference. No undocumented key exists.plugins/discovery/skills/explorehas a description containing the trigger phrase "step 1 before a code change". It is a trigger, not a directive.metadatait says Claude Code "doesn't act on its contents".Q4: does Claude Code read
.agentsskill pathsdocs/upstream/aihero-course.md:415(harness verdict row 5) is REFUTED. Corroboration is two-pool: the docs enumerate only~/.claude/skills, and the binary has no.agentsfilesystem path. The upstream doc for OpenCode owns the convention.docs/upstream/aihero-course.md:365repeats it as REJECT (do-not-repeat). Version graded: v2.1.233. claude-memory: aihero course lane 9: steering-surface validations (navigation pointers, harness claims, auto-memory, /init-then-prune eval) #2911 closed 2026-08-17..agents/skills/probe/SKILL.mdand a control.claude/skills/probectl/SKILL.md, and nothing else. Command:claude -p "reply ok" --permission-mode auto --output-format stream-json --verbose, reading theskillsarray of the init event.probectl(control) listed,probe(.agents) not listed. The verdict still holds one version later, for the project-level path. The refuted row 5 concerns the personal~/.agents/skillspath, and it stays two-pool. This run did not probe the personal path..agentsin the fetched skills reference.docs/specs/agent-doc-surfaces.md:65and:91-94still call this a pending claude-memory: aihero course lane 9: steering-surface validations (navigation pointers, harness claims, auto-memory, /init-then-prune eval) #2911 item, although claude-memory: aihero course lane 9: steering-surface validations (navigation pointers, harness claims, auto-memory, /init-then-prune eval) #2911 is closed. I did not edit them, since a wording change there would sit next to your open decision..agentsroot now.Left for the owner
The final call on Q2 and Q4 stays with the owner. This issue stays open with
needs-human. No labels changed, and nothing was written to CHANGELOG, docs, specs or an ADR.docs: scope the agent-doc-surfaces harness verdict to ~/.agents/skills
docs: point agent-doc-surfaces at the .agents harness verdict (#5359)
kyle-sexton commentedon Sep 30, 2026
Owner decision (2026-09-29): accepted the recommendation: Q2 (instructions in frontmatter) option A, no rule, treat frontmatter as loader metadata only (measured count 0 of 305); Q4 (
.agents/skills/root) option A, do not add the root now (re-run on Claude Code 2.1.284 shows the.agentspath is not read).The owner accepted every standing recommendation on 2026-09-29. With Q1 and Q3 already recorded as option A, all four interop questions are decided.
Next: an agent records the four decisions and their reasons in a durable home (
docs/specs/agent-doc-surfaces.mdor an ADR), updates the stale pending-#2911 wording atdocs/specs/agent-doc-surfaces.md:65and `:91-94` to point at the closed #2911 verdict (docs/upstream/aihero-course.md:415), fixes or files the two over-limit descriptions (improvement/skills/find,work-items/skills/setup), and opens a draft PR. The issue closes when that PR merges.fix(work-items): trim setup description under the 1024-codepoint maximum