Use scout agent to gather information and then proceed with the task
Uses scout agent to research information and then executes related tasks based on findings
/plugin marketplace add dvlin-dev/claude-code-marketplace/plugin install d@wegic-toolsThis command explicitly uses the scout agent to gather information first, then proceeds with the next steps based on the findings.
First, clearly understand what the user wants to accomplish. The user's request typically follows the pattern:
Break down the request into two parts:
Use the Task tool to invoke the d:scout agent with a detailed research prompt:
Scout Prompt Template:
Please investigate [specific topic/area] and provide comprehensive information about:
1. [Research question 1]
2. [Research question 2]
3. [Research question 3]
...
Context:
- Working directory: [provide working directory]
- Known files/areas: [list any known context to avoid duplication]
- Specific focus: [what specifically should this scout investigate]
Please provide your findings in the structured format with:
- Research Summary
- Key Findings (with file paths and line numbers)
- Detailed Analysis
- Recommendations
- Sources
Important:
After the scout agent returns its findings:
Based on the scout's findings, proceed with the action phase:
After completing the action phase, provide the user with:
User: Use scout to research authentication patterns in the codebase and then implement JWT token refresh
Process:
1. Scout investigates: auth patterns, token handling, existing JWT usage
2. Action: Implement JWT refresh based on discovered patterns
3. Summary: Show what was found and what was implemented
User: Gather information about the API endpoints and create documentation
Process:
1. Scout investigates: API route definitions, handler functions, request/response formats
2. Action: Create API documentation based on findings
3. Summary: Show discovered endpoints and documentation created
User: Use scout to understand the caching system and fix the cache invalidation bug
Process:
1. Scout investigates: cache implementation, invalidation logic, related bug reports
2. Action: Fix the identified bug based on understanding from scout
3. Summary: Show the problem found and the fix applied