deep-audit

deep-audit is a skill for Claude Code from pedrohcgs/claude-code-my-workflow. It costs 117 tokens per session (2,539 once invoked), scanned A, original, MIT.

A detailed adversarial review process for theories, proofs, papers, codebases, and sets of claims. Independent reviewers look for concrete defects, a judge evaluates each finding, and confirmed problems are fixed and checked again.

In plain words
What is it for?
Use it for high-stakes audits of technical, mathematical, economic, scientific, or security-sensitive work.
Why use it?
It helps find errors that ordinary review may miss when correctness is especially important. The input says it requires opting into multi-agent orchestration.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it for high-stakes audits of technical, mathematical, economic, scientific, or security-sensitive work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pedrohcgs/claude-code-my-workflow/deep-audit
About the project

claude-code-my-workflow is a forkable setup for using Claude Code to produce and review academic papers, slides, data analyses, and replication packages. Researchers use its agents, skills, rules, hooks, and quality checks to coordinate these tasks and verify their results. The catalogue entries define the reusable workflow components for Claude Code.

pedrohcgs/claude-code-my-workflow · 1,745 stars · on GitHub · psantanna.com

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 pedrohcgs/claude-code-my-workflow --skill deep-audit
Clone the repo
git clone --depth 1 https://github.com/pedrohcgs/claude-code-my-workflow

Made for: Claude Code.

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 deep-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/pedrohcgs/claude-code-my-workflow/deep-audit/github.svg)](https://agentmods.dev/skills/pedrohcgs/claude-code-my-workflow/deep-audit)
Your own site
<a href="https://agentmods.dev/skills/pedrohcgs/claude-code-my-workflow/deep-audit"><img src="https://agentmods.dev/badge/skills/pedrohcgs/claude-code-my-workflow/deep-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 deep-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/pedrohcgs/claude-code-my-workflow/deep-audit"><img src="https://agentmods.dev/badge/skills/pedrohcgs/claude-code-my-workflow/deep-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,539 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00117 $0.02539
Opus 5.5 $0.00047 $0.01016
Sonnet 5.5 $0.00023 $0.00508
Haiku 4.5 $0.00012 $0.00254

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

Security

Grade A, and why

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

.claude/skills/deep-audit/SKILL.md · 92 lines

How it starts

The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Deep adversarial audit

A convergent alternative to slow round-by-round review. Instead of one reviewer finding one or two issues per pass, fan out many independent skeptics over the whole artifact at once, adjudicate what they find, fix everything confirmed, and re-verify. Modeled on the multi-agent methodology behind hard formal-proof efforts (diverse independent portfolio, adversarial throughout, concrete evidence only, synthesize-challenge-repeat).

When to reach for this

  • The artifact is dense enough that a single review keeps surfacing new issues each pass (the tell that round-by-round is the wrong tool).
  • Correctness is the priority and the cost of a missed defect is high (a paper going to a top venue, a proof, a security-sensitive change, a migration).
  • The user asked to "fix ALL of it", "be deeper", "converge faster", "100% rock solid".

Requires the user to have opted into multi-agent orchestration (they asked for a workflow / deep audit / to fan out agents, or ultracode is on). If they haven't, propose it and its rough cost first.

The method

1. Decompose (diverse portfolio). Break the artifact into components by idea, not by section: each independent claim, lemma, estimator, subsystem, invariant. Add cross-cutting failure-mode lenses (see below). Aim for coverage such that every load-bearing claim is attacked by at least one agent that is looking straight at it. Don't tell the agents your favored reading — preserve independence so they don't all converge on the same attractive-but-wrong conclusion.

2. Fan out adversarial finders (one per component). Each finder is prompted to refute, defaulting to "there is a bug," and must ground every claim in the actual text/code (read it, don't paraphrase from memory). Hard rules, borrowed from what works:

  • Concrete findings only. Every finding = exact location (file:line / label + quoted text) + one-sentence defect + a failing case (specific inputs/configuration → wrong output, or the exact missing hypothesis).
  • Reject status reports, "looks fine", "this is standard/routine", vague optimism, and "the global step is straightforward."
  • A fix that re-imposes the same difficulty elsewhere, or assumes its own conclusion, is not a fix — flag it.
  • If, after genuinely attacking, nothing is found, the agent must state the specific attacks it ran and why each closed — not just "clean."

Read the full file on GitHub · 92 lines

Files

What ships with it

1 file 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 Changed · +1 lines d1cbf2061f98
  2. 3mo ago First seen · 91 lines · 117 tokens per session scan A fa20122dbf2a

Subscribe to this mod's changes

deep-audit is a skill published in the GitHub repository pedrohcgs/claude-code-my-workflow (1,745 stars, last pushed 22d ago), licensed MIT. It adds 117 tokens to every session and 2,539 once invoked, about $0.0005 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-30.

Related

deep-audit compared with skills from other repositories

deep-audit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
deep-auditpedrohcgs/claude-code-my-workflowSkill1.7k22d agoMITA117Claude Code
r-econometricsbrycewang-stanford/Auto-Empirical-Research-SkillsSkill5.2k6d agononeA20Claude Code, Codex
paper-workflowbrycewang-stanford/Paper-WorkFlowSkill531mo agoMITA101Claude Code
econ-management-paper-polishlinkingoscar/econ-management-paper-polishSkill51mo agoMITA83Codex
did-causalxjtulyc/awesome-rosetta-skillsSkill387mo agononeA75Claude Code, Codex
thermo-nuclear-code-quality-reviewmichael-denyer/pstack-claudeSkill5.0ktodayMITA54Claude Code
boundariesoliver-kriska/claude-elixir-phoenixSkill5783d agoMITA33Claude Code