# audit

audit is a Claude Code command that audits Roblox Luau code for security holes, exploits, and storage flaws. It runs automated checks and builds a ranked fix list from P0 to P3.

- command · `type=command` · Claude Code, Codex, GitHub Copilot, Gemini CLI · ★ 98 repo stars
- Author: LihFolk
- License: LicenseRef-Proprietary · policy=link-only · description only; the file stays with the author
- Source: https://github.com/lihfolk-cy/v2-vault/tree/HEAD/commands/audit.md
- Updated: 2026-10-29
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/commands/lihfolk-audit

## What it does

The command performs a read-only inspection across the specified path or project root, proposing fixes only after completing the analysis. It first triggers `lihfolk-check.sh` on Bash or `lihfolk-check.ps1` on PowerShell. Third-party folders such as `Packages`, `_Index`, and `node_modules` are skipped automatically.

The review then maps out structural entry points: remote signals like `OnServerEvent` and `InvokeClient`, `DataStore` update routines, Robux monetization hooks in `ProcessReceipt`, and per-frame event listeners. Each identified subsystem is vetted against rules for remote validation, session locking, combat threat models, and random item disclosure rules via `PolicyService`.

A failure on any hard gate inside `rubrics/system.md` caps the rubric score at 5.0. Output delivers an organized table prioritizing severe issues like client-driven currency manipulation under P0, while grouping style remarks and deprecated methods under P3.

## Install

### Claude Code (native platform)

1. **Plugin marketplace**
In the agent chat (not a shell):
```text
/plugin marketplace add lihfolk-cy/v2-vault
```
In the agent chat (not a shell):
```text
/plugin install lihfolk@lihfolk
```

2. **Manually: put the files in place**
- File: `.claude/commands/audit.md` — Call it with /audit. For all projects use ~/.claude/commands/

### Codex

**Manually: put the files in place**
- File: `~/.codex/prompts/audit.md` — Call it with /prompts:audit. Codex marks this format deprecated in favour of skills

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/prompts/audit.prompt.md`

### Gemini CLI

**Manually: put the files in place**
- File: `.gemini/commands/audit.toml` — Gemini stores commands as TOML: the prompt text goes into the prompt field

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/lihfolk-cy/v2-vault/tree/HEAD/commands/audit.md

## When to use it
- find unvalidated parameters and trust issues in Roblox remote events
- detect data loss risks in `UpdateAsync` and missing `BindToClose` logic
- spot unyielding loops and memory leaks in per-frame handlers
- verify compliance gates for paid randomized items before publishing

## Example prompts
- /audit
- Run /audit src/server to check server scripts for exploits
- /audit game/scripts

## Similar
- [roblox-security](https://affpapa.org/en/nevibecode/skills/roblox-security.md) — skill · 3500 installs
- [roblox-code-review](https://affpapa.org/en/nevibecode/skills/roblox-code-review.md) — skill · 1300 installs
- [luau-best-practices](https://affpapa.org/en/nevibecode/skills/luau-best-practices.md) — skill · 736 installs
- [roblox-datastores](https://affpapa.org/en/nevibecode/skills/roblox-datastores.md) — skill · 11400 installs
- [scenario-roblox-networking](https://affpapa.org/en/nevibecode/skills/scenario-roblox-networking.md) — skill · 350 installs
- [roblox-server-data](https://affpapa.org/en/nevibecode/skills/roblox-server-data.md) — skill · 3000 installs

## Other versions with the same name
- [audit · gmickel](https://affpapa.org/en/nevibecode/commands/audit.md) — ★ 730 repo stars
- [audit · indxdev](https://affpapa.org/en/nevibecode/commands/indx-audit.md) — ★ 113 repo stars

From the same set: [lihfolk-cy/v2-vault](https://affpapa.org/en/nevibecode/by/lihfolk-cy/v2-vault.md) — 29 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
