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 kind | Meaning |
|---|---|
| Model-invoked skills | Fire on their own when your prompt matches, such as "debug this". |
| Manual skills | Fire 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⦠| Flow | Start it | Deeper |
|---|---|---|---|
| Turn an idea/bug into a testable contract | k-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 packet | Playbook Β· architecture |
| Fix a reported defect | k-diagnosing-bugs β tight red loop before any theory, 6 phases | "debug/diagnose this" (model-invoked) | Playbook |
| Answer a design question cheaply | k-prototype β throwaway logic probe or 3 UI variants | "prototype this" (model-invoked) | Playbook |
| Shape a module boundary or seam | k-codebase-design β deep-module vocabulary, design-it-twice | fires when designing interfaces | row in skills |
| Get requirements out of your head | k-interview-me β one fork-closing question at a time | /k-interview-me (manual) | row in skills |
| Be told what's worth building next | k-improve-local / -branch / -targeted / -codebase β exactly one proposal | /k-improve-β¦ (manual) | rows in skills |
Check somethingβ
| You want to⦠| Flow | Start it | Deeper |
|---|---|---|---|
| Quick audit of your own uncommitted work | k-light-review β proportional depth, fixes in place | /k-light-review (also model-invoked) | Playbook |
| Full review of a PR or risky change | k-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 building | k-review plan mode β judges the contract, not code | "review this plan/packet" | Review workflow |
| Produce a durable receipt for freeform work | k-proof β repo-external criteria/evidence/assessment ledger with a finalized seal | explicit receipt, auditable risky effect, or named handoff/resume consumer | row in skills |
| Verify a change actually works end-to-end | verify-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⦠| Flow | Start it | Deeper |
|---|---|---|---|
| Learn how this codebase works | k-walkthrough β evidence-anchored tour or ASCII architecture map | /k-walkthrough (manual) | Playbook |
| Investigate an external repo/library | k-research β clone to /tmp, read source, answer from code | "figure out how X works" (model-invoked) | Playbook |
| Find code by concept, not keyword | k-semantic-code-search (SCSI) | fires on conceptual search | MCP servers |
| Drive an interactive terminal safely | k-tmux β isolated sockets, pane capture, explicit targets | fires on tmux/pane/session work | row in skills |
| Find duplication / dead exports | k-jscpd / k-knip | fires during cleanup work | rows in skills |
Communicate somethingβ
| You want to⦠| Flow | Start it | Deeper |
|---|---|---|---|
| Draft or prepare an issue | k-compose-issue β issue text + publication packet, no side effects | "draft an issue for β¦" | Playbook |
| Draft a PR body | k-compose-pr β evidence-backed Test Plan gate | "draft the PR text" | Playbook |
| Prove a built UI looks right, for a PR | k-ui-proof β head-only live check + screenshots of the intended visual, handed to k-compose-pr | fires in /k-build / k-compose-pr for UI changes | architecture |
| Help reviewers before they open the diff | k-present-pr β self-contained HTML review-readiness map | /k-present-pr (manual) | Playbook |
| Anything a human will read | k-communication owns tone; publication always gated | loaded automatically before drafting | Side-effect gates |
Cross-cutting rulesβ
- Durable memory (
,ai-kb) recalls before non-trivial work and persists verified lessons; see Agent memory. k-proofrecords 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-reviewwhen 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-reviewto check it. - Reach for
/k-agent-reviewwhen 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.