Agent skill
next-task
End-to-end task pipeline. Discovers the next task, plans, implements, reviews with certainty-graded quality gates, then ships. Resumable via git state.
Stars
12
Forks
0
Install this agent skill to your Project
npx add-skill https://github.com/elasticdotventures/_b00t_/tree/main/plugins/next-task/skills/next-task
SKILL.md
/next-task Workflow Orchestration
Gated pipeline: DISCOVER → PLAN → IMPLEMENT → REVIEW → SHIP. State persists in git (branch + commit messages). Each phase can resume independently.
Phases
Phase 1: DISCOVER
- Check taskmaster-ai for next prioritized task. # output: task_id, task_description
- If no taskmaster-ai, check git issues:
gh issue list --label next-task --limit 1# output: issue_id - If none, ask Operator to specify. # output: task_clarified
- Confirm task scope with Operator before proceeding. ← HUMAN GATE
- Create isolated branch:
git checkout -b task/<id>-<slug># output: branch_name
Phase 2: PLAN
- Map affected files and dependencies using repo structure. # output: affected_files[]
- Identify risks (breaking changes, security, performance). # output: risk_assessment
- Write implementation plan (steps, test strategy, rollback). # output: plan_md
- Apply certainty-grade to each plan step. # output: graded_plan
- Present plan to Operator. ← HUMAN GATE
Phase 3: IMPLEMENT
- Write failing tests first (TDD). # output: test_files[]
- Implement minimum code to pass tests. # output: changed_files[]
- Run code-quality skill on all changed files. # output: quality_report
- Run deslop skill on all changed files. # output: deslop_report
- AUTO-FIX all HIGH certainty findings (quality + deslop). # output: auto_fix_log
- Surface MEDIUM findings to Operator. ← HUMAN GATE (if MEDIUM findings exist)
- Commit:
git commit -m "feat: <description>"# output: commit_sha
Phase 4: REVIEW
- Run full test suite. # output: test_results (PASS|FAIL)
- If FAIL: diagnose, fix, re-run. Loop max 3x before escalating to Operator.
- Run code-quality on full diff. # output: quality_report
- Run drift-detect on changed files. # output: drift_findings
- All LOW certainty findings → Operator review. ← HUMAN GATE
- Confirm ready to ship. ← HUMAN GATE
Phase 5: SHIP
- Push branch:
git push -u origin <branch># output: remote_branch - Create PR:
gh pr create --title "<task>" --body "<plan_summary>"# output: pr_url - Monitor CI: poll
gh run list --branch <branch>every 30s. # output: ci_status - If CI fails: check logs
gh run view --log-failed, diagnose, fix, push. Max 2 retries. - If CI passes: request merge or auto-merge if authorized. # output: merge_sha
- Cleanup: delete branch after merge. # output: DONE
State & Resumability
State encoded in git:
- Current phase → branch name prefix (
task/<id>-<slug>) - Plan → first commit message body
- Quality report →
.b00t/quality-report.md(gitignored, ephemeral) - CI status →
gh run listoutput
Resume interrupted task:
/next-task --resume <branch_name>
Detects current phase from branch + commit state, continues from last gate.
Flags
/next-task # Auto-discover next task
/next-task --task <id> # Specific task by id
/next-task --resume <branch> # Resume interrupted pipeline
/next-task --phase <phase> # Start from specific phase
/next-task --skip-gates # ⚠️ Skip human gates (CI/CD use only)
Gate Summary
| Gate | Trigger | Required |
|---|---|---|
| Task confirmation | After DISCOVER | Always |
| Plan approval | After PLAN | Always |
| MEDIUM quality findings | During IMPLEMENT | If MEDIUM findings exist |
| LOW quality findings | During REVIEW | If LOW findings exist |
| Ship confirmation | Before SHIP | Always (unless --skip-gates) |
Integration
- Uses
certainty-gradeskill for all findings - Uses
code-qualityskill at IMPLEMENT and REVIEW phases - Uses
certainty-gradeskill for all findings - Uses
code-quality+deslopskills at IMPLEMENT phase - Uses
drift-detectat REVIEW phase - Uses
model-routingskill to select model per phase - Uses
b00t learnfor task-relevant topics before IMPLEMENT - Uses taskmaster-ai MCP when available
- Falls back to gh issues if taskmaster-ai unavailable
Didn't find tool you were looking for?