Skip to content
Back to skills

Codex Assistant

ASecurity

Run AI-powered tasks using OpenAI Codex CLI. Use when Claude needs to (1) delegate code analysis or generation tasks to Codex, (2) get a second opinion on code changes, (3) perform parallel AI review, or (4) leverage Codex for specific tasks. Triggers on requests like "use codex to...", "run codex", "ask codex", "codex review".

  • 666 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added February 8, 2026
ai-agentsbashapisecuritydocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill codex-assistant --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Codex Assistant?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Codex Assistant
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-codex-assistant/badge)](https://www.skillsdirectory.com/skills/majiayu000-codex-assistant)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: codex-assistant
description: Run AI-powered tasks using OpenAI Codex CLI. Use when Claude needs to (1) delegate code analysis or generation tasks to Codex, (2) get a second opinion on code changes, (3) perform parallel AI review, or (4) leverage Codex for specific tasks. Triggers on requests like "use codex to...", "run codex", "ask codex", "codex review".
---

# Codex Assistant

Execute tasks using OpenAI Codex CLI and analyze results.

## Important Limitations

**Codex runs in read-only sandbox mode.** It cannot:
- Create or modify files
- Execute scripts or commands that write to disk
- Run generated code

**Always ask Codex to output results directly to stdout.** Do not request file creation or modification - instead, ask Codex to print/output the code or results, which Claude can then save if needed.

## Command

```bash
codex exec --model gpt-5.2-codex "PROMPT"
```

## Prompt Format

Structure prompts with three sections:

```
# Role
[Describe the role/persona for the task]

# Context
[Include relevant information:]
- File paths and links to documentation
- Memory files or conversation context
- Additional task-relevant details

# Task
[Clear task description]
[Expected deliverables]
```

## Workflow

1. **Construct prompt** - Build structured prompt with Role, Context, Task
2. **Execute codex** - Run command with the formatted prompt
3. **Analyze output** - Review results for:
   - Completeness of task execution
   - Quality and accuracy of output
   - Issues or recommendations identified
   - Actionable items to address

## Example

```bash
codex exec --model gpt-5.2-codex "# Role
Senior code reviewer with expertise in security and best practices.

# Context
Repository: /path/to/project
Files changed: src/auth.py, src/api.py
Branch: feature/user-auth

# Task
Review changes against develop branch.
Search for security issues, bugs, and suggest improvements.
Output your findings and recommendations to stdout."
```

**Note:** Always phrase tasks to output results rather than create/modify files. For code generation, ask Codex to "print the code" or "output the script" instead of "create a file".

## Output Analysis

After codex completes, evaluate:

- **Findings** - Key issues or insights discovered
- **Recommendations** - Suggested improvements or fixes
- **Action items** - Concrete next steps to implement
- **Quality** - Overall assessment of the analysis

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.