neolabhq/context-engineering-kit1 file

Do In Steps

Execute one complex task as ordered, dependent steps run sequentially, passing context from each step to the next, with per-step LLM-as-a-judge verification. Use when later steps depend on the results of earlier ones.

Specification
Skill ID
neolabhq/context-engineering-kit/do-in-steps
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/do-in-stepsInstalls these files
  • SKILL.md

What this skill tells the agent

do-in-steps

<task> Execute a complex task by decomposing it into sequential subtasks and orchestrating sub-agents to complete each step in order. Automatically analyze the task to identify dependencies, select a right-sized model for each subtask, pass relevant context from completed steps to subsequent ones, and verify each step with an independent judge (using a meta-judge evaluation specification) before proceeding. </task>

<context> This command implements the Supervisor/Orchestrator pattern for sequential task execution with context passing and meta-judge → LLM-as-a-judge verification. You (the orchestrator) analyze a complex task, decompose it into ordered subtasks, then for each step dispatch a meta-judge AND implementation agent in parallel. The meta-judge generates step-specific evaluation criteria while the implementation runs concurrently. Each sub-agent receives:

  • Isolated context - Clean context window for its specific subtask
  • Right-sized model - Chosen per step by the Model Selection Policy: sonnet/haiku by default, opus only when earned
  • Previous step context - Summary of relevant outputs from preceding steps
  • Structured reasoning - Zero-shot CoT prefix for systematic thinking
  • Self-critique - Internal verification before submission
  • Structured evaluation - Meta-judge produces tailored rubrics and checklists per step before judging occurs
  • External judge - LLM-as-a-judge verification using meta-judge specification with iteration loop
  • Parallel speed - Meta-judge and implementation agent run in parallel per step; meta-judge specification reused across retries within that step

</context>

Arguments

ArgumentFormatDefaultDescription
taskFree-form textRequiredTask description to decompose and execute
--strict--strictfalseDisable the Iteration Discretion Rule - a step passes ONLY when score >= 4.0, otherwise retry until max retries is reached.
--model`haiku\sonnet\opus`auto-selected per stepExplicit user override for all sub-agents in every step: implementation, meta-judge, and judge. When omitted, you MUST select a tier per step per the Model Selection Policy — there is no fixed fallback tier. When provided, the user's choice wins over the policy for every sub-agent — see the Escalation Rule for how escalation interacts with an explicit override.

Example: /do-in-steps Refactor UserService class and update all consumers --strict

CRITICAL: You are the orchestrator only - you MUST NOT perform the task yourself. IF you read, write or run bash tools you failed task imidiatly. It is single most critical criteria for you. If you used anyting except sub-agents you will be killed immediatly!!!! Your role is to:

  1. Analyze and decompose the task
  2. Select the model tier and agent for each subtask per the Model Selection Policy — sonnet/haiku by default, opus only when earned
  3. For each step: dispatch meta-judge AND implementation agent in parallel (meta-judge FIRST in dispatch order)
  4. Wait for BOTH to complete, then dispatch judge with meta-judge's specification
  5. Iterate if judge fails the step (max 3 retries), reusing same meta-judge specification
  6. Collect outputs and pass context forward
  7. Report final results

RED FLAGS - Never Do These

NEVER:

  • Read implementation files to understand code details (let sub-agents do this)
  • Write code or make changes to source files directly
  • Skip decomposition and jump to implementation
  • Perform multiple steps yourself "to save time"
  • Overflow your context by reading step outputs in detail
  • Read judge reports in full (only parse structured headers)
  • Skip judge verification and proceed next step
  • Provide score threshold to the judge in any format

ALWAYS:

  • Use Task tool to dispatch sub-agents for ALL implementation work
  • Dispatch meta-judge AND implementation agent in parallel per step (meta-judge FIRST in dispatch order)
  • Wait for BOTH meta-judge and implementation to complete before dispatching judge
  • Pass step's meta-judge evaluation specification to the judge agent
  • Include CLAUDE_PLUGIN_ROOT=${CLAUDE_PLUGIN_ROOT} in prompts to meta-judge and judge agents
  • Reuse same meta-judge specification across retries within a step (never re-run meta-judge for retries)
  • Dispatch a NEW meta-judge for each new step (each step gets its own tailored specification)
  • Use Task tool to dispatch independent judges for step verification
  • Pass only necessary context summaries, not full file contents
  • Get pass from judge verification before proceeding to next step
  • Iterate with judge feedback if verification fails (max 3 retries)
  • Apply the Iteration Discretion Rule to every step verdict, unless --strict was provided

Any deviation from orchestration (attempting to implement subtasks yourself, reading implementation files, reading full judge reports, or making direct changes) will result in context pollution and ultimate failure, as a result you will be fired!

Model Selection Policy

Picking the model is the single highest-leverage decision you make — more than any prompt wording, it decides whether a step comes back correct and how long the chain takes. You MUST NOT treat it as a formality: name the tier and give a one-line justification before dispatching each step. Reaching for the strongest model because you did not want to think is a failure, not caution.

Tier default: sonnet and haiku are the default. opus is reserved and opt-in — it MUST be earned by a trigger in the table below, never picked because you are unsure.

Per step, not per run: a tier is chosen independently for every step, from that step's own scope, complexity and risk. One decomposition may legitimately mix tiers — opus for a contract change, haiku for the mechanical follow-ups. A tier reached in one step (including one reached by escalation) MUST NOT be carried into the next.

Selection Rules

Task shapeTierExamples
Single documentation/text file correction — no code, no cross-file reasoninghaikuFix a typo, update a link, correct a stale command in a README
Small, few-line (~10 lines or fewer), mechanical code change confined to one filehaikuBump a constant, add a guard clause, rename a local, edit a config value
Code writing — new functions, components or tests, single-module changes, established patternssonnetAdd an endpoint, write a service method plus tests, refactor one module
Multi-file refactoring (~3+ files, or any file count when a shared contract changes) OR critical (auth, payments/billing, data integrity, irreversible migration, public API break) OR complex logic (concurrency, non-trivial algorithms, architectural decisions)opusCross-cutting refactor, auth or payment logic, schema migration, novel algorithm design

Use this skill in a project

Open any RiverX project, search the Skills panel for neolabhq/context-engineering-kit/do-in-steps, and install it in one click.

Use this skill