Repository navigation
Description
Summary
CLAUDE.md's Release Hygiene table says to hand-update versions in package.json, index.ts, plugin.json and README badges, while the Publishing pipeline section of the same file says release.yml bumps them and releases must never be manual. Tool, skill and rule counts are hand-written in about ten files.
Where
CLAUDE.md:194-227.github/workflows/release.yml:158-166(rewrites a README version badge that no longer exists).github/workflows/release.yml:183(regex patch of index.ts version)mcp-server/src/tools/__tests__/registration.test.ts:84-110(checks six files; not AGENTS.md or site.json; hard-codes 11 rules)
Details
The version is stored four times (plugin.json, package.json, lockfile, index.ts). Counts live in plugin.json, package.json, README (twice), CLAUDE.md, mcp-server/README.md, AGENTS.md (twice), site.json, mcp-tools.json and the GitHub About text. These files lead the churn list (CLAUDE.md 62 commits, plugin.json 44, index.ts 38 of the last 200).
Impact
Every new tool touches about ten files. Contributors and agents following CLAUDE.md hand-bump versions that release.yml bumps again. AGENTS.md and site.json drift silently (as in #128).
Suggested fix
- Rewrite the Release Hygiene table to list only what a person edits (CHANGELOG Unreleased, ROADMAP, tables for new entries) and point to the pipeline for versions.
- Delete the dead README badge replacement in release.yml.
- Read the server version from package.json at runtime and drop the index.ts regex patch.
- Add a script that derives counts from
mcp-tools.json/tools,skills/*/SKILL.mdandrules/*.mdcand rewrites marked spans; run it as a CI check and in release.yml. - Extend the count test to AGENTS.md and site.json and derive the rule count.
Acceptance criteria
- CLAUDE.md no longer asks for manual version bumps
- Server version comes from package.json
- Counts are checked in every file that states them
Related: #128
Getting started
- Relevant files:
CLAUDE.md,.github/workflows/release.yml,mcp-server/src/index.ts,mcp-server/src/tools/__tests__/registration.test.ts,AGENTS.md,site.json - How to run tests:
cd mcp-server && npm install && npm test(andnpm run typecheck); structure tests:pip install -r requirements-test.txt && pytest tests/ -v - Conventions: see
CLAUDE.mdandCONTRIBUTING.md
Filed by repo-audit/full-audit at 636fefb. Severity: medium. Effort: M. audit-key: tech-debt|CLAUDE.md|Release Hygiene
Activity
TMHSDigital commentedon Nov 19, 2026
Fixed in 9f6ec48: index.ts reads its version from package.json (verified: MCP initialize on the built server reports the package.json version); release.yml drops the index.ts regex patch and the dead README badge rewrite; CLAUDE.md Release Hygiene lists only manual edits; registration.test.ts derives skill/rule counts and checks all counts in plugin.json, package.json, README, CLAUDE.md, mcp-server/README.md, AGENTS.md and site.json. Suggestion 4 (a count-rewriting script) was not added: the test now fails on any stale count instead.