Skip to content

Build a Feature

/mk:cook is the primary workflow for building features. It runs the full 7-phase pipeline — you describe what you want, and MeowKit handles planning, testing, building, reviewing, and shipping.

Quick start

bash
/mk:cook add user authentication with JWT

That's it. MeowKit detects your intent, creates a plan, and walks through each phase. You approve at two checkpoints (Gate 1 and Gate 2).

Common workflows

From a natural language description

bash
/mk:cook add pagination to the user list API

MeowKit classifies the task, selects the right model tier, and creates a plan. You review and approve the plan before any code is written.

From an existing plan file

bash
/mk:cook tasks/plans/260501-pagination/plan.md

Skips the planning phase. The plan must already be approved (Gate 1).

With TDD

bash
/mk:cook build payment processor --tdd

Failing tests are written before implementation. The developer cannot write code until tests exist and fail. Use --tdd for production-critical features.

Fast mode

bash
/mk:cook add login form --fast

Skips research. The planner still creates a plan, but without deep codebase analysis. Good for well-understood features with clear scope.

Parallel mode

bash
/mk:cook implement checkout system --parallel

Spawns up to 3 agents in isolated git worktrees for independent subtasks. Use when the plan has clearly independent components.

What happens at each phase

PhaseWhat you seeWhat you do
0 — OrientTask classified, model tier declaredNothing — automatic
1 — PlanPlan created with acceptance criteriaApprove the plan (Gate 1)
2 — TestTests written from acceptance criteriaReview test coverage
3 — BuildImplementation proceedsWatch for self-healing attempts
4 — Review5-dimension audit with verdictApprove the review (Gate 2)
5 — ShipPR created, CI triggeredMerge when CI passes
6 — ReflectPatterns captured to memoryNothing — automatic

Choosing the right mode

SituationMode
New feature, clear scopeDefault: /mk:cook "description"
Production-critical feature--tdd for strict test-first discipline
Well-understood feature--fast to skip research
Feature with independent parts--parallel for parallel agents
Feature from existing planPass the plan path directly
Docs-only change--no-test to skip Phase 2

Gotchas

  • Simple features grow. Always let MeowKit create a plan — a "simple" feature that touches 3 files needs planning.
  • Gate 2 is never auto-approved. The --auto flag fixes issues but still requires your review approval.
  • Long sessions lose context. The plan's Agent State section auto-updates — read it if you resume mid-build.

Next steps

Released under the MIT License.