Agent skill

codex-analysis

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.

Stars 37
Forks 4

Install this agent skill to your Project

npx add-skill https://github.com/regenrek/agent-skills/tree/main/skills/codex-analysis

SKILL.md

Codex Analysis

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.

When to Use

  • User asks for "Codex analysis" or "Codex help"
  • User wants a second opinion on code or architecture
  • User needs deep reasoning on a complex problem

Running the Analysis (MUST spawn subagents)

Execute this command, replacing {PROMPT} with the user's question or analysis request.

Always append subagent instructions to the prompt:

bash
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."

Command Parameters

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

Subagent Requirements

MANDATORY: Every prompt MUST include instructions to spawn subagents. This enables:

  • Parallel exploration of different code areas
  • Concurrent analysis of multiple concerns (security, performance, architecture)
  • Faster and more thorough analysis

Template suffix to append to every prompt:

"Spawn subagents to explore different aspects in parallel."

After Running

  1. Summarize the Codex analysis output
  2. Highlight key suggestions and findings
  3. Ask if the user wants to:
    • Implement any suggested changes
    • Get more details on specific points
    • Run additional analysis

Example Usage

User asks: "Use Codex to analyze the authentication flow"

Run (note: subagent spawning is REQUIRED):

bash
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:

bash
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.

Expand your agent's capabilities with these related and highly-rated skills.

regenrek/agent-skills

shadcn-vite-iconify-landing-page

Build, critique, and iterate high-converting marketing or product landing pages using React + Vite + TypeScript + Tailwind and shadcn/ui components, with all icons sourced from Iconify. Use when the user asks for a landing page, sales page, signup page, CRO improvements, above-the-fold vs below-the-fold structure, hero + CTA copy, section order, or wants production-ready shadcn + Vite code.

37 4
Explore
regenrek/agent-skills

security-leak-guardrails

Sets up secret-leak prevention guardrails with forbidden path checks, gitleaks config, CI secret scanning, and dependency updates. Use when hardening repos against credential leaks or when adding gitleaks, trufflehog, git hooks, or security checks.

37 4
Explore
regenrek/agent-skills

homebrew-publish

Publish CLIs/TUIs to Homebrew via a personal tap. Use when asked to create or manage a Homebrew tap repo, generate or update formulae, compute sha256, test installs, or ship new releases for Go, Rust, Node/TypeScript, Python, or prebuilt binaries.

37 4
Explore
regenrek/agent-skills

architecture-ownership

Determine runtime owner, first-fix layer, and canonical long-term module or package owner in layered codebases. Use when placing code across UI vs platform shell vs runtime orchestration vs domain or application vs shared core vs adapter or integration layers, debugging ownership issues, removing duplicate policy paths, or answering "where should this live?" architecture questions.

37 4
Explore
regenrek/agent-skills

go-local-health

Run local Go health checks (tests, coverage, lint) in Go repositories that contain go.mod/go.sum. Use when the user asks to run or interpret local Go test/coverage/lint workflows using tools like lazygotest, gocovsh, tparse, and golangci-lint. Do not use for Rust or non-Go projects.

37 4
Explore
regenrek/agent-skills

codex-sandbox

Create and manage per-task isolated git clones (sandboxes) for Codex CLI sessions, with automatic branch creation and safety hooks that block committing/pushing on main/master. Use when running multiple Codex sessions or parallel tasks and you want to avoid git worktree friction, cwd/branch mixups, or environment collisions.

37 4
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results