Repository navigation
Description
Problem
The root README.md carries a hand-written ### What's new in X.Y section (re-added in #702) that silently drifts behind the version being released. During the v2.6.0 release it still read "What's new in 2.5" — the maintainer caught it manually and it was fixed in a follow-up commit (18c2d42), but nothing in the /release workflow flags it.
This is the same class of stale-doc gap that #684/#687 closed for what-weve-built.md (Step 4.63) and CHANGELOG.md (Step 4.65) — those got warn-only freshness gates; the README "What's new" heading did not.
Note: the gate must check the heading text (What's new in <major>.<minor>), not a full semver. "What's new in 2.6" is the right form for the 2.6.0 release; the section is keyed to minor lines, not patches, so a patch release should not fire the warning against the matching minor heading.
Proposed Fix
Add a warn-only step to .claude/skills/release/SKILL.md (mirrored to templates/skills/ and skills/ if applicable), placed after Step 4 (version bump) like the sibling gates, so it compares against the new version. Roughly:
# Warn if README.md's latest "What's new" heading doesn't match the minor line being released
if [ -f "README.md" ]; then
new_version=$(node -p "require('./package.json').version")
new_minor=$(echo "$new_version" | grep -oE '^[0-9]+\.[0-9]+')
readme_minor=$(grep -oE "What's new in [0-9]+\.[0-9]+" README.md | head -1 | grep -oE '[0-9]+\.[0-9]+' || true)
if [ -n "$readme_minor" ] && [ "$readme_minor" != "$new_minor" ]; then
echo "Warning: README.md 'What's new' section is for $readme_minor, expected $new_minor — add/update the heading before releasing"
fi
fiAcceptance Criteria
-
/releaseSKILL.md has a warn-only step (after the version bump) that compares the README's latestWhat's new in X.Yheading against the minor line of the version being released - The gate is warn-only (does not block the release), matching Step 4.63/4.65 behavior
- A patch release (e.g. 2.6.0 → 2.6.1) does NOT fire the warning when the heading already reads "What's new in 2.6"
- A minor/major release with a stale heading DOES fire the warning
- Change is mirrored across all skill copies that carry the release skill (
.claude/skills/,templates/skills/,skills/— whichever containrelease/SKILL.md) - No README edit is auto-applied — the gate only warns (README content is a positioning decision)
Context
- v2.6.0 follow-up fix: commit 18c2d42
- Sibling gates: Step 4.63 (what-weve-built stamps), Step 4.65 (CHANGELOG freshness) in the release skill
- Related stale-doc issues: chore(release): /release pre-flight should regenerate marketplace README + check README 'What's new' freshness #684, chore(release): /release Check #11 (what-weve-built) reads version pre-bump — same ordering no-op fixed for README in #685 #687, docs/release: fix 3 README/release-tooling blockers before 2.5 (marketplace missing
sequant ready, wrong skill table, #684↔#694 What's-new gate conflict) #701
Activity
admarble commentedon Jun 4, 2026
→ PROCEED — Add warn-only README "What's new in X.Y" freshness gate to /release skill
Workflow: spec → exec → qa (-Q)
Clear ACs (6), sibling pattern exists (Step 4.63/4.65). Mirror across all skill dirs that carry release/SKILL.md. Note: #711, if it adds a runtime-overlay directive to every SKILL.md, would also touch release/SKILL.md — land this first or coordinate.
admarble commentedon Jun 4, 2026
Complexity: Standard (6 ACs, 1 directory)
AC Quality Check
All 6 ACs are concrete and measurable. No vague/unmeasurable/open-ended patterns. AC-3 and AC-4 are paired positive/negative test cases (patch must NOT fire, minor/major stale MUST fire) — ideal for verification. No title/body tension. ✅
Scope Assessment
Non-Goals: Implicit but clear — AC-6 states no README edit is auto-applied (content is a positioning decision). No explicit "Non-Goals" heading, but scope is tightly bounded by the AC list.
.claude/skills/release/)Verdict: ✅ SCOPE_OK
Acceptance Criteria
AC-1: Warn-only README "What's new in X.Y" gate compares latest heading vs the minor line being released
Verification: Integration Test (extract the bash snippet, run against fixture READMEs)
Scenario: Given
package.json= 2.7.0 and README latest heading "What's new in 2.6" → When the gate runs → Then it emits a warning naming 2.6 vs expected 2.7.Assumptions: Newest "What's new" section is listed first in README (confirmed: line 19 "2.6" precedes line 24 "2.5"), so
grep ... | head -1yields the latest heading.AC-2: Gate is warn-only (does not block release), matching Step 4.63/4.65
Verification: Manual Test (inspect the step —
echo "Warning: …", noexit/return/error)Scenario: Given a stale heading → When gate fires → Then it prints a warning and the release continues.
AC-3: Patch release does NOT fire when heading already matches the minor
Verification: Integration Test
Scenario: Given
package.json= 2.6.1 and README "What's new in 2.6" → When gate runs → Then no warning (2.6 == 2.6).Assumptions: This is the current real state (2.6.1, heading "2.6") — the gate must be silent today.
AC-4: Minor/major release with a stale heading DOES fire
Verification: Integration Test
Scenario: Given
package.json= 3.0.0 and README "What's new in 2.6" → When gate runs → Then warning fires (3.0 != 2.6). Same for 2.7.0 vs 2.6.AC-5: Change mirrored across all skill copies carrying
release/SKILL.mdVerification: Manual Test (
lsthe three skill dirs)Scenario: Given only
.claude/skills/release/SKILL.mdexists → When change lands → Then that one file is edited; no new mirror files are created.AC-6: No README edit auto-applied — gate only warns
Verification: Manual Test
Scenario: Given the new step → When it runs → Then it performs no Edit/write to README; output is a warning string only.
Implementation Plan
Phase 1: Add the gate
.claude/skills/release/SKILL.md, immediately after Step 4.65 (CHANGELOG freshness) and before Step 4.7 (marketplace artifact). Placement after Step 4 ensurespackage.jsonalready holds the new version (the ordering-bug class from chore(release): /release pre-flight should regenerate marketplace README + check README 'What's new' freshness #684/feat(#684): /release pre-flight regenerates marketplace README + checks README 'What's new' freshness #685).[ -n "$readme_minor" ]guard is load-bearing: it prevents the every-release false-positive that bit the prior README gate when docs: README / npm SEO + clarity overhaul #694 removed the heading (see Step 4.65's docs/release: fix 3 README/release-tooling blockers before 2.5 (marketplace missingsequant ready, wrong skill table, #684↔#694 What's-new gate conflict) #701 note). If the section is ever removed again, this gate stays silent rather than firing spuriously.Phase 2: Keep the gate index honest
README.md "What's new in <minor>" heading freshness → **Step 4.66**.Phase 3: Verify
Design Review
release/SKILL.md, co-located with the sibling freshness gates (4.63, 4.65). It is LLM-interpreted bash, not runtime TypeScript — there is no TS duplicate to keep in sync (no Rule Touchpoints).-npresence guard. Rejected: parsing full semver (the section is keyed to minor lines, so comparing patch would wrongly fire on every patch release — explicitly called out in the issue).node -pversion read, samegrep -oE … || true, sameecho "Warning: …"non-blocking shape.sequant ready, wrong skill table, #684↔#694 What's-new gate conflict) #701)?" → No: the-nguard skips when no heading exists, andhead -1keys on the latest (newest-first) section, so a patch against a matching minor stays silent. Worth stating this lineage in the step comment so it isn't re-broken.Feature Quality Planning
All standard checks pass. Notable items:
head -1assumes the latest "What's new" block is first in README (true today). If the convention ever flips to append-newest-last, the gate would compare against an old heading. Low risk — the section is maintained newest-first by docs: top-funnel discovery + positioning optimization for 2.5 (GitHub metadata, rigor positioning, what's-new, badges) #702 — but worth a one-line comment in the step.Derived ACs (if any)
None. The 6 ACs fully cover the change.
Open Questions
sequant ready, wrong skill table, #684↔#694 What's-new gate conflict) #701 note? That note says docs: README / npm SEO + clarity overhaul #694 "removed the README 'What's new' section." docs: top-funnel discovery + positioning optimization for 2.5 (GitHub metadata, rigor positioning, what's-new, badges) #702 re-added it (a positioning section, distinct from the changelog wall docs: README / npm SEO + clarity overhaul #694 moved to CHANGELOG.md). Recommendation: leave 4.65 as-is (its gate correctly targets CHANGELOG.md) but have the new Step 4.66 explicitly state it owns the re-added README heading, so the two notes don't read as contradictory. Impact if ignored: minor maintainer confusion, no functional effect.Recommended Workflow
Phases: spec → exec → qa
Quality Loop: enabled (matches /assess
-Q)Reasoning: Single-file skill edit; no UI (skip
test), no TS unit code (skiptestgen— verification is integration-style bash extraction against fixtures). Aligns with the prior /assess verdict (spec → exec → qa). Not security-sensitive.Label Review
Current: (none)
Recommended:
enhancement,simple-fixReason: Bounded, additive, single-file warn-only gate following an established pattern.
simple-fixreflects the low blast radius.Quality Loop: Will auto-enable via the /assess
quality-loop=truemarker; scope is SCOPE_OK so no scope-driven auto-enable.→
gh issue edit 707 --add-label enhancement --add-label simple-fix--- DRAFT GITHUB ISSUE COMMENT (PLAN) ---
Plan — warn-only README "What's new in X.Y" freshness gate
Add Step 4.66 to
.claude/skills/release/SKILL.md(the only copy —templates/skills/andskills/don't carry the release skill), right after Step 4.65, mirroring the 4.63/4.65 warn-only pattern:Key points:
[ -n "$readme_minor" ]guard prevents the every-release false-positive that docs/release: fix 3 README/release-tooling blockers before 2.5 (marketplace missingsequant ready, wrong skill table, #684↔#694 What's-new gate conflict) #701 fixed for the old README gate — if the section is ever removed again, this stays silent.Verification: extract the snippet, run against fixtures — (a) 2.6.1+"2.6" silent, (b) 2.7.0+"2.6" warns, (c) no-heading silent.
Workflow: spec → exec → qa (-Q). Sequencing: land before/coordinate with #711 (both touch
release/SKILL.md).admarble commentedon Jun 4, 2026
Exec — Implementation Complete
Added Step 4.66: Verify README "What's new" Freshness to
.claude/skills/release/SKILL.md, immediately after the sibling Step 4.65 (CHANGELOG) gate, plus a pre-flight Documentation Checks index bullet and a CHANGELOG[Unreleased]entry.AC Coverage
echo "Warning…", noexit/return.claude/skills/release/SKILL.mdexists; that one editedDesign notes
[ -n "$readme_minor" ]guard preserved from the plan — prevents the every-release false-positive docs/release: fix 3 README/release-tooling blockers before 2.5 (marketplace missingsequant ready, wrong skill table, #684↔#694 What's-new gate conflict) #701 fixed if the section is ever removed again.head -1selects the newest "What's new" block (README maintains newest-first per docs: top-funnel discovery + positioning optimization for 2.5 (GitHub metadata, rigor positioning, what's-new, badges) #702).Checks
npm run lint:skill-calls→ no violations.PR: #714
admarble commentedon Jun 4, 2026
Exec — Implementation Complete
Added Step 4.66: Verify README "What's new" Freshness to
.claude/skills/release/SKILL.md, immediately after the sibling Step 4.65 (CHANGELOG) gate, plus a pre-flight Documentation Checks index bullet and a CHANGELOG[Unreleased]entry.AC Coverage
echo "Warning…", noexit/return.claude/skills/release/SKILL.mdexists; that one editedDesign notes
[ -n "$readme_minor" ]guard preserved from the plan — prevents the every-release false-positive docs/release: fix 3 README/release-tooling blockers before 2.5 (marketplace missingsequant ready, wrong skill table, #684↔#694 What's-new gate conflict) #701 fixed if the section is ever removed again.head -1selects the newest "What's new" block (README maintains newest-first per docs: top-funnel discovery + positioning optimization for 2.5 (GitHub metadata, rigor positioning, what's-new, badges) #702).Checks
npm run lint:skill-calls→ no violations.PR: #714
admarble commentedon Jun 4, 2026
QA Review for Issue #707 (Simple Fix)
Size Gate
AC Coverage
What's new in X.Yvs minor linepackage.json(post-bump), comparesnew_minorvsreadme_minorecho "Warning: …"only; noexit/return/error in the blockrelease/SKILL.mdfindconfirms only.claude/skills/release/SKILL.mdexists; that one file edited, no new mirrors createdCoverage: 6/6 AC items fully met
Quality Metrics
any)Detection Pattern Verification (run despite Simple-Fix mode — core of this change)
The diff adds a
grep -oE "What's new in [0-9]+\.[0-9]+"detection pattern to a skill. Ran the exact pattern from the diff against fixtures:Status: Passed (7/7, incl. verbatim issue motivating example + double-digit disambiguation).
CI Status
Markdown-only diff detected — pending build-matrix check treated as informational. Relaxed: build (22.x). (Diff touches only
.mdfiles; nopackage.json/lockfile/config/workflow changes that could affect the build matrix.) No gating-pending checks remain.CHANGELOG Verification
[Unreleased]entry for #707Code Review
Strengths:
node -pread,grep -oE … || true,echo "Warning…"shape) — consistent and easy to maintain.[ -n "$readme_minor" ]presence guard is load-bearing and well-commented: prevents the every-release false-positive that docs/release: fix 3 README/release-tooling blockers before 2.5 (marketplace missingsequant ready, wrong skill table, #684↔#694 What's-new gate conflict) #701 fixed when the section was removed.grep -oEgreedy match disambiguates 2.10 from 2.1.Issues: None.
Suggestions: None blocking. Known limitation (documented in-code, matches sibling practice):
head -1assumes "What's new" blocks are newest-first; true today per #702.Risk Assessment
head -1would compare against a stale heading — low risk, documented in a code comment, matches sibling-gate assumptions.templates/skills/orskills/release mirror).Adversarial Re-Read
Findings: No gaps found because: (1) ran the exact diff pattern against the verbatim issue motivating example (2.6.0 + stale "2.5" → warns) plus 6 other fixtures incl. double-digit minor edge case; (2) "evidence" claims are post-fix validations (gate run against fresh fixtures), not bug repros; (3) process state inspected — working tree clean, branch 0 behind origin/main, diff is genuinely 2 files vs origin/main; (4) no cross-file siblings (single release skill copy, confirmed via
find); (5) issue Non-Goal (no README auto-edit) honored — gate only echoes.Status: Clean
Verdict: READY_FOR_MERGE
All 6 ACs met and independently verified at runtime (the detection pattern, the highest-risk part of this change, passes 7/7 fixtures including the verbatim issue motivating example). Change is a clean, well-commented, single-file warn-only gate mirroring the established 4.63/4.65 pattern, with a CHANGELOG entry. Only pending CI is the build matrix, which is informational for this markdown-only diff.
Documentation
Next Steps
build (22.x)completes green (informational for this md-only diff, but no reason to skip it).admarble commentedon Jun 4, 2026
QA Review for Issue #707 (Simple Fix)
Size Gate
AC Coverage
echo "Warning: ..."; noexit, matches Step 4.63/4.65.claude/skills/release/SKILL.mdexists;templates/skills/andskills/carry no release skill.findconfirms a single copyCoverage: 6/6 AC items fully met
Quality Metrics
any)CI Status
typecheckbuild (22.x)validate-skillsvalidate-pluginCI Summary: 4 passed, 0 pending, 0 failed (PR #714)
Code Review
Strengths:
grep -oE '[0-9]+\.[0-9]+', exactly as specified.-nguard is load-bearing and well-commented — prevents the docs/release: fix 3 README/release-tooling blockers before 2.5 (marketplace missingsequant ready, wrong skill table, #684↔#694 What's-new gate conflict) #701-class false-fire if the "What's new" section is ever removed again (as docs: README / npm SEO + clarity overhaul #694 did).head -1correctly grabs the newest heading (README maintains blocks newest-first; verified line 19 = 2.6, line 24 = 2.5).Issues:
Suggestions:
head -1relies on README keeping "What's new" blocks newest-first. Documented in-code and matches current convention; acceptable for a warn-only gate. No action needed.Test Coverage Analysis
Markdown/skill-prose change — no source files; no unit-test surface. Behavior validated by executing the gate logic directly against the live README + package.json (see smoke results below). N/A for test files.
Anti-Pattern Detection
No code patterns of concern (markdown-only diff). The two
grep -oEcalls and the-nguard were executed against the real corpus and behave correctly.Smoke (gate logic vs live repo):
2.6.1→ new_minor2.6; README newest heading →2.6→ silent (correct, AC-3)2.7vs2.6→ WARN (correct, AC-4); 3.0.0 → WARNRisk Assessment
head -1read a stale heading. Documented assumption, matches current convention, and the gate is warn-only — worst case is a spurious/absent warning, never a blocked or corrupted release.release/SKILL.mdcopies exist to mirror into.Verdict: READY_FOR_MERGE
All 6 ACs met literally and verified by executing the gate against the live README/package.json: patch releases stay silent against a matching minor heading, stale minor/major headings warn, the gate never blocks, never auto-edits the README, and the single existing skill copy is updated. CI is fully green on PR #714, and the
[Unreleased]CHANGELOG entry for #707 is present.Documentation
[Unreleased] → Added, references Add warn-only README "What's new in X.Y" freshness gate to /release skill #707)Next Steps
fix(#707): harden README 'What's new' gate against heading order and …
feat(#707): add warn-only README "What's new" freshness gate to /rele…
merge: reconcile rebased #711 branch