Repository navigation
Closed
Labels
Description
Summary
Artifact counts (skills, rules, tools, snippets, templates, events) are hand-copied into about nine files, and CI checks only four of them in README.md. The copies have drifted: the release workflow publishes "6 MCP tools" in the repo description although server.py registers 10.
Where
.github/workflows/release.yml:200-218(tools = 6at line 212).github/workflows/validate.yml:160-199(count check reads only README.md; skills, snippets, templates, rules)AGENTS.md:14, 18,.cursorrules:6, 10,CONTRIBUTING.md:47README.md:32, 78, 155,CLAUDE.md:9,docs/index.md:5, 41,docs/GETTING-STARTED.md:29
Details
release.ymlcomputes skills, rules, snippets, templates and events, then hardcodestools = 6. Every release since the txAdmin tools landed has published the wrong tool count in the GitHub About text.AGENTS.mdand.cursorrulessay 9 skills and 6 tools;CONTRIBUTING.mdsays 9 skills; README and docs/index.md say 24 snippets in places (25 in others).- The CI check never checks tools or events and never looks at CLAUDE.md, AGENTS.md,
.cursorrules, docs/, or CONTRIBUTING. - Recent history shows the cost: adding one snippet required editing 6 files to change "24" to "25", and adding one skill plus four tools touched 9 non-code files and still missed AGENTS.md,
.cursorrules, CONTRIBUTING.md andrelease.yml.
Impact
Wrong counts go out in the public repo description and in AI-agent instruction files, and every content addition costs 6-9 manual edits that the checker cannot see.
Steps to reproduce
git grep -n "6 tools\|tools = 6\|9 skills"grep -c "@mcp.tool()" mcp-server/server.pyreturns 10.
Suggested fix
- Add
.github/scripts/counts.pythat computes skills, rules, snippets, templates, examples, tools (count@mcp.tool()inserver.py) and events, and prints JSON. Test it against the current tree (10/6/25/11/5/10/101). - Replace the duplicated counting in
validate.ymlandrelease.ymlwith calls to it (fixestools = 6). - Extend the check to every file in a list (README, CLAUDE.md, AGENTS.md,
.cursorrules, CONTRIBUTING, docs/index.md, docs/GETTING-STARTED.md) for<n> <noun>patterns and fail on mismatch. - Optionally put counts between markers and let the release regenerate them.
- First check whether the external release-doc-sync / drift-check actions already cover part of this.
Acceptance criteria
- The release description uses a computed tool count.
- CI fails when any listed doc states a count that disagrees with the tree.
- Current docs are corrected to the real counts.
Getting started
- Relevant files:
.github/workflows/release.yml,.github/workflows/validate.yml,.github/scripts/ - How to run checks: there is no test suite yet; run the MCP server with
cd mcp-server && pip install -r requirements.txt && python server.py, and CI checks live in.github/workflows/validate.yml - Related docs:
CLAUDE.md(Release Workflow),AGENTS.md
Filed by repo-audit/full-audit at 701824d. Severity: medium. Effort: S. audit-key: tech-debt|.github/workflows/release.yml|artifact-counts
Activity
TMHSDigital commentedon Nov 21, 2026
Fixed in 4f5c995.
Added .github/scripts/counts.py as the single source of artifact counts (skills, rules, snippets, templates, examples, MCP tools from @mcp.tool(), events, natives). validate.yml checks every doc in a list for " " claims (lines marked counts:ignore are skipped, for historical release rows), and release.yml builds the About description from it, so the hardcoded "6 MCP tools" and "12,000+ natives" are gone. Drifted counts were corrected.
Verified: Tests cover the script (tool count equals registered MCP tools, mismatch detection, repo docs consistent); the check passes on the repo.