Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

ai-cross-verifier

FreeNo executable scriptsNot checked

Cross-verify Claude-generated plans and code using OpenAI Codex and Google Gemini CLI. Provides code review, plan validation, and comparative analysis. Use…

centminmodby centminmod★ 32 GitHub stars16 installs in other catalogs

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 @filepath syntax (DO NOT use Read tool)

    • Store as VERIFY_FILES array (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
  • Code Snippet: Prompt user to paste code directly

    • Store as VERIFY_CONTENT variable
    • Use when verifying AI-generated code or partial snippets
  • Plan/Text: Prompt user to paste plan/text directly

    • Store as VERIFY_CONTENT variable
    • Use for implementation plans, architectural decisions, documentation

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" or gemini "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
Full SKILL.md on GitHub

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
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

Bash
Read
Write

Bundled files

README.md

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

Compare ai-cross-verifier with