Workflows
Command surface

Use the workflow that matches the risk.

CafeKit ships more than the happy path. It includes ideation, implementation, debugging, fixing, docs, review, sync, git, and visual 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.

The main delivery path is explained in depth in Core workflow. Use this page as the command selector when the work is not the standard feature path.

Core feature workflow#

CommandUse when
/cf:specsYou need C1 scope, a reviewed plan, flat executable tasks, and a C2 decision.
/cf:developA spec or task file is approved and ready for implementation.
/cf:testYou need evidence from exact commands, build checks, tests, UI checks, or runtime reachability.
/cf:code-reviewYou need adversarial review for bugs, security, scope drift, and missing proof.
/cf:syncObserved task Status or the final inline Receipt must be synchronized without inventing proof.

Use /cf:brainstorm before this path only when the idea is unclear, architectural choices are open, or scope needs pressure-testing.

Bug and incident workflow#

CommandUse when
/cf:debugRoot cause is unknown. It is diagnostic-first and should produce evidence before code changes.
/cf:fixA bug must be fixed after diagnosis, with smallest safe change and regression checks.

Documentation and artifacts#

CommandUse when
/cf:docs --initProject docs are missing.
/cf:docs --updateSource changed enough that broader docs should refresh.
/cf:docs --reconstruct <scope>You need source-backed as-is docs for an existing system.

Release workflow#

CommandUse when
/cf:git commitVerified changes are ready for a focused conventional commit.
/cf:git pushTests and review are clean enough to publish the branch.

Codex CLI exposes the same public workflow as native $cf-* skills.