Skip to content

Agent instruction files (CLAUDE.md, AGENTS.md, .cursorrules) are stale #47

Closed

Description

@TMHSDigital

Summary

The three files AI agents read as the project contract, CLAUDE.md, AGENTS.md and .cursorrules, reference a validation script that does not exist, give wrong frontmatter rules, wrong counts, wrong template layout, and wrong release and CHANGELOG behaviour.

Where

  • CLAUDE.md:11, 47, 64, 66, 75, 77, 112, 125, 127, 135, 136
  • AGENTS.md:14, 18, 20, 43, 47, 60, 66, 109, 139
  • .cursorrules:6, 10, 12, 15, 55, 60, 66

Details

CLAUDE.md

  • :112 says to run python .github/scripts/validate_plugin.py; the file does not exist and never did. Validation is inline in .github/workflows/validate.yml.
  • :135 says skill frontmatter is "name (matching directory) and description only". All 10 skills use title, description, standards-version (9 also globs); none has name.
  • :136 lists rule frontmatter as description, alwaysApply, globs; every rule also has title and standards-version.
  • :66 gives security-best-practices.mdc scope as "Global"; the file has globs: ["**/*.lua","**/*.js","**/*.cs"], alwaysApply: false. :64 omits the **/*.csproj glob of the C# rule.
  • :47 and :75 say scaffolding includes NUI; scaffold_resource_tool has no NUI parameter.
  • :77 says generate_manifest_tool can "Author or update" a manifest; it returns text only and never reads an existing manifest.
  • :125 claims the release creates floating major/minor tags; release.yml:178-182 creates only vX.Y.Z.
  • :127 claims the About sync uses live artifact counts; the tool count is hardcoded to 6 (release.yml:212).
  • :11 claims Claude Code and any MCP client work, but no setup is documented outside the repo's own .cursor/mcp.json.

AGENTS.md

  • :14 "9 SKILL.md files" (there are 10); :18 "6 tools" (there are 10); :139 module list omits txadmin.py and txadmin_client.py.
  • :47 says release.yml "ignores docs/md/github changes"; there is no paths-ignore.
  • :20 and :66 say CHANGELOG.md is manually maintained and not auto-updated; the release workflow runs release-doc-sync, and bot commits update CHANGELOG.md.
  • :60 says the About description uses live counts (tool count is hardcoded).
  • :43 says CI rejects lua54 'yes'; CI rejects any lua54 token.
  • :109 skill frontmatter guidance conflicts with CLAUDE.md and CONTRIBUTING.md.
  • The overview omits examples/ and drift-check.yml.

.cursorrules

  • :6 "9 SKILL.md files", list omits txadmin-integration.
  • :10 "Python FastAPI MCP server with 6 tools"; it is FastMCP over stdio with 10 tools, and FastAPI is never imported.
  • :12 workflow list omits drift-check.yml.
  • :15, :66 CHANGELOG "manually maintained" (false, see above).
  • :55 template pattern "fxmanifest.lua + client.lua/js + server.lua/js"; templates use client/main.lua and server/main.lua.
  • :60 describes a paths-ignore block that does not exist.

The lua54 contradiction is tracked in "Contradictory lua54 guidance across CLAUDE.md, rules, skills, CI and examples". Note that the **Version:** line in CLAUDE.md is owned by the release pipeline and should not be edited by hand.

Impact

Agents follow these files: they will run a missing script, write skills with the wrong frontmatter, hand-edit the CHANGELOG (colliding with bot entries), and assume docs-only commits do not release.

Suggested fix

Correct each item above. Replace the validator reference with "validation runs in .github/workflows/validate.yml" (or add the script; see "Add validate_manifest_tool backed by one validator shared with CI"). Document the real frontmatter shape, the release-doc-sync CHANGELOG behaviour, and add a short "use from Claude Code / other MCP clients" section to CLAUDE.md.

Acceptance criteria

  • Every checklist item above is fixed or explicitly removed.
  • Counts in the three files match the tree (10 skills, 6 rules, 10 tools, 25 snippets, 11 templates).
  • No file references a nonexistent script or paths-ignore block.

Getting started

  • Relevant files: CLAUDE.md, AGENTS.md, .cursorrules
  • 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: .github/workflows/release.yml, .github/workflows/validate.yml

Filed by repo-audit/full-audit at 701824d. Severity: medium. Effort: S. audit-key: documentation|CLAUDE.md|validation-and-conventions

Activity

  1. added
    documentation
    on Nov 21, 2026
  2. TMHSDigital commented on Nov 21, 2026

    @TMHSDigital
    OwnerAuthor

    Fixed in 592abe3.

    Corrected every checklist item in CLAUDE.md, AGENTS.md and .cursorrules: no reference to the nonexistent validate_plugin.py (validation lives in validate.yml; the pytest command is documented), real skill and rule frontmatter, correct rule scopes, no NUI-scaffolding or manifest-update claims, accurate tag and release-doc-sync behaviour, Claude Code / MCP client setup, 10 skills and 10 tools, examples/ and drift-check.yml, FastMCP instead of FastAPI, the real template and C# layouts, and no paths-ignore claims. The release "About" description now uses computed counts (#53).

    Verified: The new counts check (#53) verifies the counts in all three files; git grep finds no validate_plugin, paths-ignore, FastAPI or "9 SKILL" references.

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

    documentationseverity: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions