Skip to content

wu:create

← Back to CLI Commands

Create new WU spec

pnpm wu:create --lane <lane> --title <title>

Invalid authoring input is reported once in stable order before any create transaction starts. The report includes every independently detectable field, sizing, test-policy, exposure-verification, and acceptance-scope issue, with one remediation per finding. Checks that depend on a missing prerequisite are deferred. A failed report exits nonzero without creating a micro-worktree, WU file, commit, remote update, backlog change, or initiative link.

Options:

FlagDescriptionRequired
-i, --id &lt;wuId&gt;Work Unit ID (e.g., WU-123). If not provided, auto-generates next sequential ID.No
-l, --lane &lt;lane&gt;Lane name (required for creation; e.g., “Operations: Tooling”)Yes
-t, --title &lt;title&gt;Work Unit title (required for creation)Yes
-p, --priority &lt;priority&gt;Priority level (P0, P1, P2, P3)No
--type &lt;type&gt;WU type (feature, bug, documentation, process, tooling, chore, refactor)No
--initiative &lt;ref&gt;Parent initiative (INIT-XXX or slug)No
--initiative-phase &lt;number&gt;Canonical initiative_phase number within parent initiativeNo
--blocked-by &lt;wuIds&gt;WU IDs that block this WU (repeatable)No
--blocks &lt;wuIds&gt;WU IDs this WU blocks (repeatable)No
--labels &lt;labels&gt;Labels (repeatable)No
--assigned-to &lt;email&gt;Override assigned_to (defaults to git config user.email)No
--description &lt;text&gt;Required WU description (Context/Problem/Solution)No
--acceptance &lt;criterion&gt;Acceptance criterion (required for creation; repeatable, use multiple times)No
--notes &lt;text&gt;Implementation notes or context (required for creation)No
--code-paths &lt;paths&gt;Code paths (required for non-documentation/process WUs; repeatable)No
--test-paths-manual &lt;tests&gt;Manual verification (required for non-documentation/process WUs unless configured test policy waives evidence; repeatable)No
--test-paths-unit &lt;paths&gt;Unit test file paths (repeatable)No
--test-paths-e2e &lt;paths&gt;E2E test file paths (repeatable)No
--validateValidate spec completeness (requires description, acceptance, test paths)No
--spec-refs &lt;paths&gt;Spec/plan references (required for feature WUs unless —plan is supplied; repeatable or comma-separated)No
--exposure &lt;type&gt;Exposure level (required for creation: ui, api, backend-only, documentation; UI exposure requires accessibility evidence)No
--user-journey &lt;text&gt;User journey description (recommended for ui/api exposure)No
--ui-pairing-wus &lt;wuIds&gt;UI WU IDs that consume this API (repeatable or comma-separated, for api exposure)No
--planCreate plan template in the repo plansDir (legacy LUMENFLOW_HOME/plans still resolve)No
--estimated-files &lt;count&gt;Estimated artifacts modified by the WU (all-or-none sizing tuple when any sizing option is supplied; non-negative integer; exclude audit read coverage)No
--estimated-tool-calls &lt;count&gt;Estimated tool calls for the whole WU (required in the sizing tuple; non-negative integer; the per-session checkpoint rule still applies)No
--sizing-strategy &lt;strategy&gt;Executable sizing strategy (required in the sizing tuple: single-session, checkpoint-resume, orchestrator-worker; decomposition is plan-only)No
--sizing-exception-type &lt;type&gt;Optional bounded sizing exception (docs-only, shallow-multi-file, review-audit); WU type, paths, and strategy must qualifyNo
--sizing-exception-reason &lt;text&gt;Required with an exception type; for review-audit, record modified outputs here and read coverage separatelyNo
--no-strictBypass code_paths/test_paths path existence checks. Reality-phase checks run at wu:prep/wu:done. Logged when used.No
--cloudUse cloud/branch-pr mode (no worktree, PR-based completion for cloud agents and MCP callers)No
--offlineSkip remote fetch during ID generation (air-gapped/offline mode)No

← Back to CLI Commands