skills/codex-analysis/SKILL.md
Run Codex CLI for deep code analysis and second-opinion reviews. Use when the user explicitly asks for Codex analysis, Codex help, or wants a second opinion from Codex on code, architecture, or debugging questions.
npx skillsauth add regenrek/agent-skills codex-analysisInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Run the Codex CLI to get deep analysis using gpt-5.2-codex with high reasoning effort.
IMPORTANT: This skill MUST spawn subagents for parallel exploration. Always include subagent instructions in the prompt.
Execute this command, replacing {PROMPT} with the user's question or analysis request.
Always append subagent instructions to the prompt:
codex exec -m gpt-5.2-codex \
--config model_reasoning_effort="high" \
--sandbox read-only \
--skip-git-repo-check \
"{PROMPT} Spawn subagents to explore different aspects in parallel."
| Flag | Purpose |
|------|---------|
| -m gpt-5.2-codex | Use gpt-5.2-codex model (spawns subagents for parallel work) |
| --config model_reasoning_effort="high" | Maximum reasoning depth |
| --sandbox read-only | Safe read-only sandbox |
| --skip-git-repo-check | Skip git repository validation |
MANDATORY: Every prompt MUST include instructions to spawn subagents. This enables:
Template suffix to append to every prompt:
"Spawn subagents to explore different aspects in parallel."
User asks: "Use Codex to analyze the authentication flow"
Run (note: subagent spawning is REQUIRED):
codex exec -m gpt-5.2-codex \
--config model_reasoning_effort="high" \
--sandbox read-only \
--skip-git-repo-check \
"Analyze the authentication flow in this codebase. Spawn subagents to explore security issues, improvement opportunities, and best practices in parallel."
User asks: "Get Codex help with performance issues"
Run:
codex exec -m gpt-5.2-codex \
--config model_reasoning_effort="high" \
--sandbox read-only \
--skip-git-repo-check \
"Identify performance bottlenecks in this codebase. Spawn subagents to analyze database queries, API endpoints, and frontend rendering in parallel."
Then summarize findings and offer follow-up actions.
tools
Live-test any Electron desktop app with native-devtools-mcp, Chrome DevTools Protocol, screenshots, OCR, and accessibility tools. Use when the user asks for Electron UI verification, MCP-driven app control, renderer CDP interaction, native desktop automation, screenshots, or OCR-driven checks.
testing
Find, clone, inspect, and summarize high-quality GitHub reference repositories for coding agents. Use when a user asks for GitHub reference projects, examples, prior art, inspiration, implementation patterns, or includes "$search-context" in a coding prompt.
testing
Run or install repo security leak checks with BetterLeaks and Trivy. Use when asked to scan for leaked secrets, vulnerable dependencies, misconfigurations, add secret-leak guardrails, add BetterLeaks, add forbidden-path hooks, or run secleak-check before release.
development
Run a reusable JavaScript supply-chain security baseline with pnpm-first hardening, release-age gating, lifecycle-script controls, exotic dependency checks, CI install checks, and optional incident IOC profiles.