Skip to main content

Choose your flow (scenario router)

Every AI-development scenario this setup supports is routed by what you want to do, not by which subsystem implements it. Each row names the flow, how you start it, and where to go deeper.

The pivot map shows how to move between flows mid-work. That mobility is the point of having many flows.

The major flows have hands-on playbooks β€” what to type, what you'll see, what to answer at each gate β€” under Flow playbooks in the sidebar. Table rows link to a playbook where one exists.

Mental model​

Two invocation kinds matter throughout:

Invocation kindMeaning
Model-invoked skillsFire on their own when your prompt matches, such as "debug this".
Manual skillsFire only when you type them, such as /k-build or /k-agent-review. High-blast-radius flows are deliberately manual.

Build something​

You want to…FlowStart itDeeper
Turn an idea/bug into a testable contractk-spec β†’ packet with red-proven acceptance checks"develop a spec for …" (model-invoked)Playbook Β· architecture
Implement a contract hands-free, in this session/k-build β€” criteria ledger, adversarial verify, 2 human gates/k-build after approving a packetPlaybook Β· architecture
Fix a reported defectk-diagnosing-bugs β€” tight red loop before any theory, 6 phases"debug/diagnose this" (model-invoked)Playbook
Answer a design question cheaplyk-prototype β€” throwaway logic probe or 3 UI variants"prototype this" (model-invoked)Playbook
Shape a module boundary or seamk-codebase-design β€” deep-module vocabulary, design-it-twicefires when designing interfacesrow in skills
Get requirements out of your headk-interview-me β€” one fork-closing question at a time/k-interview-me (manual)row in skills
Be told what's worth building nextk-improve-local / -branch / -targeted / -codebase β€” exactly one proposal/k-improve-… (manual)rows in skills

Check something​

You want to…FlowStart itDeeper
Quick audit of your own uncommitted workk-light-review β€” proportional depth, fixes in place/k-light-review (also model-invoked)Playbook
Full review of a PR or risky changek-review β€” modes: pr_review, pr_fix, local_changes, plan_review"review PR #N" (model-invoked)Playbook Β· architecture
Maximum-rigor multi-agent review/k-agent-review β€” angle lanes, cross-family adversarial verify, live UI/k-agent-review (manual)Playbook Β· topology
Adversarial review of a plan/spec before buildingk-review plan mode β€” judges the contract, not code"review this plan/packet"Review workflow
Produce a durable receipt for freeform workk-proof β€” repo-external criteria/evidence/assessment ledger with a finalized sealexplicit receipt, auditable risky effect, or named handoff/resume consumerrow in skills
Verify a change actually works end-to-endverify-style live drive; UI via k-playwriter, or k-ui-proof for screenshot proof of an intended visual"verify this works" / "screenshot the UI for the PR"rows in skills
Review what an agent produced (you as reviewer)staged-diff reading disciplineβ€”Reviewing agent diffs

Understand something​

You want to…FlowStart itDeeper
Learn how this codebase worksk-walkthrough β€” evidence-anchored tour or ASCII architecture map/k-walkthrough (manual)Playbook
Investigate an external repo/libraryk-research β€” clone to /tmp, read source, answer from code"figure out how X works" (model-invoked)Playbook
Find code by concept, not keywordk-semantic-code-search (SCSI)fires on conceptual searchMCP servers
Drive an interactive terminal safelyk-tmux β€” isolated sockets, pane capture, explicit targetsfires on tmux/pane/session workrow in skills
Find duplication / dead exportsk-jscpd / k-knipfires during cleanup workrows in skills

Communicate something​

You want to…FlowStart itDeeper
Draft or prepare an issuek-compose-issue β€” issue text + publication packet, no side effects"draft an issue for …"Playbook
Draft a PR bodyk-compose-pr β€” evidence-backed Test Plan gate"draft the PR text"Playbook
Prove a built UI looks right, for a PRk-ui-proof β€” head-only live check + screenshots of the intended visual, handed to k-compose-prfires in /k-build / k-compose-pr for UI changesarchitecture
Help reviewers before they open the diffk-present-pr β€” self-contained HTML review-readiness map/k-present-pr (manual)Playbook
Anything a human will readk-communication owns tone; publication always gatedloaded automatically before draftingSide-effect gates

Cross-cutting rules​

  • Durable memory (,ai-kb) recalls before non-trivial work and persists verified lessons; see Agent memory.
  • k-proof records sealed receipts for narrowly gated freeform work; ordinary verification stays inline.
  • The code-quality family loads itself on implementation edits.
  • Kibana/Elastic work gets the domain overlay; see Elastic and Kibana.

Pivot map​

Flows hand off to each other at defined points; pivoting is expected, not an exception.

The heavier arrows are contracts: the target consumes an artifact. The lighter arrows are escalations: you stop one flow and enter another.

k-interview-me
β”‚ intent clear, needs a contract
β–Ό
k-prototype ◄────── k-spec ──────► k-review (plan mode)
empirical fork β”‚ β–² adversarial packet review
verdict returns β”€β”€β”€β”€β”€β”€β”˜ β”‚ premise correction / uncheckable criterion
to the packet β”‚ (build returns you here)
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β–Ό β–Ό
/k-build k-compose-issue / k-compose-pr
in-session publishable text + packet
β”‚
β–Ό
k-light-review over the result … escalates to β†’ k-review β†’ /k-agent-review

k-diagnosing-bugs ──"no correct seam / architectural cause"──► k-codebase-design
β”‚ writing the regression test β”‚ design settled
β–Ό β–Ό
k-code-quality-tests β—„β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

When to pivot, concretely:

  • spec β†’ prototype and back. A fork you cannot close by asking, such as "which ordering feels right?", is empirical. Build the throwaway, observe, and let the verdict β€” not an opinion β€” close the fork in the packet. The prototype is deleted; the decision survives in the packet's Context line.
  • /k-build β†’ spec (re-gate). Mid-build evidence contradicting the packet, such as a wrong premise or wrong scope, stops the build. Revise the packet and re-approve. Never let a build quietly implement a different spec than the one you signed.
  • k-light-review β†’ k-review β†’ /k-agent-review. Escalate when the target turns out to be a PR/others' code, needs base-branch context, or is risky/stateful. That is lightβ†’full review. Escalate to /k-agent-review when you want independent lanes and cross-family adversarial verification instead of one reviewer's judgment. Escalation is mid-pass: stop, switch, don't half-do the heavy machinery in the light flow.
  • k-diagnosing-bugs β†’ k-codebase-design. Two triggers: no correct seam exists for the regression test, meaning the architecture is preventing the bug from being locked down; or the post-mortem answer to "what would have prevented this?" is architectural. Hand off after the fix, with specifics.
  • anything β†’ k-compose-issue. Work that should be recorded rather than done now β€” a bug found mid-review, a packet worth filing upstream β€” becomes issue text; publication stays human-gated.

Efficiency defaults​

  • Smallest flow that fits: direct SOP work β†’ k-light-review to check it.
  • Reach for /k-agent-review when the change is big enough to warrant independent readers.
  • Which model/effort a task runs on, and whether it belongs inline or in a subagent, follows Model tiering β€” the two are the same decision, keyed off task complexity rather than scenario alone.