Repository navigation
Closed
Labels
Description
Summary
Rule frontmatter does the opposite of what CLAUDE.md documents (the manifest and performance rules load in every chat while the security rule loads only for matching files), and several pieces of advice in the rules are technically inaccurate.
Where
rules/fxmanifest-standards.mdc:4-5,rules/performance-rules.mdc:4-5,rules/security-best-practices.mdc:4-5CLAUDE.md:61-68(rules table),CLAUDE.md:135-136skills/*/SKILL.md:1-6(frontmatter)rules/security-best-practices.mdc:14rules/cfx-lua-conventions.mdc:15,:64-68,:75.github/scripts/build_docs_index.py:10
Details
Frontmatter
- CLAUDE.md scopes
fxmanifest-standards.mdcto**/fxmanifest.luaandsecurity-best-practices.mdcto "Global". In the files,fxmanifest-standardsandperformance-ruleshavealwaysApply: true(Cursor then ignoresglobsand injects the rule everywhere), whilesecurity-best-practiceshasalwaysApply: false. - CLAUDE.md says skill frontmatter is
nameanddescription; all 10 skills usetitle/description/standards-version(9 withglobs), none hasname, andtxadmin-integrationhas noglobs.
Advice accuracy (checklist)
-
security-best-practices.mdc:14says to "Prefix server events intended only for internal use to prevent remote triggering". A name prefix does not affect whether clients can trigger an event. Correct guidance: events meant only for server-internal use should be registered withAddEventHandleronly (notRegisterNetEvent), and net handlers should validatesource. -
cfx-lua-conventions.mdc:75says to usequatwithGetEntityRotation/SetEntityRotation"quaternion overloads". Both are Euler (GetEntityRotationreturns a vector3); the quaternion natives areGetEntityQuaternion/SetEntityQuaternion. -
cfx-lua-conventions.mdc:15shows backtick hashing as`adder`inside a markdown code span, so the rendered example shows plainadderwithout backticks. -
cfx-lua-conventions.mdc:64-68names a variablev4with the comment "vector4 for position + heading" while assigning a vector3. -
build_docs_index.py:10says "Requires: requests (included in mcp-server/requirements.txt)"; the script uses urllib andrequestsis not in requirements.
Impact
Manifest and performance rules consume context in unrelated chats while the security rule is missing where it matters. Agents relying on the inaccurate items write ineffective event protection and call quaternion overloads that do not exist.
Suggested fix
- Set
alwaysApply: falseonfxmanifest-standardsandperformance-rulesandtrueonsecurity-best-practices, or update CLAUDE.md to match the intended behaviour. - Either add
name: <dir>to each SKILL.md or update the CLAUDE.md convention to the frontmatter actually in use. - Rewrite each checklist item as described, using a fenced code block to show the backtick hash.
Acceptance criteria
- Rule
alwaysApply/globsmatch the scopes documented in CLAUDE.md. - Skill frontmatter and the documented convention agree.
- Each checklist item is corrected.
Getting started
- Relevant files:
rules/*.mdc,skills/*/SKILL.md,CLAUDE.md,.github/scripts/build_docs_index.py - 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: Cursor rules documentation (
alwaysApply,globs)
Filed by repo-audit/full-audit at 701824d. Severity: low. Effort: S. audit-key: quality|rules/fxmanifest-standards.mdc|frontmatter-and-advice
Activity
TMHSDigital commentedon Nov 21, 2026
Fixed in ed75931.
All six rules are now path-scoped (fxmanifest-standards and performance-rules had alwaysApply: true, which made Cursor ignore their globs), and the CLAUDE.md rules table lists each rule's globs. Corrected the advice: server-internal events must use AddEventHandler only (an event name or prefix does not stop clients from triggering a net event), the backtick hash example renders literally, the misleading
v4variable is renamed, and Get/SetEntityRotation are described as Euler with Get/SetEntityQuaternion for quaternions. The skill-frontmatter part was handled in #47/#48 and the standard migration is tracked in #79; the build_docs_index requirements note was fixed in #24.Verified: all six rules have alwaysApply: false; CI content checks pass.