Skip to content

chore: sync fork with upstream (0.6.9) — constraint-driven-development, plan-clobber guard, rank-1 floor 95 - #4

Merged
aleksaToljic merged 59 commits into
mainfrom
chore/sync-upstream-3
Sep 11, 2026
Merged

aleksaToljic merged 59 commits into
mainfrom
chore/sync-upstream-3

Conversation

@aleksaToljic

Copy link
Copy Markdown
Member

Third upstream sync, picking up 58 commits (37 substantive) from addyosmani/agent-skills@main (6ca0cd7, 2026-09-08). Merge, not force-sync, as before.

What lands

New skill and command: constraint-driven-development / /constraints (0c960d6, 7cfb06d, 4be4bb7, 127bd99). Writes the project's quality bar into CONSTRAINTS.md, then watches the diff for that bar being quietly lowered — new @ts-ignore or eslint-disable suppressions, skipped or deleted tests, stripped assertions, unimplemented stubs, thresholds edited down. This is the only genuine catalogue addition in the batch and the most immediately useful part of it.

/plan no longer clobbers an incomplete plan (8300e1b, addyosmani#518, plus 78970d5 mirroring the guard across all three command directories). A re-run could previously overwrite work in progress.

Eval rank-1 floor raised 80 → 95 (cda4542). Upstream closed description-vocabulary gaps in eleven skills that were ranking #2–#3 because their descriptions lacked the words people actually type — "worked yesterday", "PRD", "red-green-refactor", "atomic commits", "stress-testing a plan". Routing is measurably sharper as a result; see Verification.

Content depth: 0ce0107 (+ bfc9e32, 6a268d7) substantially deepens the backend and database material in performance-optimization; a1c8fa9 adds Context Budget Management to context-engineering; dc469a9 (+ f0550d8) adds SLOs and error budgets to shipping-and-launch; cd33117/8714f2b expand runbook guidance in observability-and-instrumentation. Two concrete security rules land: rate limiting must count in a shared store across instances (1458305), and destructive path targets need an allowlist, a depth floor, and an owner check (45fd4a0).

Smaller: 7cb7a20 aligns the code-reviewer persona's severity labels with the code-review skill; 485cd8e corrects allowed-tools semantics and documents disallowed-tools; c59c4b4 fixes a validator bypass where dirName in SECTION_EXEMPT_SKILLS walked the prototype chain, so a skill directory named constructor was silently exempt from every required-section check (it also adds the missing skill-lint test file); 125b1f8 adds a rejected skill-change ledger; docs for Copilot, Antigravity, and OpenCode; manifest bumps to 0.6.8 then 0.6.9.

Conflicts

Two, the usual manifest collision: .claude-plugin/plugin.json and .claude-plugin/marketplace.json — keep our highway-skills / highway-agent-skills names, take upstream's 0.6.9. Everything else auto-merged, including agents/code-reviewer.md and .claude/commands/plan.md, where upstream and this fork both have changes.

Tags 0.6.8 and 0.6.9 have been pushed to this repo. validate-versions.js derives the expected version from git describe --tags, and GitHub does not copy tags to forks — without them CI fails with "fatal: No names found" regardless of the diff.

Verification

The raised eval floor was the real risk here: this fork carries two extra skills (qa-handoff, highway-client-facing-styleguide) competing in the same routing space, and we were at 86% against the old floor of 80. Checked before merging rather than assumed — upstream's description fixes lift routing well clear of the new gate:

run-evals --min-rank1 95   150 checks, 99% rank-1 (93/94)   PASSED
validate-skills            27 skills, 0 errors              PASSED
validate-versions          all manifests 0.6.9              PASSED
validate-reference-links   27 skills, 0 errors              PASSED
validate-commands          10 commands, 0 errors            PASSED
validate-artifact-paths    7 files, 0 errors                PASSED
6 validator unit suites                                     PASS
hooks/session-start-test.sh                                 PASS
hooks/simplify-ignore-test.sh                               PASS

Fork-only work is intact: zero files deleted relative to main, both custom skills and their eval cases and fixtures present, highway-skills: prefixes across all 8 commands, the test-install job still installing highway-skills@highway-agent-skills, and the SessionStart hook test fix from #3 still in place.

Still out of scope

README.md and docs/codex-setup.md continue to point users at upstream's plugin name — unchanged from #2 and #3, a branding decision rather than a merge fix.

🤖 Generated with Claude Code

addyosmani and others added 30 commits August 8, 2026 09:57
Every skill here describes what good looks like as prose the agent reads
and may or may not follow. None of them record what *this* project's bar
is, with numbers, in a form that outlives the session.

This one does that job and nothing else. It detects the stack before
asking anything, runs at most four questions with a usable default on
each so "I don't know" still produces a working config, and writes
CONSTRAINTS.md.

Two ideas carry most of the weight. Placement by cost, so types and lint
sit in the edit loop while anything slow moves to review, because a check
that stalls the agent gets switched off and a switched-off gate is worse
than none. And ratchets, so a team at 62% coverage records 62% and holds
it rather than inventing 85% and learning to ignore a red build.

It also watches the bar itself. Agents do not craft loopholes, they take
the cheapest road to green: lower a threshold, add .skip, reach for
@ts-ignore, leave a stub that throws. All of that is visible in a diff.
Picking 'accessibility' returned a threshold and no mechanism, so the
agent had to invent the setup and two agents would invent two different
ones. That is the non-determinism the skill exists to remove.

Adds a table mapping every dimension to the de facto tool, its install
command, its run command, and what to gate on, across JS and Python. De
facto matters here: these rule formats are what the ecosystem targets, so
a team's existing config keeps working.

Five failure modes called out. gitleaks needs --redact or the matched
secret lands in the agent transcript. axe and Lighthouse need a running
URL, and a project without one should drop the dimension rather than fake
a check. Stryker and Semgrep scope to the diff or nobody runs them twice.
Coverage reads the lcov the suite already wrote.

CONSTRAINTS.md now carries the command next to each rule, so a dimension
with a number and no command reads as the aspiration it is.
Adds SLI/SLO/error-budget definitions, the budget-gates-releases policy
(ship → slow → freeze → reset), guidance on setting initial targets from
baseline measurement rather than aspiration, burn rate alerting, and the
four-nines trap warning. Cross-links to the rollout thresholds table already
in the skill. Adds two rationalization rows, three red flags, and three
verification checkboxes.
…vability

Per review feedback: SLI/SLO/budget definitions belong in observability-and-
instrumentation where alerting threshold language already uses them. Keeps
only the release-gate decision table (ship / slow / freeze / resume) and the
burn-rate-as-hold-signal note that are genuinely shipping's concern.
Remove two claims that SLO/SLI definitions exist in observability-and-instrumentation
(they don't yet). Soften to self-contained language; move the cross-reference to
the See Also section where it belongs. Also fixes PR title nit via commit.
Adds ## Context Budget Management to skills/context-engineering/SKILL.md.

The existing skill covers what to load and how to structure it, but has
no guidance on what to do as the window fills during a long session —
the point where agent quality degrades most visibly in practice.

The new section covers:
- The 75% threshold: start trimming before the window is full, not after
  quality has already dropped
- Cut-first priority table: failed attempts, verbose tool output,
  conversational filler, replaced drafts — in order of disposability
- Protect-until-the-end list: task definition, active error, current file,
  hard constraints
- Compress before dropping: summarise exploration into one sentence before
  cutting it — preserves the decision, loses the journey
- Order for recency: task-critical content belongs last in context (closest
  to the generation point), not buried under background loaded at session start

Also adds one Anti-Pattern row (context cliff), one Red Flag, and two
Verification checkboxes to the existing sections.
The skill already requires every alert to link to a runbook but only names
the three-line minimum without teaching it. Adds a 'Writing Runbooks'
subsection under the alerting rules: the three-question format (what/check/
escalate), a minimum viable runbook template, when to expand beyond three
lines, and the keep-current discipline. +17 lines, one file.
…e Level 5 to budget section

- Merge two near-identical red flags ('Agent quality degrades as the
  conversation gets longer' + 'Agent quality degrades mid-task...') into
  one sharper line that names what to trim
- Add a one-line forward pointer from Level 5: Conversation Management
  to the Context Budget Management section below, making the
  brief-intro / full-treatment relationship explicit
… ####, point to rule 2, tighten SQL, add platform hedge
…i review

Replace 'Transformer attention weights recent tokens more heavily' (inaccurate)
with the documented U-shaped retrieval effect: models recall content at the
start and end of the window more reliably than the middle (Liu et al., 2023).
The diagram and rule (active material last) were already correct; only the
explanatory sentence was wrong.
`dirName in SECTION_EXEMPT_SKILLS` walks the prototype chain, and
`constructor` satisfies KEBAB_CASE (the `*` quantifier permits a single
word). A skill directory named `constructor` therefore resolved to
Object.prototype.constructor and was silently exempt from every
required-section check — `exempt: true`, zero errors, no sections. The
bypass guard missed it for the same reason, since the resolved value is
truthy.

Both lookups now use Object.hasOwn, which is what the comment above the
allowlist already promises: "Exemptions live HERE, not in skill
frontmatter, so contributors cannot bypass the validator by editing their
own skill file."

Adds scripts/lib/skill-lint-test.js — skill-lint.js was the only
validator without a test file. Confirmed the prototype-chain test goes red
against main; the other six pass either way, so existing behaviour is
unchanged.

Scope kept to the exemption lookup: addyosmani#428 already rewrites frontmatter
parsing and the cross-reference patterns, so this stays clear of both.
…int-frontmatter-and-exempt-lookup

fix(validator): allowlisted skills only, not Object.prototype keys
The skill body already covers pull requests -- "ideally a separate PR" and
"Target ~100 lines per commit/PR" -- but the frontmatter description never
uses the words "pull request" or "PR". Prompts phrased that way therefore
do not route to this skill first.

Adds a trigger case for the gap, and the vocabulary that closes it.

Tier-2 routing, via scripts/run-evals.js:

  baseline                      86%  67/78
  with new case, no fix         85%  67/79   <- case does not rank first
  with new case and fix         86%  68/79   <- case ranks first

Exactly one case changed rank; no other skill regressed.
scripts/validate-skills.js passes: 24 skills, 0 errors, 0 warnings.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Rewrite docs/opencode-setup.md so it no longer instructs users to copy
the repo-scoped root AGENTS.md. Instead, document how to install skills
into .opencode/skills/ (project), ~/.config/opencode/skills/ (global),
and cross-compatible Claude/agent paths. Provide a project-local
AGENTS.md template and keep the intent mapping and lifecycle guidance.

Update the README summary to match the new installation model.

Refs addyosmani#99
Refs addyosmani#119
… skill

The persona used Critical/Important/Suggestion while code-review-and-quality
uses Critical/Required/Optional/Nit, so the same finding got labeled differently
depending on which entry point ran the review. Align the persona to the skill's
four-level scheme (the skill is the source of truth) and note the shared
vocabulary to prevent future drift.
addyosmani#358 broadened the performance-optimization description to cover
"frontend, backend, queries, and databases", but the body's backend
coverage was a single N+1 example, against the full Core Web Vitals
and art-direction treatment on the frontend side. Routing a "slow
query" or "connection pool" prompt here landed on a snippet.

Adds three measure-first patterns inline, each with a "when NOT to":

- Query plans: read EXPLAIN ANALYZE before indexing; composite column
  order (equality first, then range/sort); the four cases where an
  index does not help; revert an index that did not change the plan.
- Connection pool exhaustion: the distinctive symptom, one pool per
  process, why a bigger pool relocates the queue instead of removing
  it, and the proxy answer for serverless.
- Caching: layer choice (in-process, shared, edge), key design as a
  correctness concern, one invalidation strategy rather than an
  accidental mix, and stampede protection.

Deeper material goes to references/performance-checklist.md to keep
SKILL.md readable: read/write patterns, negative caching, request
coalescing, and query-plan, index, pooling and cache checklists.

Closes addyosmani#378

Claude-Session: https://claude.ai/code/session_01TuWNaEV9RFXpTxqeBRTRg8
…#515)

docs(opencode): clarify skill installation and AGENTS.md scope
…-versioning

Add pull-request vocabulary to git-workflow-and-versioning description
…et generic

Review feedback from @federicobartoli on addyosmani#521.

The low-selectivity rows read as if indexing a skewed column never
helps. That holds only when querying the dominant value; filtering on
the rare value is exactly the case a partial index serves. Scoped both
the SKILL.md table row and the checklist item.

loadOnce referenced an undeclared Row type. Made it generic so it
typechecks when pasted as-is.

Claude-Session: https://claude.ai/code/session_01TuWNaEV9RFXpTxqeBRTRg8
…abase-depth

feat(performance): deepen backend and database substance
Add a draft reference for per-agent runtime configuration that keeps shared SKILL.md files portable while documenting the vendor-specific controls each agent offers (Claude Code, Gemini CLI, Antigravity) as an opt-in.
Address review feedback on addyosmani#316:
- State explicitly that this supersedes the inline top-level frontmatter approach, so kind/model/temperature/max_turns/tools/context must not appear at the top level of a skill.
- Add a copy-pasteable .gemini/agents/*.md example using thinking_level instead of hardcoded temperature for Gemini 3.x.
- Update Status: addyosmani#272 and addyosmani#36 are closed in favor of this approach.
…ni#35)

Link the Agent Skills spec, document the optional `agent` companion to
`context: fork`, clarify that commands and skills share frontmatter, and
add addyosmani#35 to the consolidated Status list.
Review feedback from @federicobartoli on addyosmani#316.

allowed-tools was described as restricting the tool set. Per the Claude
Code docs it is a permission pre-approval: listed tools run without a
prompt for the turn that invokes the skill, the grant clears on the next
message, and nothing leaves the tool pool.

disallowed-tools is the field that actually restricts, so it now carries
the least-privilege guidance. Added the portability caveat that it is a
Claude Code field rather than one of the specification's six, so it fails
packaging if placed in a published SKILL.md.

Claude-Session: https://claude.ai/code/session_01TuWNaEV9RFXpTxqeBRTRg8
…yosmani#518)

When /plan runs for new work while tasks/plan.md and tasks/todo.md
still hold unchecked tasks, the agent silently replaces them,
destroying the in-flight plan's state (reported in addyosmani#518).

Add a convention-neutral guard: replanning the same work updates in
place; different work stops and asks the user before touching the
existing files. Mirror the rule for external task list targets (no
bulk-closing another plan's items), and add matching Rationalization,
Red Flag, and Verification entries plus the guard line in the /plan
command.

Deliberately does not introduce a parallel-lane layout — that
convention decision is being held open in addyosmani#518; this fixes only the
data-loss half.
Federico's review on addyosmani#472 noted the floor is the one thing with no de facto
tool, so agents reinvent a check-floor each run. Add references/floor-guard.md
(the Step 6 checks as a diff-scoped reference implementation, exit 0/1/2, with
patterns adaptable per ecosystem) and point Step 6 and the escalation path at
it. Also mark CONSTRAINTS.md as the canonical source of commands over the
package.json wrappers, and document a floor-only first run plus a CI-only
option for machine-wide security tools.
…ven-development

feat(skills): add constraint-driven-development
addyosmani and others added 27 commits August 28, 2026 16:30
…ation (addyosmani#445)

Affected agy 1.1.x releases report the 8 legacy command TOMLs as
converted to skills, but the converted wrappers never appear in the
slash-command or skill catalog — plugin validate passing confirms the
files are well formed, not that /build and the other wrappers exist.

Replace the slash-command table with a wrapper-to-direct-invocation
map (/agent-skills:<skill-name>, /agents for the webperf persona),
note the wrapper-only behaviors that are unavailable (/build auto
orchestration, /ship persona fan-out), warn against the YAML
frontmatter workaround that breaks Gemini CLI's TOML parser, and add
a post-install verification step. Align the README blurb with the
same guidance.
…o two skill descriptions

Two skills carry core body content whose vocabulary never reached their
descriptions, so Tier-2 trigger routing cannot see it:

- deprecation-and-migration: Expand/Contract database schema migrations
  (added in addyosmani#345) - description now mentions database schema migration,
  renaming/dropping a column, expand/contract.
- security-and-hardening: dependency-audit triage and supply-chain hygiene
  (hardened in addyosmani#392, delegated to by code-review-and-quality) - description
  now mentions dependency audits, audit-finding triage, supply-chain risk.

Adds four positive trigger cases so the suite can see these gaps.
Measured: baseline 86% (72/84); cases-only 82% (4 hard misses, 'shares no
vocabulary'); cases+fix 86% (76/88), 140 checks, 0 errors, no existing case
loses rank 1.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
fix(skills): add database-migration and dependency-audit vocabulary to two skill descriptions
…ence

docs(antigravity): document the command-wrapper discoverability limitation (addyosmani#445)
docs(security): rate limiting must count in a shared store across instances
…nt-configuration

docs: add advanced per-agent configuration guide
A correlation ID identifies a run, not the code path that started it. When a
scheduler, a replay endpoint and a manual CLI run all reach the same job and
write into one sink, the lines are interchangeable — attributing one falls
back to elimination against external records (scheduler history, process
table, deploy log) that only happen to still exist.

Adds a paragraph plus a short example to "3. Structured logging" — stamp the
entry point where the run starts, next to the correlation ID, and propagate
both across queue metadata and outbound calls — and one line each to Red
Flags, Verification, and references/observability-checklist.md.

The field is `entryPoint` rather than `source`: Elastic Common Schema reserves
`source.*` for network fields (source.ip, source.port, …), so a scalar
`source` collides with that mapping and can get documents rejected.

No new heading, no new directory, frontmatter unchanged.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…loor, and an owner check

The trust-boundary list names only remote channels, so local values that the
OS hands you — another process's command line or environment, a filename on a
shared volume, a path in a job payload — read as internal. The one rule about
destructive actions (LLM06) governs who may act, not what gets hit: a
confirmed call with a wrongly derived target deletes the root just the same.
A shape check ("absolute, at least one directory deep") proves well-formedness
and gets mistaken for authorization.

SKILL.md gets the extended trust-boundary item, a prose-only "Destructive
Operations on Derived Paths" next to File Upload Safety, and one line each in
the Input checklist, Red Flags and Verification. The worked example lives in
references/security-checklist.md, per skill-anatomy's rule to move detailed
material out of SKILL.md — the file is already over the 500-line budget, so
this keeps the per-activation cost to +11 lines.

Two limits are stated where the snippet is copied from, rather than implied
away: a marker inside the tree is self-attestation until its integrity is
protected and the expected owner comes from authenticated state, and
resolving a path and then operating on the name is a check/use race wherever
an untrusted process can swap an ancestor.

No new directory, frontmatter unchanged.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
docs(observability): name the entry point when several write to one log
… root

docs(security): destructive path targets need an allowlist, a depth floor, and an owner check
docs(copilot): clarify CLI installation and VS Code commands
docs(shipping): add Error Budget Release Gate section
…ering

docs(context): add Context Budget Management section
Eleven positive trigger prompts ranked their skill #2-#3 because the
descriptions lacked vocabulary users actually say (follow-up to addyosmani#351):

- debugging-and-error-recovery: regression vocabulary (worked yesterday,
  what broke)
- documentation-and-adrs: 'document an architecture decision', design
  reasoning ('documentation' and 'document' don't stem together)
- doubt-driven-development: cross-examining assumptions, stress-testing
  a plan for hidden failure modes, high-stakes changes
- git-workflow-and-versioning: splitting a messy working tree into
  atomic commits
- incremental-implementation: thin/verifiable slices, next task from a
  plan, feature flags
- shipping-and-launch: what needs to be in place before shipping
- spec-driven-development: PRD, objectives and scope
- test-driven-development: red-green-refactor
- using-agent-skills: deciding which workflow applies to the work
- source-driven-development: verify against the official docs
  ('docs'/'documentation' don't stem together)

Trigger rank-1 rate: 86% -> 100% (76/76), no new collision warnings.
CI floor raised from 80 to 95 per the ratchet policy; README baseline
updated and the stale addyosmani#351 tracking sentence rephrased as guidance.
…ion-vocab

fix(skills): close description-vocabulary gaps, raise trigger rank-1 floor to 95
…ility

docs(observability): expand runbook guidance in alerting section
…er-guard

fix(planning): never overwrite an incomplete plan without asking
# Conflicts:
#	.claude-plugin/marketplace.json
#	.claude-plugin/plugin.json
@aleksaToljic
aleksaToljic merged commit 7464ce5 into main Sep 11, 2026
12 checks passed
@aleksaToljic
aleksaToljic deleted the chore/sync-upstream-3 branch September 11, 2026 12:29
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.