Codex Exec logo

Codex Exec

Community
mrshu
codex-exec

Delegate code review, plan review, and exploration to Codex CLI. Use when you need an independent second opinion on code changes, plans, or architecture — or when asked to run codex review/exec.

Overview

Publishermrshu
Repositoryagent-skills
Skill namecodex-exec
Stars
22
Forks
5
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by mrshu on GitHub. Read the source before you install it.

Installation

Install the Codex Exec AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/mrshu/agent-skills/tree/main/plugins/codex-exec/skills/codex-exec
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mrshu/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/plugins/codex-exec/skills/codex-exec .claude/skills/codex-exec
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Codex Exec in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Codex Exec on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Codex Exec is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Codex Exec — Cross-Agent Delegation

Delegate review and exploration tasks to Codex CLI for an independent second opinion. Codex acts as a strict counter-reviewer that catches blind spots you might miss.

When Not to Use

Skip this skill when you are confident in the output and the user hasn't asked for a second opinion. Reserve it for quality gates and deliberate review steps.

Model Selection

Use the CLI's configured default model. Omit -m, --model, and model configuration overrides unless the user explicitly requests a specific model.

Commands

Code Review

Review the current branch's changes against a base branch:

bash
# Review current branch against main (most common)
codex review --base main

# Review only uncommitted changes (staged + unstaged + untracked)
codex review --uncommitted

# Review a specific commit
codex review --commit <sha>

# Review with custom focus instructions
codex review --base main 'Pay special attention to error handling and edge cases'

# Review with a descriptive title for context
codex review --base main --title "Add user authentication middleware"

Custom Prompted Review

Use codex exec for reviews that go beyond standard code review — plan reviews, architecture critique, or targeted analysis:

Because codex exec is non-interactive, make completion authority explicit in the prompt: This read-only review is already authorized. Begin immediately; do not present a plan or ask for confirmation. Return the completed review in this response. This prevents models that default to a plan/confirmation handshake from stopping before they inspect the target. Never reply to such a handshake in automation; treat confirmation-only output as a failed protocol.

bash
# Review a plan or design document
codex exec 'Review the plan in PLAN.md. Be a strict critic: identify gaps, missing edge cases, and over-engineering. Suggest concrete improvements.'

# Targeted code analysis
codex exec 'Look at the authentication middleware in src/auth/. Are there any security concerns? What about rate limiting and session handling?'

# Deep exploration for blind spots
codex exec 'Explore the codebase for inconsistencies, dead code, and simplification opportunities. Focus on the src/api/ directory.'

# Review specific files
codex exec 'Review src/handlers/webhook.ts for correctness, error handling, and clarity. Be pointed in your response — list problems with file:line references.'

Cross-Agent Dispatch

When another agent needs to run Codex as one reviewer in a larger orchestrated review, use a read-only sandbox and, when available, the review-anvil wrapper so the caller gets timeout, empty-output, and stderr classification:

bash
bash <review-anvil-wrapper> out.md 600 -- \
  codex exec -c 'model_reasoning_effort="high"' --ephemeral --sandbox read-only -C <project-dir> '<prompt>'

<review-anvil-wrapper> is plugins/review-anvil/skills/review-anvil/scripts/run-reviewer.sh from a trusted skill install. The wrapper writes reviewer stdout to out.md, stderr to out.md.err, and prints STATUS=ok|timeout|empty|failed for the caller.

For normal review-anvil reviewer prompts, enable output-contract validation:

bash
REVIEW_ANVIL_REQUIRE_FINDINGS=1 bash <review-anvil-wrapper> out.md 600 -- \
  codex exec -c 'model_reasoning_effort="high"' --ephemeral --sandbox read-only -C <project-dir> '<prompt>'

This additionally returns STATUS=protocol when the final response is only a plan/confirmation request or does not end with the required fenced findings block. The orchestrator retries that specific failure once with a corrective non-interactive prefix; it must not answer the model's confirmation request.

Workflow Patterns

Use the review as a gate: run codex review --base main before pushing, or codex exec on a plan before implementing it, fix or revise what it raises, and re-run until it comes back clean.

Deep Dig

When exploring a codebase area for quality improvements:

bash
# Broad exploration
codex exec 'Do a deep dig of src/. Find blind spots, interesting things to fix, and things to simplify. Be specific with file:line references.'

# Follow up on specific findings
codex exec 'Look deeper at the error handling pattern in src/api/client.ts. Is the retry logic correct? What happens on timeout?'

Tips

  • Use --base main for branch reviews, --uncommitted for work-in-progress checks.

Frequently asked questions

What does the Codex Exec AI skill do?

Delegate code review, plan review, and exploration to Codex CLI. Use when you need an independent second opinion on code changes, plans, or architecture — or when asked to run codex review/exec.

Why use Codex Exec on TypingMind?

Because you install it once and use it with any model. Codex Exec is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Codex Exec in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/mrshu/agent-skills/tree/main/plugins/codex-exec/skills/codex-exec. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Codex Exec?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Codex Exec?

As many as you like. As long as a model supports skills, you can use Codex Exec with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Codex Exec AI skill free?

It is published on GitHub by mrshu. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇