Use when the user asks to audit this repo, run the engineering audit, run a practice audit, or check the codebase against the engineering-audit rules pack. Drives the engineering-audit MCP server's tools through a full audit run and produces a self-contained HTML report.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Audit?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/rodlunt-audit)
---
name: audit
description: Use when the user asks to audit this repo, run the engineering audit, run a practice audit, or check the codebase against the engineering-audit rules pack. Drives the engineering-audit MCP server's tools through a full audit run and produces a self-contained HTML report.
---
# Engineering practice audit
Runs a full engineering-practice audit of the current repository via the `engineering-audit`
MCP server, and produces a self-contained HTML report.
The full, assistant-neutral procedure lives in this tool's own `AUDIT.md` (in the
`engineering-audit` repository this server was installed from). **Follow that document as the
source of truth.** The summary below exists so you do not have to fetch it before starting, but
if the two ever disagree, `AUDIT.md` wins.
## Flow (summary)
1. Gather run metadata: repository name, `git rev-parse HEAD`, your own assistant/model identity,
an ISO 8601 started timestamp, and the host environment (see below).
2. Call `begin_run` with that metadata and `output_dir` set to `<repo>/audit-output/`. Pass
`environment` with exactly these keys, omitting any you cannot determine: `os` (read from the
machine, e.g. `uname -sr` or `sw_vers`), `host_cli` (`"claude-code"`) and `host_cli_version`
(`claude --version`). Any other key is refused: see `AUDIT.md` step 1 for why the set is
closed.
3. Call `start_config`.
- **Preset mode** (`ENGINEERING_AUDIT_CONFIG` env var set): the config is already loaded, skip
to step 4.
- **Interactive mode**: the response has a `url`. **Show it to the user as a clickable
line** (do not open it yourself, and do not try to fetch or wait on it via Bash) and ask
them to choose domains there. Then **call `get_config` in a loop**: while its response's
`status` is `"waiting"`, call it again. Go to step 4 only once the status is
`"configured"`.
- **If `get_config` raises**, the run's overall waiting deadline has expired. Tell the user
plainly that the audit is waiting on them and stop. Do not proceed with a guessed domain
selection. Call `get_config` again, with a larger `timeout_s`, once they confirm.
4. For each selected domain id: call `get_domain`, read the full rule text, sweep the repository
giving every rule an honest verdict (`pass`, `finding`, or `not-applicable` or
`could-not-evaluate` with a reason: never a guessed `pass`), then call
`record_domain_result`. If it rejects the payload as incomplete, the error lists the missing
rule ids; fix and resubmit. Write every finding and issue body terse, in three parts and
nothing else: the issue, why it matters, suggested fix (one or two sentences each).
5. Call `run_status` and confirm nothing is missing.
6. Call `render_report` with a finished timestamp. Tell the user where `report.html` landed and
give a one-line findings summary.
## Claude-Code-specific notes
- **Drive the config wait through the `get_config` tool, not Bash.** Do not poll the config
server with `curl`, and do not try to open the browser yourself. Calling `get_config` while its
`status` is `"waiting"` is the whole mechanism; each call returns within about 25 seconds, so
the loop is cheap and never sits inside one long-running tool call.
- **A `"waiting"` response is not an error and not a configuration.** Say the audit is waiting on
the user the first time you see one, then keep polling without narrating every call.
- **Show the config URL as a clickable line**, e.g. `Open this to choose domains:
http://127.0.0.1:PORT/`, so the terminal renders it as a link the user can click straight away.
- Severity guidance, the file:line citation rule, and the issue_title/issue_body
self-containment rule are all in `AUDIT.md`, steps 4 to 6. Do not skip reading them the first
time you run this: they are the difference between a trustworthy audit and a plausible-looking
one.