Cadre workflows are invoked by asking for the Cadre skill and then a
cadre-* workflow. Text after the workflow name is treated as workflow
arguments; there is no separate prompt expansion layer.
Before any workflow, the agent verifies Cadre MCP with cadre_project
{ "action": "ping" }. Every project-scoped packet receives a root argument.
Lifecycle
setup -> newtrack -> implement -> review -> ship/land -> archive -> release
Support workflows can happen along the way:
status, validate, handoff, refresh, revise, revert, flag, formula
cadre-setup
Initializes the project control plane.
What setup gathers:
- Product goals, users, workflows, and constraints.
- Languages, frameworks, package managers, platforms, and project gate commands.
- Monorepo or polyrepo topology.
- Local or shared sync mode.
- Local, GitHub, or GitLab provider mode.
- Beads integration and optional CI templates.
- Optional LSP recommendations.
What setup writes:
cadre/product.mdcadre/tech-stack.jsoncadre/workflow.mdcadre/patterns.mdcadre/learnings.mdcadre/tracks.mdcadre/config.jsoncadre/beads.json- optional
cadre/repos.json - optional
cadre/lsp.json - selected
cadre/code_styleguides/
Setup requires Beads. If bd is missing or not usable, setup stops.
cadre-newtrack
Creates a spec-first unit of work.
The new-track packet previews or creates:
- Track id and directory.
spec.mdwith goal, constraints, acceptance criteria, and non-goals.plan.mdwith phases, tasks, file claims, dependencies, and repo annotations.- Beads epic/phase/task tree.
- Worktree plan.
- Planning evidence such as likely tests, semantic impact, and parallel candidates.
Good tracks have testable acceptance criteria, explicit dependencies, clear file annotations, and a plan that can be resumed by another session.
cadre-implement
Starts or resumes implementation.
The implementation packet:
- Selects or claims a track.
- Returns bounded context from product, workflow, patterns, style guides, and track files.
- Checks owner/lease state and cross-track collisions.
- Parses the plan and computes ready phases.
- Returns worktree and repo routing.
- Dispatches parallel worker waves through
cadre_parallelwhen safe.
Sequential phases run one unfinished task at a time. Parallel phases dispatch only tasks whose phase dependencies, task dependencies, worker state, and file claims are ready.
Task completion should use cadre_complete_task so verification, coverage,
plan progress, metadata, and Beads notes are recorded consistently.
cadre-status
Shows current project and team state.
Common status views include:
- Live summary.
- Team board.
- Current user's next actions.
- Available unowned work.
- Review queue.
- Handoff inbox.
- Fleet board for polyrepo projects.
- Collision scan.
- Quality gate summary.
Status reads packet output and compact resources. It should not treat
cadre/tracks.md as the live source of truth.
cadre-review
Runs the quality gate for a track.
Review evidence can include:
- Track context and plan completion.
- Machine gate output.
- Coverage evidence.
- TODO/stub findings.
- LSP reference findings.
- Hosted provider evidence requirements.
- Existing review verdict and reviewer assignment.
The reviewer verdict is recorded through Cadre packets. Ship and land packets re-read the gate immediately before publication.
cadre-ship
Prepares monorepo publication.
Ship is for single-repo projects. It enforces the review gate, computes provider actions, checks required hosted evidence, and records publication evidence. In hosted modes, provider actions are executed through official provider MCPs and then written back to Cadre.
Use cadre-land for polyrepo projects.
cadre-land
Prepares polyrepo publication.
Land is for control repos with cadre/repos.json. It enforces review, runs
all-or-nothing local preflight across touched repos, plans one PR/MR per product
repo plus a control-repo PR/MR, links them with a shared cadre-track:<id>
label, and records provider evidence.
The generated merge train lands product repos first and the control repo last.
cadre-handoff
Writes resumable context for another session or teammate.
Handoff can include:
- Goal and current status.
- Branch and worktree information.
- Completed tasks and remaining tasks.
- Test/coverage evidence.
- Blockers and next actions.
- Review or provider state.
Handoff artifacts are per-track, so two tracks do not clobber each other's handoff context.
cadre-refresh
Refreshes derived context and setup recommendations.
Refresh can update:
- Track index and project learning stamps.
- LSP recommendations with
cadre-refresh --lsp. - Repo topology and enabled repos with repo-scoped refresh.
- Shared-sync configuration and generated project context.
Refresh is useful after toolchain changes, repo topology changes, or stale project context.
cadre-revise
Changes an existing spec or plan after gathering impact evidence.
Revise should preserve track history and reason about:
- Acceptance criteria changes.
- Plan dependency changes.
- File claim changes.
- Repo annotation changes.
- Beads dependency updates.
- Review or implementation state that may be invalidated.
cadre-revert
Plans and executes tracked reverts through Cadre packets.
In monorepo mode, reverts apply to the track's recorded commits. In polyrepo mode, SHAs are grouped per repo and reverted in reverse order inside each repo. Cadre halts on conflicts and reports recovery steps.
cadre-archive
Archives completed tracks and refreshes derived indexes.
Archive can clean up completed track worktrees and preserve safety-net branches or evidence according to workflow policy. It should only archive work that is complete and no longer active.
cadre-release
Creates release artifacts from completed track metadata.
Release summarizes shipped or landed tracks, review state, version notes, and changelog-ready entries. It does not replace project-specific release policy; it provides structured Cadre evidence for it.
cadre-validate
Checks the project control plane.
Validation can inspect:
- Cadre setup files.
- Generated index drift.
- Plan annotation integrity.
- Beads health.
- Sync mode and merge-driver readiness.
- Polyrepo manifest and submodule parity.
- LSP configuration.
- Provider evidence requirements.
Use validation before important handoffs, after conflict resolution, or when a workflow returns an unexpected state.
cadre-flag
Records blocked or skipped work through packets.
Flagged work remains visible to status boards and Beads memory. In shared mode, the control plane sync makes blockers visible to teammates.
cadre-formula
Handles Cadre formula or template operations.
Formula workflows are packet-owned and should use the bundled template locator instead of copying generated plugin assets by hand.