Skip to content

Workflow Phases

Every non-trivial task flows through MeowKit's 7-phase pipeline. Each phase has a specific agent, a clear deliverable, and (in two cases) a hard gate requiring human approval.

Phase 0 — Orient (automatic)

Agent: orchestrator, analyst Deliverable: Model tier assignment, execution mode, context loaded

  • Read docs/project-context.md (agent constitution — loaded first, always; auto-injected by project-context-loader.sh hook)
  • Read memory/lessons.md and memory/patterns.json
  • Run meow:scale-routing — domain-based complexity classification (CSV-driven)
  • Load stack-relevant skills only (lazy loading)
  • Route: assign model tier by task complexity (Haiku / Sonnet / Opus)
  • Select execution mode: sequential (default), parallel (COMPLEX), or party (discussions)
  • Print cost estimate before starting

When you're unsure which phase to enter next, run:

bash
/meow:help

/meow:help scans plans, reviews, tests, git log, and memory to determine current pipeline state and prints a single concrete next action. Use it to re-orient after a context reset or mid-session interruption.

Execution modes

ModeWhenHow
SequentialDefault for all tasksPhases run one at a time, single agent per phase
ParallelCOMPLEX tasks with independent subtasksUp to 3 agents, each in a git worktree, zero file overlap
PartyArchitecture decisions, trade-off analysis2-4 agents deliberate, one synthesis — no code during party

Party Mode is triggered explicitly:

/meow:party "Should we use GraphQL or REST for the public API?"

Phase 1 — Plan Gate 1

Agent: planner Deliverable: tasks/plans/YYMMDD-name.md

Phase 1 produces an approved plan using one or more planning skills:

SkillLensUse when
meow:plan-creatorFull plan creationStarting from scratch
meow:plan-ceo-reviewProduct lensIs this the right thing to build?
meow:plan-eng-reviewEngineering lensIs this the right way to build it?

Gate 1 behavior — Print & Stop

All three skills end with a Print & Stop:

  1. Skill prints a copy-pasteable /meow:cook [plan path] command
  2. Claude stops — no auto-proceed
  3. You review the output and decide the next step
  4. When ready: run /meow:cook [plan path] to begin Phase 2

Review combinations

You control which reviews to run. Common patterns:

bash
# Plan only — fastest
/meow:cook tasks/plans/260328-feature.md

# Plan + product review
# Run meow:plan-ceo-review, then:
/meow:cook tasks/plans/260328-feature.md

# Plan + both reviews (recommended for large features)
# Run meow:plan-ceo-review, then meow:plan-eng-review, then:
/meow:cook tasks/plans/260328-feature.md

No skill automatically chains into another. You decide the review depth.

  • HUMAN APPROVAL REQUIRED — no code until plan is approved

Phase 2 — Test RED

Agent: tester Deliverable: Failing tests

  • Write failing tests FIRST — the task file's acceptance criteria drive the test cases
  • pre-implement.sh hook: BLOCKS if no failing test exists
  • Security pre-check: scan for known anti-patterns

Phase 3 — Build GREEN

Agent: developer
Deliverable: Passing implementation

  • Implement until tests pass
  • post-write.sh hook: security scan on every file write
  • Self-heal: auto-fix failures up to 3 attempts
  • Memory capture: log patterns as they emerge

Phase 4 — Review ✋ Gate 2

Agent: reviewer Deliverable: tasks/reviews/YYMMDD-name-verdict.md

  • 5-dimension structural audit: architecture, types, security, tests, performance
  • validate.py: deterministic checks outside the LLM
  • Review verdict saved to tasks/plans/YYMMDD-name/reports/
  • HUMAN APPROVAL REQUIRED — no shipping until review passes

Phase 5 — Ship

Agent: shipper
Deliverable: PR URL + rollback documentation

  • pre-ship.sh hook: full test + lint + typecheck
  • Conventional commit (auto-generated)
  • PR — never push to main directly
  • Verify CI passes before closing
  • Document rollback steps

Phase 6 — Reflect (automatic)

Agent: documenter, analyst Deliverable: Updated memory + documentation

  • Capture patterns to memory/
  • Update memory/lessons.md and memory/cost-log.json
  • Sync affected documentation
  • Close sprint task

Hook Enforcement

MeowKit uses shell hooks to upgrade behavioral rules to preventive enforcement — the action is blocked before it executes, not after the agent has already reasoned its way past the rule.

HookEventWhat it blocks
privacy-block.shPreToolUse.env, *.key, credential file reads
gate-enforcement.shPreToolUseSource code writes before Gate 1 approval
project-context-loader.shSessionStartMissing project-context.md (auto-loads it)

privacy-block.sh and gate-enforcement.sh are preventive — they intercept the tool call. project-context-loader.sh is proactive — it ensures the agent constitution is in context before any task runs.

Hooks supplement rules. Rules define the WHY; hooks enforce the WHAT.

Plan-First Gate Pattern

Most MeowKit skills enforce a plan-first gate: they check for an approved plan before proceeding with significant work.

SkillGate behaviorSkip condition
meow:cookCreate plan if missingPlan path arg, --fast mode
meow:fixPlan if > 2 files--quick mode
meow:shipRequire approved planHotfix with human approval
meow:csoScope audit via plan--daily mode
meow:qaCreate QA scope docQuick tier
meow:reviewRead plan for contextPR diff reviews
meow:workflow-orchestratorRoute to plan-creatorFasttrack mode
meow:investigateProduces input FOR plansAlways skips
meow:office-hoursPre-planning skillAlways skips
meow:retroData-driven, no planAlways skips
meow:document-releaseScope from diffPost-ship sync

Skills that skip planning have documented reasons — they either produce planning input (investigate, office-hours) or are data-driven (retro).

Released under the MIT License.