Plan and research implementation for: $ARGUMENTS
Launch TWO researcher agents simultaneously in a single message:
Agent 1 - Codebase Research: Use Task tool with subagent_type="researcher" with this prompt: "Explore this codebase to understand how to implement: $ARGUMENTS
Research:
- Check docs/ directory for relevant documentation files
- Existing patterns, components, and utilities relevant to this task
- Files that will need modification or serve as references
- Current conventions and best practices in this codebase
- Architectural constraints or considerations
Return a concise summary with:
- Relevant documentation from docs/ if found
- Related codebase parts with file:line references
- Best practices observed in existing code
- Key files and steps to consider for implementation"
Agent 2 - External Research: Use Task tool with subagent_type="researcher" with this prompt: "Research external best practices for implementing: $ARGUMENTS
Use Context7 for library/framework documentation or web search for general best practices, as appropriate for the task. Find:
- Current industry best practices for this type of feature
- Relevant library documentation and patterns
- Common approaches and implementation strategies
Return a concise summary of:
- Best practices and recommended approach
- Relevant documentation or examples
- Key technical considerations"
After both research agents complete, launch an architect agent using Task tool with subagent_type="architect". Provide:
- Original task: $ARGUMENTS
- Codebase research results
- External research results
Instruct architect to write a markdown implementation plan in the project's plans/ directory (create if needed). The plan filename should be kebab-case based on the feature name.
Plan must include:
- Brief Summary - Short overview of what will be built
- User Actions Required - Manual steps needed (dependencies, env vars, external setup)
- File Change Diagram - ASCII or markdown representation of files to create/modify
- Implementation Phases - Detailed step-by-step instructions in logical phases
Plan must NOT include:
- Timelines or estimates
- Future considerations
- Alternative suggestions
- Possible improvements
Write only the single best definitive implementation approach.
Report the plan file path to the user when complete.
Prerequisites:
~/.claude/commands/p.mdresearcher- Read-only agent with Context7 and web search accessarchitect- Write-enabled agent specialized to your project's tech stackdocs/directory with relevant documentation