From sd0x-dev-flow
Explains complex code via Codex MCP, tracing logic, data flow, and key concepts. For onboarding unfamiliar code or understanding execution. Structured output at brief/normal/deep depths.
npx claudepluginhub sd0xdev/sd0x-dev-flow --plugin sd0x-dev-flowThis skill is limited to using the following tools:
- Keywords: explain code, what does this do, how does this work, code walkthrough
Explains any code file in plain English at beginner, intermediate, or expert levels. Useful for understanding unfamiliar, legacy, or reviewed code in any language.
Explains code for project newcomers with structured coverage of purpose, rationale, connections, design decisions, and non-obvious details. Use for 'explain this', 'what does this do', or onboarding.
Provides deep explanations of complex code, files, directories, or concepts. Routes to language-specific expert agents, uses ast-grep for structural search, tokei for stats, and generates Mermaid diagrams.
Share bugs, ideas, or general feedback.
codex-code-review)bug-fix or issue-analyze)code-explore)Read target → [Collect context] → Codex explain → Output explanation
Read file content. If --lines specified, extract only that range.
Use mcp__codex__codex with explanation prompt. See references/codex-prompt-explain.md.
Config: sandbox: 'read-only', approval-policy: 'never'
| Level | Description |
|---|---|
| brief | One-sentence summary |
| normal | Functional overview + execution flow + key concepts (default) |
| deep | + Design patterns + complexity + issues + dependencies |
## Code Explanation: <target>
- **Depth**: brief / normal / deep
- **Summary**: <functional overview>
- **Execution flow**: <key paths>
- **Key concepts**: <patterns, abstractions>
references/codex-prompt-explain.mdInput: /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