Docs
CafeKit 0.9.1

実際の repo 向けの spec-driven AI coding runtime。

CafeKit は skills、agents、hooks、state checks、quality gates を repo に入れ、assistant が ad-hoc prompt に流れず idea から verified implementation まで進めるようにします。

CafeKit とは#

CafeKit は AI coding assistants のための repo-local runtime bundle です。現在の package は @haposoft/cafekit で、npx @haposoft/cafekit で導入します。

Claude Code と OpenCode の上に構造化された workflow を追加します。

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.

SDD から始める#

CafeKit は specification-driven development を中心にしています。Idea は source-backed contract になってから code になります。まず visual guide の Spec-driven development から読んでください。

その後、Core workflowSpec lifecycleSkills の順に深く読めます。

インストールされるもの#

CafeKit は単なる文章テンプレートではなく、動作する runtime をインストールします。

.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

現在の package には 30 skills13 agentsClaude CodeOpenCode の installer support、そして spec/docs bundle の deterministic validators が含まれます。

読む順番#

初めてならこの順番がおすすめです。

  1. インストール
  2. Spec-driven development
  3. クイックスタート
  4. Core workflow
  5. Runtime bundle
  6. Spec lifecycle
  7. Workflows

すでに workflow を理解している場合は SkillsAgentsReference に進んでください。

コア方針#

CafeKit は process を削って速くするのではなく、source-backed context、明確な task boundary、fresh verification、adversarial review、state sync によって assistant を安全にします。

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.