How ClaudeKit Works

ClaudeKit is not a standalone app or a new IDE. It is an advanced Framework integrated directly into your native Claude Code configuration (.claude) on your machine, transforming your terminal chat into a professional task automation system.

1. Hooks (Background System)

Background scripts that run automatically. They initialize configs and project rules so you don't have to copy-paste them manually.

2. Skills (Pre-built Knowledge)

Specialized knowledge packages (SKILL.md) with prompts, references and scripts. The primary execution unit when you type /ck:* commands.

3. Agents (Specialists)

Specialized models (Planner, Tester, Reviewer) with internal prompts and tools, focusing on a single task domain.

4. Workflows (Pipelines)

Pipelines of Hooks, Skills and Agents running sequentially from your command input to handle complex workflows end-to-end.

Let's see how Hooks, Skills, Agents and Workflows coordinate a real command. Pick a workflow below and press Play to explore the internal mechanism.

Guide coming soon...

VividKit is finalizing the detailed guide for Marketing Kit.

No combos for this kit

Guide coming soon...

VividKit is finalizing the detailed guide for Marketing Kit.

Step / Playing...

Quick Ref / Brainstorm command

Before /ck:plan

/ck:brainstorm

Use it when the right approach is still unclear. Scout first, lock exact requirements, debate trade-offs, then write a report and hand off to /ck:plan.

01

Scout

02

Exact reqs

03

Debate

04

Report path

Scout first

Summarize 3-6 findings before Discovery.

Report first

The plan handoff receives the brainstorm report path.

No Task-spawn

planner/docs-manager are inline consultation.

Execution Map

Four lanes: scout, clarify, evaluate, then close with report/handoff.

01

Scout

Context before questions

  1. 1 Scout MANDATORY first step — map project type, modules, patterns, docs, plans
02

Clarify

Lock the 5 exact fields

  1. 2 Discover AskUser loop — extract 5 exact items: output, acceptance, scope, constraints, touchpoints
  2. 3 Scope Decompose if 3+ independent subsystems
03

Evaluate

Trade-offs and brutal honesty

  1. 4 Research planner agent + WebSearch + docs-seeker
  2. 5 Analyze Evaluate 2-3 approaches with pros/cons via YAGNI/KISS/DRY
  3. 6 Debate Brutal honesty — challenge assumptions, present options
  4. 7 Consensus Align on chosen approach
04

Handoff

Report, then plan/end

  1. 8 Report Markdown summary via ck:project-organization
  2. 9 Handoff AskUser: /ck:plan --tdd (refactor/critical) · /ck:plan (default) · end
  3. 10 Journal /ck:journal — concise technical entry

Sample Prompt

Use different prompts for a new brainstorm, a same-session plan handoff, and a fresh-session plan.

Start brainstorm
/ck:brainstorm Choose the best auth approach for our current SaaS app

Use when: The direction is unclear and needs repo scouting plus trade-off debate first.

Expected: Writes the report at plans/reports/brainstorm-260524-1908-auth-approach.md.

Same session
/ck:plan Create an implementation plan for the auth approach we selected in brainstorm, using the report just created as context

Use when: You are still inside the brainstorm session and the agent just wrote the report.

Expected: Plan uses current context plus the report path handed off by brainstorm.

Fresh session Recommended
/ck:plan plans/reports/brainstorm-260524-1908-auth-approach.md

Use when: After a long brainstorm, start a fresh session to avoid context bloat.

Expected: Mention the file path so plan reads the correct brainstorm artifact.

Plan Handoff

Inside the brainstorm session, offer only after proposal approval, no open questions, and a written report. If starting a fresh session, make sure the brainstorm artifact exists and pass its file path to plan.

/ck:plan --tdd

Recommend when: Refactor, critical logic, or strong existing test contracts.

Result: Same session: use the report context just created. Fresh session: include the artifact path.

/ck:plan

Recommend when: Standard new feature or moderate change.

Result: Phase-by-phase implementation plan from the brainstorm report.

End session

Recommend when: Plan later or hand off elsewhere.

Result: Stop after report/journal.

Artifacts Produced

Markdown Summary Report

Brainstorm ends with one Markdown file. This file is the primary context for the /ck:plan handoff.

1 Markdown file

Concrete path

plans/reports/brainstorm-YYMMDD-HHMM-slug.md plans/reports/brainstorm-260524-1908-auth-approach.md

Report Contents

This is the outline inside the report file, not separate artifacts.

  1. 1 Problem statement The problem, target outcome, and scouted repo context.
  2. 2 Evaluated approaches 2-3 viable approaches with the main trade-offs.
  3. 3 Final recommendation The selected direction and why it won.
  4. 4 Implementation risks Failure points, dependencies, or assumptions to verify.
  5. 5 Success metrics How to know the solution is correct and complete.
  6. 6 Next steps How to hand off to /ck:plan or stop here.

Do Not Skip Design

Source: SKILL.md / Anti-Rationalization

Common-sounding excuses that SKILL.md blocks before planning or coding.

1

Thought

This is too simple to need a design

Reality

Simple work wastes time when assumptions stay implicit.

2

Thought

I already know the solution

Reality

Then writing it down is quick. The written design is the alignment checkpoint.

3

Thought

The user wants action, not talk

Reality

Bad action wastes more time than a short planning loop.

4

Thought

Let me explore the code first

Reality

Brainstorming decides how to explore. Follow the process first.

5

Thought

I'll just prototype quickly

Reality

Prototypes become production code. Design first.

Quick Ref / Planning command

After brainstorm / when scope is clear

/ck:plan

Use it when the brief is clear enough to split into phases, validation gates, and a clean /ck:cook handoff.

handoff

/ck:cook {absolute-path}

01

Clear brief

02

Plan phases

03

Validate / red-team

04

/ck:cook

No implementation

Only creates plan and phase files.

CLI managed

Create and update status through ck plan.

ck plan CLI reference

Clear handoff

Ends with validate, red-team, cook, or stop.

Execution Map

Four lanes: orient scope, research, stress test, then hand off.

01

Orient

Set context before planning

  1. 1 Pre-Check Check Plan Context: active / suggested / none
  2. 2 Cross-Scan Scan unfinished plans, detect blockedBy/blocks
  3. 3 Scope Scope Challenge (skip if --fast or trivial)
  4. 4 Mode Auto-detect or explicit flag
02

Research

Collect enough evidence

  1. 5 Research Spawn researcher agents (skip in fast)
  2. 6 Analyze Read docs, scout codebase if stale
  3. 7 Plan Planner writes plan.md + phase files via ck CLI
03

Stress Test

Find weak points early

  1. 8 Red Team Adversarial review (2-4 reviewers)
  2. 9 Validate Verification pass + critical questions
04

Handoff

Make the plan executable

  1. 10 Hydrate Create Claude Tasks per phase + critical steps
  2. 11 Handoff Boundary reminder → AskUser: validate/red-team/cook/end

Mode Selection

Start with auto. Escalate only when scope or risk demands it.

--auto Auto-detect
Research
Follows mode
Red-team
Follows mode
Validate
Follows mode
Cook
Follows mode

Sample prompt

/ck:plan Redesign checkout flow to reduce payment failures

Use when

The brief is clear, but the right planning depth is not obvious.

Expected

The agent chooses research, validation, and red-team depth by risk.

--fast Fast
Research
Skip
Red-team
Skip
Validate
Skip
Cook

Sample prompt

/ck:plan --fast Change the CTA copy in the Pricing section

Use when

The task is small, low-dependency, and easy to roll back.

Expected

A quick plan without heavy research, red-team, or validation.

--hard Hard
Research
2 researchers
Red-team
Yes
Validate
Optional
Cook

Sample prompt

/ck:plan --hard Refactor auth flow while preserving backward compatibility

Use when

There are real technical constraints, but not a per-phase deep refactor.

Expected

Research and red-team catch architectural risk early.

--deep Deep
Research
2-3 + per-phase scout
Red-team
Yes
Validate
Yes
Cook

Sample prompt

/ck:plan --deep Split billing into subscription, invoice, webhook modules

Use when

The refactor is large, dependency-heavy, and touches multiple modules.

Expected

Deeper research, stronger validation, and evidence-backed phases.

--parallel Parallel
Research
2 researchers
Red-team
Yes
Validate
Optional
Cook
--parallel

Sample prompt

/ck:plan --parallel Optimize dashboard loading and chart rendering

Use when

The work can be split into independent tracks.

Expected

Clear boundaries that can be handed to cook with --parallel.

--two Two approaches
Research
2+ researchers
Red-team
After select
Validate
After select
Cook

Sample prompt

/ck:plan --two Choose an offline-first data sync architecture

Use when

Two approaches must be compared before committing to a plan.

Expected

Both approaches are analyzed first, then one direction is selected.

Extra Flags

Combine with a mode to change how the plan handles tests or tasks.

--tdd

Tests-first per phase

Composable flag: adds tests-first structure to each phase.

Sample prompt

/ck:plan --deep --tdd Refactor the billing module

Use when

--deep --tdd is the main combo for major refactors or logic with important contracts.

--no-tasks

Skip task hydration

Do not create Claude Tasks after the plan is generated.

Sample prompt

/ck:plan --fast --no-tasks Update guide copy

Use when

Best for small or docs-only plans where extra task creation is not needed yet.

Compose With Modes

--tdd can combine with any mode, but pick the mode from scope first.

--hard --tdd

Complex, needs research

Use when the task is complex but not a major multi-area refactor.

--deep --tdd Recommended

Recommended for risky refactors

Use for large refactors, 5+ areas, architectural debt, or per-phase scouting.

--parallel --tdd

Niche: parallel + tests-first

Use only when independent workstreams can run in parallel and each lane still needs test gates.

Guide Deep dive: when to use --deep and --tdd Open the guide for when to increase planning depth or force tests-first planning. --deep --tdd

Quick Ref / Implementation command

After /ck:plan or feature brief

/ck:cook

Use it when a plan or feature brief must become working code. Scout first, lock 5 requirements, pass plan gates, implement, test, review, then sync plan/docs/git/journal.

01

Plan path / brief

02

Scout + reqs

03

Code + test

04

Review + sync

Plan-first

Even small work needs plan review before code.

Scout-first

Summarize 3-6 repo findings before any AskUser.

No side effects

Acceptance, tests, contracts, lint/type/build must stay clean.

Execution Map

Four lanes: orient intent, create an evidence-backed plan, implement/test, then review and sync artifacts.

01

Orient

Mode, scout, requirements

  1. 1 Intent Detect mode from input (plan path / keywords / explicit flag)
  2. 2 Scout MANDATORY codebase scan: project type, modules, patterns, docs, plans, contracts (skip only on plan path)
  3. 3 Summarize 3-6 bullet codebase context to user before any clarifying question
  4. 4 Requirements AskUser loop — 5 exact items: output, acceptance, scope, constraints, touchpoints
02

Plan

Research + plan review

  1. 5 Research researcher agent (skip in --fast / code mode) → Review Gate
  2. 6 Plan planner agent → plan.md + phase-XX files → Review Gate
03

Build

Implement, simplify, test

  1. 7 Implement Execute phase tasks; conditional simplify via code-simplifier
  2. 8 Test tester + debugger agents, 100% pass (skip if --no-test) → Review Gate
04

Close

Review, sync, journal

  1. 9 Review code-reviewer agent — 5 checks (acceptance, regression, contracts, patterns, lint/type/build); STOP via AskUser if side effect
  2. 10 Finalize /ck:project-management plan sync-back → docs-manager → git-manager → /ck:journal

Mode Selection

Interactive is the default. Use flags to skip research, auto-approve, run in parallel, or execute an existing plan path.

plan path

Code mode

Skip scout/research/plan and execute existing phase files.

Prompt

/ck:cook /abs/plans/260524-auth/plan.md

Use when: A reviewed plan was produced by /ck:plan or handed off from another session.

Expected: Reads phase files, implements each phase, then tests/reviews/finalizes.

--fast

Fast

Skip heavy research but still run scout -> plan -> code.

Prompt

/ck:cook --fast Change CTA copy in Pricing

Use when: Small scope, easy rollback, few dependencies.

Expected: Short plan with user gates still held before code.

--auto

Auto

Auto-approve low-risk work when artifacts + validator pass; high-risk changes still stop for user approval before finalize/commit/ship.

Prompt

/ck:cook --auto Add cache to the stats endpoint

Use when: You trust the agent, risk is low, and acceptance is clear.

Expected: Runs low-risk phases continuously while still testing and reviewing; score is advisory, never approves on its own.

--parallel

Parallel

Split independent features into separate lanes.

Prompt

/ck:cook --parallel Implement search, filters, export CSV

Use when: 3+ workstreams have clear file ownership.

Expected: Multi-agent lanes merge through review gates.

Sample Prompt

Plan path Recommended
/ck:cook /abs/plans/260524-auth/plan.md

Use when: A plan.md and phase files already exist.

Expected: Uses plan context instead of rediscovering the task.

Feature brief
/ck:cook Add email/password login with httpOnly session

Use when: No plan exists, but the desired output is clear.

Expected: Scout -> 5 requirements -> research/plan -> implement.

--tdd
/ck:cook --tdd Refactor billing calculation while preserving behavior

Use when: Refactor or critical logic.

Expected: Tests current behavior first, then verifies after implementation.

Artifacts Produced

Implementation Complete

Commits + plan status synced + journal entry
1

Code merged via git-manager

2

Tests 100% pass

3

code-reviewer approved (no regression, contracts intact)

4

plan.md + all phase-XX.md status synced via /ck:project-management

5

docs updated

6

/ck:journal entry recorded

Shortcuts Blocked

1

Thought

This is simple, just code it

Reality

Simple tasks still hide contracts. Planning is cheaper than rewriting.

2

Thought

Ask the user before reading the repo

Reality

AskUser options must come from scout findings, not generic questions.

3

Thought

Tests pass, done

Reality

Touchpoints, contracts, lint/type/build, and code-review still have to clear.

Quick Ref / Review command

After /ck:cook or /ck:fix, before /ck:ship

/ck:code-review

Use it when code needs adversarial-rigor review. Resolve input mode, pass the spec-compliance gate, scout edge cases, run the code-reviewer sub-agent, then let the adversarial red-team actively try to break the code before verify + report.

01

Input + diff

02

Spec gate

03

Quality + scout

04

Adversarial + report

Spec-first gate

Stage 1 must pass — never skip to Stage 2 with spec mismatch.

Adversarial always-on

Stage 3 red-team runs every time. Scope gate exempts only trivial.

Fresh evidence

No "done" claim without rerunning tests/build with new output.

Review Map

Four lanes: resolve input + diff, pass the spec gate, run quality review with scout, then adversarial red-team + verify + report.

01

Resolve

Input mode + diff acquisition

  1. 1 Input Resolution Auto-detect mode from argument: #PR | commit | --pending | codebase | codebase parallel. If ambiguous, AskUserQuestion to choose review target.
  2. 2 Diff Acquisition Main agent fetches diff: gh pr diff #N · git show <sha> · git diff (staged + unstaged) · full codebase scan. No sub-agents at this step.
02

Spec gate

Stage 1 — code matches plan/spec?

  1. 3 Stage 1: Spec Compliance HARD GATE — main agent verifies code matches plan/spec. Missing requirements? Unjustified extras (YAGNI)? PASS → Stage 2 | FAIL → fix → re-run Stage 1.
03

Quality

Scout edge cases + Stage 2 code-reviewer

  1. 4 Edge Case Scouting Invoke /ck:scout with edge-case focus — 2-6 parallel Explore sub-agents scan data flows, error paths, boundary conditions. Findings feed Stage 2.
  2. 5 Stage 2: Code Quality code-reviewer sub-agent — standards, security, performance, edge cases from scout. For 3+ files: parallel scoped reviewers (e.g. backend + frontend).
04

Adversarial + Prove

Stage 3 red-team, verify, report

  1. 6 Stage 3: Adversarial Adversarial reviewer sub-agent (red team) actively tries to break the code — security holes, false assumptions, race conditions, resource exhaustion, supply chain. Verdicts: Accept / Reject / Defer.
  2. 7 Verification Gate IRON LAW — run build + tests, read output, confirm 0 failures with FRESH evidence before any completion claim. No "should" / "probably" / "seems to".
  3. 8 Review Report Findings grouped by severity (Critical / Important / Minor) with verdict per finding. Recommendation: APPROVE | REQUEST CHANGES | BLOCK. Critical → merge blocked.

Input Modes

Input mode picks the review target. Pick ONE — agent auto-detects from the argument, or AskUserQuestion when ambiguous. No "fast/auto" flag — every mode runs through all 3 stages.

#123

PR mode

Fetch full PR diff via gh pr diff #N.

Prompt

/ck:code-review #123

Use when: Reviewing an open GitHub PR.

Expected: Full PR diff → 3-stage review → APPROVE / REQUEST CHANGES / BLOCK recommendation.

--pending

Pending

Review staged + unstaged changes in the working tree.

Prompt

/ck:code-review --pending

Use when: Before commit, right after /ck:cook or /ck:fix.

Expected: git diff (staged + unstaged) → 3-stage review → inline findings.

abc1234

Commit

Review a specific commit via git show <sha>.

Prompt

/ck:code-review abc1234

Use when: Auditing an old commit, post-mortem regression.

Expected: That commit's diff → 3-stage review scoped to the commit.

codebase parallel

Codebase parallel

Ultrathink edge cases, then spawn adversarial reviewers in parallel.

Prompt

/ck:code-review codebase parallel

Use when: Deep audits — security review, pre-launch hardening.

Expected: Multiple scoped reviewers, dedupe + prioritize by severity.

Sample Prompt

Pending Recommended
/ck:code-review --pending

Use when: Just finished /ck:cook or /ck:fix, not yet committed.

Expected: Reviews all staged + unstaged before commit / ship.

PR review
/ck:code-review #42

Use when: PR is open, needs adversarial review before merge.

Expected: Findings grouped by severity + verdict per item.

Codebase audit
/ck:code-review codebase parallel

Use when: Pre-launch or whole-project security audit.

Expected: Multiple scoped reviewers, severity-dedupe in the report.

Artifacts Produced

Adversarial Review Report

Findings grouped by severity (Critical / Important / Minor) + verdict per finding + merge recommendation
1

Each finding: description, file:line, severity, verdict (Accept / Reject / Defer)

2

Critical → BLOCK merge

3

Deferred → GitHub issue

4

Recommendation: APPROVE | REQUEST CHANGES | BLOCK

5

Verification gate (tests + build) MUST pass before report finalizes

Shortcuts Blocked

1

Thought

Code compiles → review passes

Reality

Stage 1 spec compliance must verify intent matches plan/spec — compile says nothing.

2

Thought

Small diff, just skim it

Reality

Adversarial Stage 3 is still mandatory unless the scope gate hits (≤2 files, ≤30 lines, no security).

3

Thought

Tests pass = safe to merge

Reality

Critical findings still block merge. Need fresh build + test evidence — no "should/probably".

Quick Ref / Fix command

Bug, failing CI, regression, production issue

/ck:fix

Use it when a failure needs an evidence-based repair. Pick mode, scout first, diagnose root cause, fix the cause, verify/prevent, review, then finalize.

01

Mode

02

Scout + diagnose

03

Root-cause fix

04

Verify + prevent

Root cause first

No symptom patches, no probably.

Exact repro

Capture pre-fix failure and rerun the same path.

Prevention

Regression test, blast-radius sweep, guards against recurrence.

Execution Map

Four lanes: mode/scout, root-cause diagnosis, targeted repair, then verify/prevent + finalize.

01

Start

Mode + scout evidence

  1. 0 Mode AskUser: Autonomous (default) · Review · Quick · Parallel — or pass --auto/--review/--quick/--parallel
  2. 1 Scout MANDATORY — ck:scout or 2-3 parallel Explore: affected files, deps, tests, git log, patterns
02

Diagnose

RCA with file:line

  1. 2 Diagnose MANDATORY — ck:debug + ck:sequential-thinking, capture pre-fix state, evidence-based RCA, no guessing
  2. 3 Route Classify Simple/Moderate/Complex/Parallel → workflow + TaskCreate dependency chain (Moderate+)
03

Repair

Address the root cause

  1. 4 Fix Implement ROOT CAUSE fix — minimal changes, follow existing patterns
04

Prove

Verify, prevent, finalize

  1. 5 Verify + Prevent MANDATORY — re-run exact pre-fix repro, regression test, blast-radius sweep, code-reviewer delegate, artifact gate (workflow-artifact-gate.cjs --stage finalize), prevention gate, parallel typecheck/lint/build/test
  2. 6 Finalize MANDATORY chain: /ck:project-management → docs-manager → TaskUpdate completed → git-manager (AskUser commit) → /ck:journal

Mode Selection

Autonomous is the default. Use review for high risk, quick only for tiny lint/type fixes, and parallel for independent issues.

--auto

Autonomous

Auto-approve only when artifacts + validator pass.

Prompt

/ck:fix --auto login button returns 500

Use when: The bug is clear, risk is low/moderate, and verification is straightforward.

Expected: Still runs scout/diagnose/review before finalize.

--review

Human review

Pause at each step for user approval.

Prompt

/ck:fix --review webhook duplicate charge

Use when: Production, billing, auth, data loss, or public contract risk.

Expected: Stops after diagnosis/fix/verify with concrete findings.

--quick

Quick

Scout -> diagnose -> fix -> lighter review.

Prompt

/ck:fix --quick TypeScript error in pricing card

Use when: Trivial lint/type/single-file issue.

Expected: Faster cycle without skipping root-cause checks.

--parallel

Parallel

One fullstack-developer lane per independent issue.

Prompt

/ck:fix --parallel checkout errors and dashboard chart crash

Use when: 2+ independent failures with separate touchpoints.

Expected: Separate task trees; main agent surfaces cross-issue conflicts.

Sample Prompt

Standard bug Recommended
/ck:fix Login submit returns 500 in local dev

Use when: Let the agent choose mode and scout the repo.

Expected: Mode -> Scout -> Diagnose -> Root-cause fix -> Verify.

High risk
/ck:fix --review Payment webhook double-charges paid orders

Use when: You want a user gate at every step.

Expected: No finalize/commit before user approval.

CI failure
/ck:fix --quick npm run build fails after latest merge

Use when: Build/type/lint failure appears small.

Expected: Fast repair while rerunning the exact failing command.

Artifacts Produced

Bug Fix Report

Step markers + confidence score + journal entry
1

Root cause cited file:line

2

Fix targeted

3

Regression test added

4

Blast-radius swept

5

Prevention guards in place

6

Plan/tasks synced

7

Docs updated

8

Journal recorded

Shortcuts Blocked

1

Thought

I can see the bug, just fix it

Reality

Seeing symptoms is not root cause. Scout + diagnose first.

2

Thought

Try changing X and see

Reality

Random fixes create new bugs. Build an evidence chain.

3

Thought

Fixed, tests pass

Reality

The prevention gate still needs to stop this bug class from recurring.

Quick Ref / Team orchestration

Parallel multi-session

/ck:team

Use it to spawn N independent Claude Code teammates in parallel — research from multiple angles, cook many files, review multiple focuses, or debug competing hypotheses.

01

Invoke

02

Pre-flight

03

Spawn N

04

Synth + close

Execution Map

Four lanes: setup pre-flight, parallel spawn, event-driven coordination, then synthesize and close.

01

Setup

Invoke + pre-flight check

  1. 1 Invoke /ck:team <template> <context> [flags] — pick research / cook / review / debug + optional --devs/--researchers/--reviewers/--debuggers N, --delegate, --worktree
  2. 2 Pre-flight MANDATORY — call TeamCreate(team_name) directly; success continues, error ABORTS (no subagent fallback). Env flag + CLI terminal + Opus 4.6 must all hold
02

Spawn

Derive N + spawn in parallel

  1. 3 Derive N Split input into N independent work items (default N=3) — angles (research) / file-owned tasks + tester blocker (cook) / focuses (review) / competing hypotheses (debug). TaskCreate × N
  2. 4 Spawn Agent tool × N in parallel — model: opus, run_in_background: true, isolation: worktree (cook devs only). Each prompt includes the mandatory CK Context Block
03

Coordinate

Hooks + teammate DM

  1. 5 Coordinate React to TaskCompleted / TeammateIdle hook events (60s TaskList fallback). Teammates DM each other via SendMessage — adversarial in debug, lead-routed in cook
04

Close

Synthesize + shutdown

  1. 6 Synthesize Lead reads all reports. research → research-summary-<slug>.md. cook → git merge --no-ff worktree branches sequentially + MANDATORY Docs impact eval. review → dedupe + prioritize CRITICAL/IMPORTANT/MODERATE. debug → surviving theory = root cause
  2. 7 Shutdown SendMessage(shutdown_request) × N → TeamDelete (NO params) → /ck:journal → report to user. Agent memory at $HOME/.claude/agent-memory/<name>/ persists separately

Templates

Pick a template by need. Each one has its own default N, behaviour, and artifact.

research Default N: 3

Research from N angles

Sample prompt

/ck:team research Compare auth strategies for our SaaS app

Use when

Architecture decisions, technology evaluation, multi-angle investigation.

Output

research-summary-<slug>.md — exec summary, comparative analysis, recommendations.

cook Default N: 4 devs + 1 tester

Cook with file-owned devs

Sample prompt

/ck:team cook plans/.../plan.md --devs 4 --worktree

Use when

Multi-file feature implementation with parallel devs in isolated worktrees.

Output

Merged branches via git merge --no-ff + MANDATORY docs sync eval + test results.

review Default N: 3

Review N focuses

Sample prompt

/ck:team review src/api --reviewers 3

Use when

Pre-merge review with security, performance, and test-coverage lanes in parallel.

Output

review-<slug>.md — severity-dedupe (CRITICAL / IMPORTANT / MODERATE) + action items.

debug Default N: 3

Debug competing hypotheses

Sample prompt

/ck:team debug "Webhook returns 500 intermittently" --debuggers 3

Use when

Hard-to-reproduce bugs where you want adversarial disproof to converge on root cause.

Output

debug-<slug>.md — root cause + evidence chain + disproven hypotheses.

Per-Template Artifacts

Per-Template Report

Lead synthesizes the report after every teammate finishes. Fixed location at plans/reports/.

plans/reports/
research-summary / cook merge+docs / review-<slug> / debug-<slug>.md

Core Principles

These five rules apply to every template — violating them breaks team execution.

  1. 1 TeamCreate-first — NEVER fall back to subagents on failure
  2. 2 File ownership boundaries — devs must not overlap on cook tasks
  3. 3 CK Context Block in EVERY spawn prompt — teammates need it to find reports/plans
  4. 4 Refer to teammates by NAME (not agent ID) in recipient + owner fields
  5. 5 Adversarial in debug — let competing hypotheses converge by mutual disproof

Quick Ref / Visual utility

Read-only · never modifies code

/ck:preview

View files or generate visual explanations, diagrams, and slide decks — in the browser or as a self-contained HTML page. A read/visualize utility that never modifies code.

01

Input

02

Route

03

Generate

04

Output

Execution Map

One input (file path or generate flag + topic) runs through four stages: receive, route, generate, then emit to the browser or a self-contained HTML page.

01

Receive

File path or generate flag + topic

  1. 1 Input A file path, or a generate flag + topic (add --html for a browser page)
  2. 2 Plan Context Hook injects active plan — visuals save to {plan_dir}/visuals/ (fallback plans/visuals/)
02

Route + generate

Pick a shape, build prose + ASCII + Mermaid

  1. 3 Route Path → file preview/walkthrough · Topic → pick explain/diagram/slides/ascii
  2. 4 Generate Build prose + ASCII + Mermaid (mermaidjs-v11 syntax); tech-graph for publish-grade SVG/PNG
03

Emit

Live browser or self-contained HTML

  1. 5 Output Markdown auto-opens in browser (Mermaid live) · --html = self-contained shareable page

Usage by Role

View (no flag) takes a path to read/walk through a file. Eight flags in three groups: Generate picks an output shape from a topic; --html wraps any generate flag into a standalone page; the Review group requires --html.

View · no flag

Read an existing file/dir — plans in novel UI

  • <file.md>

    View one markdown file (plan, phase, doc) in the novel-reader UI — Mermaid renders live.

    Sample prompt

    /ck:preview plans/.../plan.md
  • <dir/>

    Pass a folder to browse every doc inside — e.g. a whole plan folder (plan.md + all phase files).

    Sample prompt

    /ck:preview plans/260527-.../
  • <path>

    View reads the file as-is. Contrast with generate flags (--explain / --diagram / --slides / --ascii): they take a topic in plain words and build a new visual — not a path.

    Sample prompt

    /ck:preview src/auth/middleware.ts

Generate

Pick one output shape from a topic

  • --explain

    Visual explanation of code or a concept — narrative + ASCII + Mermaid diagrams

    Sample prompt

    /ck:preview --explain "auth middleware flow"
  • --diagram

    Architecture and data-flow diagrams

    Sample prompt

    /ck:preview --diagram "request lifecycle"
  • --slides

    Step-by-step walkthrough as a slide deck

    Sample prompt

    /ck:preview --slides "onboarding flow"
  • --ascii

    Terminal-friendly ASCII diagram (no browser needed)

    Sample prompt

    /ck:preview --ascii "folder structure"

Output

Composes with any generate flag

  • --html

    Self-contained HTML page — composes with any generate flag, opens directly in browser

    Sample prompt

    /ck:preview --html --diagram "DB schema"

Review · implies --html

Diff, plan-vs-code, and recap views

  • --diff [ref]

    Visual diff review of changes (requires --html)

    Sample prompt

    /ck:preview --diff HEAD~3
  • --plan-review [plan-file]

    Compare a plan file against the actual codebase — implies --html. Omit the path to use the active plan.

    Sample prompt

    /ck:preview --plan-review plans/.../plan.md

    Omit path → active plan

    /ck:preview --plan-review
  • --recap [timeframe]

    Project context snapshot over a timeframe (requires --html)

    Sample prompt

    /ck:preview --recap "last week"

Delivery

Which modes need a local server, which are self-contained.

Local server

markdown-novel-viewer

  • View (file / dir)
  • Markdown generation

Self-contained

No server — opens in browser

  • --html + generate flag
  • Review (--diff / --plan-review / --recap)
Stop server /ck:preview --stop

Visual Output

  • Explanation / diagram / slides / ascii
  • Markdown auto-opens with live Mermaid
  • --html is shareable with no server
  • Diff / plan-review / recap produce review-grade visuals
Pattern
{slug}.md (browser) · {slug}.html (self-contained)
Location
Active plan {plan_dir}/visuals/
Fallback plans/visuals/

With an active plan, visuals live inside that plan folder. No plan → falls back to plans/visuals/.

Core Principles

Five rules that shape how preview behaves — always safe, always shareable.

  1. 1 Read/visualize only — never modifies code
  2. 2 --html is self-contained — opens in any browser, no server
  3. 3 Markdown mode renders Mermaid live via markdown-novel-viewer
  4. 4 Visuals colocate with the active plan folder
  5. 5 Pairs with ck:mermaidjs-v11 (syntax) and ck:tech-graph (publish-grade)
See all ClaudeKit commands

Pipeline

/

Keyboard: Space = Play/Pause · ← → = Prev/Next step

Ready to experience it yourself?