Skip to content

Release hygiene doc asks for hand edits that release.yml already automates #153

Closed

Description

@TMHSDigital

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

  1. 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.
  2. Delete the dead README badge replacement in release.yml.
  3. Read the server version from package.json at runtime and drop the index.ts regex patch.
  4. Add a script that derives counts from mcp-tools.json/tools, skills/*/SKILL.md and rules/*.mdc and rewrites marked spans; run it as a CI check and in release.yml.
  5. 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 (and npm run typecheck); structure tests: pip install -r requirements-test.txt && pytest tests/ -v
  • Conventions: see CLAUDE.md and CONTRIBUTING.md

Filed by repo-audit/full-audit at 636fefb. Severity: medium. Effort: M. audit-key: tech-debt|CLAUDE.md|Release Hygiene

Activity

  1. added
    tech-debt
    severity: medium
    on Nov 18, 2026
  2. TMHSDigital commented on Nov 19, 2026

    @TMHSDigital
    OwnerAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    severity: mediumtech-debt

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions