codex-verify
Dispatch an independent Codex verification job directly via `codex exec` Bash call, then retrieve and present results
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Dispatch an independent Codex verification job directly via `codex exec` Bash call, then retrieve and present results
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Author a culture's armor items and swap troop equipment rosters via the generator + validation pipeline. Use when adding/revamping armor. Enforces the canonical-folder + cover-attribute rules.
Give DOTS lords lore-driven skill values and traits via the DOTS SkillSet system. Use when a canonical lord has wrong stats or a culture roster needs a balance pass.
Author or revamp a DOTS culture's armor set, troop tree, and recruitment wiring end-to-end. Use for new cultures or troop-tree revamps. Follows docs/ai-includes/new-culture-authoring.md.
Use when reviewing an external repo or article to adopt practices into DOTS — security-vet first, map novel vs duplicative, port (never install), review, commit your changes.
Structured 4-phase self-debug for failing agent runs (looping, drifting, burning tokens). Capture, diagnose, contained recovery, report. Complements /investigate (which is for code bugs); this skill is for harness/agent failures.
Incrementally fix dotnet build errors with minimal diffs, one error at a time
| name | codex-verify |
| description | Dispatch an independent Codex verification job directly via `codex exec` Bash call, then retrieve and present results |
| argument-hint | [feature-name or file-path] |
Dispatch an independent Codex review via the local codex CLI — Claude calls it directly from this skill (no terminal hand-off to the user). Codex reviews with no shared Claude context: a genuine second opinion.
The feature or area to verify: $ARGUMENTS (if empty, verify all uncommitted changes).
Claude has direct access to Codex via the codex binary (C:\Users\mikew\AppData\Roaming\npm\codex.cmd on Windows, codex on POSIX). Both /codex-verify and /review-codex dispatch from Bash — the user does NOT open a separate terminal. See the matching block in .claude/skills/review-codex/SKILL.md for the full contract; this skill follows the same dispatch model with a smaller, less-prescriptive prompt.
Required pre-flight (once per invocation):
codex login status
Expect Logged in using ChatGPT. If not, stop and tell the user to codex login (interactive browser flow).
Dispatch command:
cd "<repo-root>" && codex exec - < "<prompt-file>" > "<output-file>" 2>&1
run_in_background: true on the Bash tool.docs/reviews/codex-verify-{feature-or-uncommitted}-{date}.md.AGENTS.md automatically.Determine what to verify:
$ARGUMENTS is provided, find files for that feature/path using Glob against Main/Features/**/*$ARGUMENTS* or the literal pathgit diff --name-only and git ls-files --others --exclude-standard to find all changed/new files.cs and .xslt files (Codex reviews code, not XML data)Collect the file list.
Write a focused prompt to docs/reviews/codex-verify-{target}-{date}.prompt.md:
You are reviewing DOTS changes for architectural compliance. AGENTS.md describes your role and the project conventions; honour it.
FILES TO REVIEW: [list from Step 1, one per line]
Focus on (in priority order):
1. Adapter pattern violations (ADR-007) — sealed TaleWorlds types in service classes
2. Thin entry point violations (ADR-002) — entry points over 150 lines with business logic
3. Harmony patch target signatures — verify method signatures exist in installed v1.4.5 DLLs (NOT the decompiled folder, which is v1.4 and may have drifted)
4. Test coverage gaps — services without corresponding test files
5. GameModel override correctness — correct base class, base call patterns
6. Cross-file data flow — declared types/fields/methods without consumers (aspirational scaffolding)
7. Lifecycle correctness — Subscribe/Unsubscribe pairs, OnSessionLaunched/OnGameLoaded entity state matrix
Rate each finding: CRITICAL / HIGH / MEDIUM / LOW
Format: [SEVERITY] file.cs:line -- description -- remediation
Output a structured review with sections: top-line verdict, findings grouped by severity, summary table.
For /review-codex (the heavier adversarial flow), the prompt is much richer with Known Suspects + vanilla decompile targets. This skill is the lightweight version — shorter prompt, faster Codex turnaround.
codex login status -- abort with user message if not logged in.Bash tool call:
command: cd "<repo-root>" && codex exec - < "docs/reviews/codex-verify-{target}-{date}.prompt.md" > "docs/reviews/codex-verify-{target}-{date}.md" 2>&1
run_in_background: true
timeout: 600000
/review-codex).When the background notification arrives, proceed to Step 4 automatically.
Read docs/reviews/codex-verify-{target}-{date}.md. Check:
Error: / panic: / login requiredIf validation fails, surface the exact error and suggest manual fallback (codex exec in a terminal with the same args).
Format the Codex output as:
CODEX VERIFICATION REPORT
==========================
Target: [feature or files]
Model: o4-mini (reasoning: high)
[Codex findings, grouped by severity]
CRITICAL: N
HIGH: N
MEDIUM: N
LOW: N
VERDICT: CLEAN / ISSUES FOUND
If Codex returned ANY confirmed finding (any severity, including LOW), Phase 3e RCA applies before the closing commit. Per .claude/rules/harness-facts.md and feedback_root_cause_mandatory.md — this is not optional, not severity-gated, not "only HIGH." Conflating severity with importance for RCA means we patch LOW symptoms but never extract the systemic lesson — and the same category of bug ships again. The recurring failure: it's already happened repeatedly (Career cooldown review #31, EditorCacheRebuild review #38, scene-scripts CS_Road 2026-05-13 — all the same NaN-gate scope miss).
For EVERY confirmed finding (not just HIGH):
docs/reviews/rca-*.md and ~/.claude/projects/.../memory/feedback_*.md for it), call that out — repeat-offender bugs need stronger preventive action than first-time bugs.Write the result to docs/reviews/rca-<feature>-<YYYY-MM-DD>.md following the format of docs/reviews/rca-quickactions-2026-05-06.md:
This file MUST exist BEFORE the closing commit. The commit message should reference the RCA path.
If the RCA reveals a rule that's already documented but wasn't followed (scope gap or skill body missing prompt), update the rule file or skill body in a follow-up commit. The commit graph should show: review → fixes → RCA → preventive-rule update.
codex CLI is missing or unauthenticated, surface the exact codex login status output and tell the user to run codex login (interactive browser flow). Do not silently fall back to a different verification path.docs/reviews/rca-scene-scripts-cs-road-2026-05-13.md documents that case and why this step now exists in this skill.