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 agentmods add skills/dmatut7/codex-flow/codex-skill-business-auditnpx 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.svg" alt="Measured on agentmods" 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 | $0.00112 | $0.00575 |
| Sonnet 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 6d 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.
- 6d 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 3mo ago), licensed MIT. It adds 223 tokens to every session and 1,150 once invoked, about $0.0011 per session on Opus 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.
Other skills, from other repositories
hatch3r-refactor
Internal code quality improvement workflow without changing external behavior. Use when refactoring code structure, simplifying modules, or improving maintainability.
coderabbit-review
Unified CodeRabbit CLI execution via WSL with self-healing loop. Use this skill when running automated code review before commits, PRs, or QA gates. Handles WSL wrapper, severity filtering, and auto-fix iterations.
apply-qa-fixes
Apply QA gate findings then hand back for re-review. Never self-approves or closes. Use when: apply QA fixes, remediate gate FAIL/CONCERNS, /apply-qa-fixes.
aiox-qa
Test Architect & Quality Advisor (Quinn). Use for comprehensive test architecture review, quality gate decisions, and code improvement. Provides thorough analysis including requ...
atlas
Analyzes dependencies, circular references, and God Classes, and creates ADRs/RFCs. Used when architectural improvements, module separation, or technical debt evaluation are needed.
atmos-migration
This skill helps you migrate a repository to Atmos. It covers native Terraform, Terraform Workspaces, Terramate, Terragrunt, Makefiles, Justfiles, and Taskfiles. It gives minimum-disruption paths, file-layout options, workspace mapping, task-to-command mapping, generatehcl/script decomposition, and the remote-state…