Tài liệu
CafeKit 0.9.1

Runtime spec-driven cho AI coding trong repo thật.

CafeKit cài skills, agents, hooks, state checks, và quality gates vào repo để assistant đi từ ý tưởng đến implementation đã verify mà không trôi vào kiểu prompt ngẫu hứng.

CafeKit là gì#

CafeKit là runtime bundle đặt trong repo cho AI coding assistants. Package hiện tại là @haposoft/cafekit, cài bằng npx @haposoft/cafekit.

Nó tạo workflow có cấu trúc quanh Claude Code và 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.

Bắt đầu bằng SDD#

CafeKit xoay quanh specification-driven development: ý tưởng chỉ thành code sau khi thành contract có source backing. Bắt đầu bằng trang trực quan: Spec-driven development.

Sau đó đọc sâu theo đường: Workflow chínhVòng đời specSkills.

Cài những gì#

CafeKit cài một runtime thật, không chỉ là vài đoạn hướng dẫn.

.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 hiện tại có 30 skills, 13 agents, installer support cho Claude CodeOpenCode, cùng các validator deterministic cho spec và docs bundle.

Nên đọc thế nào#

Nếu mới bắt đầu, đọc theo thứ tự:

  1. Cài đặt
  2. Spec-driven development
  3. Bắt đầu nhanh
  4. Workflow chính
  5. Runtime bundle
  6. Vòng đời spec
  7. Workflows

Nếu đã quen workflow, đi thẳng tới Skills, Agents, hoặc Tham khảo.

Cam kết cốt lõi#

CafeKit không cố làm assistant nhanh hơn bằng cách bỏ quy trình. Nó làm assistant an toàn hơn bằng source-backed context, task boundary rõ, verify mới, adversarial review, và state sync.

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.