Create GitHub issues from a feature plan or PRD -- automatically determines single issue vs epic + task issues. Use after /prd or /plan-feature to push tasks to GitHub, or whenever the user wants to create structured issue(s) for a feature.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Create Tasks?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/makigjuro-create-tasks)
---
name: create-tasks
description: Create GitHub issues from a feature plan or PRD -- automatically determines single issue vs epic + task issues. Use after /prd or /plan-feature to push tasks to GitHub, or whenever the user wants to create structured issue(s) for a feature.
allowed-tools: Bash, Read, Glob, AskUserQuestion, mcp__github-mcp-server__create_issue, mcp__github-mcp-server__update_issue, mcp__github-mcp-server__get_issue
user-invocable: true
---
# Create GitHub Tasks
Analyze a feature plan or PRD and create the appropriate GitHub issue structure. **Automatically decides** whether to create a single issue or an epic with multiple task issues based on scope and complexity.
## Configuration
Read `blueprint.json` from the project root at the start of execution. Extract relevant fields:
- `REPO_OWNER` / `REPO_NAME` = `repository.owner` / `repository.name` (default: detect from `git remote -v`)
If `blueprint.json` does not exist, auto-detect by parsing the GitHub remote URL:
```bash
git remote get-url origin | sed -E 's|.*github\.com[:/]([^/]+)/([^/.]+).*|\1 \2|'
```
## Arguments
- `{prd-path}` -- Path to PRD file (optional, will search `docs/prd/` or use conversation context)
- `--dry-run` -- Show what would be created without actually creating issues
- `--epic-only` -- Create only the epic issue, not individual tasks
- `--no-epic` -- Create only task issues, no parent epic
## Decision Logic: Single vs Multiple Issues
**Create a SINGLE issue when:**
- Feature has <= 3 implementation tasks
- All tasks affect the same service/layer
- Work is small enough for one PR (roughly < 1 day of work)
- No PRD exists -- just a simple feature plan from conversation
**Create an EPIC + task issues when:**
- Feature has > 3 implementation tasks
- Tasks span multiple services or layers
- A PRD exists with structured sections
- Tasks could be assigned to different people or done in separate PRs
The `--epic-only` / `--no-epic` flags override this decision.
## Process
### Step 1: Find the Plan
1. If path provided, read that file
2. Else search `docs/prd/*.md` for most recent PRD
3. Else look for feature plan in conversation context
4. If nothing found, ask user to describe the feature or run `/plan-feature` or `/prd` first
### Step 2: Parse & Classify
Extract from the plan:
- **Title**: Feature name
- **Summary**: Description
- **Acceptance Criteria**: All AC items
- **Tasks**: Implementation tasks grouped by layer
- **Out of Scope**: Exclusions
- **Labels**: Derive from affected services (see Label Mapping below)
Apply the decision logic above to determine: **single issue** or **epic + tasks**.
### Step 3: Present Plan for Approval
Show the user what will be created:
```
## Issue Creation Plan
Mode: {Single Issue | Epic + N Task Issues}
Reason: {brief explanation of why this mode was chosen}
### {Single Issue title OR Epic title}
Labels: {labels}
### Tasks ({count})
1. {task description}
2. {task description}
...
Create? [Yes / Modify / Cancel]
```
### Step 4a: Single Issue Path
Create one issue with all tasks as a checklist:
```bash
gh issue create --title "{Feature Title}" --label "{labels}" --body "..."
```
Issue body format:
```markdown
## Summary
{description}
## Acceptance Criteria
- [ ] AC1: ...
- [ ] AC2: ...
## Implementation Tasks
### Domain
- [ ] {task}
### Application
- [ ] {task}
### Infrastructure
- [ ] {task}
### Endpoints
- [ ] {task}
### Frontend
- [ ] {task}
### Tests
- [ ] {task}
## Out of Scope
- {exclusions}
---
Generated with [Claude Code](https://claude.com/claude-code)
```
Only include layer sections that have tasks. Skip empty sections.
### Step 4b: Epic + Tasks Path
**Create the epic:**
```bash
gh issue create --title "Epic: {Feature Title}" --label epic --label feature --label "{labels}" --body "..."
```
Epic body format:
```markdown
## Summary
{summary}
## Acceptance Criteria
{all AC items as checkboxes}
## Task Issues
<!-- Links added after tasks are created -->
## Out of Scope
{exclusions}
## References
- PRD: {prd-path if applicable}
---
Generated with [Claude Code](https://claude.com/claude-code)
```
**Create each task issue:**
```bash
gh issue create --title "[{Layer}] {Task Title}" --label "{layer-label}" --label "{service-labels}" --body "..."
```
Task body format:
```markdown
## Parent Epic
#{epic-number}
## Task
{task description}
## Acceptance Criteria
{relevant AC items}
## Files to Modify
- `{file path}`
## Implementation Notes
{hints from PRD}
---
Generated with [Claude Code](https://claude.com/claude-code)
```
**Update epic with task links:**
```bash
gh issue edit {epic-number} --body "{updated body with - [ ] #{taskN} -- {title} links}"
```
If the GitHub MCP server is available in this session, you may use the equivalent `mcp__github-mcp-server__create_issue` / `update_issue` tools instead -- they return typed JSON without output parsing.
## Label Mapping
| Layer/Service | Labels |
|---------------|--------|
| Domain | `domain`, `backend` |
| Application | `application`, `backend` |
| Infrastructure | `infrastructure`, `backend` |
| Endpoints | `api`, `backend` |
| Frontend | `frontend` |
| Tests | `testing` |
| Helm/Terraform | `infrastructure`, `devops` |
General labels:
- `feature` for new functionality
- `enhancement` for improvements
- `bug` for defects
Add service-specific labels based on the services defined in `blueprint.json` or discovered in the project.
## Task Title Conventions
Keep titles under 70 characters. Use `[Layer]` prefix for multi-issue mode:
| Description | Title |
|-------------|-------|
| "Add user entity to domain" | `[Domain] Add user entity` |
| "Create API endpoint for orders" | `[Endpoints] Add order creation endpoint` |
## Grouping Strategy
Group related tasks into single issues when:
- They modify the same file
- They're logically atomic (must be done together)
- They're trivial (< 10 lines each)
Split into separate issues when:
- Tasks can be done independently
- Different reviewers might handle them
- They touch different services
## Output Format
### Single Issue Output
```markdown
## Issue Created
- #{number}: {title}
URL: {url}
## Next Steps
Run `/start-work #{number}` to begin implementation.
```
### Epic + Tasks Output
```markdown
## Issues Created
### Epic
- #{number}: {title} -- {url}
### Tasks ({count})
| # | Issue | Title | Labels |
|---|-------|-------|--------|
| 1 | #{n1} | {title1} | {labels} |
| 2 | #{n2} | {title2} | {labels} |
## Next Steps
1. Run `/start-work #{first-task}` to begin implementation
2. Close tasks as completed; epic tracks overall progress
```
## Error Handling
- **gh not authenticated**: Prompt user to run `gh auth login`
- **Label doesn't exist**: Create label or skip with warning
- **Partial failure**: Report which issues were created, which failed