Repository navigation
fix(#1566): the proseGate metric counts any test file that mentions SKILL.md — 34 of 76 counted files are not prose gates; count only files that read a SKILL.md and assert on it - #1569
Merged
admarble merged 3 commits intoOct 21, 2026
Conversation
Entire-Checkpoint: 632683dfb237
…rt on it Strip string literals before the SKILL_ROOTS check, drop scratch-fixture path variables, revert the 80-column re-wrapping, and add the string-literal case. Entire-Checkpoint: b786aa61d6ed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
What changed in the rule (
isProseGateinscripts/qa/health-report.ts): a file counts only if it callstoContainortoMatchafter comments are stripped, and either:SKILL_ROOTSoutside an import or a string literal, orSKILL.md, directly or through a variable.I also dropped one kind of variable: a path set to a bare relative literal like
".claude/skills/demo/SKILL.md". That is a file the test writes into a scratch directory, not a shipped skill.The three QA items:
SKILL_ROOTSmentioned only inside a string no longer counts, and there is a test for it.not a prose gate:rows inprose-gates.md. One file joined:__tests__/quality-checks-worktree-root.integration.test.ts, which reads throughSKILL_ROOTSwith no literal path. 63 − 34 + 1 = 30. The list is in/tmp/left.txt, so paste it into the PR body. The doc note and CHANGELOG line now give the 30 / 7,374 figures.src/commands/update.integration.test.tsandsrc/lib/templates.test.tsboth leave the count, through the relative-literal rule.Formatting churn: I restored
health-report.tsand its test fromorigin/mainand reapplied only the real change. The diff is now +77 / −8 across 5 files. The baseline changes onlyproseGate; I put back the ungatedtestRatio28dvalues that regeneration had moved.Known limit: a file that reads
SKILL.mdand callstoContainon unrelated output still counts. I could not tell the two apart without an AST, so I did not add that case.Fixes #1566
Follow-ups
🤖 Generated by
sequant run