/kstack:k-modefrom K-stack
Enforces a structured engineering workflow with role-based routing, playbooks, design-before-code, and evidence requirements. Invoke with /k-mode.
Ships in K-stack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Sticky. Once invoked, stay in this mode for the rest of the session. On each new task, ask whether a playbook matches or the task needs rigor. If it does, apply K-mode. On a casual turn, or when the user opts out, get out of the way. After a context compaction, re-read this file instead of assuming the mode lapsed.
references/principles.md and references/routing.md in full.kstack-routing block in ~/.claude/CLAUDE.md. If it is missing, use the Balanced column and suggest /kstack:k-setup once. A /kstack:k-effort table later in the session overrides the block (see Active routing in routing.md).skip: <reason>.routing.md and dispatches to that role's tier agent. Never choose a model ad hoc. Say <role> → <tier>: <task> in one line before each dispatch..kstack/log.tsv (gitignored): time, step, decision, evidence, verdict.Reversible work proceeds without asking: edits, local commits, branches, test runs, dispatching workers.
Always pause for: git push to a shared branch, force-push, deploys, deleting data or files you did not create, messages to other people, spending money, and any Burn escalation the user did not request.
"Don't stop", "going to bed", and "run until done" mean keep going through reversible work until the exit predicate holds.
routing.md. Lookups that would fill the lead's context (where is X, what does this log say, which files match) go to scan and come back as facts. Work on a Haiku tier fans out by default: independent slices, one message, at most 8 workers, capped reports (see Haiku fan-out in routing.md). Brief with file pointers, not pasted content. A brief names: the goal, the data shape and interface, the files, the edge cases, the exact verification commands, and whether commits are allowed.isolation: "worktree" or disjoint files. Two workers never write the same file.Keep a comment only for a non-obvious why. No phase-narrating comments in scripts or tests. The assertion message documents the step. This applies to every worker's diff.
| Playbook | When | File |
|---|---|---|
| Investigation | Read-only question: how does X work, why is Y like this, should we do A or B | playbooks/investigation.md |
| Bug fix | A defect to reproduce, root-cause, and fix | playbooks/bug-fix.md |
| Feature | New or changed behavior | playbooks/feature.md |
| Refactoring | Behavior-preserving change to structure | playbooks/refactoring.md |
| Prototype | A throwaway sketch to settle a design or empirical fork | playbooks/prototype.md |
| Perf issue | A measured slowness to fix against a baseline | playbooks/perf-issue.md |
| Hillclimb | Sustained improvement of one metric against a target | playbooks/hillclimb.md |
| Autonomous run | A long task to drive to a checkable predicate | playbooks/autonomous-run.md |
| Babysit | Get a PR or stack to merge-ready: conflicts, review threads, CI | playbooks/babysit.md |
| Authoring a skill | Writing or editing a SKILL.md, agent, or hook | playbooks/authoring-a-skill.md |
| Session pickup | Resuming another session's in-flight work | playbooks/session-pickup.md |
| Pause safely | Stopping cleanly so work can resume | playbooks/pause-safely.md |
| Shipping changes | Committing and opening a PR. Invoked at the end of every code playbook | playbooks/shipping-changes.md |
When no playbook fits, or the work is large and cross-cutting, write a bespoke playbook first. Use the same shape: owner line, numbered steps with roles, reply contract. Show it before starting.
playbooks/authoring-a-skill.md (opens in a new tab)playbooks/autonomous-run.md (opens in a new tab)playbooks/babysit.md (opens in a new tab)playbooks/bug-fix.md (opens in a new tab)playbooks/feature.md (opens in a new tab)playbooks/hillclimb.md (opens in a new tab)playbooks/investigation.md (opens in a new tab)playbooks/pause-safely.md (opens in a new tab)playbooks/perf-issue.md (opens in a new tab)playbooks/prototype.md (opens in a new tab)playbooks/refactoring.md (opens in a new tab)playbooks/session-pickup.md (opens in a new tab)playbooks/shipping-changes.md (opens in a new tab)references/principles.md (opens in a new tab)references/routing.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
engineering-mode, workflow, playbooks, role-routing, k-stack
npx claudepluginhub kasempiternal/k-stack --plugin kstack14 skills in this plugin
/k-agent-timeUse when asked to improve, optimize, redesign or solve an open-ended technical problem, or before dismissing an option as too big, slow or costly. Prices effort for agents, not human-hours./k-cursor-architectDelegate focused implementation or investigation from Claude Code to the Cursor Agent CLI (cursor-agent) running Grok 4.7. Use when the user invokes /k-cursor-architect, asks Claude to hand work to Cursor or Grok, or enables session-only delegation. Session mode makes Cursor the exclusive delegation backend and blocks native Claude teammates. Never enables a global or persistent mode./k-designDesign before implementing. Opus produces the data shape, interface, file plan, failure cases, tests, and verification commands for a change, and runs a competing-designs bakeoff when the design is contested or has no precedent. Use for architecture, system or API design, implementation plans, repo restructuring, RFC-grade decisions, or from k-mode before code that crosses a function boundary./k-e2e-qaE2E and UI verification workflows. AgentController for native macOS apps (mcp__agentcontroller__*) and for iOS simulators and physical iPhones (mcp__agentcontroller-ios__*), Maestro or raw adb for Android (mcp__maestro__*), Claude in Chrome or Playwright MCP for the web. Use when running UI tests, QA automation, simulator or device testing, or driving and verifying a macOS app, iPhone, Android device, or web page./k-effortSwitch K-stack's routing level the way /effort switches session effort. Levels are lean < balanced < quality, plus burn on top. A typed level applies now and is saved as the default; add "session" to keep it to this session. Use for /k-effort, "kstack effort", "cheaper kstack routing", or "more effort on kstack"./k-exploreExplain how a subsystem works, trace a runtime flow, answer where code should live, or dig up why something was built this way (git history). Read-only. Use for "how does X work", "walk me through", "why is this like this", "where should this live", onboarding onto unfamiliar code, or from k-mode before changing a subsystem.Other plugins' skills for the same job