Repository navigation
chore: sync fork with upstream (0.6.13) — spec stops after writing, mutation check in review, no more tag pushes - #7
Merged
Conversation
…n.json Signed-off-by: aoright <102943475+aoright@users.noreply.github.com>
…skill-local reference
SKILL.md loaded ~4.3k tokens on every activation at 496 lines, just
under the 500-line budget in docs/skill-anatomy.md, with Step 3 ("Fix
Common Anti-Patterns") alone at ~1,800 words of worked TypeScript, SQL,
HTML, and TSX that an agent only needs once Step 2 has named the
bottleneck.
Move Step 3's body verbatim into references/optimization-patterns.md
(same convention as constraint-driven-development/references/floor-guard.md
and addyosmani#579), promoting its #### headings to ## so the file stands alone.
SKILL.md keeps the workflow and replaces Step 3 with a condensed list:
each anti-pattern's rule and recognizable signature, with a deep link to
its worked fix. Every rule the Red Flags, Rationalizations, and
Verification sections rely on (read the plan before indexing, cache key
includes the viewer, bigger pool is not faster, neutral is a revert) is
still stated in SKILL.md.
Lines 1-120 (frontmatter through the Step 2 tables) and Step 4 onward
are byte-identical to before, so the two hunks in addyosmani#492 still apply.
SKILL.md: 496 -> 267 lines, 3314 -> 2488 words (~-25% tokens per load).
Routing unchanged: run-evals rank-1 stays 100%, no description edits.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: aoright <102943475+aoright@users.noreply.github.com>
docs/skill-anatomy.md states three structural rules that nothing checks: the 500-line context budget for SKILL.md, no empty subdirectories, and lowercase-hyphen-separated supporting filenames. skill-lint.js calls itself the single source of truth for that document, so the rules belong there rather than in a sixth validator script. The line-count rule is a warning: an over-budget skill is an editorial call, and failing CI on it would block unrelated work. Layout rules are errors — nothing on main violates them, so they cannot break the build. Also wires scripts/lib/skill-lint-test.js into CI. It has never run there; every other *-test.js in scripts/ has its own step.
The frontmatter YAML checks catch an unquoted `: `, a tab indent and an
unterminated quote, but not a plain scalar that *begins* with a character YAML
reserves. A real parser rejects the whole file on those, which is the failure
the check exists to prevent.
The backtick is the one that bites this repo. Descriptions routinely name other
skills, and
description: `other-skill` designs things. Use when …
is a natural way to start one. It passes the validator today and throws
`YAMLException: bad indentation of a mapping entry` in any consumer that parses
the frontmatter.
The rejected set was measured against a real parser rather than read off the
spec, every candidate indicator tried both with and without a following space,
and only the ones invalid in *both* forms with no legitimate single-line use
are rejected:
always invalid: ` @ %
invalid before a space: - ? & (`:` was already covered)
Deliberately still accepted, because each parses cleanly and flagging it would
be a false positive on valid frontmatter: `:` or `-` when *not* followed by a
space (`:platform`, `-hyphenated`), a leading `,`, `]`, `}` or `#`, and `[`/`{`,
which open valid flow collections. `|` and `>` are left alone because they
legitimately open a multi-line block scalar. Those exclusions are pinned by a
test of their own, so the rule cannot be widened into false positives later —
both widening mutations are caught by exactly that test.
Cross-checked the finished rule against the parser over 38 values spanning every
indicator in both forms: **0 false positives, 11 remaining misses**, all of them
the deliberate exclusions above.
Seven mutations caught: removing either rule, dropping the backtick or the at
sign from the set, widening either rule (to anywhere in the value, or to ignore
the required space), and letting quoted values fall through to the new checks.
The repo's own 25 skills still pass with 0 errors and 0 warnings.
…ns and maximum thresholds The reference guard in constraint-driven-development promised to include untracked files, catch deleted test files and weakened thresholds, and stay silent when constraints tighten. Run unchanged, it did none of those for ordinary local git changes: - `git diff --no-index /dev/null <file>` exits 1 whenever the sides differ, and the shared git() wrapper turned every nonzero exit into null, so every untracked file diffed as empty and no added-line rule could see it. - The filename came from the `+++` header only, so a deletion (`+++ /dev/null`) sliced to `ev/null` and matched nothing; there was no deletion rule, and staging did not help. - A number going down was treated as weaker, which is right for a minimum (coverage) and inverted for a maximum (size, latency, error budget). - A removed floor bullet was never reported, although the comment said it was. The wrapper now keeps stdout on the expected exit 1 and every other failure exits 2 rather than reading as clean; both diff headers name the file and a deleted test file is its own finding; each threshold carries a direction read from the words around it (>=, at least, must not fall; <=, at most, under, must not grow), a number with no readable direction is reported when it changes; a removed floor bullet or table row is reported, except an Exceptions row, whose removal tightens. The three language patterns are unchanged. scripts/floor-guard-reference-test.js extracts the fenced block and runs it with real git against fourteen fixtures plus three edge cases; eight of them fail on the previous reference and all pass now. The workflow runs it beside the other script tests.
… removed ones Review on addyosmani#600 (@abhisheksharma2411) found three cases in the threshold comparison: - Deleting one threshold from a rule that keeps others was silent: pairing was by position, and a threshold with no counterpart after the edit was skipped. It is now reported as threshold-removed. - A number inserted earlier in a rule shifted the pairing, so "per ADR 7, >= 80%" compared 80 against 7 and reported a loosened minimum. Numbers are now paired within their direction (minimum with minimum, maximum with maximum, undirected with undirected); an added number tightens and stays silent. - A renamed rule is still reported as rule-removed, since the key is the label and blocking is the safe default, and the output now says the label may have changed. The review's cases are in the test, plus a control that adding a threshold is silent: 21 pass, and the three review cases fail on the previous commit.
The behavioral eval for documentation-and-adrs graded "The document is written in timeless language describing current state". SKILL.md never states that for ADRs: the wording comes from references/definition-of-done.md, which covers documentation in general, while the skill's own ADR template carries a Status (Accepted | Superseded by ADR-XXX | Deprecated) and a Date and defines the lifecycle PROPOSED -> ACCEPTED -> (SUPERSEDED or DEPRECATED). Grading against a requirement the skill does not state left the judge to decide, and over the ten runs in addyosmani#591 it was the one expectation whose reading varied (3 pass, 2 fail on one machine; 5 pass on another) while the first two passed in all ten. Replace it with the requirement the skill does state: the ADR records a status from that lifecycle and a date. The skill is unchanged, per the reading in addyosmani#591. Fixes addyosmani#591.
…d its direction words Follow-up from the review on addyosmani#600 (@abhisheksharma2411): a number that gains or loses its direction words (">= 80%" becoming "80%", or the reverse) is paired within its direction and so reads as removed. That is kept on purpose, since the rule changed shape and a person should look once, but the output now says so, as it already does for a renamed rule, so the finding is not read as a literal deletion. One case added for a minimum losing its direction words: 22 pass, and the new case fails without the message.
The negated-trigger check removed only the first "Do not use when …" clause before testing whether a positive trigger remained, because the replace used the non-global DESCRIPTION_TRIGGER_NEGATE. A description carrying two or more negated clauses and no positive trigger left a second "use when" substring behind, which DESCRIPTION_TRIGGER then matched, so the skill passed validation with no trigger at all. One negated clause was correctly rejected; two were accepted. Adds a global form of the pattern for the strip and keeps the non-global one for .test(), since a /g regex carries lastIndex across test() calls.
validate-artifact-paths.js exists to stop the addyosmani#93 class of drift, where a producer moves SPEC.md or tasks/plan.md and a consumer keeps reading the old path. It guarded only the .claude/commands copies plus two skills and two docs. The same commands ship twice more — .gemini/commands/*.toml and the root commands/*.toml — each with its own prompt body that names the same artifacts, and validate-commands.js deliberately compares only descriptions, so a drift on either TOML surface merged green while the Claude Code copy stayed canonical. docs/copilot-setup.md was also unguarded although its prompt-file aliases spell the artifact paths out for users. Add the six TOML producers and consumers and the Copilot doc to GUARDED_FILES, grouped by surface. Rule, allowlist and regex are unchanged. Four new tests cover a Gemini producer drifting alone, a root TOML consumer drifting alone, all three surfaces agreeing, and the Copilot doc. All seven newly guarded files already use canonical paths: 14 files checked, 0 errors.
…iffs and pull requests
…files, deletions and loosened budgets (addyosmani#599)
…nd runs from the top Two follow-ups from the review on addyosmani#600, both already on main before it: - The diff walk treated any line starting with `---` or `+++` as a file header. Inside a hunk those lines are content. An added line that starts with `++` (`++n; // eslint-disable-line no-plusplus`) shows as `+++n; ...` and was dropped, so the suppression passed. An added line that starts with `++ ` was taken as a header, so the lines after it were filed under a made-up path and a removed assertion further down the same test file went unreported. A removed line starting with `--` never reached the removed list either. Headers are now read only between a file's `diff` line and its first `@@`. - Run from a subfolder, `git ls-files --others` listed only that subfolder's untracked files, relative to it, while `git diff` covers the whole tree from the top. An untracked suppression elsewhere in the repository was missed, and one inside the subfolder was reported under a different name from the tracked files. The guard now changes to `git rev-parse --show-toplevel` first, and exits 2 outside a work tree. The test gains six cases: five fail on main, and the sixth (outside a work tree) passes on both and covers the new exit-2 path; 28 pass. The test now also runs in the macOS/Windows matrix.
…Proposed The template's Status line listed Accepted, Superseded by ADR-XXX and Deprecated, while the ADR Lifecycle section below it starts at PROPOSED, and the behavioral eval (since addyosmani#598) accepts any status from that lifecycle. An ADR written from the template before the decision is made had no status to record. Add Proposed to the line. Raised in the review on addyosmani#598 (@abhisheksharma2411) and by the maintainer there.
…holder was removed
…-git-revert # Conflicts: # hooks/simplify-ignore-test.sh # hooks/simplify-ignore.sh
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.
docs/developer-onboarding.md promises that everything CI runs can be run locally, then lists three validators, the eval runner and one hook test. CI runs six validators, seven unit-test files and three hook suites on three operating systems, so a contributor following the doc can fail several steps they never ran. The Tier 1 row in evals/README.md names two validators where there are five, and Tier 2 omits the rank-1 floor. List every workflow command in the onboarding block in workflow order, note the PowerShell glob caveat, state the cross-platform leg, name the workflow file as the source of truth, and align Path 3 and the pre-PR checklist. Update both tier rows in evals/README.md. CLAUDE.md's stale line is left for later because addyosmani#548 edits that file. Every command in the new block was run from this branch and passes, and every command in the workflow appears in the block.
- Node 24, the version CI pins, not Node 20+. - Drop "in the order the workflow runs it": the checks are spread across jobs and run in a different order. Group them by what they cover. - Drop "this is the full set": name the two jobs that need the Claude Code CLI (claude plugin validate, and the marketplace install) and say when to run them. - Restore the rule that editing skills/using-agent-skills/SKILL.md requires the session-start hook test, since the script embeds the file. - List the three hook test commands; `bash hooks/*-test.sh` runs only the first match and passes the others as arguments. - Remove the "new validator ships with a test file and a CI step" line; it is policy, not a doc sync, and goes in its own PR.
Signed-off-by: Rudy Celekli <rudy@gradiahq.com>
Signed-off-by: Rudy Celekli <rudy@gradiahq.com>
… 25 skills Three fenced blocks were labelled bash but hold JavaScript: the Frontend and Backend measurement examples in performance-optimization (web-vitals imports, console.time) and the measurement block in the performance checklist, which mixed npx commands with web-vitals code in one shell fence. An agent reading a bash block can try to run it in a shell, and `#` is not a JavaScript comment. Relabel the two skill blocks as javascript with // comments, and split the checklist block into a bash fence for the npx commands and a javascript fence for the code. Content is unchanged line for line. The Codex manifest's longDescription still said 24 workflows; the pack has had 25 skills since constraint-driven-development landed. Say 25. Found by scanning every fenced block in the repo by declared language; these were the only mislabels.
…en when tests are not mentioned
…y labels docs/agents.md and two persona files said /review and /test wrap the code-reviewer and test-engineer personas. They invoke a skill in the main session and spawn nothing (addyosmani#681). The review commands also still asked for Critical/Important/Suggestion while the skill and persona use Critical/Required/Optional/Nit, and /ship named the old labels.
…n review severity labels
…t and re-hides the file
…s pasted inline
…nifest says 25 skills
…undary line Applies the two review suggestions on addyosmani#624: the label was left with nothing under it once the phrases moved to When to Use, and the Not-for line (from nucliweb's review, originally in addyosmani#492) marks where interview-me and spec-driven-development take over. Co-authored-by: Joan León <nucliweb@users.noreply.github.com>
Sync with upstream addyosmani/agent-skills 0.6.13. Conflicts in .claude-plugin/plugin.json and .claude-plugin/marketplace.json: kept the fork's highway-skills / highway-agent-skills names, took upstream's 0.6.13 version and its new experimental.evals key. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Upstream addyosmani#682 moved /review and /ship to Critical / Required / Optional / Nit, the labels the code-reviewer persona and code-review-and-quality already used. The styleguide's Review Guidance was the last place still saying Important and Suggestion, so a styleguide violation landed in no bucket /ship aggregates. Rename the two labels; the rules themselves are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Upstream added /constraints after the fork's July rename, so it still invoked agent-skills:constraint-driven-development, a namespace that does not exist when the plugin is installed as highway-skills. validate-commands deliberately ignores prompt-body prefixes, so CI never flagged it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
This is the sixth upstream sync. It brings in 133 commits (79 non-merge) from
addyosmani/agent-skills@main, covering releases 0.6.11 through 0.6.13 (aeac41d, 2026-10-13). The previous sync stopped atbcab6a1.Why now
Agent behaviour that improves in day-to-day use
spec-driven-developmentnow ends the turn as soon as the spec is written (fix(spec): stop the turn after writing the spec addyosmani/agent-skills#629). The agent no longer plans or writes code against a spec that nobody has approved.code-review-and-qualitynow tests a test suite by mutating it (docs(code-review): answer the regression question with a mutation addyosmani/agent-skills#618): it flips one condition the change adds and runs the suite. If the suite stays green, that is a finding.Copyable examples that were broken
npx prisma migrate rollback, which is not a real command (fix(skills): replace invalid Prisma rollback command addyosmani/agent-skills#628).throw;(fix(skills): throw statement addyosmani/agent-skills#627), the frontendretry={refetch}(Bind the frontend error-state retry callback addyosmani/agent-skills#638), and zod.trim()running after.min()(Validate the task title minimum after trimming addyosmani/agent-skills#639).Fork maintenance
validate-versions.jsnow reads the rootplugin.jsoninstead of runninggit describe --tags(fix(scripts): validate manifest versions against canonical root plugin.json addyosmani/agent-skills#498), so syncs no longer need upstream's tags pushed to this fork.code-reviewerpersona too: non-spec frontmatter keys (feat(validator): reject non-spec top-level frontmatter keys; link the per-agent configuration guide addyosmani/agent-skills#608), YAML-indicator values (fix(validator): reject frontmatter values starting with a YAML indicator addyosmani/agent-skills#603), anatomy layout (feat(validator): enforce the skill-anatomy layout rules addyosmani/agent-skills#571), persona lint (feat(validator): lint personas for name, description and Composition (the smaller #610) addyosmani/agent-skills#630), and#anchorchecks onreferences/links (fix(validator): check #anchor fragments on references/ links addyosmani/agent-skills#626).performance-optimizationloads about 230 fewer lines each time it fires, because its code patterns moved into a skill-local reference (refactor(performance-optimization): move Step 3 code patterns into a skill-local reference (-25% tokens per load) addyosmani/agent-skills#580).Conflicts
There were two, in the version-bump manifests as usual:
.claude-plugin/plugin.json: kept the namehighway-skills, took version0.6.13and the newexperimental.evalskey..claude-plugin/marketplace.json: kept the Highway branding, took version0.6.13.Fork-only fixes in this PR
df33063brings the styleguide's Review Guidance labels in line with the rest of review. docs: /review and /test run in the main session; align review severity labels addyosmani/agent-skills#682 moved/reviewand/shipto Critical / Required / Optional / Nit, which the persona and the review skill already used. The styleguide was the last place still saying Important / Suggestion.54174bbmakes/constraintsinvokehighway-skills:constraint-driven-development. Upstream added the command after our July rename, so it was the one command still using theagent-skills:namespace. CI does not catch this, becausevalidate-commandsignores prompt-body prefixes.Verification
Fork-only work came through intact: both custom skills with their commands, evals and fixtures; the
highway-skills:prefix in every command that invokes a skill (9 of 10;/webperfinvokes a persona); code-reviewer rule 7 and the styleguide wiring in code-review Step 1 and See Also; the legacy-key guard insession-start-test.sh; and thetest-installjob installinghighway-skills@highway-agent-skills.Two things are left open on purpose. The new README line
/agent-skills:review(addyosmani#682) belongs to the open branding gap, since the README still tells readers to install upstream's plugin. addyosmani#678 also narrowed the routing margin for three custom-skill prompts. All of them still rank first, but that is worth watching on the next sync.🤖 Generated with Claude Code