agentleFS
morixxfoxdatamorixxfoxdata/claude-code-template/.claude/skills/codex-system/SKILL.md

codex-system

Skill0 starsChanged 9 months agoMITView on GitHub

Codex CLI handles planning, design, and complex code implementation. Use for: architecture design, implementation planning, complex algorithms, debugging (root cause analysis), trade-off evaluation, code review. External research is NOT Codex's job — use Gemini CLI (Google Search grounding) instead. Explicit triggers: "plan", "design", "architecture", "think deeper", "analyze", "debug", "complex", "optimize".

3 other projects use a version of this, 2 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. 1 is common, 0 are distinctive, and 0 are very specific to this project.

  • 1

    Common

    Most of the 3 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Common:

    Ask Codex in English

    line 148

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Codex System — Planning, Design & Complex Implementation

Codex CLI handles planning, design, and complex code implementation.

Detailed rules: .claude/rules/codex-delegation.md

Two Roles of Codex

1. Planning & Design

  • Architecture design, module composition
  • Implementation plan creation (step breakdown, dependency ordering)
  • Trade-off evaluation, technology selection
  • Code review (quality and correctness analysis)

2. Complex Implementation

  • Complex algorithms, optimization
  • Debugging with unknown root causes
  • Advanced refactoring
  • Multi-step implementation tasks

When to Consult (MUST)

SituationTrigger Examples
Planning"Create a plan" "Architecture"
Design decisions"How to design?"
Complex implementation"How to implement?" "How to build?"
Debugging"Why doesn't this work?" "Error" "Debug"
Trade-off analysis"Which is better?" "Compare"
Refactoring"Refactor" "Simplify"
Code review"Review" "Check"

When NOT to Consult

  • Simple file edits, typo fixes
  • Tasks that simply follow explicit user instructions
  • git commit, test execution, lint
  • Codebase analysis → Gemini CLI (1M context for large-scale analysis)
  • External information retrieval → Gemini CLI (Google Search grounding)
  • Multimodal processing → Gemini CLI (PDF/video/audio/images)

How to Consult

Subagent Pattern (Recommended)

Task tool parameters:
- subagent_type: "general-purpose"
- run_in_background: true (optional)
- prompt: |
    Consult Codex about: {topic}

    codex exec --model gpt-5.3-codex --sandbox read-only --full-auto "
    {question for Codex}
    " 2>/dev/null

    Return CONCISE summary (key recommendation + rationale).

Direct Call (responses up to ~50 lines)

codex exec --model gpt-5.3-codex --sandbox read-only --full-auto "Brief question" 2>/dev/null

Having Codex Implement Code

codex exec --model gpt-5.3-codex --sandbox workspace-write --full-auto "
Implement: {task description}
Requirements: {requirements}
Files: {file paths}
" 2>/dev/null

Sandbox Modes

ModeUse Case
read-onlyDesign, review, debug analysis
workspace-writeImplementation, fixes, refactoring

Task Templates

Implementation Planning

codex exec --model gpt-5.3-codex --sandbox read-only --full-auto "
Create an implementation plan for: {feature}

Context: {relevant architecture/code}

Provide:
1. Step-by-step plan with dependencies
2. Files to create/modify
3. Key design decisions
4. Risks and mitigations
" 2>/dev/null

Design Review

codex exec --model gpt-5.3-codex --sandbox read-only --full-auto "
Review this design approach for: {feature}

Context: {relevant code or architecture}

Evaluate:
1. Is this approach sound?
2. Alternative approaches?
3. Potential issues?
4. Recommendations?
" 2>/dev/null

Debug Analysis

codex exec --model gpt-5.3-codex --sandbox read-only --full-auto "
Debug this issue:

Error: {error message}
Code: {relevant code}
Context: {what was happening}

Analyze root cause and suggest fixes.
" 2>/dev/null

Language Protocol

  1. Ask Codex in English
  2. Receive response in English
  3. Execute based on advice
  4. Report to user in the user's language

Why Codex?

  • Deep reasoning: Complex analysis and problem-solving
  • Planning expertise: Architecture and implementation strategies
  • Code mastery: Complex algorithms, optimization, debugging
  • Consistency: Same project context via context-loader skill

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.