neolabhq/context-engineering-kit1 file

Implement Task

Implement a task step by step with automated LLM-as-Judge verification at the end of each phase

Specification
Skill ID
neolabhq/context-engineering-kit/implement-task
Publisher
neolabhq
Repository
context-engineering-kit
Installs
0
Files
1
Synced
Sep 23, 2026
How to use it

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

$ARGUMENTS

Vocabulary (read this first — two different things are called "phase")

TermMeaning
Workflow Phase 0-5The stages of THIS skill (select task, load, execute, DoD, move, report).
Implementation phase / Phase NA 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.
StepOne 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

ArgumentFormatDefaultDescription
task-filePath or filenameAuto-detectTask file name or path (e.g., add-validation.feature.md)
--continue--continueNoneContinue 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--refinefalseIncremental 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,...]NoneImplementation phases after whose review to pause for human verification. If no phases specified, pauses after every implementation phase.
--target-quality--target-quality X.X4.0Single target threshold value (out of 5.0) applied to every implementation phase review.
--max-iterations--max-iterations N3Maximum fix→re-review cycles per implementation phase. Default is 3 iterations. Set to unlimited for no limit.
--skip-reviews--skip-reviewsfalseSkip all phase reviews - steps proceed without quality gates.
--model`opus\sonnet\haiku`UnsetModel 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--strictfalseDisable 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:

  1. Phase and Step Resolution:
  • Read the task file's ### Parallelization Overview step 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 N heading 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-reviews run).
  • 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 of RESUME_PHASE that are not [DONE], in dependency order.
  1. Verify the resumed phase's existing work:
  • If RESUME_PHASE already has some [DONE] steps but neither marker, and RESUME_STEPS is 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-reviewer for RESUME_PHASE (passing the 4 inputs documented in Workflow Phase 2) — Model: MODEL_OVERRIDE if set — otherwise that phase's Reviewer 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_STEPS is non-empty: dispatch those steps first, then review the phase as normal — and SKIP_REVIEWS still suppresses that review, marking the phase [REVIEWED-SKIPPED] instead.
  1. State Recovery:
  • Check task file location (in-progress/, todo/, done/)
  • If in todo/, move to in-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.

  1. 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:

StagedUnstagedCompare AgainstCommand
YesYesStaged (unstaged only)git diff --name-only
YesNoLast commitgit diff HEAD --name-only
NoYesLast commitgit diff HEAD --name-only
NoNoNo changesExit 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
  1. Map Changes to Steps:
  • Read the task file's ### Parallelization Overview to get every step name, its implementation phase, and its Sub-Task File path.

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.

Use this skill