Skip to content

Contradictory lua54 guidance across CLAUDE.md, rules, skills, CI and examples #44

Closed

Description

@TMHSDigital

Summary

The repo gives three incompatible positions on the lua54 manifest directive: CLAUDE.md says to use lua54 true, the rule and skills say any lua54 directive is deprecated and should be omitted, and CI fails on any lua54 in templates/ while every example ships lua54 true.

Where

  • CLAUDE.md:138 ("Avoid lua54 'yes' (deprecated; use lua54 true)")
  • rules/fxmanifest-standards.mdc:17
  • skills/fxmanifest/SKILL.md:60, skills/fxmanifest/SKILL.md:173
  • skills/resource-scaffolding/SKILL.md:78
  • AGENTS.md:43, AGENTS.md:99, AGENTS.md:148
  • .github/workflows/validate.yml:146-152 (grep -r "lua54" templates/)
  • examples/*/fxmanifest.lua:9 (all five: lua54 true)
  • examples/README.md:5 (presents lua54 true as "the repo conventions")
  • ROADMAP.md:70 (requires lua54 true in generated manifests)

Details

  • CLAUDE.md prescribes lua54 true.
  • The rule and both skills say the directive is "deprecated and ignored ... All scripts run on Lua 5.4 automatically", and skills/fxmanifest/SKILL.md:60 says "Do not include it in new manifests". AGENTS.md says "ignored".
  • validate.yml rejects any occurrence of lua54 in templates, including lua54 true, with the message "lua54 directive found in templates. It is deprecated and should be removed."
  • All five examples ship lua54 true, and examples/README.md calls that the convention.

Impact

Agents following the rule strip lua54 from manifests; agents following CLAUDE.md add it. A contributor who moves an example manifest into templates/, or follows CLAUDE.md or ROADMAP.md when adding a template, fails CI.

Steps to reproduce

  1. Copy examples/speedometer-hud/fxmanifest.lua into a new templates/x/.
  2. Run the Check deprecated lua54 directive in templates step: it fails, although the line is exactly what CLAUDE.md prescribes.

Suggested fix

Decide one position and apply it everywhere:

  • If the directive should be omitted: change CLAUDE.md:138 and ROADMAP.md:70 to "do not include any lua54 directive", remove it from the five example manifests, and update examples/README.md.
  • If lua54 true is allowed: change the CI grep to reject only lua54 'yes', and align the rule, skills and AGENTS.md.

Acceptance criteria

  • CLAUDE.md, AGENTS.md, the fxmanifest rule, both skills, ROADMAP.md, examples/README.md, the example manifests and the CI check all state or enforce the same position.
  • CI behaviour matches the documented rule.

Getting started

  • Relevant files: CLAUDE.md, AGENTS.md, rules/fxmanifest-standards.mdc, skills/fxmanifest/SKILL.md, skills/resource-scaffolding/SKILL.md, .github/workflows/validate.yml, examples/
  • 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: fxmanifest reference on docs.fivem.net

Filed by repo-audit/full-audit at 701824d. Severity: medium. Effort: S. audit-key: quality|rules/fxmanifest-standards.mdc|lua54

Activity

  1. added
    tech-debt
    on Nov 21, 2026
  2. TMHSDigital commented on Nov 21, 2026

    @TMHSDigital
    OwnerAuthor

    Fixed in d3b48ef.

    Removed the directive from the five example manifests (lua54 true is a Lua syntax error, so those manifests could not be parsed), stated one position everywhere (no lua54 directive; Lua 5.4 is the only runtime), and made CI reject any lua54 line in templates and examples manifests. A follow-up commit (1ab028c) replaced a stray control character in the new CI regex that had made validate.yml invalid for one push.

    Verified: The luac step and the lua54 check both pass in Validate run 44862913275; the regex was tested to match lua54 true and ignore identifiers like lua54_note.

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