Use when a user provides source text or a source artifact and wants project-aware batch planning, reviewed per-batch implementation contracts, and sequential batch execution until complete or blocked.
Install
npx skillscat add bryanzk/mycodexenv/batch-delivery-loop Install via the SkillsCat registry.
SKILL.md
Batch Delivery Loop
Turn a source artifact into a reviewed batch delivery path, then execute only the approved batches. This skill orchestrates existing skills; it must not reimplement lifecycle routing, committee review, or repo-specific commands.
Required Sub-Skills
- Use
delivery-harness-frameworkfirst for repo state, lifecycle stage, execution lane, dirty worktree, and verification gates. - Use repo-local
AGENTS.md,docs/repo-index.md,docs/harness-state.md, and nearby source-of-truth docs before writing plans. - Use
dual-committee-review-loopfor batch plan review and implementation contract review.
Inputs
source_text_or_path: bounded text or local artifact to transform.objective: user-facing outcome.output_dir: defaultdocs/plans.target_rating: default10/10.max_review_rounds: default5.execution_mode:plan_only,contracts_only, orfull; defaultfull.stop_conditions: optional user-provided blockers or boundaries.
Workflow
Phase 0: Route And Guard
- Read repo instructions and state in the order required by
delivery-harness-framework. - Classify lifecycle stage, execution lane, dirty worktree ownership, forbidden actions, and PR-gated or approval-gated actions.
- Define Definition of Done: created docs, review threshold, execution scope, verification command(s), usability check, and stop conditions.
- Do not call live services, deploy, delete PR-gated artifacts, mutate external systems, or read secrets unless the active user request explicitly authorizes that action.
- Before any dual review, sanitize or bound source content according to
dual-committee-review-loop; stop if the artifact contains secrets, credentials, private customer data, production data, or unrelated local context.
Phase 1: Batch Plan
- Generate one batch execution plan under
output_dir. - Split batches by dependency order, blast radius, ownership boundary, and verification gate.
- Include objective, source artifact, assumptions, out-of-scope items, stop conditions, batch order, expected files or surfaces, and verification per batch.
- Run
dual-committee-review-loopon the plan withtarget_ratingandmax_review_rounds. - If review returns a non-rating
blockedorstopverdict, surface that blocker verbatim and stop. Do not treat it as a failed score. - If review completes but does not reach
target_rating, stop and report the rating gap. Do not create contracts or execute batches. - If
execution_modeisplan_only, stop after the reviewed plan and report the next safe task.
Phase 2: Implementation Contracts
- Generate one contract doc per approved batch.
- Each contract must include:
- scope
- allowed files or surfaces
- forbidden files and actions
- implementation steps
- tests or checks
- acceptance criteria
- rollback or revert path
- blocker conditions
- Run
dual-committee-review-loopon the contract set withtarget_ratingandmax_review_rounds. - If review returns a non-rating
blockedorstopverdict, surface that blocker verbatim and stop. Do not treat it as a failed score. - If review completes but does not reach
target_rating, stop before execution and report the rating gap. - If
execution_modeiscontracts_only, stop after the reviewed contracts and report the next safe task.
Phase 3: Execute Batches
- Execute batches sequentially in approved order.
- Before each batch, use
delivery-harness-frameworkto re-check repo status, execution lane, current blockers, and dirty-worktree ownership (agent_ownedvsuser_owned) before writing. - Use the current repo's test and verification entrypoints; do not hardcode project-specific commands in this skill.
- After each batch, run the focused verification named in its contract.
- Stop on a failed gate, unclear user decision, external dependency, dirty-state conflict, safety boundary, or changed source-of-truth.
- After the final batch, run the final verification gate and report the next safe task.
Final Report
Return:
- Plan docs created.
- Contract docs created.
- Batches completed or blocked.
- Changed files.
- Plan and contract review evidence, including dual-committee verdicts, round counts, and blockers.
- Verification evidence with
command,exit_code,key_output, andtimestamp. - Remaining risks.
- Next safe task.
Common Mistakes
- Creating three separate skills for planning, contracts, and execution.
- Copying
delivery-harness-frameworkordual-committee-review-looplogic instead of requiring those skills. - Hardcoding ShipQ paths, commands, fixtures, or business rules.
- Proceeding from plan to contracts, or contracts to execution, without meeting
target_rating. - Treating green tests as sufficient when the batch contract also requires doc, UI, safety, or usability checks.