Codex explain

From sd0xdev/sd0x-dev-flow · View interactive version

Codex explain is an AI agent skill from the GitHub repository sd0xdev/sd0x-dev-flow. Explain complex code via Codex exec. Use when: understanding complex logic, tracing data flow, onboarding to unfamiliar code. Not for: code review (use codex-code-review), exploration (use code-explore). Output: structured explanation at chosen depth.

How to use this skill

Skill file

Codex Explain Skill

Trigger

When NOT to Use

Workflow

Read target → [Collect context] → Codex explain → Output explanation

Step 1: Read Target File

Read file content. If --lines specified, extract only that range.

Step 2: Codex Explanation

Dispatch per @skills/codex-code-review/references/codex-transport.md § Start with the explanation prompt. See references/codex-prompt-explain.md.

Depth Levels

| Level | Description |

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

| brief | One-sentence summary |

| normal | Functional overview + execution flow + key concepts (default) |

| deep | + Design patterns + complexity + issues + dependencies |

Output

## Code Explanation: <target>
- **Depth**: brief / normal / deep
- **Summary**: <functional overview>
- **Execution flow**: <key paths>
- **Key concepts**: <patterns, abstractions>

Verification

References

Examples

Input: /codex-explain src/service/order/order.service.ts
Action: Read file → Codex explain (normal) → Functional summary + detailed explanation

Input: /codex-explain src/service/xxx.ts --depth deep
Action: Read file → Codex explain (deep) → Patterns + complexity + issues

Input: /codex-explain src/xxx.ts --lines 50-100
Action: Read lines 50-100 → Codex explain → Focused explanation
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.