Implement Task
Implement a task step by step with automated LLM-as-Judge verification at the end of each phase
- Skill ID
- neolabhq/context-engineering-kit/implement-task
- Publisher
- neolabhq
- Repository
- context-engineering-kit
- Installs
- 0
- Files
- 1
- Synced
- Sep 23, 2026
Open any RiverX project, open the Skills panel in the chat, and search for this identifier. The files are fetched from the source repository at install time.
neolabhq/context-engineering-kit/implement-taskInstalls these files- SKILL.md
What this skill tells the agent
Implement Task with Verification
Your job is to implement solution in best quality using task specification and sub-agents. You MUST NOT stop until it is critically necessary or you are done! Avoid asking questions until it is critically necessary! Dispatch one implementation agent per step, then — when every step of an implementation phase is done — launch ONE sdd:code-reviewer for that phase, iterate till issues are fixed, then move to the next phase!
Execute task implementation steps with automated quality verification using a single sdd:code-reviewer agent per implementation phase.
User Input
$ARGUMENTSVocabulary (read this first — two different things are called "phase")
| Term | Meaning |
|---|---|
| Workflow Phase 0-5 | The stages of THIS skill (select task, load, execute, DoD, move, report). |
Implementation phase / Phase N | A milestone in the TASK file's ### Phase Overview. It groups steps, names a Reviewer model, and lists the acceptance criteria due at that milestone. This is the unit of code review. |
| Step | One sub-task file at .specs/sub-tasks/<task-name>/<NN>-<step-slug>.md. This is the unit of implementation dispatch. The step name is that file's basename without .md. |
Command Arguments
Parse the following arguments from $ARGUMENTS:
Argument Definitions
| Argument | Format | Default | Description | ||
|---|---|---|---|---|---|
task-file | Path or filename | Auto-detect | Task file name or path (e.g., add-validation.feature.md) | ||
--continue | --continue | None | Continue implementation from the last completed step: resolves the implementation phase in progress, completes its outstanding steps, then reviews that phase — see Context Resolution for `--continue`. | ||
--refine | --refine | false | Incremental refinement mode - detect changes against git, map them to steps, and re-verify from the implementation phase that owns the earliest affected step. | ||
--human-in-the-loop | --human-in-the-loop [Phase 1,Phase 3,...] | None | Implementation phases after whose review to pause for human verification. If no phases specified, pauses after every implementation phase. | ||
--target-quality | --target-quality X.X | 4.0 | Single target threshold value (out of 5.0) applied to every implementation phase review. | ||
--max-iterations | --max-iterations N | 3 | Maximum fix→re-review cycles per implementation phase. Default is 3 iterations. Set to unlimited for no limit. | ||
--skip-reviews | --skip-reviews | false | Skip all phase reviews - steps proceed without quality gates. | ||
--model | `opus\ | sonnet\ | haiku` | Unset | Model for all sub-agents (implementation agents AND sdd:code-reviewer) that overrides every model in the task file; when omitted, step models come from the Parallelization Overview and reviewer models from the Phase Overview. |
--strict | --strict | false | Disable the Iteration Discretion Rule - a phase is marked PASS ONLY when combined_score >= THRESHOLD, otherwise iterate until MAX_ITERATIONS is reached. |
Configuration Resolution
Parse $ARGUMENTS and resolve configuration as follows:
# Extract task file (first positional argument, optional - auto-detect if not provided)
TASK_FILE = first argument that is a file path or filename
# Single quality threshold — there is exactly one, and it is NEVER read from the task file
THRESHOLD = --target-quality value || 4.0
# Initialize other defaults
MODEL_OVERRIDE = --model value (opus|sonnet|haiku) || none # none = no override; models come from the task file
MAX_ITERATIONS = --max-iterations || 3 # default is 3 iterations
HUMAN_IN_THE_LOOP_PHASES = --human-in-the-loop || [] (empty = none, "*" = all implementation phases)
SKIP_REVIEWS = --skip-reviews || false
REFINE_MODE = --refine || false
CONTINUE_MODE = --continue || false
STRICT_MODE = --strict || false
# Special handling for --human-in-the-loop without a phase list
if --human-in-the-loop present without phase identifiers:
HUMAN_IN_THE_LOOP_PHASES = "*" (all implementation phases)`THRESHOLD` is the ONLY quality threshold in this workflow. There is no separate standard/critical/lenient value, no comma-separated form, and no threshold anywhere in the task file — the planning agents are forbidden from writing one.
Context Resolution for --continue
When --continue is used, state is resolved by implementation phase, then step:
- Phase and Step Resolution:
- Read the task file's
### Parallelization Overviewstep table and### Phase Overview. - A step is complete when its row in the step table is marked
[DONE]. - An implementation phase is complete when its
#### Phase Nheading carries either marker:[REVIEWED](its review ran and passed) or[REVIEWED-SKIPPED](its steps finished and its review was deliberately suppressed by an earlier--skip-reviewsrun). RESUME_PHASE= the first implementation phase marked neither[REVIEWED]nor[REVIEWED-SKIPPED]. Treating[REVIEWED-SKIPPED]as unfinished would re-run exactly the review the user suppressed.RESUME_STEPS= the steps ofRESUME_PHASEthat are not[DONE], in dependency order.
- Verify the resumed phase's existing work:
- If
RESUME_PHASEalready has some[DONE]steps but neither marker, andRESUME_STEPSis empty (all steps done, review never ran): - If `SKIP_REVIEWS` is true: launch nothing. Mark the phase
[REVIEWED-SKIPPED]and resume at the next implementation phase. - Otherwise: launch the
sdd:code-reviewerforRESUME_PHASE(passing the 4 inputs documented in Workflow Phase 2) — Model:MODEL_OVERRIDEif set — otherwise that phase'sReviewer model. - If the phase PASSES per the Iteration Discretion Rule: mark it
[REVIEWED]and resume at the next implementation phase. - Otherwise: enter the Failure Handling flow for that phase.
- If
RESUME_STEPSis non-empty: dispatch those steps first, then review the phase as normal — andSKIP_REVIEWSstill suppresses that review, marking the phase[REVIEWED-SKIPPED]instead.
- State Recovery:
- Check task file location (
in-progress/,todo/,done/) - If in
todo/, move toin-progress/before continuing - Pre-populate captured values from existing artifacts
Refine Mode Behavior (--refine)
When --refine is used, it detects changes to project files (not the task file) and maps them to steps, then re-verifies from the implementation phase that owns the earliest affected step.
- Detect Changed Project Files:
First, determine what to compare against based on git state:
# Check for staged changes
STAGED=$(git diff --cached --name-only)
# Check for unstaged changes
UNSTAGED=$(git diff --name-only)Comparison logic:
| Staged | Unstaged | Compare Against | Command |
|---|---|---|---|
| Yes | Yes | Staged (unstaged only) | git diff --name-only |
| Yes | No | Last commit | git diff HEAD --name-only |
| No | Yes | Last commit | git diff HEAD --name-only |
| No | No | No changes | Exit with message |
- If both staged AND unstaged: Compare working directory vs staging area (unstaged changes only)
- If only staged OR only unstaged: Compare against last commit
- This ensures refine operates on the most recent work in progress
- Map Changes to Steps:
- Read the task file's
### Parallelization Overviewto get every step name, its implementation phase, and itsSub-Task Filepath.
More from neolabhq
Use this skill in a project
Open any RiverX project, search the Skills panel for neolabhq/context-engineering-kit/implement-task, and install it in one click.
