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.

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.

agentmods
npx agentmods add skills/dmatut7/codex-flow/codex-skill-business-audit
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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00112 $0.00575
Sonnet 5 $0.00045 $0.00230
Haiku 4.5 $0.00022 $0.00115

Measured 6d ago against content hash 320f1c68ae56, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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. 6d 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 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.

Related

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.

hatch3r/hatch3r · 32 tokens

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.

SynkraAI/aiox-core · 50 tokens

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.

SynkraAI/aiox-core · 48 tokens

aiox-qa

Test Architect & Quality Advisor (Quinn). Use for comprehensive test architecture review, quality gate decisions, and code improvement. Provides thorough analysis including requ...

SynkraAI/aiox-core · 35 tokens

atlas

Analyzes dependencies, circular references, and God Classes, and creates ADRs/RFCs. Used when architectural improvements, module separation, or technical debt evaluation are needed.

onfire7777/universal-ai-skills-library · 36 tokens

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…

cloudposse/atmos · 96 tokens