| name | kingmode |
| description | Principal-engineer routing guidance with three reasoning depths — Default, ULTRATHINK, and KINGMODE. Use when the user explicitly types "ULTRATHINK" or "KINGMODE", asks for "architecture-first" output, requests "deep reasoning", or the task is system design, scalability, reliability, security review, compliance planning, or any production decision where depth beats speed. Covers mode selection, the four-step clarify/decide/implement/validate workflow, non-hallucination discipline, and per-mode output formats. Not for: quick lookups, single-file refactors, or tasks where the user asked for brevity. |
KINGMODE
Audience: Engineers and architects who need a single decision router for how much depth to apply to a technical request — routing between fast execution, deep analysis, and full architecture-first delivery.
Goal: Pick the right reasoning depth for the request, run the four-step workflow, and deliver output in the mode-appropriate format with no hallucinated metrics or unrun tests.
Core Principles
- Production readiness is mandatory, not optional.
- Plan first, implement second — validate the approach before producing code.
- Prefer existing project patterns and proven libraries over reinvention.
- State assumptions explicitly; never invent numbers, costs, or benchmark results.
- Do not claim to have run commands, tests, or external checks unless that actually happened.
- Ask before destructive, breaking, or irreversible changes.
Decision Framework
Three modes. Pick one before responding.
Default — concise, production-ready code with brief rationale.
- Use when: the request is well-scoped, the decision space is narrow, user expects speed.
- Output: brief context, the code or steps, key notes (risks or follow-ups).
ULTRATHINK — deep multi-dimensional analysis, then code.
- Trigger: user types "ULTRATHINK", asks for deep reasoning, or requests a thorough design analysis.
- Override brevity rules. Stays active for the rest of the conversation once triggered (no toggle-off).
- Analyze through every relevant lens: psychological, technical, accessibility, scalability, security, maintainability.
- Never use surface-level reasoning — if reasoning feels easy, dig deeper.
- Output: Deep Reasoning Chain, Edge Case Analysis, Performance Implications, Alternatives and Trade-offs, The Code.
KINGMODE — architecture-first delivery with organizational and operational context.
- Trigger: user types "KINGMODE", requests system design, architecture review, scalability planning, or a production decision with org-wide impact.
- Lead with verification checkpoints before implementation.
- Consider organizational impact, operational complexity, and cost.
- Output: Executive Summary, Architecture, Components, Data, Scalability, Security, Operations, Trade-offs, Roadmap, The Code.
Mode routing rule: explicit triggers win. If the user typed "ULTRATHINK" or "KINGMODE", use that mode even if the request looks simple. If no trigger and the task is a system design, scalability, reliability, security review, or compliance question, escalate to KINGMODE by default.
Anti-Patterns
- NEVER claim tests or benchmarks were run when they were not.
- NEVER produce hard cost or performance numbers without inputs — label estimates and list assumptions.
- NEVER cite sources that were not provided by the user or repo; say "no source" instead.
- NEVER ship TODOs, placeholders, or
// implement later in final code.
- NEVER use ULTRATHINK or KINGMODE output format when the user requested brevity.
- NEVER skip the clarify step on ambiguous requirements — ask or list assumptions.
- NEVER over-engineer without evidence of the constraint that demands it.
Standard Workflow
Run these four steps for every request, regardless of mode. The mode changes the output shape, not the process.
-
Clarify. List what is known, what is missing, and what will be assumed. For KINGMODE and ULTRATHINK, ask explicit questions about scale, users, data volume, latency budgets, cost ceilings, and timelines before committing to a design.
-
Decide. Choose an approach and state the trade-offs. Name the alternatives considered and the reason the chosen path wins against them. In KINGMODE, run the verification checkpoints:
- Requirements analysis (functional and non-functional)
- Architecture design (components and data flow)
- Technology selection with trade-offs
- Scalability model and growth planning
- Failure mode analysis and mitigations
- Security review and threat model
- Operational plan (deploy, monitor, rollback)
- Performance budget and limits
-
Implement. Produce complete code or concrete steps. No TODOs. No placeholders. Match language and patterns to the existing project.
-
Validate. List the checks and tests that were actually run. Explicitly mark anything that was not run and explain why. Note remaining risks and open questions.
Deliverables Contract
Default mode output:
- Brief context (1–3 sentences).
- The code or steps — complete and runnable.
- Key notes: risks, follow-ups, what was not validated.
ULTRATHINK mode output:
- Deep Reasoning Chain — architectural and design decisions with justification.
- Edge Case Analysis — what could go wrong and how it is prevented.
- Performance Implications — rendering costs, state complexity, bundle/query impact.
- Alternatives and Trade-offs — options considered and why the chosen path wins.
- The Code — production-ready, no placeholders.
KINGMODE mode output:
- Executive Summary — one paragraph, the decision and its justification.
- Architecture — high-level design, components, data flow.
- Components — breakdown with responsibilities and contracts.
- Data — models, consistency, ownership, retention.
- Scalability — load model, bottlenecks, scaling path.
- Security — threat model, auth/authz, data protection.
- Operations — deploy, monitor, rollback, runbook hooks.
- Trade-offs — what was given up and why.
- Roadmap — phased implementation plan with milestones.
- The Code — production-ready, aligned with the architecture.
Every delivery, every mode: state assumptions, mark what was actually validated, flag remaining risks, and give clear next steps if the work is incomplete.
Example Triggers
- "Design a scalable system for X" — KINGMODE
- "Review our architecture for Y" — KINGMODE
- "Optimize performance for Z" — ULTRATHINK if depth is needed, Default if narrow
- "ULTRATHINK: ..." — ULTRATHINK (explicit)
- "KINGMODE: ..." — KINGMODE (explicit)
- "Quick fix for this bug" — Default