Workflows
Command surface

Dùng workflow khớp với mức rủi ro.

CafeKit không chỉ có happy path. Nó có ideation, implementation, debugging, hotfix, docs, review, sync, git, và diagram workflows.

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.

Luồng delivery chính được giải thích kỹ ở Workflow chính. Dùng trang này như command selector khi loại việc không phải feature path tiêu chuẩn.

Core feature workflow#

CommandDùng khi
/hapo:specsCần requirements, research, design, tasks, validation.
/hapo:developSpec hoặc task file đã approved và sẵn sàng implement.
/hapo:testCần evidence từ commands, build, tests, UI checks, runtime reachability.
/hapo:code-reviewCần adversarial review cho bugs, security, drift, missing proof.
/hapo:syncTask status, task_registry, và task markdown cần update sau proof, hoặc cần audit drift.

Dùng /hapo:brainstorm trước path này chỉ khi idea chưa rõ, architecture còn mở, hoặc cần pressure-test scope.

Bug và incident#

CommandDùng khi
/hapo:debugChưa biết root cause. Diagnostic-first, cần evidence trước khi sửa code.
/hapo:hotfixCần sửa bug đã diagnosis với change nhỏ và regression checks.

Docs và artifacts#

CommandDùng khi
/hapo:docs --initProject docs đang thiếu.
/hapo:docs --updateSource thay đổi đủ lớn để docs cần refresh.
/hapo:docs --reconstruct <scope>Cần as-is docs dựa trên source cho hệ thống hiện có.
/hapo:generate-graph <request>Cần architecture, flow, sequence, hoặc state diagram.

Release#

CommandDùng khi
/hapo:git commitChange đã verify sẵn sàng commit conventional.
/hapo:git pushTests và review đủ sạch để publish branch.

OpenCode cài command không prefix như /specs, /develop, /test, /code-review.