Execute GitHub issues or task files with full EPCT workflow and PR creation
Executes GitHub issues or task files with adaptive workflow and automatic PR creation.
/plugin marketplace add melvynx/aiblueprint/plugin install base@aiblueprint<issue-number|issue-url|file-path>tasks/This command handles any task input: GitHub issues, file paths, or direct descriptions. It adapts complexity based on task size - lightweight for bug fixes, comprehensive for features. Optimized for CI/automated environments. </objective>
<context> Current branch: !`git branch --show-current` Git status: !`git status --short` Recent commits: !`git log --oneline -5 2>/dev/null || echo "No commits yet"` </context> <process>Parse input and setup environment:
Detect input type from #$ARGUMENTS:
123): Fetch with gh issue view 123https://github.com/.../issues/123): Extract number, fetch with gh issue viewtasks/feature.md): Read file contentFor GitHub issues:
gh issue edit <number> --add-label "in-progress"Assess task complexity (determines workflow depth):
Setup branch:
main/master: Create branch git checkout -b feat/<task-slug>Goal: Gather context efficiently
explore-codebase agents for:
explore-docs agent if external library knowledge neededwebsearch agent only if truly necessaryOutput: Mental map of files to modify and patterns to follow
Goal: Define implementation strategy
Create concise implementation plan:
For GitHub issues: Post plan as comment
gh issue comment <number> --body "## Implementation Plan
- [ ] Change 1
- [ ] Change 2
- [ ] Tests
Starting implementation..."
If ambiguity exists: Ask user ONE focused question, then proceed
Goal: Implement changes following codebase patterns
Create TodoWrite with specific tasks (1 per file change)
For each change:
Code quality rules:
Goal: Validate implementation
Check package.json for available scripts
Run validation (in order, stop on failure):
npm run format 2>/dev/null || true
npm run lint
npm run typecheck
Run relevant tests only:
npm test -- --testPathPattern="<pattern>" or equivalentIf validation fails:
Goal: Create PR and update tracking
Stage and commit:
git add -A
git commit -m "<type>(<scope>): <description>
<body if needed>
Closes #<issue-number>"
Commit types: feat, fix, refactor, docs, test, chore
Push and create PR:
git push -u origin HEAD
gh pr create --fill --body "## Summary
<what was done>
## Changes
- <change 1>
- <change 2>
## Test Plan
- [x] Lint passes
- [x] Types pass
- [x] Relevant tests pass
Closes #<issue-number>"
Update GitHub issue (if applicable):
gh issue comment <number> --body "✅ Implementation complete
**PR**: <pr-url>
**Changes**: <brief summary>
Ready for review."
Return PR URL to user
<adaptive_behavior> Task size detection heuristics:
| Signal | Likely Simple | Likely Complex |
|---|---|---|
| Keywords | "typo", "rename", "update text" | "implement", "add feature", "refactor" |
| Scope | Single file mentioned | Multiple components |
| Issue labels | bug, docs, chore | feature, enhancement |
| Description length | < 100 chars | > 500 chars |
Workflow adaptation:
<error_handling> Common blockers and responses:
If blocked: Report clearly what's blocking and what's needed </error_handling>
<success_criteria>
<execution_rules>