Explore

From OutlineDriven/odin-codex-plugin · View interactive version

Explore is an AI agent skill from the GitHub repository OutlineDriven/odin-codex-plugin. Read-only codebase exploration: discovery, structural reading, and emission of architecture/pattern/tooling/dependency summaries. Use to understand existing code, map files, trace function flow, locate symbols, or build pre-implementation context. Uses 1/3/5 Explore-agent escalation scaled to scope.

How to use this skill

Skill file

Explore Command

Read-only codebase orientation. Emit architecture, pattern, tooling, and dependency summaries for a repo-local task. Do NOT write, edit, or commit files.

When to Apply / NOT

Apply:

NOT apply:

Process

  1. Scope — parse the task. Identify files/dirs/concerns. State scope explicitly before dispatching.
  2. Dispatch decision — for multi-file or uncertain tasks: dispatch Explore agent(s) instead of reading directly. Escalation: 1 agent for single-concern known scope; 3 agents for multiple concerns or unknown scope; 5 agents for cross-module or architectural survey. Auto-skip (direct reads allowed) only for single file under 50 LOC.
  3. Discovery — token-efficient flags mandatory:
  1. Synthesis — emit all Required Output sections. No file writes.
  2. Heavy-codebase escape hatch — scope > 50 files: use a codebase-packing tool if available as an internal analysis aid (not handed to the user as output); search the packed output for targeted extraction.

Required Output

Emit all 8 sections. Omit a section only when genuinely not applicable; state why.

Task Understanding

Brief restatement of the task and identified scope boundaries.

Architecture Context

[Module/Layer Name]
- path/to/file.ts:L10-50 — [Purpose] — [Relevance]
- path/to/interface.ts — [Purpose] — [Relevance]

Pattern Context

[Pattern Category]
- path/to/reference.ts — [Pattern description] — [How to apply]

Tooling Context

- Build: [command] — [when to run]
- Test: [command] — [scope/coverage]
- Lint: [command] — [config location]

Dependency Map

Internal:
- module-a -> module-b (reason)

External:
- library-name@version — [usage context]

Critical Files Summary

Prioritized list of files most relevant to the task:

| Priority | File | Purpose | Action Hint |

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

| P0 | path/to/core.ts | Core logic | Modify |

| P1 | path/to/types.ts | Type definitions | Extend |

| P2 | path/to/utils.ts | Helpers | Reference |

Constraints & Considerations

Recommended Next Steps

  1. [First action with specific file reference]
  2. [Second action with specific file reference]

Tool Restrictions

Allowed (read-only): eza, fd, ast-grep (find-only), git grep, rg, bat, tokei, Read, codebase_search, and any available codebase-analysis or codebase-packing MCP tooling

Banned: Edit, Write, mcp__edit__edit_file, git commit, any state-mutating bash command

Anti-Patterns

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.