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 skills add alivirgo/Major-AI-Skills --skill ask-ai-to-audit-itselfgit clone --depth 1 https://github.com/alivirgo/Major-AI-SkillsWrote 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/alivirgo/major-ai-skills/ask-ai-to-audit-itself)<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.
<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>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.00028 | $0.01244 |
| Opus 5.5 | $0.00011 | $0.00498 |
| Sonnet 5.5 | $0.00006 | $0.00249 |
| Haiku 4.5 | $0.00003 | $0.00124 |
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.
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.
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.
- 2mo ago Changed · -15 tokens per session 6159b62c8afb
- 2mo ago First seen · 145 lines · 43 tokens per session scan A 7b61753e4a97
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.
ask-ai-to-audit-itself compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ask-ai-to-audit-itselfalivirgo/Major-AI-Skills | Skill | 6 | today | MIT | A | 28 | Claude Code |
| azure-reposMicrosoftDocs/Agent-Skills | Skill | 824 | 21d ago | CC-BY-4.0 | A | 113 | Claude Code |
| ai-engineering-toolkitdiegosouzapw/awesome-omni-skills | Skill | 181 | 4mo ago | MIT | A | 81 | Claude Code, Codex |
| android-ui-verification-v2diegosouzapw/awesome-omni-skills | Skill | 181 | 4mo ago | MIT | A | 57 | Claude Code, Codex |
| address-github-comments-v2diegosouzapw/awesome-omni-skills | Skill | 181 | 4mo ago | MIT | A | 61 | Claude Code, Codex |
| address-github-commentsdiegosouzapw/awesome-omni-skills | Skill | 181 | 4mo ago | MIT | A | 59 | Claude Code, Codex |
| android-ui-verificationdiegosouzapw/awesome-omni-skills | Skill | 181 | 4mo ago | MIT | A | 55 | Claude Code, Codex |