ask-ai-to-audit-itself

ask-ai-to-audit-itself is a skill for Claude Code from alivirgo/Major-AI-Skills. It costs 28 tokens per session (1,244 once invoked), scanned A, original, MIT.

A prompting method that separates drafting from checking: the AI first creates an answer, then reviews it for mistakes, missing edge cases, and contradictions.

In plain words
What is it for?
Use it to check code, technical plans, written explanations, and other AI-generated work against specific requirements.
Why use it?
It adds a deliberate review step that can catch logic errors, factual slips, and code bugs before the final response.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex.

Part of the major-ai-skills plugin — 147 skills, 8 plugins shipped together

Good fit Use it to check code, technical plans, written explanations, and other AI-generated work against specific requirements.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alivirgo/major-ai-skills/ask-ai-to-audit-itself
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 alivirgo/Major-AI-Skills --skill ask-ai-to-audit-itself
Clone the repo
git clone --depth 1 https://github.com/alivirgo/Major-AI-Skills

Made for: Claude Code.

Or install major-ai-skills, the plugin that ships this one along with the rest of its 147 skills, 8 plugins.

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 ask-ai-to-audit-itself

README.md
[![agentmods](https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/ask-ai-to-audit-itself/github.svg)](https://agentmods.dev/skills/alivirgo/major-ai-skills/ask-ai-to-audit-itself)
Your own site
<a href="https://agentmods.dev/skills/alivirgo/major-ai-skills/ask-ai-to-audit-itself"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/ask-ai-to-audit-itself/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 ask-ai-to-audit-itself

Your own site · 80×15
<a href="https://agentmods.dev/skills/alivirgo/major-ai-skills/ask-ai-to-audit-itself"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/ask-ai-to-audit-itself.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,244 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.00028 $0.01244
Opus 5.5 $0.00011 $0.00498
Sonnet 5.5 $0.00006 $0.00249
Haiku 4.5 $0.00003 $0.00124

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

Security

Grade A, and why

ask-ai-to-audit-itself 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.

skills/ask-ai-to-audit-itself/SKILL.md · 145 lines

How it starts

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

Ask AI to Audit Its Own Output (AI Skill)

Overview

When an AI generates a long response in a single generation pass, it cannot "look ahead" to revise earlier sentences based on later logical deductions. As a result, drafts often contain subtle internal contradictions, forgotten constraints, or code bugs that the model would easily catch if asked to review them as a third party.

This skill implements the Reflexion / Critic-Actor Prompting Protocol - a technique that separates generation from critique to dramatically elevate accuracy and quality.


The 3-Stage Reflexion Architecture

┌─────────────────────────────────────────────────────────────┐
│                 The Critic-Actor Pipeline                   │
│                                                             │
│  Step 1: ACTOR       ──► Draft initial solution             │
│            │                                                │
│  Step 2: CRITIC      ──► Adversarial audit against strict   │
│            │             rubric (find 3 flaws/edge cases)   │
│            │                                                │
│  Step 3: SYNTHESIZER ──► Output final refined version with  │
│                          all audited flaws resolved         │
└─────────────────────────────────────────────────────────────┘

Master Audit Prompts

Pattern 1: The "Adversarial Code & Logic Audit"

Use this prompt immediately after an AI provides a code snippet or architectural plan:

Now, switch personas. Act as a Principal Security and Performance Reviewer.

Critically audit your code/solution above against these 4 criteria:
1. **Edge Cases**: Where will this fail (null values, concurrency race conditions, unexpected formats)?
2. **Performance & Scalability**: Is there any O(N^2) bottleneck, memory leak, or redundant compute?
3. **Security Vulnerabilities**: Are there injection risks, unsafe inputs, or missing validations?
4. **Constraint Adherence**: Did the draft violate any original prompt requirements?

List any flaws found. If flaws exist, provide the corrected, production-ready version.

Read the full file on GitHub · 145 lines

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 · -15 tokens per session 6159b62c8afb
  2. 2mo ago First seen · 145 lines · 43 tokens per session scan A 7b61753e4a97

Subscribe to this mod's changes

ask-ai-to-audit-itself is a skill published in the GitHub repository alivirgo/Major-AI-Skills (6 stars, last pushed today), licensed MIT. It adds 28 tokens to every session and 1,244 once invoked, about $0.0001 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-09-05.

Related

ask-ai-to-audit-itself compared with skills from other repositories

ask-ai-to-audit-itself next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ask-ai-to-audit-itselfalivirgo/Major-AI-SkillsSkill6todayMITA28Claude Code
azure-reposMicrosoftDocs/Agent-SkillsSkill82421d agoCC-BY-4.0A113Claude Code
ai-engineering-toolkitdiegosouzapw/awesome-omni-skillsSkill1814mo agoMITA81Claude Code, Codex
android-ui-verification-v2diegosouzapw/awesome-omni-skillsSkill1814mo agoMITA57Claude Code, Codex
address-github-comments-v2diegosouzapw/awesome-omni-skillsSkill1814mo agoMITA61Claude Code, Codex
address-github-commentsdiegosouzapw/awesome-omni-skillsSkill1814mo agoMITA59Claude Code, Codex
android-ui-verificationdiegosouzapw/awesome-omni-skillsSkill1814mo agoMITA55Claude Code, Codex