Kanban Flow Workflow

kanban-flow drives a feature’s life cycle through the kf CLI and the phase skills:

brainstorm → planning → implementation → testing → review → dones
                 ↘ backlog ↗

any stage ──kf cancel──→ cancelled ──back to the stage it stopped in──→ (resumes)

The pipeline exists to turn an idea into an approved execution contract, then execute it with traceability, and test and review the right version of it before archiving.

Features and bugs share one state machine. Create a bug with kf new <name> --type bug; it goes through kanban-bug for triage and reproduction before it reaches planning.

Where to start

  1. Lifecycle — who does what, and in what order.
  2. State machine — the states and the transitions each one allows.
  3. Gates — artifacts, approval, execution ids and report status.
  4. Artifact contract — file structure, traceability and the canonical output.
  5. CLI reference — the command syntax an agent uses to move state.
  6. Skill routing — which skill loads in which state.
  7. Dashboard — the KPIs, the charts, the filters and what each number means.
  8. Agent harness — the stage → role → runner mapping behind kf run, kf runs and kf harness.
  9. Source layout — the shape of src/ and how to extend it.

The rules that never bend

One rule in that list is not like the others: the pipeline granting itself no access to a database, a deployment, a publish or a message is a policy carried in the skill prompts, not a gate. Nothing in src/ enforces it, and the runner presets start workers with edits auto-accepted. It bends exactly as far as the worker does.

Filesystem model

project/
├── .kf/
│   ├── config.json
│   ├── templates/
│   ├── hooks/
│   └── review/rules/
├── .works/
│   ├── brainstorm/
│   ├── planning/
│   ├── backlog/
│   ├── implementation/
│   ├── testing/
│   ├── review/
│   ├── cancelled/
│   └── dones/
└── docs/
    ├── requirement/{context}/{feature}.md
    ├── use-cases/{context}/{feature}/README.md + UC-###.md + diagram.md
    └── testplan/{context}/{feature}{,-result}.md

Each work item folder is named {feature}_{YYYYMMDD_HHmm} and carries a .kfw.json. The standard artifacts all use the phase-{number}- prefix.