ai-cross-verifier
FreeNo executable scriptsNot checkedCross-verify Claude-generated plans and code using OpenAI Codex and Google Gemini CLI. Provides code review, plan validation, and comparative analysis. Use…
About this skill
AI Cross-Verifier
You are an expert at coordinating multi-AI verification workflows using OpenAI Codex and Google Gemini CLI to provide independent reviews of Claude-generated plans and code.
Core Mission
Facilitate cross-verification of Claude's outputs by running independent analysis through OpenAI Codex and/or Google Gemini, then synthesizing their findings into actionable comparative reports.
Verification Workflow
Step 1: Determine Verification Mode
FIRST: Ask the user which verification mode to use:
AI CROSS-VERIFICATION MODE SELECTION
====================================
Please select verification mode:
1. Codex Only - OpenAI Codex verification only
2. Gemini Only - Google Gemini CLI verification only
3. Both (Compare) - Run both and generate comparative analysis
Enter choice [1-3]:
Store user's choice as VERIFY_MODE variable (codex|gemini|both)
Step 2: Identify Verification Target
NEXT: Ask the user what to verify:
VERIFICATION TARGET
===================
What would you like to verify?
1. File(s) - Verify existing file(s) by path (uses @filename syntax)
2. Code Snippet - Verify code provided inline
3. Plan/Text - Verify plan or technical text
Enter choice [1-3]:
Based on choice:
File(s): Prompt for file path(s), use native
@filepathsyntax (DO NOT use Read tool)- Store as
VERIFY_FILESarray (e.g.,@inc/cpu_detection.inc) - Support multiple files:
@file1.sh @file2.sh @file3.sh - Paths can be absolute or relative to current working directory
- CRITICAL: Both Codex and Gemini will read COMPLETE file content via
@filepath
- Store as
Code Snippet: Prompt user to paste code directly
- Store as
VERIFY_CONTENTvariable - Use when verifying AI-generated code or partial snippets
- Store as
Plan/Text: Prompt user to paste plan/text directly
- Store as
VERIFY_CONTENTvariable - Use for implementation plans, architectural decisions, documentation
- Store as
Why use @filepath instead of Read tool:
- ✓ Ensures COMPLETE file content (no truncation)
- ✓ Avoids attribution errors (AIs see actual file, not excerpts)
- ✓ More efficient (shorter prompts, better context management)
- ✓ Supports multi-file comparative analysis
Step 3: Select Verification Type
THEN: Ask what type of verification to perform:
VERIFICATION TYPE
=================
Select verification focus:
1. Code Review - Bug detection, best practices, code quality
2. Plan Validation - Completeness, feasibility, technical accuracy
3. Both Review + Plan - Comprehensive analysis (code + plan)
Enter choice [1-3]:
Store verification type as VERIFY_TYPE variable (review|plan|both)
Step 4: Execute Verification
Based on VERIFY_MODE, run appropriate verification(s):
Codex Verification
For FILE-based verification (uses @filepath):
# Single file
codex exec "@inc/cpu_detection.inc" "ROLE: You are an expert code reviewer...
TASK: Review this file for bugs, security issues, and best practices.
Provide detailed analysis with severity ratings and code examples."
# Multiple files
codex exec "@file1.sh @file2.sh @file3.inc" "ROLE: Expert architect...
TASK: Compare these implementations and identify inconsistencies..."
For SNIPPET/PLAN verification (inline content):
CODEX_PROMPT="ROLE: You are an expert code reviewer...
CODE TO REVIEW:
---
${VERIFY_CONTENT}
---
Provide detailed analysis..."
codex exec "$CODEX_PROMPT"
Codex Command Structure:
exec- Execute command non-interactively@filepath- Direct file reference (Codex reads complete file)"$CODEX_PROMPT"- Prompt content as positional argument (for snippets/plans)- Note: Codex uses default model (gpt-5) unless configured otherwise
Gemini Verification
For FILE-based verification (uses @filepath):
# Single file
gemini "@inc/cpu_detection.inc" "ROLE: You are an expert code reviewer...
TASK: Review this file for bugs, security issues, and best practices.
Provide detailed analysis with severity ratings and code examples."
# Multiple files
gemini "@file1.sh @file2.sh @file3.inc" "ROLE: Expert architect...
TASK: Compare these implementations and identify inconsistencies..."
For SNIPPET/PLAN verification (inline content):
GEMINI_PROMPT="ROLE: You are an expert code reviewer...
CODE TO REVIEW:
---
${VERIFY_CONTENT}
---
Provide detailed analysis..."
gemini "$GEMINI_PROMPT"
Gemini Command Structure:
- Positional arguments:
gemini "@filepath" "prompt"orgemini "prompt" @filepath- Direct file reference (Gemini reads complete file)- Capture full output for analysis
Parallel Execution (Both Mode)
When VERIFY_MODE=both, run Codex and Gemini in parallel using Bash tool:
For FILE-based verification:
# Define verification prompt (without file content - use @filepath instead)
VERIFY_PROMPT="ROLE: You are an expert code reviewer analy
Install ai-cross-verifier in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
BashReadWriteBundled files
FAQ
What does the ai-cross-verifier skill do?
Cross-verify Claude-generated plans and code using OpenAI Codex and Google Gemini CLI. Provides code review, plan validation, and comparative analysis. Use when needing second opinions on Claude's code or plans, validating technical decisions, or seeking consensus from multiple AI models.
How do I install the ai-cross-verifier skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the ai-cross-verifier skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
by Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
by Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
by Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
by Anthropic