/plan is used to create a detailed implementation plan before starting actual development.
Normally, when we give an AI agent a task, it may immediately start modifying files.
But in a large project, this can create problems:
- It may misunderstand requirements.
- It may modify the wrong files.
- It may miss important dependencies.
- It may implement an incomplete solution.
The /plan command helps the agent research the project, understand requirements and prepare a plan for review.
Syntax
/plan Your task description
Practical example
Suppose we want to develop a Student Attendance System in Laravel.
Instead of directly asking:
Create a student attendance system.
We use:
/plan Create a student attendance system
using Laravel 12 and Livewire.
Requirements:
- Teachers can mark attendance.
- Students can view attendance.
- Admin can generate monthly reports.
- Prevent duplicate attendance.
- Add role-based permissions.
First analyze the existing project.
Prepare a detailed implementation plan.
Do not modify any files until I approve.
When should we use it?
- Large features.
- Database architecture changes.
- New modules.
- API development.
- Existing project modifications.