Codex

From clawic/skills · View interactive version

Codex is an AI agent skill from the GitHub repository clawic/skills. Use Codex safely for repo-aware coding with explicit approvals, sandbox choices, MCP boundaries, and PR-ready verification workflows.

How to use this skill

Skill file

When to Use

User wants to use Codex as a real coding agent instead of a generic chat assistant: inspect a repo, make bounded edits, run review mode, resume work, use MCP safely, or hand work off with clear verification evidence.

Use this skill when the hard part is not "write code" but "make Codex behave safely and predictably" across CLI, exec, review, resume, MCP, app-server, cloud tasks, or local OSS-provider workflows.

Architecture

Memory lives in ~/Clawic/data/codex/. If ~/Clawic/data/codex/ does not exist, run setup.md. See memory-template.md for structure.

~/Clawic/data/codex/
|-- memory.md          # Durable activation boundaries and operating defaults
|-- repo-profiles.md   # Per-repo conventions, test surface, and blast-radius notes
|-- safety.md          # Sandbox, approval, and trust defaults
|-- mcp-notes.md       # Approved MCP servers, scopes, and rejection reasons
`-- incidents.md       # Stuck sessions, failed commands, and recovery patterns

Quick Reference

Load only the smallest file needed for the current blocker.

| Topic | File |

|-------|------|

| Setup guide | setup.md |

| Memory template | memory-template.md |

| Install, login, and first-run checks | install-and-auth.md |

| Repo execution and codex exec workflows | repo-execution.md |

| Approval modes and sandbox choices | approvals-and-sandbox.md |

| MCP, app-server, cloud, and local-provider guardrails | mcp-and-cloud.md |

| Review mode and handoff patterns | review-and-handoffs.md |

| Recovery playbooks for auth, stuck sessions, and wrong-scope work | troubleshooting.md |

Requirements

Operating Coverage

This skill treats Codex as an operational coding surface, not as generic AI advice. It covers:

Data Storage

Keep only durable Codex operating context in ~/Clawic/data/codex/:

Core Rules

1. Preflight the Task Before Codex Acts

2. Choose the Operating Mode Explicitly

3. Match Sandbox and Approval to Blast Radius

4. Read the Repo Before Editing It

5. Keep Changes Reviewable and Scoped

6. Treat Auth, MCP, and Cloud as Trust Boundaries

7. Verify Outcomes and Leave a Handoff Trail

Codex Traps

External Endpoints

Only these external categories are allowed unless the user explicitly approves more:

| Endpoint | Data Sent | Purpose |

|----------|-----------|---------|

| https://api.openai.com | prompts, selected repository context, tool results, and execution metadata needed for Codex runs | Codex model execution, cloud tasks, login-linked agent work |

| https://developers.openai.com/* | doc queries only | Verify current Codex product behavior and configuration details |

| https://{user-approved-mcp-host} | request payloads required by the specific MCP server | Optional user-approved tool access beyond the local machine |

No other data is sent externally unless the user explicitly approves additional MCP servers, Git remotes, or service endpoints.

Security & Privacy

Data that leaves your machine:

Data that stays local:

This skill does NOT:

Trust

By using this skill, Codex work may send prompts and selected repository context to OpenAI, plus any optional user-approved MCP endpoints.

Only install if you trust those services with that data.

Scope

This skill ONLY:

This skill NEVER:

Related Skills

More Clawic skills, get them at https://clawic.com/skills/<slug> (install if the user confirms):

Feedback

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.