Repository navigation
Closed
Labels
Description
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("Avoidlua54 'yes'(deprecated; uselua54 true)")rules/fxmanifest-standards.mdc:17skills/fxmanifest/SKILL.md:60,skills/fxmanifest/SKILL.md:173skills/resource-scaffolding/SKILL.md:78AGENTS.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(presentslua54 trueas "the repo conventions")ROADMAP.md:70(requireslua54 truein 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:60says "Do not include it in new manifests". AGENTS.md says "ignored". - validate.yml rejects any occurrence of
lua54in templates, includinglua54 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
- Copy
examples/speedometer-hud/fxmanifest.luainto a newtemplates/x/. - Run the
Check deprecated lua54 directive in templatesstep: 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
lua54directive", remove it from the five example manifests, and update examples/README.md. - If
lua54 trueis allowed: change the CI grep to reject onlylua54 '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
ci: fix control character in the lua54 check regex (#44)
TMHSDigital commentedon Nov 21, 2026
Fixed in d3b48ef.
Removed the directive from the five example manifests (
lua54 trueis 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 trueand ignore identifiers likelua54_note.