Goal: Use Plan Agent to decompose large features into manageable steps.
Scenario: Add user authentication to the app.
- Open the Copilot Chat panel
- In the Copilot Chat panel, use the mode dropdown to select Plan
- Enter this prompt:
I want to add user authentication to this app. Users should be able to:
- Sign up with email and password
- Log in and log out
- See personalized favorite landmarks
Create a plan for implementing this feature.
-
Copilot will generate a step-by-step implementation plan:
- Create User model and authentication service
- Add login/signup views
- Implement session management
- Update data models to associate favorites with users
- Add authentication state to the app
-
Review the plan and ask for clarification if needed
-
Execute the plan step by step, or ask Copilot to implement specific steps
- Breaks down complex features into actionable steps
- Helps you understand the architecture before coding
- Identifies dependencies and potential issues early
- Provides a roadmap you can follow incrementally
You've learned how to:
- Use Plan mode to decompose complex features
- Review and refine AI-generated plans
- Execute plans step by step