No slash command · from agent-flow
Guides efficient codebase exploration using breadth-first, depth-first, or targeted patterns. Helps gather context before planning by running parallel searches and converging quickly.
Ships in agent-flow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use fast, parallel exploration to gather context before planning.
Effective exploration minimizes wasted effort by quickly identifying relevant code, patterns, and conventions. This skill defines exploration patterns, tool selection, and convergence criteria.
Choose the appropriate pattern based on task characteristics.
Use when: Structure is unclear or unfamiliar codebase
Approach:
Example:
Initial: Glob for package.json, setup.py, main entry points
Then: List top-level directories
Then: Read README and key configs
Finally: Focus on relevant subsystems
Use when: Target is known but details are needed
Approach:
Example:
Start: Read specific file mentioned in task
Then: Follow imports in that file
Then: Read imported modules
Finally: Document the dependency tree
Use when: Looking for specific patterns or implementations
Approach:
Example:
Search: Grep for function name or pattern
Filter: Exclude test files if not relevant
Read: Top 3-5 most relevant matches
Expand: Broaden search terms if insufficient
See Search Patterns for detailed pattern guidance.
Match the tool to the search goal.
| Goal | Primary Tool | When to Use |
|---|---|---|
| Orient in unfamiliar codebase | graph_stats + god_nodes | Graph exists; need structural overview |
| Map imports / callers / dependents | get_neighbors | Graph exists; need blast radius |
| Find path between two concepts | shortest_path | Graph exists; tracing connections |
| Find files by name | Glob | Know the filename pattern |
| Find content in files | Grep | Know what text to search for; freshly edited files |
| Read file contents | Read | Need full file context |
| External documentation | WebSearch | Need API docs or external info |
| Fetch specific page | WebFetch | Have URL, need content |
Graph tools first for structural questions; Grep/Read for literal content and freshly edited files. See graphify-usage skill for full decision table.
Use Glob for file discovery:
Project structure: **/*.{ts,tsx}
Config files: **/config.{json,yaml,yml}
Test files: **/*.test.ts, **/*.spec.ts
Entry points: **/index.ts, **/main.ts
Specific component: **/components/**/Button*.tsx
Use Grep for content search:
Function definitions: function\s+handleSubmit
Class definitions: class\s+UserService
Imports: import.*from.*@company/
TODO comments: TODO|FIXME|HACK
Type definitions: interface\s+User|type\s+User
Effective exploration often chains tools:
1. Glob: Find all TypeScript files
2. Grep: Search for specific pattern in those files
3. Read: Examine the most relevant matches
Maximize exploration efficiency with parallel searches.
Finding a feature implementation:
Parallel:
- Grep: "featureName" in source files
- Grep: "featureName" in test files
- Glob: files with "feature" in name
- Grep: related config/constants
Understanding a module:
Parallel:
- Read: module index/main file
- Grep: imports of this module
- Glob: test files for this module
- Read: README in module directory
Gather sufficient context without over-reading.
Before concluding exploration, verify:
When the question is about runtime behaviour (a setting seems ignored, something is slow or failing), code shows what should happen, not what did. Read perception for the observation surfaces to check (effective config, plans, metrics, logs, history), and report any surface you couldn't reach so the orchestrator can ask the user for access.
| Priority | Context Type | When Essential |
|---|---|---|
| High | Direct implementation files | Always |
| High | Related test files | When modifying behavior |
| Medium | Type definitions | When working with types |
| Medium | Configuration files | When behavior is configurable |
| Low | Documentation files | When conventions unclear |
| Low | Build configuration | When build issues possible |
Skim for structure:
Deep read for details:
Know when exploration is complete.
| Task Complexity | Exploration Depth | Time Budget |
|---|---|---|
| Simple fix | 1-3 files | 2-5 minutes |
| Feature addition | 5-10 files | 5-10 minutes |
| Refactoring | 10-20 files | 10-15 minutes |
| Architecture change | 20+ files | 15-30 minutes |
See Exploration Depth for complexity guidelines.
1. Identify likely directories and patterns
2. Run parallel searches for patterns
3. Read most relevant files for conventions
4. Summarize findings for handoff
5. Stop when context sufficient
Structural / blast-radius / imports? -> Graph tools (get_neighbors, shortest_path)
Orientation in unfamiliar code? -> graph_stats + god_nodes
Need files? -> Glob
Need content (literal/freshly edited)? -> Grep
Need detail? -> Read
Need external? -> WebSearch/WebFetch
Can I answer: What files to modify?
Can I answer: What patterns to follow?
Can I answer: What dependencies exist?
If yes to all -> Stop exploring
If no to any -> Continue with targeted search
/orchestrate --use-deep-dive targeted Phase 1 exploration/orchestrate dispatchesreferences/perception.md on demand)examples/exploration-scenarios.md (opens in a new tab)references/context-preambles.md (opens in a new tab)references/deep-dive-patterns.md (opens in a new tab)references/deep-dive-reuse.md (opens in a new tab)references/exploration-depth.md (opens in a new tab)references/search-patterns.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub josix/agent-flow --plugin agent-flow11 skills in this plugin
/agent-behavior-constraintsThis skill should be used when handling agent model selection, tool access permissions, behavioral guardrails, MCP tool preferences, or any question about what agents can/cannot do./agentsview-usageSearch prior session history to recall how similar work was handled before. Use when you want to leverage a past approach, check prior experience on a topic, answer "how was this handled before", or cross-verify current handling against precedent from earlier sessions./evidence-driven-workGround work in what the system actually did, then tell people about it so they get it at a glance. Use when investigating why something is slow, failing, or ignoring a setting; choosing what to measure, which tool or view can show it, or what access to ask the user for; a hypothesis or estimate was just disproven; judging whether a change is worth making or weighing a proposed approach; verifying a change after it runs in the target environment; citing numbers, logs, or screenshots as evidence; writing a report, PR or ticket description, announcement, or completion summary. Covers observation surfaces across domains, evidence standards, argument structure, narrative reports (background, change, purpose, impact), explaining terms, and clarity over decoration./explainer-design-systemTurn any codebase into a beautiful, interactive single-page HTML course that teaches how the code works to non-technical people. Use this skill whenever someone wants to create an interactive course, tutorial, or educational walkthrough from a codebase or project. Also trigger when users mention 'turn this into a course,' 'explain this codebase interactively,' 'teach this code,' 'interactive tutorial from code,' 'codebase walkthrough,' 'learn from this codebase,' or 'make a course from this project.' This skill produces a stunning, self-contained HTML file with scroll-based navigation, animated visualizations, embedded quizzes, and code-with-plain-English side-by-side translations./graphify-usageThis skill should be used when querying the graphify knowledge graph for structural codebase information, choosing between graph tools and grep, or interpreting graph query results./personal-kb-usageThis skill should be used when querying the user's personal knowledge base (cross-project personal knowledge graph) for prior learnings, notes, or decisions that apply across projects.