Docs
CafeKit 0.9.1

A spec-driven runtime for real AI coding work.

CafeKit installs skills, agents, hooks, state checks, and quality gates into your repo so an assistant can move from idea to verified implementation without drifting into ad-hoc prompting.

What CafeKit is#

CafeKit is a repo-local runtime bundle for AI coding assistants. The current package is @haposoft/cafekit, installed with npx @haposoft/cafekit.

It adds a structured workflow around Claude Code and OpenCode:

Spec-driven delivery path

The docs should always point back to this contract loop.

/hapo:specs

Turn intent into scope, evidence, requirements, design, and task packets.

/hapo:develop

Implement one approved task packet, not the whole chat memory.

/hapo:test

Run exact evidence commands and runtime checks.

/hapo:code-review

Review for spec compliance, regressions, security, and drift.

/hapo:sync

Update task_registry and task markdown only after proof, or audit drift.

Start with SDD#

CafeKit is built around specification-driven development: an idea becomes code only after it becomes a source-backed contract. Start with the visual guide: Spec-driven development.

After that, the deeper path is Core workflowSpec lifecycleSkills.

What it installs#

CafeKit installs a working runtime, not just documentation snippets.

.claude/ runtime bundle
skills/

29 packaged workflows and domain capabilities

agents/

13 specialist agents for planning, code, QA, docs, git, and deploy

hooks/

Privacy, scope, state, usage, docs sync, and spec-state gates

runtime.json

Runtime configuration, paths, locale, usage, and model hints

settings.json

Claude Code hook wiring and statusline command

status.cjs

Git, context, usage, task, and agent statusline

The package currently ships 30 skills, 13 agents, installer support for Claude Code and OpenCode, and deterministic validators for specs and documentation bundles.

How to read these docs#

If you are new, read in this order:

  1. Installation
  2. Spec-driven development
  3. Quickstart
  4. Core workflow
  5. Runtime bundle
  6. Spec lifecycle
  7. Workflows

If you already know the workflow, jump to Skills, Agents, or Reference.

Core promise#

CafeKit does not try to make the assistant faster by removing process. It makes the assistant safer by forcing source-backed context, explicit task boundaries, fresh verification, adversarial review, and synchronized state.

Scope

Task files and scope_lock define what may change.

Evidence

Exact commands and runtime proof must be fresh.

Review

Critical findings block task completion.

Sync

spec.json and markdown state move together.