audit · gmickel — Claude Code command: project memory audit
The audit command checks .flow/memory/ entries against the current code and assigns an action to each one. Use it when project notes may need revision.
MIT ★ 730 updated 2026-10-29
/plugin marketplace add gmickel/flow-next
/plugin install flow-next@flow-nextWhat audit does
audit passes its arguments to the flow-next-audit skill. The skill discovers memory entries, investigates the codebase, then marks each entry to keep, update, consolidate, replace, delete, or harden. You can narrow the scope with a concept, category, module, or path, or pass mode:autofix.
In interactive mode, the skill asks questions before acting. It then applies changes, produces a report, commits, and checks whether the entries can be discovered. The command is disabled for automatic model invocation, so start it explicitly.
For Claude Code, add the marketplace and install flow-next; invoke the command as /flow-next:audit. Codex uses the prompt file at ~/.codex/prompts/audit.md.
What it helps with
- check
.flow/memory/entries against the codebase - spot project notes that need revision
- consolidate duplicate memory entries
- replace or harden entries after investigation
Example prompts for the agent
- Audit every entry in
.flow/memory/against the current code. - Check the memory entries for the authentication module.
- Run the audit with
mode:autofix.
How to install audit
1Plugin marketplace
/plugin marketplace add gmickel/flow-next/plugin install flow-next@flow-next2Manually: put the files in place
.claude/commands/audit.mdCall it with /audit. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/audit.mdCall it with /prompts:audit. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/audit.prompt.mdManually: put the files in place
.gemini/commands/audit.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about audit
How do I install audit in Claude Code?
Run /plugin marketplace add gmickel/flow-next, then /plugin install flow-next@flow-next. The command file is .claude/commands/audit.md.
What does the audit command do?
It invokes flow-next-audit, which checks .flow/memory/ entries against the codebase and assigns an action to each entry.
Can I limit the audit to one module?
Yes. Pass a scope hint such as a module name or path; the skill receives the arguments unchanged.
Source text
audit.md · MIT
--- name: audit description: Audit `.flow/memory/` entries against the current codebase — Keep / Update / Consolidate / Replace / Delete / Harden per entry argument-hint: "[mode:autofix] [scope hint — concept, category, module, or path]" disable-model-invocation: true --- # IMPORTANT: This command MUST invoke the skill `flow-next-audit` The ONLY purpose of this command is to call the `flow-next-audit` skill. You MUST use that skill now. **Arguments:** $ARGUMENTS Pass the arguments to the skill verbatim. The skill handles mode detection (`mode:autofix` token), discovery, investigation, classification, asking (interactive only), execution, report, commit, and discoverability check.
© Gordon Mickel · MIT · gmickel/flow-next
Similar slash commands
All slash commands for Agent setup: memory, context, orchestration →audit by other authors comes first.