Skip to content

chore: sync fork with upstream — restore the security rules #579 dropped - #6

Merged
aleksaToljic merged 12 commits into
mainfrom
chore/sync-upstream-5
Sep 23, 2026
Merged

aleksaToljic merged 12 commits into
mainfrom
chore/sync-upstream-5

Conversation

@aleksaToljic

Copy link
Copy Markdown
Member

Fifth upstream sync, picking up 11 commits (6 substantive) from addyosmani/agent-skills@main (bcab6a1, 2026-09-22). Small, and worth not sitting on — two of these repair damage that #4 pulled in two days ago.

Why now

d1463fd restores security rules that #579 dropped. That commit — merged here in #5 — moved security-and-hardening's code patterns into a skill-local reference. The patterns moved verbatim, but three prose sections (supply chain, privacy, LLM) and the cookie bullet were rewritten rather than moved, and several rules ended up in none of SKILL.md, the new reference, or the shared checklist. What comes back: the sameSite value and its CSRF reason, why forced audit fixes are dangerous, the audit-signatures commands and the "not automatic proof of compromise" caveat, the retention TTL, auditable consent, the (2025) marker on the OWASP LLM list, and "the full system prompt" plus "validate every tool argument" in the LLM rule. The Red Flags section already audited the system-prompt item, so rule and audit agree again.

Verified present after the merge rather than taken on trust — all four spot-checked strings are back in skills/security-and-hardening/SKILL.md.

cb4366f closes the hole that let it through (addyosmani#585): validate-reference-links.js only checked links in SKILL.md, not links inside a skill's own references/ files. The content moved into exactly the blind spot the validator did not cover.

The rest

4af909b holds commands to the same frontmatter rules as skills, and 6fa76fa makes the validator reject frontmatter that is not valid YAML instead of silently misparsing it. 95801ad adds a validate-platforms matrix job running the validators and eval runner on macOS and Windows alongside the existing Ubuntu jobs. be49649 adds a claude plugin eval pilot for code-review-and-quality.

Conflicts

None. First clean sync — no version bump this round, so the two manifests that normally collide were untouched, and no new tag is needed (still 0.6.10).

Verification

validate-skills            27 skills, 0 errors      PASSED
validate-versions          all manifests 0.6.10     PASSED
validate-reference-links   27 skills, 0 errors      PASSED
validate-commands          10 commands, 0 errors    PASSED
validate-artifact-paths    7 files, 0 errors        PASSED
run-evals --min-rank1 95   150 checks, 99% (93/94)  PASSED
6 validator unit suites                             PASS
3 hook regression tests                             PASS

Note that CI will now also run the new macOS and Windows matrix job, which this fork has never exercised.

Fork-only work untouched: both custom skills, highway-skills: prefixes across all 8 commands, and the test-install job still installing highway-skills@highway-agent-skills.

🤖 Generated with Claude Code

nucliweb and others added 12 commits September 20, 2026 23:24
…es/ files (addyosmani#585)

A file under skills/<name>/references/ sits one directory deeper than SKILL.md, so a link to a shared checklist needs ../../../references/ from there. The validator only read SKILL.md, which left that off-by-a-level mistake unguarded in the one place it can now happen (hardening-patterns.md on main, optimization-patterns.md in addyosmani#580).

The rule is unchanged: only references/*.md links, fenced blocks exempt, paths that do not exist yet ignored. The file set grows to include the markdown files directly inside each skill's references/ directory, and every link resolves from the file that contains it. The failure hint names the three-level prefix when the violation is in a reference file.
… in addyosmani#579

addyosmani#579 moved the code patterns verbatim, but three prose sections (supply chain, privacy, LLM) and the cookie bullet were rewritten rather than moved, and some rules ended up in none of SKILL.md, the reference, or the shared checklist.

Restores them inline: the sameSite value and its CSRF reason, why forced audit fixes are dangerous, the audit signatures commands and "not automatic proof of compromise", the retention TTL, auditable consent, the (2025) on the OWASP LLM list, and "the full system prompt" plus "validate every tool argument" in the LLM rule. Red Flags already audits the system-prompt item, so the rule and its audit agree again.

Same 216 lines, +55 words.
Add platform coverage for all six Node test suites, validators, and routing checks while preserving existing Ubuntu check names. Require both matrix jobs before plugin validation and retain failures from each platform.
`parseFrontmatter` splits each line on its first colon. That is enough to read
`name` and `description`, and it is forgiving by design — but it means a
SKILL.md whose frontmatter is not valid YAML passes every check in the linter.

The hosts that consume these skills do not share that forgiveness. Per Cursor
staff in addyosmani#494, attaching a skill to a message parses its frontmatter as YAML,
and a parse failure fails the request with a generic server error and takes the
rest of the chat's context with it. So the repo could ship frontmatter that
breaks a host while CI stayed green.

Three shapes pass the current linter and are rejected by a strict parser
(confirmed against ruby's psych, each isolated by mutating only the
frontmatter of a real SKILL.md that otherwise lints clean):

  description: Use this: when X     colon-space: YAML reads a nested mapping
  \tkey: value                       tab indentation is invalid YAML whitespace
  description: "unterminated        an unclosed quote

All three now fail with the line number and the fix. Deliberate boundaries:
a colon with no trailing space is untouched, so `https://example.com/a:b`
still passes, and a duplicate key is NOT reported because `safe_load` accepts
one — the rule tracks the parser, not taste.

This was verified once by hand against all 25 skills in the addyosmani#494 thread. This
makes it a check instead of a memory.

Narrow on purpose: the repo has no package.json and therefore no YAML parser to
depend on, so this is a small set of rules aimed at the classes actually
observed to break a host, not a YAML implementation. No current frontmatter
uses block scalars or multi-line values and the check says so.

All 25 skills still pass with 0 errors, every validator exits 0, and the six
script suites are green (35 pass in skill-lint-test). Mutation-tested 4/4:
removing the call, widening the colon rule to any colon, and dropping either
the tab or the unterminated-quote rule each fail the new tests.

Refs addyosmani#494
`descriptionFromMd` in validate-commands.js splits each frontmatter line on its
first colon — the same forgiving read the skill linter used before the strict
rules landed. So a command whose frontmatter is not valid YAML passes every
check here, and Claude Code parses that frontmatter when the command is loaded.

Same class of gap as the SKILL.md one, on the other set of files: the addyosmani#494
thread verified all 25 SKILL.md files *and* the command files by hand. This
makes the second half a check too, sharing the rules rather than restating them.

All nine current commands already pass — confirmed independently against ruby's
psych before writing this — so it is a guard, not a repair. That is the same
shape the skills half had, and the same reason: the manual verification was
real, it just could not stay true on its own.

Scoped to `.claude/commands/*.md`. The `.gemini/` and `commands/` directories
are TOML and already go through a real TOML parser, so a malformed one surfaces
as a missing description in the existing check. A test pins that the YAML rules
are NOT applied to them, since a TOML description legitimately carries a colon
and running these rules over it would fail nearly every command.

The test sandbox copies the validator into a temp tree, so it now copies
scripts/lib/skill-lint.js beside it. Without that every existing test fails with
a module-not-found, which is how I found it.

Five new tests. Mutation-tested 2/2: skipping the check, and reporting its
errors without counting them, each fail two. Every validator exits 0 and all six
script suites pass.

Refs addyosmani#494
@aleksaToljic
aleksaToljic merged commit 9aacb69 into main Sep 23, 2026
18 checks passed
@aleksaToljic
aleksaToljic deleted the chore/sync-upstream-5 branch September 23, 2026 16:51
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.

6 participants