/caddis-extras:anchor-reviewfrom caddis-extras
Single-model adversarial review technique — 3-lens analysis with confidence scoring and self-challenge
Ships in caddis-extras. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Perform a rigorous adversarial review using a single model by systematically arguing both sides of every finding. This compensates for the lack of multi-model disagreement by forcing structured self-challenge.
Use this skill whenever you need high-confidence code review, fix verification, or implementation validation — especially for 🔴 findings, L-sized changes, hotfixes, or @anchor Evidence Bundles.
Review every changed file through three adversarial lenses, in order. Each lens has a different goal and a different failure mode it's designed to catch.
"Does this code do what it claims to do?"
| Check | How to Verify |
|---|---|
| Logic matches spec/plan requirements | Cross-reference against plan/PRD |
| Edge cases handled (null, empty, zero, boundary) | Trace each input path mentally |
| Error paths return meaningful results | Read every except/catch block |
| State mutations are intentional | Check session state, database writes, file I/O |
| Return types match declared signatures | Verify type hints against actual returns |
"Can this code be exploited or leak data?"
| Check | How to Verify |
|---|---|
| SQL injection | All queries use ? parameterization, no f-strings/format() |
| Secrets exposure | No hardcoded credentials; .env or pydantic-settings only |
| Input validation | User inputs validated before use (Pydantic, type checks) |
| PII in logs | logger.* calls don't include passwords, tokens, emails |
| Auth bypass | Protected routes check authentication before processing |
"Will this code break under real-world load?"
| Check | How to Verify |
|---|---|
| N+1 queries | Database calls inside loops → batch instead |
| Unbounded collections | Lists/dicts that grow without limit → add caps |
| Missing caching | Expensive repeated calls → @st.cache_data or equivalent |
| Large IN clauses | SQL IN with >900 params → batch to 900 |
| Blocking operations | Long I/O in main thread → async or background |
Every finding gets a confidence level based on how you verified it:
| Confidence | Criteria | Action |
|---|---|---|
| High | Verified by running code (run_command), or reproduced the bug/vulnerability | Report as-is |
| Medium | Verified by code reading + pattern matching, but didn't execute | Report, note "not execution-verified" |
| Low | Suspected based on code smell, but could be intentional | Report as 🟡 suggestion, not 🔴 |
Rule: Never report a 🔴 Critical Issue with Low confidence. Either verify it to Medium+ or downgrade to 🟡.
After completing all 3 lenses, before finalizing your review, run this self-challenge:
For each Critical Issue you found:
**Finding:** [your 🔴 finding]
**Devil's advocate:** [argue why this might be CORRECT or INTENTIONAL]
**Evidence check:** [did you verify with run_command, grep, or code reading?]
**Verdict:** [CONFIRMED 🔴 | DOWNGRADED to 🟡 | WITHDRAWN]
Ask yourself these three questions:
Only after self-challenge, produce your final finding list. Include the confidence level on each:
## Findings
### 🔴 Critical [Confidence: High]
**File:** `path/to/file.py` L42-58
**Issue:** [description]
**Self-challenge result:** Confirmed — [reason it survived challenge]
### 🟡 Warning [Confidence: Medium]
**File:** `path/to/file.py` L15
**Issue:** [description]
**Note:** Not execution-verified — based on code reading
| Agent | When to Load |
|---|---|
@code-reviewer | All reviews — especially 🔴 findings or L-sized changes |
@anchor | Phase 4 verification — validate Evidence Bundle claims |
@implement | Post-implementation self-review before handoff |
@debug | Fix verification — confirm the fix doesn't introduce new issues |
1. LENS 1: Correctness — Does it do what it claims?
2. LENS 2: Security — Can it be exploited?
3. LENS 3: Performance — Will it break under load?
4. SCORE each finding — High / Medium / Low confidence
5. SELF-CHALLENGE — Devil's advocate every 🔴
6. FINALIZE — Only confirmed findings survive
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub saajunaid/caddis-plugin --plugin caddis-extras81 skills in this plugin
/adopt-rbacPointer to the org's RBAC adoption skill. Use for "add RBAC to this app" or "adopt rbac-kit"./agent-md-refactorRefactor bloated agent instruction files (AGENTS.md, .cursorrules, .github/ files) into linked, progressively disclosed docs./agent-orchestrationBlueprint for orchestrating the agent pipeline from spec to planning, implementation, testing and debugging, plus when a second model is worth it, the intent→model map and cost guardrails./algorithmic-artGenerative and algorithmic art with p5.js: flow fields, particle systems, animations, WebGL, audio-reactive visuals; exports HTML, PNG, GIF, MP4, SVG. Use for creative coding or any p5.js visual./api-client-patternsTyped client-side API consumption: fetch wrappers, zod validation, auth injection, TanStack Query (useQuery, useMutation, optimistic updates), tRPC, OpenAPI codegen, pagination. Use when consuming REST or tRPC APIs./architecture-designDesign application architecture and system diagrams with layered patterns, Mermaid C4 diagrams, SQL Server data platform, and on-premise deployment considerations.