- make the anchor-only test assert the current hint text so it can fail
- sync removes an empty references/ after dropping the last shared copy
- CLAUDE.md: the generated shared copies are the exception to no duplication
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
slugify stripped anything that looked like an HTML tag or a link before
dropping punctuation, including inside code spans. GitHub renders a code
span's text as written, so a heading like `## Use `<dialog>` for modals`
gets the anchor #use-dialog-for-modals; the validator produced
#use--for-modals and rejected the real anchor.
Reading the files as UTF-8 turned an invalid byte into U+FFFD on write,
and two copies whose bytes differ but decode alike passed --check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy the skill directory and the shared references into a temporary
directory outside the fixture workspace, grant the executor access with
--add-dir, and name both base directories in the system prompt. Reject
symbolic links in the staged resources. The dry-run plan prints the
--add-dir argument too.
Assisted-by: claude-code:claude-opus-5-5
Agent-Session: 7d0f7cf1-f8a8-427f-843b-2ca124cfea16
Agent-Host: 0493f0
Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
A positive inside top_k passes, but only rank 1 counts toward the
rate the --min-rank1 floor measures, and the runner printed nothing
for the gap between them. Finding which prompt had slipped to #2 on
main took a hand-built harness around rankSkills. Print the prompt,
its rank and the skill that outranks it, with scores, as an info line.
One test covers the line and the 50% rate it explains.
- Problem: the documented pre-commit secret checks piped the staged diff
through a printing grep, so a staged credential's raw value was copied
into terminal output and any agent tool transcript (issue #717).
- Fix: scan with git alone — `git diff --cached -i -G'...' --name-only`
(and the `--staged` twin) prints only matching file names, so the value
can never reach output; a git failure exits non-zero instead of reading
as clean the way a grep pipeline does when its left side fails. Applied
to all three documented sites: security-checklist.md,
hardening-patterns.md, and git-workflow-and-versioning/SKILL.md.
- Verification: node --test scripts/staged-secret-scan-test.js extracts
each documented command and proves a staged sentinel's file is named
while its value never reaches stdout/stderr (fails on the pre-fix
docs); validate-skills, validate-reference-links, validate-versions,
validate-commands, validate-artifact-paths, run-evals --min-rank1 95
all pass.
The generated header made every copy a separate blob. Without it a copy
is byte for byte its root file, so git stores one blob for both, and a
hand edit to a copy still fails --check as stale. The three --check
tests become one table of drift cases.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XTTwR4HS4sWgZ992ThEwmP
shared/ holds only generated copies, so a run now deletes it and writes
it again, and --check compares it with what a run would write. That
drops the header-based checks that refused to overwrite or delete a
hand-written file there, a case no one has hit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XTTwR4HS4sWgZ992ThEwmP
The copies sat next to each skill's own reference files and filled PR
diffs. They now live in skills/<name>/references/shared/, which holds
only generated files, and .gitattributes marks that directory
linguist-generated so GitHub collapses it in diffs and language stats.
The sync script refuses to overwrite or delete a hand-written file there.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XTTwR4HS4sWgZ992ThEwmP
Git for Windows checks symlinks out as text files by default, so the
skill-local symlinks broke a full checkout there. Each skill now holds a
generated copy of the shared checklists it links, written from the root
references/ by scripts/sync-shared-references.js. CI runs it with --check
and fails when a copy is missing, stale, or no longer linked.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XTTwR4HS4sWgZ992ThEwmP
ARTIFACT_RE had no left boundary, so a filename that merely ends in
spec.md, plan.md or todo.md (for example test-plan.md or release_todo.md)
was reported as a drifted spec/plan/todo artifact path. Anchor the match so
it cannot start mid-word.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Two blocking items from review on #668.
Adding 'ation' without 'ations' left the plural longer than its singular:
migration -> migr but migrations -> migration. That halves the score for
'Plan the database migrations' (0.354 -> 0.093) where the two forms used to
match. Both are now listed, with a regression test that fails on the
one-form list. The -ifications rule above already handled both forms.
The pinned auth case was not a guard: 'Add auth to the login flow' ranks #1
on main because 'login' and 'flow' are in the description, so it passes
without the alias map. Swapped for 'Add auth and rotate the session cookie'
(#4 on main, #1 with the alias), and the sandbox test for the alias map
still fails on its own if the map is dropped.
Corpus: 91/91 rank-1, 143 checks, 40/40 unit tests.
The bare "-ation" rule added for clipped forms turned "specification" into
"specific", silently cross-merging two unrelated words — the exact collision
the alias map exists to avoid.
"-ification" nouns are nominalizations of "-ify" verbs, so fold them to the
verb's "-ifi" stem, which is what stem() already produces for "specify" and
"verify" via its trailing-y rule. Checked before the generic suffix loop so
it wins over "-ation".
Rank-neutral on the current corpus (91/91 rank-1 before and after). Adds a
regression test that fails without the rule.
Refs #660.
Preserve the parser's null-or-object contract while reporting blank
evidence separately from malformed grader output. Keep rejected
responses on the raw-only persistence path.
Add CLI regressions for both verdicts, whitespace variants, malformed
grading, valid output, and stale scored-artifact cleanup.
A per-skill install copies only skills/<name>/, so a link that resolves
outside it breaks after install even when the repo file exists. The
check now fails such links and its hint names the skill-local symlink.
Links from files inside a skill's references/ use ../references/<file>.md
so their anchors stay checked.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KepYXCwn74SMeQ8XcKPL31
The Tier-2 trigger scorer never matched clipped forms users type
(docs, auth, config) to the long forms used in descriptions
(documentation, authentication), so same-register prompts ranked #1-2
while clipped-register prompts sank to #18-20 (see #660).
Fix in the stemmer, not the descriptions: a small explicit alias map
applied before stemming plus -ation folding, so both registers stem
identically. Adds clipped-register positive prompts to the
security-and-hardening and documentation-and-adrs case files so a
description that drops back to one register fails CI, and a sandbox
regression test pinning the routing (fails on main, passes with fix).
Before -> after (buildCorpus + rankSkills on main):
- 'Add authentication to our API endpoints' -> security #2 -> #5 (*)
- 'Add auth to our API endpoints' -> security #20 -> #5 (*)
- 'Our documentation is out of date with the code' -> docs #1 -> #1
- 'Our docs are out of date with the code' -> docs #18 -> #1
(*) the API-endpoints auth variant stays genuinely ambiguous with
api-and-interface-design ('API endpoints' is name-weighted 2x there);
no existing rank-1 moved: suite stays 100% (91/91, was 89/89).
Fixes#660