Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add Dmatut7/codex-flow --skill codex-skill-business-auditgit clone --depth 1 https://github.com/Dmatut7/codex-flowWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/dmatut7/codex-flow/codex-skill-business-audit)<a href="https://agentmods.dev/skills/dmatut7/codex-flow/codex-skill-business-audit"><img src="https://agentmods.dev/badge/skills/dmatut7/codex-flow/codex-skill-business-audit/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/dmatut7/codex-flow/codex-skill-business-audit"><img src="https://agentmods.dev/badge/skills/dmatut7/codex-flow/codex-skill-business-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00223 | $0.01150 |
| Opus 5.5 | $0.00089 | $0.00460 |
| Sonnet 5.5 | $0.00045 | $0.00230 |
| Haiku 4.5 | $0.00022 | $0.00115 |
Grade A, and why
business-defect-audit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 36 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Business-Defect Audit
You are running a deep audit for defects where the code works but does the wrong thing relative to business intent — wrong money/tax, missing authz, illegal state transitions, double-spend, trust violations. These are invisible to a normal "find bugs" pass because nothing crashes.
Engine, backend, sandbox, journal, and run mechanics: reuse the dynamic-workflow skill (it documents ctx.agent/parallel/pipeline/phase/log, the codex-sdk membership backend, sandbox: "read-only", cwd: process.cwd(), JSON-Schema strict rules, and codex-flow run … → resume). This skill carries only the method.
The core idea
A business defect lives in the gap between "what the code should do" and "what it does." So you must build a "should" first, then compare — never just read code looking for problems.
The 5-phase method (generate a workflow that does ALL of these)
Generate .codex-flow/generated/<slug>.audit.workflow.ts from the template in references/audit-template.workflow.ts (import-free, plain JSON Schema, all agents sandbox: "read-only", cwd: process.cwd()), then codex-flow run it. Set target to the feature/area the user named. The phases:
- Reconstruct intent (
phase("intent")) — one agent reads specs, docs, tests (their assertions are intent), data models, DB schemas, migrations, and types to emit a structured "should": invariants, money/tax rules, authz rules, legal state transitions, and the named business flows. It must reportoracleQualityhonestly (strong/weak/none) — if there is no oracle, say so, don't silently slide into a scan. - Multi-lens fan-out (
parallel) — one agent per business-defect lens (NOT per file): money/tax/rounding/refunds; authz/privilege/tenant-isolation; state-machine & lifecycle; concurrency/idempotency/double-spend; boundary/hostile-input/trust. Each gets the Phase-1 baseline and finds where code runs fine but violates intent, citing file:line for both the rule and the violating code + a concrete trigger. See the full lens catalog inreferences/audit-method.md. - Cross-artifact contradictions (
phase) — one agent hunts disagreements: spec says X, a test asserts Y, code does Z, schema/DB allows W. Also flags intended rules with no enforcing code. - End-to-end flow trace (
pipelineover the named flows) — trace each business journey across files (entry → authz → validation → state change → persistence → response) to find steps that are skippable, reorderable, replayable, or missing a guard. These are invisible when reading one file at a time. - Adversarial verify + impact rank (
phase) — one verifier tries to refute each candidate (find the guard/test that prevents it; demand a concrete trigger), moves refuted ones to adismissedlist with reasons (never silently drop), and ranks survivors by business impact (money loss / data exposure / privilege escalation / corruption) with severity + a maintainer action. Do not trust self-reported confidence.
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 36 lines · 223 tokens per session scan A 320f1c68ae56
business-defect-audit is a skill published in the GitHub repository Dmatut7/codex-flow (9 stars, last pushed 5mo ago), licensed MIT. It adds 223 tokens to every session and 1,150 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
business-defect-audit compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| business-defect-auditDmatut7/codex-flow | Skill | 9 | 5mo ago | MIT | A | 223 | Codex |
| coderabbit-reviewSynkraAI/aiox-core | Skill | 3.1k | yesterday | none | A | 50 | Claude Code |
| aiox-qaSynkraAI/aiox-core | Skill | 3.1k | yesterday | none | A | 35 | Codex |
| apply-qa-fixesSynkraAI/aiox-core | Skill | 3.1k | yesterday | none | A | 48 | Claude Code |
| hatch3r-refactorhatch3r/hatch3r | Skill | 26 | 1mo ago | MIT | A | 32 | Claude Code |
| hunk-releasemodem-dev/hunk | Skill | 9.8k | yesterday | MIT | A | 38 | Claude Code, Codex |
| crossreviewcoddy-project/coddy-agent | Skill | 199 | yesterday | MIT | A | 204 | Codex |