Skip to content
cccskills
FreePublished on GitHub

mk:autobuild

Use when running an autonomous multi-hour build of a green-field product — orchestrates planner → contract → generator ⇄ evaluator loop with adaptive scaffolding density per model tier. Triggers on /mk:autobuild, "build me a kanban app", "build a retro game maker", "autonomous build", or any green-field product spec. NOT for scoped single-task work (see mk:cook); NOT for initial project scaffolding only (see mk:bootstrap).

The English summary is being prepared. Showing the original description.

See how to install

Files included (14)

  • SKILL.md8.8 KB
  • references/adaptive-density-matrix.md6.4 KB
  • references/advice-checkpoints.md5.8 KB
  • references/agent-teams-vs-subagents.md5.6 KB
  • scripts/budget-tracker.sh3.2 KB
  • scripts/density-select.sh3.1 KB
  • step-00-tier-detection.md3.3 KB
  • step-01-plan.md2.4 KB
  • step-02-contract.md3.7 KB
  • step-03-generate.md5.4 KB
  • step-04-evaluate.md5.1 KB
  • step-05-iterate-or-ship.md11.5 KB
  • step-06-run-report.md5.4 KB
  • workflow.md6.5 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

<!-- Lifecycle canonical source: .claude/workflow.yaml — autobuild steps are Step 0–6 (distinct from the 7 lifecycle phases) -->

mk:autobuild — Autonomous Multi-Hour Build Orchestration

Step-file workflow that runs the complete generator/evaluator harness pipeline as an autonomous build. Handles green-field product builds (planner stage → contract stage → evaluator loop → ship decision) with adaptive scaffolding density based on detected model tier.

<!-- Note: autobuild pipeline stages are numbered Step 0–6 (see Workflow section below). --> <!-- "Stage" is used to name pipeline roles to avoid clashing with the 7 lifecycle phases. -->

When to Use

Activate when:

  • User runs /mk:autobuild "build a X" (or any green-field product description)
  • Existing kit detection routes a green-field "build me an app" intent here instead of mk:cook
  • A multi-hour autonomous build is requested with no manual handholding

Skip when:

  • The task is a single feature, bug fix, or refactor → use /mk:cook instead
  • The task is a doc update → use the existing doc skills
  • The request is "explain X" or "review Y" → use the appropriate single-shot skill

Hard Constraints

  1. Adaptive density — picks scaffolding density via mk:scale-routing (or density-select.sh); honors MEOWKIT_AUTOBUILD_MODE env override
  2. Budget caps — warns at $30 spent, requires explicit approval at $100, hard-blocks at user-set --budget value
  3. 6-hour wall-clock timeout — hard limit per Anthropic's observed runs <!-- research-citation -->; checkpoints every step for resumability
  4. Max 3 iteration rounds between generator and evaluator before escalating to human (configurable via --max-iter)
  5. Run report mandatory — every autobuild run produces tasks/autobuild-runs/YYMMDD-{slug}/run.md with full audit trail
  6. Coexists with mk:cook — does not replace it; both route through Gate 1 + Gate 2
  7. TDD opt-in (parallel to cook): autobuild respects --tdd like other flows. Default: no RED-phase gate. With --tdd: writes the .claude/session-state/tdd-mode sentinel and the developer waits on tester before each generator iteration. Active-verification HARD GATE (Rule 8 of harness-rules.md) is independent of TDD mode and always applies.

--advice (composable, off by default)

Opt-in strategic supervision for one run. At named macro checkpoints — GUIDE at the Plan/Contract boundary, RESCUE on a plateau or scope drift, REVIEW after the terminal evaluator verdict and before the Gate 2 question, RECHECK after a correction; hard cap 5 per run — the athena agent assesses the situation, recommends an operational path inside the locked scope, and may return the work for correction.

It never approves. Gate 2 at step-05 §5c stays human, the evaluator keeps its verdict and its active-verification hard gate, the iteration cap and budget thresholds keep their own schedules, and supervision counts as no verification. Checkpoints are macro boundaries — never per generated artifact and never per evaluator iteration, so a five-round build makes no more calls than a one-round build.

Without the flag there are zero calls and no state is written.

Checkpoints: references/advice-checkpoints.md. Contract: .claude/rules-conditional/advice-supervision-rules.md (load only when the flag is present).

Workflow

Execute via workflow.md. Step-file architecture — load one step at a time.

Step 0: Tier Detection      → call mk:scale-routing; pick density (MINIMAL|FULL|LEAN)
Step 1: Plan                → invoke mk:plan-creator --product-level
Step 2: Contract            → invoke mk:sprint-contract (skipped if LEAN + small)
Step 3: Generate            → spawn developer subagent w/ 4-subphase pattern
Step 4: Evaluate            → invoke mk:evaluate
Step 5: Iterate or Ship     → PASS → shipper; FAIL → loop to step-3 (max --max-iter)
Step 6: Run Report          → write the audit trail

Density Modes

ModeTierPlannerContractIteration LoopContext Reset
MINIMALTRIVIAL (Haiku)Skip (use plan-creator --fast)SkipSkipSkip
FULLSTANDARD (Sonnet) / COMPLEX (Opus 4.5)RequiredRequired1–3 roundsOptional
LEANCOMPLEX (Opus 4.6+)RequiredOptional0–1 roundsSkip (auto-compact)

Run Report Schema

Every run writes tasks/autobuild-runs/YYMMDD-{slug}/run.md:

---
run_id: 260408-1450-build-todo
density: LEAN
model: opus-4-6
budget_cap: 50
budget_spent: 12.40
iterations: 1
status: PASS | WARN | FAIL | ESCALATED | TIMED_OUT
started: 2026-04-08T14:50:00Z
ended: 2026-04-08T15:18:00Z
---

# Autobuild Run — {task description}

## Density Decision
- Detected tier: {tier}
- Detected model: {model-id}
- Density: {MINIMAL|FULL|LEAN}
- Source: scale-routing | env-override | --tier flag

## Per-Step Artifacts
- step-00: {tier-detection result}
- step-01: tasks/plans/{plan-dir}/plan.md
- step-02: tasks/contracts/{contract}.md (or "skipped — LEAN small sprint")
- step-03: handoff at tasks/handoff/{slug}-sprint-1.md
- step-04: verdict at tasks/reviews/{slug}-evalverdict.md
- step-05: iteration count + final action
- step-06: this file

## Budget Trail
| Step | Spent | Cumulative |
|---|---|---|
| ... | ... | ... |

## Final Verdict
{PASS/FAIL/ESCALATED summary + next action}

Gotchas

  • Don't run on a non-green-field task. Use mk:cook for single features, bug fixes, refactors. The autobuild workflow is for "build me an app" scope.
  • Density override stays in scope. MEOWKIT_AUTOBUILD_MODE=LEAN does NOT skip Gate 2. Review verdict is still mandatory before ship.
  • Iteration loops are bounded. Max 3 by default. After round 3, escalate — don't keep iterating blindly.
  • Budget check is authoritative. If budget-tracker.sh says block, the autobuild workflow halts even mid-iteration.
  • Run reports are append-only. Don't edit prior steps' entries — the report is the audit trail.
  • Resumable. If the autobuild workflow is killed mid-run, /mk:autobuild --resume {run-id} picks up at the last completed step.

References

FilePurpose
workflow.mdStep sequence + variable table
step-00-tier-detection.mdDensity selection via scale-routing
step-01-plan.mdProduct-level planning
step-02-contract.mdSprint contract negotiation
step-03-generate.mdDeveloper subagent dispatch with 4-subphase pattern
step-04-evaluate.mdEvaluator dispatch
step-05-iterate-or-ship.mdPASS/FAIL routing + iteration loop
step-06-run-report.mdAudit trail writer
references/advice-checkpoints.md--advice checkpoint boundaries, caps, and what supervision may not touch
references/adaptive-density-matrix.mdFull decision table per tier × model
references/agent-teams-vs-subagents.mdWhen to use teams vs file-based subagents
scripts/density-select.shStandalone density selector for scriptable use
scripts/budget-tracker.shCost-log reader; threshold warnings + hard block
../plan-creator/Planner stage (Step 1) — product-level planner
../sprint-contract/Contract stage (Step 2) — contract negotiation
../rubric/Rubric stage (Step 2/4) — rubric library
../evaluate/Evaluator stage (Step 4) — behavioral evaluator
../scale-routing/Tier + density emission

Start

Read and follow workflow.md.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Use this skill to generate well-branded interfaces and assets for MeowKit (AI Agent Toolkit for Claude Code), either for production or throwaway prototypes/mocks/etc. Contains essential design guidelines, colors, type, fonts, assets, and UI kit components for prototyping.

The English summary is being prepared. Showing the original description.

ngocsangyem/MeowKit15Updated Jul 28, 2026

Turn a raw idea into ONE honest recommendation: interview one question at a time until confirmed, then give a verdict with trade-offs and a checklist. Not for options or debate.

The English summary is being prepared. Showing the original description.

ngocsangyem/MeowKit15Updated Jul 28, 2026

Browser automation CLI for agents: navigate, click/fill, screenshot, extract data, test apps, Electron/Slack, cloud browsers. NOT for the user's real Chrome profile/cookies (mk:chrome-profile).

The English summary is being prepared. Showing the original description.

ngocsangyem/MeowKit15Updated Jul 28, 2026

Detects the right agent and complexity tier at Phase 0 orient; runs first in every workflow. NOT for runtime agent routing inside a single skill.

The English summary is being prepared. Showing the original description.

ngocsangyem/MeowKit15Updated Jul 28, 2026

Angular v20+ patterns: components, signals, services, forms, routing, HTTP, testing, SSR. Auto-activates on .ts files in Angular projects (angular.json detected).

The English summary is being prepared. Showing the original description.

ngocsangyem/MeowKit15Updated Jul 28, 2026

Design and review durable REST, GraphQL, RPC, or event API contracts: shape, compatibility, pagination, error semantics. Discovers existing consumers first. Not implementation, schema, or release.

The English summary is being prepared. Showing the original description.

ngocsangyem/MeowKit15Updated Jul 28, 2026

See all skills by ngocsangyem

Report a problem with this skill