The Plan Command is an agentic workflow that helps break down complex issues or discussions into manageable, actionable sub-tasks for GitHub Copilot agents.
Warning
GitHub Agentic Workflows are a research demonstrator, and these workflows are demonstrator samples only. They are not intended for production use. Use at your own risk.
When you comment /plan on an issue or discussion, this workflow analyzes the content and automatically creates a series of well-structured sub-issues that:
- Break down complex work into smaller, focused tasks
- Provide clear context and acceptance criteria
- Are properly sequenced with dependencies considered
- Can be completed independently by GitHub Copilot agents
- In an Issue: Comment
/planto break down the issue into sub-tasks - In a Discussion: Comment
/planin the "Ideas" category to convert the discussion into actionable issues
The workflow will:
- Analyze the issue/discussion and its comments
- Create up to 5 focused sub-issues with clear objectives
- Link each sub-issue back to the parent
- (For Ideas discussions) Close the discussion with a summary
Each sub-issue includes:
- Clear Title: Descriptive and action-oriented
- Objective: What needs to be done
- Context: Why this work is needed
- Approach: Suggested implementation steps
- Files: Specific files to modify or create
- Acceptance Criteria: How to verify completion
Original Issue: "Implement user authentication system"
Comment: /plan
Creates sub-issues like:
1. [task] Add JWT authentication middleware
2. [task] Create user login endpoint
3. [task] Implement password hashing
4. [task] Add authentication tests
5. [task] Update API documentation
Discussion (Ideas category): "Should we add real-time notifications?"
Comment: /plan
Creates actionable issues and closes the discussion as "RESOLVED"
The workflow is configured with:
- Maximum sub-issues: 5 (to keep tasks focused)
- Timeout: 10 minutes
- Labels: Automatically applies
taskandai-generatedlabels - Title prefix:
[task]for easy identification - Safe outputs: Creates issues in a controlled manner
- Use descriptive issues: The better the original issue/discussion is written, the better the breakdown
- Include context: Add relevant technical details, constraints, and requirements
- Comment on the plan: You can add comments on generated sub-issues to refine them
- Iterate if needed: You can use
/planagain if the breakdown needs adjustment
✅ Good use cases:
- Breaking down large features into smaller tasks
- Converting high-level ideas into concrete work items
- Planning multi-step implementations
- Creating structured task lists for team coordination
❌ Not ideal for:
- Simple, single-action tasks
- Issues that are already well-broken down
- Emergency bug fixes (just fix them directly)
- Creates a maximum of 5 sub-issues per invocation
- Requires clear, well-written parent issues/discussions
- Best suited for technical implementation tasks
- AI-generated plans may need human review and adjustment
This workflow requires:
contents: read- To read repository filesdiscussions: read- To read discussion contentissues: read- To read issue contentpull-requests: read- To read PR content
It can also:
- Create issues (with specific labels and title prefix)
- Close discussions (only in "Ideas" category)
- Issue Triage - For triaging incoming issues
- Daily Plan - For strategic project planning
- Daily Progress - For automated feature development