.github_gpt/skills/workflows-plan/SKILL.md
Transform feature descriptions into well-structured project plans following conventions
npx skillsauth add the-rabak/compound-engineering-plugin workflows-planInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Turn a feature description, bug report, or improvement idea into an execution-ready plan in docs/plans/.
/workflows-work./workflows-brainstorm first.document-review.source_docs and preserve that data./workflows-work must include Files, Depends on, Success criteria, and Test command.spec-flow-analyzer before finalizing the plan.Execute the full source-of-truth workflow below. Preserve every conditional branch, phase, checklist, and validation step from the original instructions. When the workflow says to ask, wait, route, or run in parallel, do that exactly.
[feature description, bug report, or improvement idea]
Note: The current year is 2026. Use this when dating plans and searching for recent documentation.
Transform feature descriptions, bug reports, or improvement ideas into well-structured markdown files issues that follow project conventions and best practices. This command provides flexible detail levels to match your needs.
#$ARGUMENTS
If the feature description above is empty, ask the user: "What would you like to plan? Please describe the feature, bug fix, or improvement you have in mind."
Do not proceed until you have a clear feature description from the user.
Check if arguments contain a plan or spec file:
If the feature description (#$ARGUMENTS) is or contains a path to a .md file (e.g., docs/plans/some-plan.md, spec.md, ~/notes/feature-plan.md):
[file path]. Using as foundation."If arguments are NOT a file path, check for brainstorm output:
Before asking questions, look for recent brainstorm documents in docs/brainstorms/ that match this feature:
ls -la docs/brainstorms/*.md 2>/dev/null | head -10
Relevance criteria: A brainstorm is relevant if:
If a relevant brainstorm exists:
If multiple brainstorms could match: Use AskUserQuestion tool to ask which brainstorm to use, or whether to proceed without one.
If no brainstorm found (or not relevant), run idea refinement:
Refine the idea through collaborative dialogue using the AskUserQuestion tool:
Gather signals for research decision. During refinement, note:
Skip option: If the feature description is already detailed, offer: "Your description is clear. Should I proceed with research, or would you like to refine it further?"
Use the AskUserQuestion tool to collect structured project inputs. Ask these 4 questions in sequence:
Question 1: "Do you have any project management tickets related to this feature?"
["None", "Enter URLs"]Question 2: "Do you have any wiki or documentation pages related to this feature?"
["None", "Enter URLs"]Question 3: "Do you have any Figma designs related to this feature?"
["None", "Enter URLs"]Question 4: "Do you have any existing plan, spec, or requirements documents (.md files) to build from?"
["None", "Enter file paths"]Processing inputs:
For any non-empty inputs, launch parallel subagents to fetch and summarize each document:
.md file, extract structure (title, problem statement, approach, tasks, acceptance criteria, open questions). Identify which sections are well-defined vs need enrichment.Handle MANUAL_INPUT_NEEDED: If a subagent cannot access a URL (authentication required, private resource), use the AskUserQuestion tool to ask: "I couldn't access [URL]. Could you paste the relevant content from this document?"
Consolidate into project_context block:
## Project Context (from structured inputs)
### Project Tickets
- [TICKET-123](url): Summary of ticket...
### Documentation
- [Doc Title](url): Key decisions and requirements...
### Figma Designs
- [Design Name](url): Design intent and component overview...
### Existing Plans / Specs
- [filename.md](path): Structure summary, well-defined sections, gaps to fill...
Store source URLs/paths in plan frontmatter under source_docs::
source_docs:
tickets:
- https://tracker.example.com/TICKET-123
docs:
- https://wiki.example.com/pages/doc-id
figma:
- https://figma.com/file/abc123
plans:
- docs/specs/existing-feature-spec.md
If all three inputs are "None", skip this step and proceed.
First, I need to understand the project's conventions, existing patterns, and any documented learnings. This is fast and local - it informs whether external research is needed.
Run these agents in parallel to gather local context:
What to look for:
docs/solutions/ that might apply (gotchas, patterns, lessons learned)These findings inform the next step.
Based on signals from Step 0 and findings from Step 1, decide on external research.
High-risk topics -> always research. Security, payments, external APIs, data privacy. The cost of missing something is too high. This takes precedence over speed signals.
Strong local context -> skip external research. Codebase has good patterns, CLAUDE.md has guidance, user knows what they want. External research adds little value.
Uncertainty or unfamiliar territory -> research. User is exploring, codebase has no examples, new technology. External perspective is valuable.
Announce the decision and proceed. Brief explanation, then continue. User can redirect if needed.
Examples:
Only run if Step 1.5 indicates external research is valuable.
Run these agents in parallel:
After all research steps complete, consolidate findings:
app/Services/ExampleService.php:42)docs/solutions/ (key insights, gotchas to avoid)Optional validation: Briefly summarize findings and ask if anything looks off or missing before proceeding to planning.
Think like a product manager - what would make this issue clear and actionable? Consider multiple perspectives
Title & Categorization:
feat: Add user authentication, fix: Cart total calculation)-plan suffix
feat: Add User Authentication -> 2026-01-21-feat-add-user-authentication-plan.mdStakeholder Analysis:
Content Planning:
Execution Readiness:
For plans that will be executed via /workflows-work, ensure each implementation task includes:
This structured format enables the /workflows-work orchestrator to delegate each task to a focused subagent with clear scope and termination criteria. Plans without this structure will be flagged for refinement before execution begins.
After planning the issue structure, run SpecFlow Analyzer to validate and refine the feature specification:
SpecFlow Analyzer Output:
Important for /workflows-work compatibility: All detail levels can be executed, but the MORE and A LOT levels produce plans with structured execution chunks (per-task success criteria, test commands, file lists) that enable the subagent orchestration model in /workflows-work. MINIMAL plans work but may require the orchestrator to decompose tasks further before delegating to subagents.
Select how comprehensive you want the issue to be, simpler is mostly better.
Best for: Simple bugs, small improvements, clear features
Includes:
Note: MINIMAL plans may need to be enriched with per-task success criteria before running /workflows-work. The orchestrator can handle this decomposition automatically, but providing structured tasks up front leads to more predictable execution.
Structure:
---
title: [Issue Title]
type: [feat|fix|refactor]
status: active
date: YYYY-MM-DD
source_docs:
tickets: []
docs: []
figma: []
plans: []
---
# [Issue Title]
[Brief problem/feature description]
## Acceptance Criteria
- [ ] Core requirement 1
- [ ] Core requirement 2
## Context
[Any critical information]
## MVP
### ExampleController.php
```php
// app/Http/Controllers/ExampleController.php
class ExampleController extends Controller
{
public function __construct()
{
$this->name = 'example';
}
}
```
## References
- Related issue: #[issue_number]
- Documentation: [relevant_docs_url]
Best for: Most features, complex bugs, team collaboration
Includes everything from MINIMAL plus:
Structure:
---
title: [Issue Title]
type: [feat|fix|refactor]
status: active
date: YYYY-MM-DD
source_docs:
tickets: []
docs: []
figma: []
plans: []
---
# [Issue Title]
## Overview
[Comprehensive description]
## Problem Statement / Motivation
[Why this matters]
## Proposed Solution
[High-level approach]
## Technical Considerations
- Architecture impacts
- Performance implications
- Security considerations
## Implementation Phases
#### Phase 1: [Phase Name]
##### Task 1.1: [Task Name]
**Files:** `path/to/file1.php`, `path/to/file2.php`
**Depends on:** None
**Success criteria:**
- [ ] Criterion 1
- [ ] Criterion 2
**Test command:** `[project-appropriate test command]`
##### Task 1.2: [Task Name]
**Files:** `path/to/file3.php`
**Depends on:** Task 1.1
**Success criteria:**
- [ ] Criterion 1
- [ ] Criterion 2
**Test command:** `[project-appropriate test command]`
#### Phase 2: [Phase Name]
##### Task 2.1: [Task Name]
**Files:** `path/to/file4.php`
**Depends on:** Task 1.2
**Success criteria:**
- [ ] Criterion 1
- [ ] Criterion 2
**Test command:** `[project-appropriate test command]`
## Acceptance Criteria
- [ ] Detailed requirement 1
- [ ] Detailed requirement 2
- [ ] Testing requirements
## Success Metrics
[How we measure success]
## Dependencies & Risks
[What could block or complicate this]
## References & Research
- Similar implementations: [file_path:line_number]
- Best practices: [documentation_url]
- Related PRs: #[pr_number]
Best for: Major features, architectural changes, complex integrations
Includes everything from MORE plus:
Structure:
---
title: [Issue Title]
type: [feat|fix|refactor]
status: active
date: YYYY-MM-DD
source_docs:
tickets: []
docs: []
figma: []
plans: []
---
# [Issue Title]
## Overview
[Executive summary]
## Problem Statement
[Detailed problem analysis]
## Proposed Solution
[Comprehensive solution design]
## Technical Approach
### Architecture
[Detailed technical design]
### Implementation Phases
#### Phase 1: [Foundation]
##### Task 1.1: [Task Name]
**Files:** `path/to/file1.php`, `path/to/file2.php`
**Depends on:** None
**Success criteria:**
- [ ] Criterion 1
- [ ] Criterion 2
**Test command:** `[project-appropriate test command]`
##### Task 1.2: [Task Name]
**Files:** `path/to/file3.php`
**Depends on:** Task 1.1
**Success criteria:**
- [ ] Criterion 1
- [ ] Criterion 2
**Test command:** `[project-appropriate test command]`
#### Phase 2: [Core Implementation]
##### Task 2.1: [Task Name]
**Files:** `path/to/file4.php`, `path/to/file5.php`
**Depends on:** Task 1.2
**Success criteria:**
- [ ] Criterion 1
- [ ] Criterion 2
**Test command:** `[project-appropriate test command]`
##### Task 2.2: [Task Name]
**Files:** `path/to/file6.php`
**Depends on:** Task 2.1
**Success criteria:**
- [ ] Criterion 1
- [ ] Criterion 2
**Test command:** `[project-appropriate test command]`
#### Phase 3: [Polish & Optimization]
##### Task 3.1: [Task Name]
**Files:** `path/to/file7.php`
**Depends on:** Task 2.2
**Success criteria:**
- [ ] Criterion 1
- [ ] Criterion 2
**Test command:** `[project-appropriate test command]`
## Alternative Approaches Considered
[Other solutions evaluated and why rejected]
## Acceptance Criteria
### Functional Requirements
- [ ] Detailed functional criteria
### Non-Functional Requirements
- [ ] Performance targets
- [ ] Security requirements
- [ ] Accessibility standards
### Quality Gates
- [ ] Test coverage requirements
- [ ] Documentation completeness
- [ ] Code review approval
## Success Metrics
[Detailed KPIs and measurement methods]
## Dependencies & Prerequisites
[Detailed dependency analysis]
## Risk Analysis & Mitigation
[Comprehensive risk assessment]
## Resource Requirements
[Team, time, infrastructure needs]
## Future Considerations
[Extensibility and long-term vision]
## Documentation Plan
[What docs need updating]
## References & Research
### Internal References
- Architecture decisions: [file_path:line_number]
- Similar features: [file_path:line_number]
- Configuration: [file_path:line_number]
### External References
- Framework documentation: [url]
- Best practices guide: [url]
- Industry standards: [url]
### Related Work
- Previous PRs: #[pr_numbers]
- Related issues: #[issue_numbers]
- Design documents: [links]
Apply best practices for clarity and actionability, making the issue easy to scan and understand
Content Formatting:
Cross-Referencing:
Code & Examples:
# Good example with syntax highlighting and line references
```php
// app/Services/UserService.php:42
public function processUser(User $user): array
{
// Implementation here
}
```
# Collapsible error logs
Details summary: Full error stacktrace
`Error details here...`
AI-Era Considerations:
Pre-submission Checklist:
Before writing the plan file, ensure the output directory and gitignore rules exist:
# Create docs/plans/ directory if it doesn't exist
mkdir -p docs/plans
# Ensure docs/plans/ and docs/brainstorms/ are in .gitignore (but NOT docs/solutions/)
if [ -f .gitignore ]; then
grep -qxF 'docs/plans/' .gitignore || echo 'docs/plans/' >> .gitignore
grep -qxF 'docs/brainstorms/' .gitignore || echo 'docs/brainstorms/' >> .gitignore
else
printf 'docs/plans/\ndocs/brainstorms/\n' > .gitignore
fi
IMPORTANT: docs/solutions/ must NOT be added to .gitignore -- it contains committed institutional knowledge.
Filename: Use the date and kebab-case filename from Step 2 Title & Categorization.
docs/plans/YYYY-MM-DD-[type]-[descriptive-name]-plan.md
Examples:
docs/plans/2026-01-15-feat-user-authentication-flow-plan.mddocs/plans/2026-02-03-fix-checkout-race-condition-plan.mddocs/plans/2026-03-10-refactor-api-client-extraction-plan.mddocs/plans/2026-01-15-feat-thing-plan.md (not descriptive - what "thing"?)docs/plans/2026-01-15-feat-new-feature-plan.md (too vague - what feature?)docs/plans/2026-01-15-feat: user auth-plan.md (invalid characters - colon and space)docs/plans/feat-user-auth-plan.md (missing date prefix)After writing the plan file, use the AskUserQuestion tool to present these options:
Question: "Plan ready at docs/plans/YYYY-MM-DD---plan.md. What would you like to do next?"
Options:
/deepen-plan - Enhance each section with parallel research agents (best practices, performance, UI)/technical_review - Technical feedback from code-focused reviewers (Rabak Laravel, Rabak Vue, Simplicity)/workflows-work - Begin implementing this plan locally/workflows-work on remote - Begin implementing in the host CLI on the web (use & to run in background)Based on selection:
open docs/plans/.md to open the file in the user's default editor/deepen-plan -> Call the /deepen-plan command with the plan file path to enhance with research/technical_review -> Call the /technical_review command with the plan file pathdocument-review skill./workflows-work -> Call the /workflows-work command with the plan file path/workflows-work on remote -> Run /workflows-work docs/plans/.md & to start work in background for the host CLI webNote: If running /workflows-plan with ultrathink enabled, automatically run /deepen-plan after plan creation for maximum depth and grounding.
Loop back to options after Simplify or Other changes until user selects /workflows-work or /technical_review.
When user selects "Create Issue":
Save the plan as a tracker-ready description:
The plan file is already in markdown format. Inform the user:
[plan_path]. You can create a ticket using the plan content."After creation:
/workflows-work or /technical_reviewNEVER CODE! Just research and write the plan.
Produce a plan document that includes, at minimum:
title, type, status, date, and source_docs.Files, Depends on, Success criteria, and Test command.tools
Package one plan execution packet into a compact ticket-local execution packet with parent refs, scope fences, feature-home ownership, and evidence commands. Use when converting plans into local tickets or when execution needs one ticket-sized context pack without the full plan.
tools
Package one plan execution packet into a compact ticket-local execution packet with parent refs, scope fences, feature-home ownership, and evidence commands. Use when converting plans into local tickets or when execution needs one ticket-sized context pack without the full plan.
testing
Run a deep adversarial review of plans and architecture before implementation. Use when validating strategy docs, contracts, roadmaps, and competitive positioning with scored findings and prioritized recommendations.
testing
Run a deep adversarial review of plans and architecture before implementation. Use when validating strategy docs, contracts, roadmaps, and competitive positioning with scored findings and prioritized recommendations.