Skip to content

kodflow/kodflow-workflow

v0.0.0-re61d6d4f6f77MIT

The work loop: open a tracked piece of work, research it, plan it, argue the plan, turn it into an executable contract, ship it. Each skill hands the next exactly what it needs, and every step leaves a trail the next session can read.

challenge

Put a plan through an adversarial debate before anyone builds it. The panel is never generic: three contradictory lenses — architecture, scepticism, operations — plus every installed specialist whose technology the plan actually touches, and Codex from outside the Claude family when its CLI answers. Specialists must cite the documentation they checked; an objection resting on an unverified version claim is marked, not taken as fact. At most three rounds, the plan rewritten between them rather than defended, and every difficulty put to you immediately as a three-option question with a recommendation. Output: a /goal directive of at most 4000 characters with an unticked task list and a runnable verifier per acceptance criterion, mechanically validated. Use when once a plan exists and before it is executed — after /plan, /feature or /fix, when the approach is still arguable, or when a previous attempt went wrong and the plan is suspect. Not for a task whose steps are already obvious.

docs

Write the project documents that are missing — requirements, flows, data schema, implementation plan, threat model and the rest of the catalogue — from the repository, from your answers, or both. Every claim cites its file:line, the draft is shown before it is written, and a document that does not apply is ignored only on your word. Use when the documents panel shows missing documents, after /project adopts or creates a project, or before /plan on a project whose product, data or security has never been written down. Not for an ADR on a single decision, which is /kodflow-review:adr.

feature

Open a piece of feature work and keep its trail. Records the feature where the project actually tracks work — a note store when one is grafted onto the session, otherwise a GitLab or GitHub issue — then cuts a branch named after the issue so forges and external trackers link the two automatically. Run it again on the same subject and it appends the new exchange as a comment instead of duplicating anything, so the original understanding and every refinement since stay readable side by side. Use when starting work on something the project does not do yet, and again each time the discussion sharpens what that thing is. For a defect in existing behaviour use /fix instead.

fix

Open a defect and keep its trail. Records the bug where the project tracks work — a note store when one is grafted onto the session, otherwise a GitLab or GitHub issue — then cuts a branch named after the issue so forges and external trackers link the two. Refuses to open a bug with no reproduction: observed versus expected, and the steps that show it. Re-running on the same defect appends what was learned as a comment, so the original symptom and the investigation that followed stay readable side by side. Use when existing behaviour is wrong — a crash, a wrong result, a regression, a flaky test. For something the project does not do yet, use /feature. To actually find the cause once the bug is opened, use /debug.

flow

Draw the kodflow workflow as an ASCII diagram — the whole map, the nominal path through it, one skill in detail, the artifacts skills pass to each other, the hook lifecycle, or the specialist dispatch tree. Every node carries the command to type and the file it leaves behind, so the diagram doubles as the prompt for what to run next. Use when to see how the skills fit together — at the start of a session, when you know what you want but not which skill opens it, when handing the setup to someone else, or when a README needs the map. Also to check the diagram still matches the installed plugins.

hunt

Hunt every defect of one topic across one or several repositories until a full pass on a frozen commit finds none: verified issues, one fix commit and one Codex review per issue, nothing pushed before convergence, all resumable from a JSONL ledger. Use when a whole topic needs its defects found and fixed over several sessions. Use when a whole topic needs its defects found and fixed, not a single bug — "fix every defect in the consensus layer", "harden the payments state machine" — and the work will outlast one session. For one known defect use /fix then /debug. Not for a topic you cannot express as a matrix of cells with a runnable witness each.

plan

Enter Claude Code planning mode with RLM decomposition. Analyzes codebase, designs approach, creates step-by-step plan. Use when: starting a new feature, refactoring, or complex task. Use when before implementing anything non-trivial — a feature, a refactor, a migration. Produces a step-by-step plan in .claude/plans/, validated against the project's constraint ledger.

project

Open or create the workspace for a coding project, then turn the conversation into enforceable constraints. Detects whether the current directory is already a git work tree; if not, finds where this user keeps their code (~/Projects, localized Documents off macOS, %USERPROFILE%\Documents, ...) and adopts, clones, or creates the GitHub repository. Every decision, preference and idea exchanged afterwards is recorded as a numbered, verifiable constraint in the project's CLAUDE.md so later sessions inherit them instead of re-deriving them. Use when at the very start of work on a project — "let's work on X", "start a new project", "clone X and set it up" — and again whenever a discussion settles a rule the project must follow from now on.

recap

One compact table, in French, of where the session's work stands — open epics and their tasks, running subagents, the PRs of tasks in progress with their CI — with a column saying who must act, you or an agent, and what waits on you first. --loop [N] reprints it every N minutes, --stop ends it. Use when you want the state of the work at a glance instead of scrolling back — after a break, while several subagents run, before deciding what to unblock. --loop keeps it fresh while you do something else.

refine

Skills Architecture v1.6 — proof-bearing goal contract generator with three entry modes (auto-detected from arguments). FULL mode reads .claude/contexts/<slug>.md + .claude/plans/<slug>.md and runs 4-10 review lenses. BARE mode skips lens dispatch and structures a free-form description. FROM-CONTRACT mode re-compacts an existing goal contract. ALWAYS emits a predictable square-prompt directive with the same 7-section shape (CONTEXT, OBJECTIVE, SCOPE, CONSTRAINTS, ACCEPTANCE, VERIFY, STOP) so a vague input like "fix ca" never reaches the goal state — synthesis rejects vague verbs and forces binary measurable acceptance criteria paired 1:1 with verifiers. The /goal directive has a 4000-char ceiling (hard tool limit); /refine aims for the minimum viable length that preserves the contract, never pads to fill the budget. Use when to turn a plan or a loose description into a /goal contract with binary acceptance criteria paired 1:1 with verifiers, so the goal state cannot be reached by a vague claim of success.

search

Research a technology, API or practice and write a plan-grade context file to .claude/contexts/<slug>.md. Consults the local knowledge base first — but treats it as dated evidence, not scripture: every document carries a verified date, and a stale one is a hypothesis to confirm against the web rather than a source to cite. Fans out over official documentation, cross-validates, resolves conflicts, and writes the confirmed answer back into the local base so it stops rotting. The output is shaped for /plan to consume directly. Use when before designing anything you do not already know cold — a new library, an unfamiliar API, a protocol, a migration, a security mechanism — and any time correctness depends on a current version rather than on memory.

warmup

Pre-load a project's context before working on it. Maps the CLAUDE.md hierarchy without re-reading what Claude Code already loaded, loads the constraint ledger written by /project, explores only what the docs leave open, and emits one bounded briefing. --update refreshes, creates and splits the CLAUDE.md files, enforcing the size thresholds. Use when at the start of a session in an unfamiliar or long-idle repository, before a complex task, after switching projects, and with --update after a structural change that made the documentation stale.