[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DV5S44A09FCA91A487EJQJ":3,"skill-same:01M7DV5S44A09FCA91A487EJQJ":91},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":46},"01M7DV5S44A09FCA91A487EJQJ","mk-cook",null,"Single-task pipeline: plan → test → build → review (ship separately). Use for a feature or scoped fix. NOT for green-field builds (mk:autobuild) or auto-orchestration (mk:workflow-orchestrator).","ngocsangyem\u002FMeowKit","ngocsangyem","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F33769536?v=4","01M6J3FSMJAG9PVQEGRT7AQ9J2","Sang Nguyen","01M6J3FSRTJG0MNP6NV71639RM",16,"MIT","https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-cook\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: \"mk-cook\"\ndescription: \"Single-task pipeline: plan → test → build → review (ship separately). Use for a feature or scoped fix. NOT for green-field builds (mk:autobuild) or auto-orchestration (mk:workflow-orchestrator).\"\ndisable-model-invocation: true\n---\n\n# Cook — Full Implementation Pipeline\n\nImplementation entry adapter. `references\u002Fworkflow-steps.md` is this bundle's lifecycle phase-sequence authority; this skill selects a profile, invokes the relevant owners, and presents the required gates. TDD is opt-in via `--tdd`.\n\n## Usage\n\n```\n\u002Fmk-cook \u003Cnatural language task OR plan path>\n\u002Fmk-cook \"Add user auth\" --fast\n\u002Fmk-cook \"Build payment processor\" --tdd       # Strict TDD enforced\n\u002Fmk-cook tasks\u002Fplans\u002F260329-feature\u002Fplan.md --auto\n```\n\nProfiles: `quick`\u002F`--fast` (inspect → edit → focused verify → summary), `standard` (plan if needed → implement → verify → review), `release` (standard + explicit `mk:ship` request), and `high-assurance` (`--tdd --strict`, with human gates). Flags: `--interactive` (default) | `--fast` | `--parallel` | `--auto` | `--no-test` | `--tdd` | `--verify` | `--strict` | `--no-strict`.\n\nQuick runs do not create a plan, report, memory entry, or ship action by default. They still stop if a risk flag or changed contract requires the standard profile.\n\n**Modifier flags** (layer on any mode): `--verify` [LIGHT] (light browser\u002Fartifact check) | `--strict` [HEAVY] (full evaluator pass) | `--no-strict` (suppress auto-strict)\n\nConcrete cost depends on the inner harness, model tier, and target surface; treat `[LIGHT]` vs `[HEAVY]` as relative ordering only.\n\n**`--verify` is advisory** (does not block ship). **`--strict` is a hard gate** (FAIL blocks ship and routes back to Phase 3).\n\n## TDD mode (`--tdd` flag)\n\nWhen `--tdd` is detected in the invocation, the cook skill MUST write `on` to `.meowkit\u002Fstate\u002Ftdd-mode` via a shell tool call BEFORE any other workflow step:\n\n```bash\nmkdir -p .meowkit\u002Fstate && echo on > .meowkit\u002Fstate\u002Ftdd-mode\n```\n\nThis sentinel file is read by downstream agents to detect TDD mode (this bundle ships no separate hook scripts — the sentinel is a plain file check). Without `--tdd`, the sentinel is absent and the workflow runs in default mode (Phase 2 optional, no RED-phase gate).\n\n`MEOWKIT_TDD=1` env var (set in CI \u002F shell rc) is the highest-precedence opt-in and overrides the sentinel.\n\nWhen loading an existing plan, scan `plan.md` and phase files for `tdd: true`, `## Tests Before`, or `## Regression Gate`. If any are present but this invocation lacks `--tdd` and `MEOWKIT_TDD` is not enabled, warn:\n\n```\nPlan contains TDD sections but cook is not in TDD mode. Re-run with --tdd to enforce RED-first execution, or continue in default mode with TDD guidance only.\n```\n\n**HARD GATE**\n\nDo NOT write implementation code until a plan exists and Gate 1 is approved.\nIn TDD mode (`--tdd` \u002F `MEOWKIT_TDD=1`): do NOT skip Test RED phase — write failing tests BEFORE implementation.\nIn default mode: Phase 2 is optional; the developer may implement directly per the approved plan.\nException: `--fast` mode skips research but still requires plan + (in TDD mode) TDD-flavored tests.\nUser override: Planning may be skipped only when the user explicitly says \"just code it\" or \"skip planning\" **and** Phase 0 found zero matched risk flags. Record the human override and rationale per AGENTS.md (Intervention recording); otherwise explain why Gate 1 still applies.\n\n## Anti-Rationalization\n\nGeneric implementation-phase rationalizations live in AGENTS.md (Core behaviors) — read before any non-trivial implementation step. Cook-specific addition (TDD mode):\n\n| Thought                | Reality                                                                                                                                  |\n| ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |\n| \"Tests can come after\" | In TDD mode (`--tdd`), no — failing tests define the spec. In default mode, yes — tests after is permitted. Choose your mode explicitly. |\n\nBefore starting work, read `references\u002Ffailure-catalog.md` for common implementation failure modes (cross-linked to `## Gotchas` below).\n\n## Smart Intent Detection\n\nSee `references\u002Fintent-detection.md` for full detection logic.\n\n> **Green-field product build** (new kanban app, full SaaS from scratch, multi-sprint autonomous build)? Use `mk:autobuild` instead. Cook handles single features, fixes, and refactors; harness owns the generator↔evaluator loop and adaptive scaffolding density.\n\n| Input Pattern                    | Mode        | Behavior                                      |\n| -------------------------------- | ----------- | --------------------------------------------- |\n| Path to `plan.md` \u002F `phase-*.md` | code        | Execute existing plan                         |\n| \"fast\", \"quick\"                  | fast        | Skip research, plan→test→code                 |\n| \"trust me\", \"auto\"               | auto        | Auto-fix issues, human gates still enforced   |\n| 3+ features OR \"parallel\"        | parallel    | Multi-agent execution                         |\n| \"no test\", \"skip test\"           | no-test     | Skip Test phase only when TDD is not enabled; `--no-test` + `--tdd` is invalid and requires user resolution |\n| Default                          | interactive | Full workflow with user approval at each gate |\n| `--verify`                       | (modifier)  | Light browser check after review (Phase 4.5)  |\n| `--strict`                       | (modifier)  | Full evaluator after review (Phase 4.5)        |\n| `--no-strict`                    | (modifier)  | Suppress auto-strict from scale-routing        |\n\n## Lifecycle Adapter\n\n\u003C!-- Canonical source: references\u002Fworkflow-steps.md — this diagram renders the same lifecycle; -->\n\u003C!-- Workflow phase sequence: 0:Orient > 1:Plan > 2:Test > 3:Build > 3.5:Simplify > 3.6:Verify > 4:Review > 5:Ship > 6:Reflect -->\n\u003C!-- references\u002Fworkflow-steps.md is the authoritative per-phase detail; this Mermaid diagram is the human-facing render. -->\n\n```mermaid\nflowchart TD\n    A[Phase 0: Orient] --> B{Has plan?}\n    B -->|Yes| D[Load Plan]\n    B -->|No| SP[Present scout summary to user]\n    SP --> C[Phase 1: Research + Plan]\n    C --> RQ{5 dims captured?}\n    RQ -->|No| C\n    RQ -->|Yes| G1[GATE 1: Human Approval]\n    G1 -->|approved| D\n    G1 -->|rejected| C\n    D --> E[Phase 2: Test - RED if --tdd, optional otherwise]\n    E --> F[Phase 3: Build GREEN]\n    F --> S[mk:simplify — MANDATORY]\n    S --> V[mk:verify — MANDATORY]\n    V --> G2[Phase 4: Review — GATE 2]\n    G2 -->|approved| BV{--verify or --strict?}\n    BV -->|\"--verify\"| P45A[\"Phase 4.5 --verify advisory\"]\n    BV -->|\"--strict\"| P45B[\"Phase 4.5 --strict blocking\"]\n    BV -->|neither| SR[Report completion]\n    P45A --> SR\n    P45B --> BG{evaluator FAIL?}\n    BG -->|no| SR\n    BG -->|yes| F\n    G2 -->|rejected| F\n    SR --> STOP[Stop and await user direction]\n    STOP -->|explicit ship request| H[Phase 5: Ship]\n    STOP -->|explicit close request| I[Phase 6: Reflect]\n    H --> I\n```\n\nThis diagram is a convenience rendering only; phase details and transitions live in `references\u002Fworkflow-steps.md`, the authoritative source.\n\n### Scout-First Contract (Phase 0)\n\nBefore any clarifying question or plan generation, present a 3–6 bullet codebase-context summary to the user:\n\n1. Project type \u002F language \u002F framework\n2. Existing modules\u002Ffiles relevant to the task\n3. Current patterns\u002Fconventions for similar features\n4. In-flight plans (`tasks\u002Fplans\u002F`) or docs (`docs\u002F`) covering this area\n5. Public APIs \u002F schemas \u002F contracts the task could affect\n\n**Skip when input is a `plan.md` \u002F `phase-*.md` path** — the plan already encodes scout output.\n\nIn `--fast` mode the summary is **abbreviated** (1–3 bullets) but still presented; \"skip research\" reduces external research depth, not codebase-context handoff to the user.\n\n### Exact-Requirements Contract (Phase 1)\n\n`mk:plan-creator` MUST be able to answer all 5 dimensions in concrete sentences before returning a plan:\n\n1. **Expected output** — concrete artifact(s) the user will see (paths, behavior, endpoint, CLI flags)\n2. **Acceptance criteria** — specific inputs → outputs \u002F edge cases\n3. **Scope boundary** — what is explicitly OUT of scope this round\n4. **Non-negotiable constraints** — stack, file locations, naming, compat, deadlines, performance\n5. **Touchpoints** — which existing files (from scout) will be modified \u002F which contracts must stay stable\n\nEvery clarifying-question option MUST cite scout findings (e.g., file paths). Vague abstract options are a failure mode — see `references\u002Ffailure-catalog.md`.\n\n**Skip when input is a `plan.md` \u002F `phase-*.md` path** (plan encodes the 5 dimensions).\n\n## Workflow Modes\n\n| Mode        | Research | TDD          |\n| ----------- | -------- | ------------ |\n| interactive | Yes      | RED-strict   |\n| auto        | Yes      | RED-strict   |\n| fast        | Skip     | Plan-level   |\n| parallel    | Optional | RED-strict   |\n| no-test     | Yes      | Skip         |\n| code        | Skip     | RED-strict   |\n\nGate 1 routing, parallelism, and full per-phase progression live in `references\u002Fintent-detection.md` (canonical Mode Behaviors table).\n\n**Gate 2: human approval mandatory in all modes — see AGENTS.md (Gates) for the full contract.** If the reviewer surfaces a regression \u002F side effect \u002F broken workflow, follow the Regression Recovery Options pattern in `references\u002Freview-cycle.md` rather than silently patching.\n\n## Required sub-task\n\n| Phase         | sub-task                          | When                                     |\n| ------------- | --------------------------------- | ---------------------------------------- |\n| 0 Orient      | `mk:scout`                      | Codebase mapping                         |\n| 1 Plan        | `mk:plan-creator`, `researcher` | Research + planning                      |\n| 2 Test        | `tester` via `mk:testing`       | TDD mode (`--tdd`): **MUST** spawn — write failing tests. Default mode: optional (skip unless requested) |\n| 3 Build GREEN | `developer`                       | Implementation                           |\n| 3 Build GREEN | `developer` via `mk:investigate` | Root-cause analysis when tests fail after 3 self-heal attempts |\n| 3.5 Simplify  | `developer` via `mk:simplify`   | **MANDATORY** after Phase 3 GREEN — run before verify  |\n| 3.6 Verify    | `mk:verify`                     | **MANDATORY** after simplify — unified build+lint+test+coverage check before Phase 4 |\n| 4 Review      | `reviewer` via `mk:review`      | **MUST** spawn — Gate 2                  |\n| 4.5 Verify    | `browser-automation sub-task` or `HTTP verification tool` | Only if `--verify` flag (light browser check) |\n| 4.5 Verify    | `evaluator` via `mk:evaluate`   | Only if `--strict` flag or auto-triggered     |\n\nConcrete sub-task name and HTTP tool depend on installed skill set; cook treats both as interfaces, not specific implementations.\n| 5 Ship        | `shipper` via `mk:ship`         | Only after an explicit ship request — runs full pre-ship pipeline (`git-manager` invoked inside shipper for commit + PR) |\n| 6 Reflect     | `analyst`                       | **MUST** spawn — cost + pattern analysis |\n| 6 Reflect     | `documenter`                      | **MUST** spawn — sync-back + docs        |\n| 6 Reflect     | `mk:memory`                       | Append one gotcha\u002Fdecision only if non-derivable; usually nothing |\n\nDuring iterative build-test-fix cycles, follow `references\u002Floop-safety-protocol.md` for checkpoint tracking, stall detection, and escalation triggers.\n\nSee `references\u002Fsub-task-patterns.md` for delegate a sub-task () invocation patterns.\nSee `references\u002Fworkflow-steps.md` for detailed per-phase instructions.\nSee `references\u002Freview-cycle.md` for review gate logic.\n\n## Simplify Step (Mandatory)\n\nAfter Phase 3 (Build GREEN) completes, run `mk:simplify` to reduce complexity before Phase 4 (Review). This is mandatory — do not skip.\n\nRationale: Review quality improves when code is already simplified. Reviewers catch logic errors better when complexity is low. Running simplify after tests are green (but before review) ensures the reviewed code is the final, clean version.\n\n## Verify Step (Mandatory)\n\nAfter `mk:simplify` completes, run `mk:verify` for a unified build→lint→type-check→test→coverage check. This confirms simplification didn't break anything and gives the reviewer a clean signal. By default `mk:verify` scopes lint and tests to the changed files (build and type-check stay whole-program); the complete whole-project run happens at ship time. Pass `--full` only when a full sweep is needed here.\n\nIf `mk:verify` FAILS after simplify: send back to developer to fix, then re-run verify before proceeding to Phase 4. Do not skip verify or proceed to review with a failing verify result.\n\n## Status Report (Post-Gate 2)\n\nAfter a Gate 2 verdict PASS, delegate to `project-manager` (background — include \"Run in the background\" in the prompt). Status report is co-located at `{plan-dir}\u002Fstatus-reports\u002F{YYMMDD}-status.md`. Stop after reporting completion; invoke `mk:ship` only when the user explicitly requests shipping. Skipped automatically when `MEOWKIT_PM_AUTO=off`.\n\n## Durable Task State (when an active task record exists)\n\nWhen this run drives an **active durable task** (a `tasks\u002Factive\u002F\u003Cid>.json` exists), emit status\u002Fstep at phase transitions and record each acted-on `mewkit capabilities resolve` outcome (`selected|skipped|unavailable|unsupported`) via `mewkit task-state update`. Advisory + best-effort: a failed or unavailable command is surfaced but never blocks the pipeline, and one-off work with no record emits nothing.\n\n## `--advice` (composable, off by default)\n\nOpt-in strategic supervision for one run. At named checkpoints — GUIDE after Gate 1,\nRESCUE on a stall or contradiction, REVIEW after Verify and before the reviewer, RECHECK\nafter a correction; hard cap 5 — the `athena` agent assesses the situation, recommends an\noperational path inside the locked scope, and may return the work for correction.\n\nIt never approves: Gate 1 and Gate 2 remain human, the reviewer keeps its verdict, and\nsupervision counts as no verification.\n\nWithout the flag there are zero calls and no state is written.\n\nCheckpoints: `references\u002Fadvice-checkpoints.md`. Contract: `.cursor\u002Frules\u002Fdomain-advice-supervision.mdc` (load only when the\nflag is present).\n\n## Related Rules\n\n- AGENTS.md (Gates) — Gate 1 (Plan) and Gate 2 (Review) hard-stop conditions this skill enforces across all modes\n- Workflow evidence index (traceability over existing Phase 0-6 outputs; mirrors the gate scripts, never approves). See `references\u002Fworkflow-steps.md` → Workflow Evidence Index\n\n## Gotchas\n\nOperational gotchas live here; pre-build failure modes and rationalizations live in `references\u002Ffailure-catalog.md`.\n\n- **Skipping mk:simplify before review**: Tests pass but code is still complex → run `the simplify skill` between Phase 3 and Phase 4 every time, no exceptions\n- **Skipping Gate 1 on \"simple\" features**: Features that seem simple grow during implementation. Always create a plan file; cancel it if truly trivial\n\u003C!-- lint-allow-gate-authority -->\n- **Auto-approve sneaking bugs past Gate 2**: \"auto\" means automatic execution *between* gates, NOT automatic approval. Auto mode auto-fixes but NEVER auto-approves Gate 2 — gate-rules.md says NO exceptions. The workflow evidence index must be complete before Gate 2 is presented\n- **Context loss between phases**: Long multi-phase workflows exceed the context window — the external-memory write after each completed plan phase is the load-bearing action that lets a fresh session resume the correct phase. This is a mandatory step, not a habit: see the **Per-Phase Checkpoint** in `references\u002Fworkflow-steps.md` (Phase 6) — flip the phase-file checkboxes and update plan.md Agent State before any next-phase transition\n- **Parallel mode deadlocks**: Phase dependencies cause deadlock when phase-03 waits for phase-02 results. Map dependency graph before spawning parallel agents\n- **Code mode on stale plans**: Running old plan against changed codebase. Warn if plan.md is >14 days old\n- **Fast mode shallow test coverage**: Skipping research means tests capture plan-level intent, not edge cases. Document: \"fast mode = TDD-flavored, coverage may be lower\"\n- **Missing model tier declaration**: Expensive models on trivial tasks, cheap models on security-critical work. Always declare tier in Phase 0\n- **sub-task patterns using Agent() not delegate a sub-task ()**: delegate a sub-task () enables tracking, blocking, and progress. Always use delegate a sub-task () for phases 2-6\n- **--strict cost surprise**: `--strict` spawns the full evaluator (`mk:evaluate`) — a [HEAVY] pass. Auto-triggered by scale-routing `level=high`. Use `--no-strict` to suppress, or `--verify` for the [LIGHT] check\n- **--strict vs --verify confusion**: `--verify` = light browser check (advisory). `--strict` = full evaluator with rubrics (FAIL blocks ship). `--strict` supersedes `--verify`\n","# Cook — Full Implementation Pipeline\n\nImplementation entry adapter. `references\u002Fworkflow-steps.md` is this bundle's lifecycle phase-sequence authority; this skill selects a profile, invokes the relevant owners, and presents the required gates. TDD is opt-in via `--tdd`.\n\n## Usage\n\n```\n\u002Fmk-cook \u003Cnatural language task OR plan path>\n\u002Fmk-cook \"Add user auth\" --fast\n\u002Fmk-cook \"Build payment processor\" --tdd       # Strict TDD enforced\n\u002Fmk-cook tasks\u002Fplans\u002F260329-feature\u002Fplan.md --auto\n```\n\nProfiles: `quick`\u002F`--fast` (inspect → edit → focused verify → summary), `standard` (plan if needed → implement → verify → review), `release` (standard + explicit `mk:ship` request), and `high-assurance` (`--tdd --strict`, with human gates). Flags: `--interactive` (default) | `--fast` | `--parallel` | `--auto` | `--no-test` | `--tdd` | `--verify` | `--strict` | `--no-strict`.\n\nQuick runs do not create a plan, report, memory entry, or ship action by default. They still stop if a risk flag or changed contract requires the standard profile.\n\n**Modifier flags** (layer on any mode): `--verify` [LIGHT] (light browser\u002Fartifact check) | `--strict` [HEAVY] (full evaluator pass) | `--no-strict` (suppress auto-strict)\n\nConcrete cost depends on the inner harness, model tier, and target surface; treat `[LIGHT]` vs `[HEAVY]` as relative ordering only.\n\n**`--verify` is advisory** (does not block ship). **`--strict` is a hard gate** (FAIL blocks ship and routes back to Phase 3).\n\n## TDD mode (`--tdd` flag)\n\nWhen `--tdd` is detected in the invocation, the cook skill MUST write `on` to `.meowkit\u002Fstate\u002Ftdd-mode` via a shell tool call BEFORE any other workflow step:\n\n```bash\nmkdir -p .meowkit\u002Fstate && echo on > .meowkit\u002Fstate\u002Ftdd-mode\n```\n\nThis sentinel file is read by downstream agents to detect TDD mode (this bundle ships no separate hook scripts — the sentinel is a plain file check). Without `--tdd`, the sentinel is absent and the workflow runs in default mode (Phase 2 optional, no RED-phase gate).\n\n`MEOWKIT_TDD=1` env var (set in CI \u002F shell rc) is the highest-precedence opt-in and overrides the sentinel.\n\nWhen loading an existing plan, scan `plan.md` and phase files for `tdd: true`, `## Tests Before`, or `## Regression Gate`. If any are present but this invocation lacks `--tdd` and `MEOWKIT_TDD` is not enabled, warn:\n\n```\nPlan contains TDD sections but cook is not in TDD mode. Re-run with --tdd to enforce RED-first execution, or continue in default mode with TDD guidance only.\n```\n\n**HARD GATE**\n\nDo NOT write implementation code until a plan exists and Gate 1 is approved.\nIn TDD mode (`--tdd` \u002F `MEOWKIT_TDD=1`): do NOT skip Test RED phase — write failing tests BEFORE implementation.\nIn default mode: Phase 2 is optional; the developer may implement directly per the approved plan.\nException: `--fast` mode skips research but still requires plan + (in TDD mode) TDD-flavored tests.\nUser override: Planning may be skipped only when the user explicitly says \"just code it\" or \"skip planning\" **and** Phase 0 found zero matched risk flags. Record the human override and rationale per AGENTS.md (Intervention recording); otherwise explain why Gate 1 still applies.\n\n## Anti-Rationalization\n\nGeneric implementation-phase rationalizations live in AGENTS.md (Core behaviors) — read before any non-trivial implementation step. Cook-specific addition (TDD mode):\n\n| Thought                | Reality                                                                                                                                  |\n| ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |\n| \"Tests can come after\" | In TDD mode (`--tdd`), no — failing tests define the spec. In default mode, yes — tests after is permitted. Choose your mode explicitly. |\n\nBefore starting work, read `references\u002Ffailure-catalog.md` for common implementation failure modes (cross-linked to `## Gotchas` below).\n\n## Smart Intent Detection\n\nSee `references\u002Fintent-detection.md` for full detection logic.\n\n> **Green-field product build** (new kanban app, full SaaS from scratch, multi-sprint autonomous build)? Use `mk:autobuild` instead. Cook handles single features, fixes, and refactors; harness owns the generator↔evaluator loop and adaptive scaffolding density.\n\n| Input Pattern                    | Mode        | Behavior                                      |\n| -------------------------------- | ----------- | --------------------------------------------- |\n| Path to `plan.md` \u002F `phase-*.md` | code        | Execute existing plan                         |\n| \"fast\", \"quick\"                  | fast        | Skip research, plan→test→code                 |\n| \"trust me\", \"auto\"               | auto        | Auto-fix issues, human gates still enforced   |\n| 3+ features OR \"parallel\"        | parallel    | Multi-agent execution                         |\n| \"no test\", \"skip test\"           | no-test     | Skip Test phase only when TDD is not enabled; `--no-test` + `--tdd` is invalid and requires user resolution |\n| Default                          | interactive | Full workflow with user approval at each gate |\n| `--verify`                       | (modifier)  | Light browser check after review (Phase 4.5)  |\n| `--strict`                       | (modifier)  | Full evaluator after review (Phase 4.5)        |\n| `--no-strict`                    | (modifier)  | Suppress auto-strict from scale-routing        |\n\n## Lifecycle Adapter\n\n\u003C!-- Canonical source: references\u002Fworkflow-steps.md — this diagram renders the same lifecycle; -->\n\u003C!-- Workflow phase sequence: 0:Orient > 1:Plan > 2:Test > 3:Build > 3.5:Simplify > 3.6:Verify > 4:Review > 5:Ship > 6:Reflect -->\n\u003C!-- references\u002Fworkflow-steps.md is the authoritative per-phase detail; this Mermaid diagram is the human-facing render. -->\n\n```mermaid\nflowchart TD\n    A[Phase 0: Orient] --> B{Has plan?}\n    B -->|Yes| D[Load Plan]\n    B -->|No| SP[Present scout summary to user]\n    SP --> C[Phase 1: Research + Plan]\n    C --> RQ{5 dims captured?}\n    RQ -->|No| C\n    RQ -->|Yes| G1[GATE 1: Human Approval]\n    G1 -->|approved| D\n    G1 -->|rejected| C\n    D --> E[Phase 2: Test - RED if --tdd, optional otherwise]\n    E --> F[Phase 3: Build GREEN]\n    F --> S[mk:simplify — MANDATORY]\n    S --> V[mk:verify — MANDATORY]\n    V --> G2[Phase 4: Review — GATE 2]\n    G2 -->|approved| BV{--verify or --strict?}\n    BV -->|\"--verify\"| P45A[\"Phase 4.5 --verify advisory\"]\n    BV -->|\"--strict\"| P45B[\"Phase 4.5 --strict blocking\"]\n    BV -->|neither| SR[Report completion]\n    P45A --> SR\n    P45B --> BG{evaluator FAIL?}\n    BG -->|no| SR\n    BG -->|yes| F\n    G2 -->|rejected| F\n    SR --> STOP[Stop and await user direction]\n    STOP -->|explicit ship request| H[Phase 5: Ship]\n    STOP -->|explicit close request| I[Phase 6: Reflect]\n    H --> I\n```\n\nThis diagram is a convenience rendering only; phase details and transitions live in `references\u002Fworkflow-steps.md`, the authoritative source.\n\n### Scout-First Contract (Phase 0)\n\nBefore any clarifying question or plan generation, present a 3–6 bullet codebase-context summary to the user:\n\n1. Project type \u002F language \u002F framework\n2. Existing modules\u002Ffiles relevant to the task\n3. Current patterns\u002Fconventions for similar features\n4. In-flight plans (`tasks\u002Fplans\u002F`) or docs (`docs\u002F`) covering this area\n5. Public APIs \u002F schemas \u002F contracts the task could affect\n\n**Skip when input is a `plan.md` \u002F `phase-*.md` path** — the plan already encodes scout output.\n\nIn `--fast` mode the summary is **abbreviated** (1–3 bullets) but still presented; \"skip research\" reduces external research depth, not codebase-context handoff to the user.\n\n### Exact-Requirements Contract (Phase 1)\n\n`mk:plan-creator` MUST be able to answer all 5 dimensions in concrete sentences before returning a plan:\n\n1. **Expected output** — concrete artifact(s) the user will see (paths, behavior, endpoint, CLI flags)\n2. **Acceptance criteria** — specific inputs → outputs \u002F edge cases\n3. **Scope boundary** — what is explicitly OUT of scope this round\n4. **Non-negotiable constraints** — stack, file locations, naming, compat, deadlines, performance\n5. **Touchpoints** — which existing files (from scout) will be modified \u002F which contracts must stay stable\n\nEvery clarifying-question option MUST cite scout findings (e.g., file paths). Vague abstract options are a failure mode — see `references\u002Ffailure-catalog.md`.\n\n**Skip when input is a `plan.md` \u002F `phase-*.md` path** (plan encodes the 5 dimensions).\n\n## Workflow Modes\n\n| Mode        | Research | TDD          |\n| ----------- | -------- | ------------ |\n| interactive | Yes      | RED-strict   |\n| auto        | Yes      | RED-strict   |\n| fast        | Skip     | Plan-level   |\n| parallel    | Optional | RED-strict   |\n| no-test     | Yes      | Skip         |\n| code        | Skip     | RED-strict   |\n\nGate 1 routing, parallelism, and full per-phase progression live in `references\u002Fintent-detection.md` (canonical Mode Behaviors table).\n\n**Gate 2: human approval mandatory in all modes — see AGENTS.md (Gates) for the full contract.** If the reviewer surfaces a regression \u002F side effect \u002F broken workflow, follow the Regression Recovery Options pattern in `references\u002Freview-cycle.md` rather than silently patching.\n\n## Required sub-task\n\n| Phase         | sub-task                          | When                                     |\n| ------------- | --------------------------------- | ---------------------------------------- |\n| 0 Orient      | `mk:scout`                      | Codebase mapping                         |\n| 1 Plan        | `mk:plan-creator`, `researcher` | Research + planning                      |\n| 2 Test        | `tester` via `mk:testing`       | TDD mode (`--tdd`): **MUST** spawn — write failing tests. Default mode: optional (skip unless requested) |\n| 3 Build GREEN | `developer`                       | Implementation                           |\n| 3 Build GREEN | `developer` via `mk:investigate` | Root-cause analysis when tests fail after 3 self-heal attempts |\n| 3.5 Simplify  | `developer` via `mk:simplify`   | **MANDATORY** after Phase 3 GREEN — run before verify  |\n| 3.6 Verify    | `mk:verify`                     | **MANDATORY** after simplify — unified build+lint+test+coverage check before Phase 4 |\n| 4 Review      | `reviewer` via `mk:review`      | **MUST** spawn — Gate 2                  |\n| 4.5 Verify    | `browser-automation sub-task` or `HTTP verification tool` | Only if `--verify` flag (light browser check) |\n| 4.5 Verify    | `evaluator` via `mk:evaluate`   | Only if `--strict` flag or auto-triggered     |\n\nConcrete sub-task name and HTTP tool depend on installed skill set; cook treats both as interfaces, not specific implementations.\n| 5 Ship        | `shipper` via `mk:ship`         | Only after an explicit ship request — runs full pre-ship pipeline (`git-manager` invoked inside shipper for commit + PR) |\n| 6 Reflect     | `analyst`                       | **MUST** spawn — cost + pattern analysis |\n| 6 Reflect     | `documenter`                      | **MUST** spawn — sync-back + docs        |\n| 6 Reflect     | `mk:memory`                       | Append one gotcha\u002Fdecision only if non-derivable; usually nothing |\n\nDuring iterative build-test-fix cycles, follow `references\u002Floop-safety-protocol.md` for checkpoint tracking, stall detection, and escalation triggers.\n\nSee `references\u002Fsub-task-patterns.md` for delegate a sub-task () invocation patterns.\nSee `references\u002Fworkflow-steps.md` for detailed per-phase instructions.\nSee `references\u002Freview-cycle.md` for review gate logic.\n\n## Simplify Step (Mandatory)\n\nAfter Phase 3 (Build GREEN) completes, run `mk:simplify` to reduce complexity before Phase 4 (Review). This is mandatory — do not skip.\n\nRationale: Review quality improves when code is already simplified. Reviewers catch logic errors better when complexity is low. Running simplify after tests are green (but before review) ensures the reviewed code is the final, clean version.\n\n## Verify Step (Mandatory)\n\nAfter `mk:simplify` completes, run `mk:verify` for a unified build→lint→type-check→test→coverage check. This confirms simplification didn't break anything and gives the reviewer a clean signal. By default `mk:verify` scopes lint and tests to the changed files (build and type-check stay whole-program); the complete whole-project run happens at ship time. Pass `--full` only when a full sweep is needed here.\n\nIf `mk:verify` FAILS after simplify: send back to developer to fix, then re-run verify before proceeding to Phase 4. Do not skip verify or proceed to review with a failing verify result.\n\n## Status Report (Post-Gate 2)\n\nAfter a Gate 2 verdict PASS, delegate to `project-manager` (background — include \"Run in the background\" in the prompt). Status report is co-located at `{plan-dir}\u002Fstatus-reports\u002F{YYMMDD}-status.md`. Stop after reporting completion; invoke `mk:ship` only when the user explicitly requests shipping. Skipped automatically when `MEOWKIT_PM_AUTO=off`.\n\n## Durable Task State (when an active task record exists)\n\nWhen this run drives an **active durable task** (a `tasks\u002Factive\u002F\u003Cid>.json` exists), emit status\u002Fstep at phase transitions and record each acted-on `mewkit capabilities resolve` outcome (`selected|skipped|unavailable|unsupported`) via `mewkit task-state update`. Advisory + best-effort: a failed or unavailable command is surfaced but never blocks the pipeline, and one-off work with no record emits nothing.\n\n## `--advice` (composable, off by default)\n\nOpt-in strategic supervision for one run. At named checkpoints — GUIDE after Gate 1,\nRESCUE on a stall or contradiction, REVIEW after Verify and before the reviewer, RECHECK\nafter a correction; hard cap 5 — the `athena` agent assesses the situation, recommends an\noperational path inside the locked scope, and may return the work for correction.\n\nIt never approves: Gate 1 and Gate 2 remain human, the reviewer keeps its verdict, and\nsupervision counts as no verification.\n\nWithout the flag there are zero calls and no state is written.\n\nCheckpoints: `references\u002Fadvice-checkpoints.md`. Contract: `.cursor\u002Frules\u002Fdomain-advice-supervision.mdc` (load only when the\nflag is present).\n\n## Related Rules\n\n- AGENTS.md (Gates) — Gate 1 (Plan) and Gate 2 (Review) hard-stop conditions this skill enforces across all modes\n- Workflow evidence index (traceability over existing Phase 0-6 outputs; mirrors the gate scripts, never approves). See `references\u002Fworkflow-steps.md` → Workflow Evidence Index\n\n## Gotchas\n\nOperational gotchas live here; pre-build failure modes and rationalizations live in `references\u002Ffailure-catalog.md`.\n\n- **Skipping mk:simplify before review**: Tests pass but code is still complex → run `the simplify skill` between Phase 3 and Phase 4 every time, no exceptions\n- **Skipping Gate 1 on \"simple\" features**: Features that seem simple grow during implementation. Always create a plan file; cancel it if truly trivial\n\u003C!-- lint-allow-gate-authority -->\n- **Auto-approve sneaking bugs past Gate 2**: \"auto\" means automatic execution *between* gates, NOT automatic approval. Auto mode auto-fixes but NEVER auto-approves Gate 2 — gate-rules.md says NO exceptions. The workflow evidence index must be complete before Gate 2 is presented\n- **Context loss between phases**: Long multi-phase workflows exceed the context window — the external-memory write after each completed plan phase is the load-bearing action that lets a fresh session resume the correct phase. This is a mandatory step, not a habit: see the **Per-Phase Checkpoint** in `references\u002Fworkflow-steps.md` (Phase 6) — flip the phase-file checkboxes and update plan.md Agent State before any next-phase transition\n- **Parallel mode deadlocks**: Phase dependencies cause deadlock when phase-03 waits for phase-02 results. Map dependency graph before spawning parallel agents\n- **Code mode on stale plans**: Running old plan against changed codebase. Warn if plan.md is >14 days old\n- **Fast mode shallow test coverage**: Skipping research means tests capture plan-level intent, not edge cases. Document: \"fast mode = TDD-flavored, coverage may be lower\"\n- **Missing model tier declaration**: Expensive models on trivial tasks, cheap models on security-critical work. Always declare tier in Phase 0\n- **sub-task patterns using Agent() not delegate a sub-task ()**: delegate a sub-task () enables tracking, blocking, and progress. Always use delegate a sub-task () for phases 2-6\n- **--strict cost surprise**: `--strict` spawns the full evaluator (`mk:evaluate`) — a [HEAVY] pass. Auto-triggered by scale-routing `level=high`. Use `--no-strict` to suppress, or `--verify` for the [LIGHT] check\n- **--strict vs --verify confusion**: `--verify` = light browser check (advisory). `--strict` = full evaluator with rubrics (FAIL blocks ship). `--strict` supersedes `--verify`\n",{"name":5,"description":7,"disable-model-invocation":24},true,"main","c7ff0a9e672de2c0590b03f6459385c2d7a63c1a","kit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-cook",3,"https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit","https:\u002F\u002Fdocs.meowkit.dev\u002F","https:\u002F\u002Fgithub.com\u002Fngocsangyem","Keep moving forward","2026-11-15 03:54:21",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":24},[36,39,42],{"tool":37,"command":38},"npx","npx skills add ngocsangyem\u002FMeowKit --skill mk-cook",{"tool":40,"command":41},"bunx","bunx skills add ngocsangyem\u002FMeowKit --skill mk-cook",{"tool":43,"command":44},"pnpm","pnpm dlx skills add ngocsangyem\u002FMeowKit --skill mk-cook","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-cook\u002FSKILL.md",[47,53,57,61,65,69,73,77,83,87],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fadvice-checkpoints.md","REFERENCE","参考文档",2396,"https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-cook\u002Freferences\u002Fadvice-checkpoints.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Ffailure-catalog.md",2921,"https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-cook\u002Freferences\u002Ffailure-catalog.md",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fintent-detection.md",6671,"https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-cook\u002Freferences\u002Fintent-detection.md",{"path":62,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Floop-safety-protocol.md",2752,"https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-cook\u002Freferences\u002Floop-safety-protocol.md",{"path":66,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Freview-cycle.md",4369,"https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-cook\u002Freferences\u002Freview-cycle.md",{"path":70,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fsubagent-patterns.md",9097,"https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-cook\u002Freferences\u002Fsubagent-patterns.md",{"path":74,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fworkflow-steps.md",22452,"https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-cook\u002Freferences\u002Fworkflow-steps.md",{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"scripts\u002Ftest-scripts.sh","SCRIPT","脚本",5325,"https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-cook\u002Fscripts\u002Ftest-scripts.sh",{"path":84,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":85,"sourceHtmlUrl":86},"scripts\u002Fvalidate-gate-1.sh",1427,"https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-cook\u002Fscripts\u002Fvalidate-gate-1.sh",{"path":88,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":89,"sourceHtmlUrl":90},"scripts\u002Fvalidate-gate-2.cjs",3372,"https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-cook\u002Fscripts\u002Fvalidate-gate-2.cjs",[92,99,106,113,120,127],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M7DVHF481B4J41T4855KGM50","mk-worktree","Manages git worktrees for parallel agent isolation: creates parallel\u002F{name}-{timestamp} branches, merges with conflict detection. NOT for user feature branches (use git worktree directly).","https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-worktree\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M7DVHAWVKDKPB1EA3F1NC4JC","mk-workflow-orchestrator","Auto-invoked 7-phase workflow for complex-feature intent; fasttrack mode for pre-approved specs. NOT for explicit single tasks (mk:cook), green-field builds (mk:autobuild), or simple fixes (mk:fix).","https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-workflow-orchestrator\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":19},"01M7DVH6SYBHWW00TRZXCC56JW","mk-web-to-markdown","Fetch a URL and return clean markdown, for arbitrary external pages (blog, RFC, GitHub issue, vendor doc) not covered by mk:docs-finder. Static-only by default; opt-in JS rendering available.","https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-web-to-markdown\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":19},"01M7DVH3HGW47BX3PEF30JV6EJ","mk-vulnerability-scanner","Vulnerability analysis: OWASP Top 10, current threat landscape, supply chain security, attack surface mapping, risk prioritization. Use for security audits. NOT for STRIDE\u002FCSO infra audits (mk:cso).","https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-vulnerability-scanner\u002FSKILL.md",[],[],{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":19},"01M7DVGZBKMB9WDFH9MFMA99FV","mk-vue","Vue 3 authoring\u002Freview: components, composables, reactivity, Pinia, Pinia Colada, file routing, forms. Composition API + script setup. Auto-activates on .vue files. Deep review: mk:vue-best-practices.","https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-vue\u002FSKILL.md",[],[],{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":19},"01M7DVGSE12AA1M7599HB8HRCT","mk-vue-testing-best-practices","Vue 3 testing best-practices review: Vitest + Vue Test Utils for components, composables, Pinia, Router, async\u002FSuspense, forms, a11y, plus Playwright E2E strategy. Advisory only.","https:\u002F\u002Fgithub.com\u002Fngocsangyem\u002FMeowKit\u002Fblob\u002Fmain\u002Fkit\u002Fbundles\u002Fcursor\u002Froot\u002F.cursor\u002Fskills\u002Fmk-vue-testing-best-practices\u002FSKILL.md",[],[]]