# adversarial code critic

> Adversarial critic for code and system designs that uses evidence-based auditing to hunt for P0/P1 defects.

adversarial code critic is a free AI agent skill on Agensi by aholic-liberation, in Testing & Debugging. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [aholic-liberation](https://www.agensi.io/creators/cheng-peng)
- Category: [Testing & Debugging](https://www.agensi.io/skills/testing-debugging)
- Version: 1.0
- Last updated: 2026-11-18
- Security: scan passed (2026-11-18); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/adversarial-code-critic
- Tags: code-review, embedded-c, pcb-design, debugging, testing

## About this skill

Code reviews often fail because reviewers are too polite or miss deep architectural flaws. This skill adopts an adversarial stance to stress-test your code, documentation, or system designs. It assumes your work has defects until proven otherwise, hunting for P0 fatal errors and P1 critical bugs that others miss.

### What it does
- **Evidence-based auditing** identifies specific flaws with exact `file:line` references to prevent vague feedback.
- **Dimensional analysis** evaluates hard errors, promise-fulfillment gaps, and real-world environmental risks.
- **Severity grading** prioritizes P0 (fatal) and P1 (important) issues while flagging P2 items for manual verification.
- **Iterative feedback loop** drives a "criticize-rework-recriticize" cycle until the work meets high-reliability standards.
- **Baseline alignment** forces a clear definition of intent versus reality to ensure the final product matches its claims.

### How it works
1. **Set the Baseline**: You provide the context of what the artifact is meant to achieve.
2. **Adversarial Review**: The agent scans the artifact using specialized checklists and web-retrieved best practices.
3. **Structured Reporting**: You receive a categorized list of P0 to P3 issues with clear evidence and advice.
4. **Iterative Refinement**: You submit fixes or rebuttals; the agent validates the fix and scans for new regressions.

### Frameworks & tools
Built for Embedded C (MSPM0, K230), PCB design, mathematical modeling (CUMCM/MathModel), and general technical documentation. It utilizes `WebSearch` to supplement static checklists with live industry standards.

### Why this beats prompting it yourself
Standard prompts tend to be agreeable or generic. This skill is hardcoded to be stubborn and evidence-driven, refusing to "pass" work that contains P0 or P1 risks. It prevents over-engineering by explicitly rejecting unnecessary P3 changes once core reliability is achieved.

### Use cases
- Auditing embedded firmware for race conditions, deadlocks, or resource leaks.
- Validating PCB layout and schematic design against manufacturing constraints.
- Reviewing technical proposals to ensure claims match the actual implementation.
- Stress-testing mathematical models for boundary condition failures.

### Known limitations
Does not accept P0/P1 claims without specific code or document evidence. P2 items require manual user verification as they represent unverified high-risk hypotheses.

## Requires

- Git

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the adversarial code critic skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How is this 'adversarial' approach different from just asking a standard AI to review my code?

Unlike standard AI assistants that tend to be agreeable, this skill is hardcoded with an adversarial persona that assumes defects exist until proven otherwise, specifically focusing on P0/P1 fatal flaws that human reviewers often miss due to 'politeness' or oversight.

### What specific programming languages and technical domains is this critic optimized for?

The skill is optimized for Embedded C (specifically MSPM0 and K230 architectures), PCB design schematics, mathematical modeling, and complex technical documentation where high reliability is non-negotiable.

### What do the 'P0' and 'P1' severity grades mean in my audit report?

A 'P0' indicates a fatal error or system-breaking defect, while 'P1' denotes a critical bug; the skill provides exact file and line references for these to ensure your feedback is evidence-based rather than subjective.

### Can I submit my revised code back to the agent for a follow-up validation after the initial audit?

Yes, the skill is designed for an iterative 'criticize-rework-recriticize' cycle where it validates your fixes and performs regression checks to ensure new changes haven't introduced fresh vulnerabilities.

### Why are some issues flagged for 'manual verification' instead of being marked as definite bugs?

While the agent is highly accurate at identifying hard errors, 'P2' items are flagged as high-risk hypotheses that require your manual verification to confirm if they apply to your specific environmental constraints.

### What exactly is included in this skill purchase?

You receive the full Adversarial Code Critic skill package, which includes specialized auditing checklists, dimensional analysis frameworks, and integrated web-search capabilities for real-time industry standard cross-referencing.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
