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, fix, docs, review, sync, git, và diagram workflows.

Spec-driven delivery path

The docs should always point back to this contract loop.

/cf:specs

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

/cf:develop

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

/cf:test

Run exact evidence commands and runtime checks.

/cf:code-review

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

/cf:sync

Update process-first Status and inline Receipt 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
/cf:specsCần C1 scope, reviewed plan, flat executable tasks và C2 decision.
/cf:developSpec hoặc task file đã approved và sẵn sàng implement.
/cf:testCần evidence từ commands, build, tests, UI checks, runtime reachability.
/cf:code-reviewCần adversarial review cho bugs, security, drift, missing proof.
/cf:syncCần sync observed task Status hoặc final inline Receipt mà không bịa proof.

Dùng /cf: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
/cf:debugChưa biết root cause. Diagnostic-first, cần evidence trước khi sửa code.
/cf:fixCần sửa bug đã diagnosis với change nhỏ và regression checks.

Docs và artifacts#

CommandDùng khi
/cf:docs --initProject docs đang thiếu.
/cf:docs --updateSource thay đổi đủ lớn để docs cần refresh.
/cf:docs --reconstruct <scope>Cần as-is docs dựa trên source cho hệ thống hiện có.

Release#

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

Codex CLI expose cùng public workflow qua native $cf-* skills.