Add /plan workflow for breaking down complex issues into sub-tasks#527
Conversation
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
| safe-outputs: | ||
| create-issue: | ||
| title-prefix: "[subtask] " | ||
| labels: [sub-issue, planned] |
There was a problem hiding this comment.
Remove those labels since there is an agentic workflow to assign labels
There was a problem hiding this comment.
Removed the labels configuration in 2fe3b43. Sub-issues created by /plan will now be labeled by the issue-triage workflow instead.
There was a problem hiding this comment.
Pull Request Overview
This PR adds a /plan agentic workflow that analyzes complex issues and breaks them down into manageable sub-tasks with parent-child relationships using GitHub's sub-issue linking functionality.
Key changes:
- New command-triggered workflow for authorized users (admin/maintainer/write roles)
- Automated sub-issue creation with structured format and parent linking
- Cache-memory persistence for deep repository analysis
- Safe-outputs configuration for secure issue and comment creation
Reviewed Changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
.github/workflows/plan.md |
Workflow definition with command trigger, safe-outputs config, and detailed agent instructions for task decomposition |
.github/workflows/plan.lock.yml |
Auto-generated GitHub Actions workflow with multi-job orchestration, MCP server setup, and GraphQL sub-issue linking |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| cache-memory: | ||
| retention-days: 7 |
There was a problem hiding this comment.
The retention-days field is not a valid configuration option for cache-memory according to the schema. The cache-memory configuration only supports a key field (string) or boolean value.
Issue: Line 15 shows retention-days: 7 which is not supported.
Solution: Remove the retention-days field. If you need to control cache retention, use the standard GitHub Actions cache retention settings at the repository level. The correct configuration should be:
tools:
cache-memory:
key: memory-${{ github.workflow }}-${{ github.run_id }}or simply:
tools:
cache-memory: true| cache-memory: | |
| retention-days: 7 | |
| cache-memory: true |
| max: 5 | ||
| add-comment: | ||
| max: 1 | ||
| timeout-minutes: 15 |
There was a problem hiding this comment.
The field name timeout-minutes is incorrect. According to the schema, it should be timeout_minutes (with an underscore, not a hyphen).
Fix: Change timeout-minutes: 15 to timeout_minutes: 15
| timeout-minutes: 15 | |
| timeout_minutes: 15 |
| add-comment: | ||
| max: 1 | ||
| timeout-minutes: 15 | ||
| strict: true |
There was a problem hiding this comment.
The strict: true field is not a valid configuration option according to the agentic workflow schema. This field does not exist in the frontmatter specification.
Solution: Remove this line as it will cause compilation errors.
| strict: true |
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
✅ /plan Agentic Workflow Implementation Complete
Successfully created a new agentic workflow triggered by
/plancommand that analyzes complex GitHub issues and breaks them down into manageable sub-issues.Checklist:
Implementation Summary
Workflow Features:
/plancommand in issues, PRs, comments, and review commentsSecurity & Permissions:
Agent Capabilities:
Deep Repository Analysis:
Intelligent Decision Making:
Structured Sub-Tasks:
Parent-Child Linking:
**Parent Issue**: #XPerformance:
Generated Files:
.github/workflows/plan.md(210 lines) - Source workflow.github/workflows/plan.lock.yml(5,792 lines) - Compiled GitHub Actions workflowCompilation Status:
Recent Changes
Addressed feedback: Removed pre-assigned labels from create-issue configuration. Sub-issues will be automatically labeled by the existing issue-triage workflow, which provides more consistent and appropriate labeling across all issues.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.