business-defect-audit

business-defect-audit is a skill for Codex from Dmatut7/codex-flow. It costs 223 tokens per session (1,150 once invoked), scanned A, original, MIT.

A review of whether software follows the intended business rules, even when the code runs, compiles, and passes tests.

In plain words
What is it for?
Use it to audit a feature or codebase for authorization errors, payment and tax mistakes, invalid state transitions, concurrency problems, and other business-logic defects.
Why use it?
Ordinary bug checks can miss incorrect money or tax calculations, missing permission checks, illegal status changes, double spending, or other violations of the intended behavior.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions subagents; mentions Codex.

Good fit Use it to audit a feature or codebase for authorization errors, payment and tax mistakes, invalid state transitions, concurrency problems, and other business-logic defects.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dmatut7/codex-flow/codex-skill-business-audit
Install

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.

Any agent
npx skills add Dmatut7/codex-flow --skill codex-skill-business-audit
Clone the repo
git clone --depth 1 https://github.com/Dmatut7/codex-flow

Made for: Codex.

Wrote 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.

agentmods badge for business-defect-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/dmatut7/codex-flow/codex-skill-business-audit/github.svg)](https://agentmods.dev/skills/dmatut7/codex-flow/codex-skill-business-audit)
Your own site
<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.

agentmods 80×15 button for business-defect-audit

Your own site · 80×15
<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>
Per session 223 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,150 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 2mo ago against content hash 320f1c68ae56, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 1 executable file (references/audit-template.workflow.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

codex-skill-business-audit/SKILL.md · 36 lines

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:

  1. 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 report oracleQuality honestly (strong/weak/none) — if there is no oracle, say so, don't silently slide into a scan.
  2. 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 in references/audit-method.md.
  3. 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.
  4. End-to-end flow trace (pipeline over 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.
  5. 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 a dismissed list 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.

Read the full file on GitHub · 36 lines

Files

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.

Changes

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.

  1. 2mo ago First seen · 36 lines · 223 tokens per session scan A 320f1c68ae56

Subscribe to this mod's changes

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.

Related

business-defect-audit compared with skills from other repositories

business-defect-audit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
business-defect-auditDmatut7/codex-flowSkill95mo agoMITA223Codex
coderabbit-reviewSynkraAI/aiox-coreSkill3.1kyesterdaynoneA50Claude Code
aiox-qaSynkraAI/aiox-coreSkill3.1kyesterdaynoneA35Codex
apply-qa-fixesSynkraAI/aiox-coreSkill3.1kyesterdaynoneA48Claude Code
hatch3r-refactorhatch3r/hatch3rSkill261mo agoMITA32Claude Code
hunk-releasemodem-dev/hunkSkill9.8kyesterdayMITA38Claude Code, Codex
crossreviewcoddy-project/coddy-agentSkill199yesterdayMITA204Codex