MeowKit

Build a Feature

Step-by-step guide to building features with /mk:cook, from plan to ship.

/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

/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

/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

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

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

With TDD

/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

/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

/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, it is 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, it is 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 three files needs one.
  • 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, so read it if you resume mid-build.

When it goes wrong

What you seeWhyWhat to do
The plan is far broader than you meantThe description left the scope openNarrow it: "cart for the product page", not "cart"
Tests only cover the happy pathThe tester read the acceptance criteria literallyAsk for the edge cases you care about: zero quantity, maximum quantity
The developer self-heals three times, then escalatesThe tests expect a different approach than the implementation tookDecide which is wrong, the plan or the tests, and fix that one rather than the symptom
Review FAILs on securityHardcoded values or an unsafe patternFix the findings; the review re-runs automatically

Next steps

On this page