/klause-workflow:klause-execute linear-ticket-idfrom klause-workflow
Execute work on a Todo ticket using complexity-appropriate strategy
Ships in klause-workflow. Installing the plugin adds it to Claude Code.
Execute work on a Todo ticket by transitioning it to In Progress and running the implementation using the strategy determined by the ticket's complexity label.
The ticket must be in Todo kanban state AND the worktree must be in Processing (a branch already exists from /klause-pull).
Check by calling getProductState:
state is null — no items in queue. Tell the user.state.kanban is not "todo" — refuse and explain which state the ticket is in.state.queue is not "processing" — refuse. The user needs to run /klause-pull first.Add a Linear comment saying this worklane picked up the ticket for execution. Include the worktree/lane name if available from the product state, environment, or local repo path; otherwise use the current branch name as the best available lane identifier.
Use save_comment on the current issue with concise text like:
Picked up by worklane
<lane-name>for/klause-execute.
If adding the comment fails, report the failure and continue; the comment is coordination metadata and must not block execution.
Call Linear's get_issue with id: <identifier> and includeRelations: true. Inspect relations.blockedBy:
If empty, proceed.
If any blocker's statusType is not completed or canceled, refuse to execute. Report:
<identifier>is blocked by<blocker1-id>(<blocker1-title>),<blocker2-id>… which are not done yet. Not executing. Either unblock the dependency or skip this ticket (usecompleteItem(item.id, item.linearState)per the meister loop §4).
Then stop. Do not reportProgress, do not transition, do not fetch the complexity label.
This complements the same check in /klause-pull — it catches tickets that slipped into Processing before a blocker was added, or tickets in In Review picked up mid-loop.
Call reportProgress(issueLinearId, "klause-execute — transitioning to In Progress").
Call transition(command: "execute"). This validates the state machine and updates the Linear issue status.
Call reportActivity("klause-execute — reading complexity label"). Fetch the Linear issue and check its labels for a complexity label (simple, medium, or complex). These are stamped by /klause-define.
If no complexity label is present, refuse by default. Tickets that entered Todo without passing through /klause-define (bug reports, /klause-schedule output, manual Linear moves) have historically been silently downgraded to medium, bypassing /feature-dev:feature-dev for work that needed it.
Print:
Ticket
<KLA-ID>has no complexity label. Run/klause-definefirst (preferred — it also assesses definition depth), or re-invoke as/klause-execute --force-mediumto bypass labeling and run the plan-then-execute strategy anyway.
Then stop. Do not transition, do not begin work.
The --force-medium escape hatch is the only supported way to skip labeling. Do not silently default.
| Label | Strategy |
|---|---|
simple | Direct execution. Just do the work — read the ticket, make the changes, commit. No planning phase, no architecture design. Announce: "Simple complexity — executing directly." |
medium | Plan then execute. Enter plan mode to design the approach, then implement. Announce: "Medium complexity — planning first." |
complex | Full guided development. Invoke /feature-dev:feature-dev with the ticket identifier. This handles codebase exploration, clarifying questions, architecture design, implementation, and quality review. Announce: "Complex — running feature-dev." Throughout, narrate densely via reportActivity — e.g. "feature-dev — exploring similar features", "feature-dev — drafting architecture", "feature-dev — implementing state layer". |
| (no label) | Refuse. See step 4. Do not default. |
--force-medium flag | Plan then execute (same as medium). Announce: "Labeling bypassed via --force-medium — planning first." |
Call reportProgress with the routing decision so the Meister UI reflects it, e.g. reportProgress(issueLinearId, "klause-execute — KLA-200 labeled complex → feature-dev").
If execution uncovered concrete, actionable context for another ticket, follow the Cross-ticket findings procedure in CLAUDE.md before reporting completion:
## Context From Related Tickets section with source, finding, evidence, and recommended follow-up.relatedTo unless the finding proves a true blocking dependency.After execution finishes, confirm to the user that the work is done, the ticket is In Progress, and which related tickets were updated, created, or linked for cross-ticket findings, if any.
transition("execute") fails — report the error. The message includes valid commands for the current state./feature-dev:feature-dev is not available (for complex tickets) — fall back to plan-then-execute and tell the user.What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub selfishfishi/klausemeister --plugin klause-workflow11 commands in this plugin
/klause-babysit/klause-babysitWait for PR CI checks to pass, then merge and transition to Done/klause-define/klause-defineAssess a Backlog ticket, define it if needed, label complexity, transition to Todo/klause-next/klause-nextAdvance the workflow — reads current state and invokes the next command/klause-open-pr/klause-open-prOpen a PR with pre-flight checks, transitioning to Testing/klause-pull/klause-pullPull the next inbox item into processing and create a branch/klause-push/klause-pushMove a completed item from processing to the outbox