/d3nexus:cross-model-reviewfrom d3nexus
Reviews implemented code, commits, and diffs using external frontier models (Claude CLI, Codex CLI, Antigravity CLI, Kiro CLI) or local Ollama models with evidence-grounded triage.
Ships in d3nexus. 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.
Read when SKILL.md points to them.
Cross-Model Review conducts Shift-Right independent code reviews on implemented software commits and diffs using external frontier models (Claude CLI, Codex CLI, Antigravity CLI, Kiro CLI) or local models (Ollama).
Operating on the principle of Shift-Right Verification, it catches code quality issues, missing test coverage, subtle concurrency regressions, architectural drift, and spec deviations before code is merged to main.
Announce at start: "I'm using the cross-model-review skill to conduct an independent code review."
Invoked automatically after all tasks of an epic are implemented and the Pre-Review Gate (audit_epic.py, BDD traceability, @quality_check --profile pr) returns PASS.
dev-implementation upon Pre-Review Gate PASS (zero intermediate confirmation pauses). At round 1 the runner refuses a SHA without a passing pr or epic receipt in build/quality/gate4_receipt.json; pass --no-receipt-check for a standalone review..devtool/epic/<epic_dir>/.--auto-quota or explicit --cli following shared priority Claude -> Codex -> Kiro -> Argon from /d3nexus:dev-config review, with .devtool/review_config.json read-only fallback):
python3 skills/dev-implementation/resources/scripts/run_external_review.py run \
--epic-dir <epic_dir> --base <base_branch> [--auto-quota | --cli <claude|codex|kiro|agy> [--model <model>]]
python3 skills/dev-implementation/resources/scripts/run_external_review.py run \
--epic-dir <epic_dir> --base <base_branch> --cli ollama --model <model>
.devtool/epic/<epic_dir>/review_results.md (with - **CLI**: and - **Profile**: metadata); non-verdict external CLI attempts log only to git-ignored build/reviews/.Invoked on-demand to review a feature branch, pull request diff, or specific commit range without requiring an epic directory.
/cross-model-review --base <base> [--commits <range>] [--auto-quota | --cli <claude|codex|ollama|kiro|agy> [--model <model>]].--base (or --commits <range>).python3 skills/dev-implementation/resources/scripts/run_external_review.py run \
--base <base_branch> [--commits <range>] [--auto-quota | --cli <claude|codex|kiro|agy> [--model <model>]]
build/ (git-ignored) for live inspection.review_results.md is created.Clean Working Tree & Fast Mechanical Pre-Checks (< 5s, 0 Credits on Failure):
commit or stash your changes before a review). Bookkeeping paths in scripts/_bookkeeping_paths.py (.devtool/state/, sibling .devtool/epic/<other>/, quota_dashboard.html, a window.title-only .vscode/settings.json edit) never count; the Gate 4 clean-tree check uses the same list.run_external_review.py runs fast mechanical pre-checks:
max_cross_model_review_passes, default 3): Refuses a round beyond the resolved max_cross_model_review_passes limit (configured via /d3nexus:dev-config limits --cross-model-review N, or --max-rounds N) unless --force is passed ([PRECONDITION BLOCKED] — Max review rounds (<N>) reached).audit_epic.py): Including the Anti-Stub Enforcer (! git grep -n -E "def .+_stub\(|raise NotImplementedError|# STUB" src/)..agents/quality/python-quality.json is present): anti_stub, importlinter_coverage (verify_importlinter_coverage.py), and self_probe (pre_review_self_probe.py), plus Blast-Radius Scoped Integration results: and check_bdd_traceability.py tests --results.Nested (provider, profile) Candidate Exhaustion, 3-Round Convergence Funnel & Shared Context:
Claude -> Codex -> Kiro -> Argon): Configured via layered /d3nexus:dev-config review and /d3nexus:dev-config limits (CLI flags > .agents/config/personas.json > $REAL_HOME/.d3nexus/personas.json > .devtool/review_config.json read-only fallback > scripts/personas.default.json; defaults: provider_priority: ["claude", "codex", "kiro", "agy"], max_cross_model_review_passes: 3). Runtime last_used_provider is isolated in .devtool/state/review_runtime.json without mutating .devtool/review_config.json. run_external_review.py walks candidates as nested (provider, profile) loops — resolved provider_priority outer (--auto-quota) or a single targeted provider (--cli <provider> or sticky default; --model requires single-provider mode and is rejected with --auto-quota), and provider profiles inner (default for claude/codex/kiro, or leased agy pool profiles from agy_profile_pool.py ordered by max_headroom in the model's exact quota bucket). Pre-launch checks enforce review.quota_thresholds (defaults: Claude/Codex 5H >= 15% AND 7D > 2%; Kiro Monthly Credits >= 3% AND >= 15.0 credits; agy model entitlement plus model-bucket matching across argonWeekly >= 10% [plus gemini5h >= 15% when sharedPool], gemini5h >= 15% AND geminiWeekly > 2%, or third-party claude5h >= 15% AND claudeWeekly > 2%). Runtime quota, auth, disabled-account, or unentitled-model failures advance to the next (provider, profile) pair without writing to review_results.md. Rounds are recorded only when a valid verdict is produced (capturing - **CLI**: <provider> and - **Profile**: <profile>). If every (provider, profile) candidate is exhausted, run_external_review.py exits 3 (EXIT_CANDIDATES_EXHAUSTED) with a per-pair ledger; checkpoint quota_low or model_unavailable, record --pending-decision (decision-kind quota or blocker), and stop without running triage.Scope: full): Full audit of base...HEAD across touched modules (enforcing the Exhaustive Per-File Pass anti-drip-feed rule).Scope: delta): Verifies fixed in <sha> items and scopes diff to Round1_SHA..Round2_SHA; prohibits new Minor findings on untouched code.Scope: convergence): Strict Blocker-Only Convergence Mode (incomplete fixes or new Critical/Important regressions in prev_sha..curr_sha)..devtool/epic/<epic_dir>/review_results.md serves as the persistent Shared Context SSOT across rounds (Earlier Rounds Shared Context Ledger). delta_round_context() injects the Universal Anti-Ping-Pong Guardrail (both single-model and mixed-model), the Previously Fixed Locations Registry (Verify-Then-Close), and Diff-Hunk Isolation on fixed files. See review-triage.md for the complete 4-strategy specification.--timeout default 1800s); any working-tree mutation discards the round immediately.Follow review-triage.md and the role matrix in orchestration-roles.md. In AUTO MODE (both lifecycle_runner.py AND interactive sessions where Gate 2 chose Triển khai (tự động)), run the risk-routed loop with zero confirmation pauses between rounds (_can_fast_track_code_findings -> _apply_code_fixes, else _draft_fix_plan dispatching the Role 2.1 fix-planner; halt ONLY on ESCALATE, CIRCUIT_BREAKER_HALT, or model/quota stops). Before each fix round run python3 scripts/dev_config.py quota-check; exit 2 means write --checkpoint quota_low, record a quota pending decision, and stop.
Run & Triage (Role 2.2 Orchestrator):
run_external_review.py run (stopping immediately with --pending-decision if exit 3 reports all (provider, profile) candidates exhausted or exit 2 reports a pre-verdict failure); once a completed verdict round is written (exit 0 or exit 1), commit review_results.md, run triage, and inspect ## Auto-Triage Gate:
python3 skills/dev-implementation/resources/scripts/run_external_review.py check --epic-dir <epic_dir>
python3 skills/dev-implementation/resources/scripts/run_external_review.py triage --epic-dir <epic_dir>
Minor Deferral (§4.4): For Minor code-review findings targeting immutable .devtool/epic/<epic_dir>/ artefacts, run_external_review.py triage pre-fills the sole machine-recordable non-action terminal decision deferred: out-of-scope epic doc (§4.4) and auto-defers them into AUTO_PASS_CLEAN (never valid for Critical/Important blockers or ordinary source-file findings).src/ / tests/ and never run pytest/ruff/mypy in the main session.Valid with severity Important or Minor (a Critical finding is always high risk) and the triage contains no escalation marker (shared-contracts, CRITICAL_CONFLICT, SHARED_CONTRACT_CONFLICT, Debatable, ambiguous, architectural state transition, trade-off, Not shown, False positive), or a Gate 4 failure is the first failure of that check: dispatch a review-fixer in fast-track. High risk: any Critical finding, any escalation marker, or the same Gate 4 check failing twice in a row: dispatch a fix-planner. The Orchestrator never rules on fix plans.fix-planner (Role 2.1, high risk only) — --mode read-only on the ai_architect_reviewer binding (python3 scripts/dev_config.py resolve ai_architect_reviewer --format argv --mode read-only). It verifies the findings against code, the approved HLD, bdd_scenarios.md (legacy bdd_scenarios.en.md) and Decisions Already Made, is strictly read-only (edits no files), classifies each finding against the five halt criteria (CRITICAL_CONFLICT, Debatable/Not shown, SHARED_CONTRACT_CONFLICT, FIX_LOOP, MAX_ROUNDS_CRITICAL_REMAINING) and returns PLANNED or ESCALATE with plan_markdown (Orchestrator writes and commits fix_plan_round<N>.md). On ESCALATE the Orchestrator records --pending-decision, renders the Top 3 Highest-Risk Findings, and stops for Role 1.0.
review-fixer (Role 2.3) — dispatched for AUTO_FIX_ELIGIBLE, AUTO_PASS_FINAL_MINOR_SWEEP, or AUTO_PASS_FINAL_SWEEP on the programmer binding through python3 scripts/dev_config.py dispatch --persona programmer --mode write --prompt-file <file> --cwd <worktree> --log <log> --epic <slug> (never a lighter in-runtime substitute such as invoke_subagent Model="flash"; no automatic fallback, no retry on a model or quota failure: checkpoint model_unavailable, record a blocker, stop):
fast-track / apply-plan: The fixer applies code/test fixes (emitting --phase fixing; apply-plan follows a PLANNED plan exactly), runs Tier 1 scoped tests only (--phase verifying: uv run pytest <changed_test_files> -n auto --timeout=30 -q --tb=short + fast static checks; repo-wide pytest and tests/e2e/ forbidden), commits [<EPIC_NAME>] Fix <what>, records fixed in <sha> in review_results.md, commits [<EPIC_NAME>] Record review decisions for round <n>, and returns the review-fixer JSON summary. Write --checkpoint subagent_returned after each subagent return.git diff --name-only <pre_sha>..HEAD; any path under shared-contracts/ or epic design docs halts with CRITICAL_CONFLICT (never auto-revert); other unexpected files go into the Gate 5 executive report. Intermediate fix rounds remain Tier 1 scoped only; Gate 4 convergence verification runs once all rounds converge (step 4 below).CIRCUIT_BREAKER_HALT): Stop immediately and record python3 scripts/resume_context.py --pending-decision "Resolve Cross-Model Review blocker (<reason>)" --decision-kind blocker --epic <epic_slug> on CRITICAL_CONFLICT, Debatable/Not shown, SHARED_CONTRACT_CONFLICT, FIX_LOOP, MAX_ROUNDS_CRITICAL_REMAINING, or a fix-planner ESCALATE:
Cross-Model Review Triage: Round <N> (<CLI>)
• Candidate SHA: <commit_sha>
• Reviewer: <CLI> ( <model> )
• Profile: <profile>
• Thinking Level: <Light | Low | Medium | High | Extra High | None>
• Verdict: <VERDICT> (<count> <Severity> findings)
Final Convergence Gate & Stage 4 Handoff:
AUTO_PASS_CLEAN, AUTO_PASS_FINAL_MINOR_SWEEP, or AUTO_PASS_FINAL_SWEEP with 0 Critical findings):
< 2s): When only allowed review/ledger/docs metadata (review_results.md, ledgers, docs/) changed since verified_code_sha on a certified gate4_complete=true receipt and git status --porcelain -uall is clean, verify run_external_review.py check --epic-dir <epic_dir> and audit_epic.py, then run python3 skills/quality_check/resources/scripts/verify_polyglot_registry.py --rebind-if-code-unchanged --profile epic --base-ref <base_branch> to re-bind build/quality/gate4_receipt.json to HEAD without re-running full Gate 4.verified_code_sha (or --rebind-if-code-unchanged returns REBIND_INELIGIBLE), the Orchestrator dispatches a fresh gate4-verifier (not the round's fixer) to run full Gate 4 machine acceptance (full regression suite, tests/e2e/, audit_epic.py, @quality_check --profile epic, and --mark-gate4-complete) on the latest candidate SHA. It accepts PASS only when candidate_sha == git rev-parse HEAD, the tree is clean, and the @quality_check report is bound to that SHA.resume_context.py --gate 4) and records python3 scripts/resume_context.py --state --epic <epic_slug> --status "Stage 4: Awaiting Finish" and python3 scripts/resume_context.py --pending-decision "Review Gate 5 executive report and choose Finish strategy" --decision-kind gate_5 --epic <epic_slug>, emits python3 scripts/resume_context.py --emit-prompt finish --epic <epic_slug>, renders ## Top 3 Highest-Risk Findings (Executive Report), and stops calling tools ONCE with the unified Gate 5 + /finishing-a-development-branch Finish menu (1. Merge locally, 2. Push & PR, 3. Keep as-is).Scoped Tests Only During Intermediate Fix Rounds (Round 1, Round 2...):
ruff, mypy, lint-imports, AST invariants) and explicitly targeted test files that directly cover modified modules:
uv run pytest <explicit_test_file_1.py> <explicit_test_file_2.py>pytest discoveries (even with -m "not slow..."), do NOT run tests/e2e/ browser suites, and do NOT pipe unfiltered repo-wide test runs into | tail (which hides hanging browser/SSE sockets).quality_check artifact regeneration strictly for the Final Convergence Gate after all code findings are resolved.Zero-Tolerance Anti-Evasion Rules (No Shortcut Fixes):
pyproject.toml, and never resolve a stale quality report finding by simply deleting the report without regenerating it. If uv.lock is blocked by task scope rules, explicitly add uv.lock to the task's Allowed files and run uv lock.playwright is added or upgraded in pyproject.toml / uv.lock, immediately run uv run playwright install chromium before invoking any browser E2E check.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub danhdue/ai-agent-tools --plugin d3nexus72 skills in this plugin
/android-api-integrationGenerates a standardized Network Module, API Interface, Remote Data Source, Repository, UseCase, Models, and ViewModel updates for Android using the Hybrid Network Architecture and MVI Pattern./android-quality-checkRead-only Android quality assurance provider implementing the common quality contract. Executes project-configured Gradle, Spotless, Detekt, and Konsist capabilities from .agents/quality/android-quality.json, enforces BCV and architecture policies, and outputs structured results bound to repository SHA./android-ui-auditAudits Jetpack Compose and Android UI code for recomposition stability, state hoisting, Material3 design system adherence, and modifier best practices.Other plugins' skills for the same job