mk:autobuild — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited mk:autobuild (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
<!-- Lifecycle canonical source: .claude/workflow.yaml — autobuild steps are Step 0–6 (distinct from the 7 lifecycle phases) -->
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. -->
Activate when:
/mk:autobuild "build a X" (or any green-field product description)mk:cookSkip when:
/mk:cook insteadmk:scale-routing (or density-select.sh); honors MEOWKIT_AUTOBUILD_MODE env override--budget value--max-iter)tasks/autobuild-runs/YYMMDD-{slug}/run.md with full audit trail--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.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| Mode | Tier | Planner | Contract | Iteration Loop | Context Reset |
|---|---|---|---|---|---|
| MINIMAL | TRIVIAL (Haiku) | Skip (use plan-creator --fast) | Skip | Skip | Skip |
| FULL | STANDARD (Sonnet) / COMPLEX (Opus 4.5) | Required | Required | 1–3 rounds | Optional |
| LEAN | COMPLEX (Opus 4.6+) | Required | Optional | 0–1 rounds | Skip (auto-compact) |
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}mk:cook for single features, bug fixes, refactors. The autobuild workflow is for "build me an app" scope.MEOWKIT_AUTOBUILD_MODE=LEAN does NOT skip Gate 2. Review verdict is still mandatory before ship.budget-tracker.sh says block, the autobuild workflow halts even mid-iteration./mk:autobuild --resume {run-id} picks up at the last completed step.| File | Purpose |
|---|---|
workflow.md | Step sequence + variable table |
step-00-tier-detection.md | Density selection via scale-routing |
step-01-plan.md | Product-level planning |
step-02-contract.md | Sprint contract negotiation |
step-03-generate.md | Developer subagent dispatch with 4-subphase pattern |
step-04-evaluate.md | Evaluator dispatch |
step-05-iterate-or-ship.md | PASS/FAIL routing + iteration loop |
step-06-run-report.md | Audit trail writer |
references/adaptive-density-matrix.md | Full decision table per tier × model |
references/agent-teams-vs-subagents.md | When to use teams vs file-based subagents |
scripts/density-select.sh | Standalone density selector for scriptable use |
scripts/budget-tracker.sh | Cost-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 |
Read and follow workflow.md.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.