From agent-flow
This skill should be used when exploring codebases, finding patterns, searching for code, gathering context, or understanding code structure before planning or implementation.
npx claudepluginhub josix/agent-flow --plugin agent-flowThis skill uses the workspace's default tool permissions.
Use fast, parallel exploration to gather context before planning.
Applies Acme Corporation brand guidelines including colors, fonts, layouts, and messaging to generated PowerPoint, Excel, and PDF documents.
Guides strict Test-Driven Development (TDD): write failing tests first for features, bugfixes, refactors before any production code. Enforces red-green-refactor cycle.
Share bugs, ideas, or general feedback.
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:
| 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