From agentic-dev
Use for Phase 4 of the development workflow: task execution. Implements one task or an entire wave with role-matched expertise, branch isolation, task review files, and debugging framework. Use when someone says 'execute task', 'phase 4', 'implement next task', 'start execution', 'pick up next task', 'execute wave', or 'run wave N'.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agentic-dev:execute [task X.Y | wave N | next][task X.Y | wave N | next]The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Executes Phase 4 (Execution) of the AI-Assisted Development Workflow.
Executes Phase 4 (Execution) of the AI-Assisted Development Workflow.
/agentic-dev:execute task 1.1 or /agentic-dev:execute next/agentic-dev:execute wave 1When executing a wave, first create a feature branch from main to contain all wave work:
git checkout main && git checkout -b feature/m{{M}}-wave{{W}}-{{short-description}}
Branch naming: feature/m{{M}}-wave{{W}}-{{short-description}} (e.g., feature/m2-wave1-backend-models-upload-ui). The feature branch is the integration point for all task branches in this wave. It merges to main only after the review-fix loop completes with all issues resolved.
Check task dependencies within the wave (each task block has a Depends on: field). Run independent tasks (no intra-wave dependencies) in parallel using worktree isolation (isolation: "worktree"). Tasks that depend on other tasks in the same wave must wait for their dependency to finish. Each task gets its own branch (task/X.Y-short-title) created from the feature branch. Complete the full cycle (branch → implement → verify → review file → progress update) for each task.
Parallel task launch: Git locks .git/config briefly during git worktree add. Launching all worktree agents in a single message causes lock contention — most will fail. Instead, launch each independent task agent as a background agent in a separate sequential message (one agent per message, each with isolation: "worktree" and run_in_background: true). The natural processing delay between messages (~2-5s) is enough for git to release the lock. All agents run concurrently once launched — only the launch is serialized. Do NOT wait for each agent to fully complete before launching the next — that eliminates parallelism.
Wave branch lifecycle (sequential tasks in the same session):
git checkout feature/m{{M}}-wave{{W}}-{{short-description}}
git merge task/X.Y-short-title
git branch -d task/X.Y-short-title
main):
git checkout -b task/X.Y-next-title
Wave branch lifecycle (parallel worktree tasks):
After all parallel worktree agents complete:
git checkout feature/m{{M}}-wave{{W}}-{{short-description}}
git merge task/X.Y-short-title
git branch -d task/X.Y-short-title
Repeat for each parallel task.isolation: "worktree", not task branches:
git branch -D worktree-agent-* 2>/dev/null || true
Note: If executing individual tasks sequentially (not as a wave), each task follows the single-task flow — branch from main, review individually, merge to main. Use execute wave N when you want batch review with feature branch isolation.
task/X.Y-short-title. Do NOT work on main./clear) before each task. Parallel wave tasks each run as separate agents with worktree isolation, so they inherently start with clean context.claude -w task/X.Y-short-title --model opus/agents for available roles).ROLE:
Activate the appropriate agent role for the task type. The orchestrating agent (auto skill or human) should set the agent type at launch time based on the task's Role: field in PLAN.md. If no agent type was set externally, read the task's Role: field and activate that role yourself. Available roles:
backend-engineer — API endpoints, service logic, database operationsfrontend-developer — UI components, styling, client-side logicdata-engineer — data pipelines, ETL, schema migrationsdevops-engineer — CI/CD, infrastructure, deploymentsecurity-engineer — auth, encryption, security hardeningqa-engineer — test taskssenior-engineer — complex cross-cutting tasksCONTEXT:
You are implementing one task from a development plan. Read and follow the coding standards in {{PROJECT_INSTRUCTION_FILE — e.g., CLAUDE.md}}.
TASK:
{{PASTE THE SPECIFIC TASK BLOCK FROM PLAN.md — including title, role, spec reference, files, acceptance criteria, and test command}}
SPEC REFERENCE:
Read workflow/spec/SPEC.md section: {{RELEVANT_SECTION_NAME}}
INSTRUCTIONS:
Branch isolation (mandatory). Before writing any code, create a git branch for this task:
git checkout feature/m{{M}}-wave{{W}}-{{short-description}}
git checkout -b task/{{X.Y}}-{{short-title}}
main:
git checkout main
git checkout -b task/{{X.Y}}-{{short-title}}
All work for this task MUST happen on this branch. Do NOT work directly on main or the feature branch.
If using Claude Code worktrees, this is handled by claude -w task/{{X.Y}}-{{short-title}}.
Implement the task exactly as specified. Follow the coding standards and your role's priorities.
After implementation, run these checks:
{{LINT_COMMAND — e.g., ruff check .}}{{TYPE_CHECK_COMMAND — e.g., mypy src/}}{{TEST_COMMAND — e.g., pytest tests/}}{{ACCEPTANCE_COMMAND_FROM_PLAN.md}}If any check fails, fix the issues and re-run. Do not move on until all pass.
Create a task review file at workflow/plan/reviews/task-{{X.Y}}.md with this structure:
# Task {{X.Y}}: {{Title}}
## Work Summary
- **Branch:** `{{task branch name}}` (based on `{{feature branch or main}}`)
- **What was implemented:** {1-2 sentences}
- **Key decisions:** {any non-trivial choices made during implementation}
- **Files created/modified:** {list}
- **Test results:** {pass/fail summary}
- **Spec gaps found:** {any, or "none"}
- **Obstacles encountered:** {any, with how they were resolved}
## Review Discussion
{Left empty unless the human adds *FEEDBACK:* comments.
Append-only — never overwrite previous entries.}
Update progress tracking:
[x] in workflow/plan/PLAN.mdreview in workflow/plan/PROGRESS.mdWHEN STUCK (before asking the human for help):
Use this 5-step framework. Attempt ALL steps before escalating.
Rules:
CONSTRAINTS:
workflow/decisions/DR-NNN-title.md and update workflow/decisions/README.md.FIX MODE (when fixing issues from a review file):
If the user directs you to fix issues from a review file (e.g., wave-mM-N.md or task-X.Y.md):
Read the review file. Find ### Issues Found sections (under each ## Task X.Y heading in wave reviews, or under ## Code Review in task reviews).
Read any fix plan discussion in ## Review Discussion — look for ### Fix Plan and any ### Fix Plan Analysis entries. If multiple AIs analyzed the plan, synthesize their feedback. If a fix was flagged as "revise", follow the revised approach.
Role matching for fixes: Determine the correct agent role(s) before implementing.
task-X.Y.md): Read task X.Y's Role: field from PLAN.md. Activate that role and continue to step 4.wave-mM-N.md): Map each issue to a role:
## Task X.Y headings → task X.Y's Role: from PLAN.md.## Security Review → trace the file:line to the task whose Files: list in PLAN.md includes that file, use that task's role. If no task matches, use security-engineer.{role: [issue IDs]}.fix/wave-W-{{role}} (e.g., fix/wave-2-backend, fix/wave-2-frontend).### Fix Results section.
After all sub-agents complete, report combined results: "Fixes applied by N role-specific agents: role1 ([B1], [S2]), role2 ([S4])." Then STOP.Branch from the feature branch if one exists for this wave. Fix branches should be created from the feature branch, not from main:
git checkout feature/m{{M}}-wave{{W}}-{{short-description}}
git checkout -b fix/{{X.Y}}-{{issue-title}}
If running multiple fix tasks in parallel, use worktree isolation branching from the feature branch (use parallel launch — see note above). If no feature branch exists (single-task fix), branch from main.
Implement all approved fixes. If scoped to specific issue IDs by an orchestrating agent, only fix those issues — skip others and do not include them in the Fix Results. Run verification commands (lint, type check, tests, acceptance criteria).
Append ### Fix Results under ## Review Discussion in the review file:
### Fix Results ({{AI model/tool}} — {{DATE}})
**Branch:** `{{fix branch name}}` (based on `{{parent branch — feature branch or main}}`)
**Status: {{N_fixed}}/{{N_total}} fixed, {{N_deferred}} deferred**
**[B1] ({{title}}) — Fixed**
- What was changed: {{1-2 sentences}}
- Files modified: {{list}}
**[S1] ({{title}}) — Deferred**
- Reason: {{why it cannot be applied now}}
**Verification:**
- {{lint command}} — PASS/FAIL
- {{test command}} — PASS/FAIL
STOP. Do NOT merge, do NOT create a PR. Report what was fixed and the verification results. Tell the user:
fix/X.Y-issue-title. Verification: {{results}}."/agentic-dev:review verify-fixes wave N"README UPDATE:
If this task adds user-facing functionality (CLI commands, API endpoints, UI features), update the Usage section of README.md with examples showing how to use what was just built. Skip this for internal/infrastructure tasks.
WHEN DONE (task execution only — does not apply to fix mode):
Provide a brief summary:
task/1.1-implement-functions)workflow/plan/reviews/task-{{X.Y}}.md has been createdworkflow/plan/PROGRESS.md has been updated/agentic-dev:review wave N or /agentic-dev:review task X.Y for independent code review and spec compliance checking. The review skill will mark the task done in PROGRESS.md when validation passes and signal merge readiness.
main). The feature branch merges to main only after the full review-fix loop completes.main after review.HUMAN REVIEW PROCESS:
After you complete the task, the human will review the diff and workflow/plan/reviews/task-{{X.Y}}.md.
*FEEDBACK:* comments in the review file.*AI:* comments explaining what was changed and why, then re-implement.MERGE / PR CREATION (task execution only, on human instruction only — fix mode has its own stop point above):
done in workflow/plan/PROGRESS.md. If still review, warn: "Task X.Y has not been validated by the review skill. Run /agentic-dev:review first, or confirm you want to proceed."Task branch → feature branch (during wave execution):
git checkout feature/m{{M}}-wave{{W}}-{{short-description}} && git merge task/{{X.Y}}-{{short-title}} && git branch -d task/{{X.Y}}-{{short-title}}Feature branch → main (after review-fix loop completes):
done), merge the feature branch to main:
git checkout main && git merge feature/m{{M}}-wave{{W}}-{{short-description}} && git branch -d feature/m{{M}}-wave{{W}}-{{short-description}}Wave {{W}} (M{{M}}): {{Wave Title}}workflow/plan/PROGRESS.md.Single task → main (no wave context):
git checkout main && git merge task/{{X.Y}}-{{short-title}} && git branch -d task/{{X.Y}}-{{short-title}}Task {{X.Y}}: {{Task Title}}workflow/plan/PROGRESS.md.Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub wilsonkichoi/agentic_development_workflow --plugin agentic-dev