Get the FREE Ultimate OpenClaw Setup Guide →

flow-next-work

npx machina-cli add skill gmickel/gmickel-claude-marketplace/flow-next-work --openclaw
Files (1)
SKILL.md
5.7 KB

Flow work

Execute a plan systematically. Focus on finishing.

Follow this skill and linked workflows exactly. Deviations cause drift, bad gates, retries, and user frustration.

IMPORTANT: This plugin uses .flow/ for ALL task tracking. Do NOT use markdown TODOs, plan files, TodoWrite, or other tracking methods. All task state must be read and written via flowctl.

CRITICAL: flowctl is BUNDLED — NOT installed globally. which flowctl will fail (expected). Always use:

FLOWCTL="${DROID_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/scripts/flowctl"
$FLOWCTL <command>

Hard requirements (non-negotiable):

  • You MUST run flowctl done for each completed task and verify the task status is done.
  • You MUST stage with git add -A (never list files). This ensures .flow/ and scripts/ralph/ (if present) are included.
  • Do NOT claim completion until flowctl show <task> reports status: done.
  • Do NOT invoke /flow-next:impl-review until tests/Quick commands are green.

Role: execution lead, plan fidelity first. Goal: complete every task in order with tests.

Ralph Mode Rules (always follow)

If REVIEW_RECEIPT_PATH is set or FLOW_RALPH=1:

  • Must use flowctl done and verify task status is done before committing.
  • Must stage with git add -A (never list files).
  • Do NOT use TodoWrite for tracking.

Input

Full request: $ARGUMENTS

Accepts:

  • Flow epic ID fn-N-slug (e.g., fn-1-add-oauth) or legacy fn-N/fn-N-xxx to work through all tasks
  • Flow task ID fn-N-slug.M (e.g., fn-1-add-oauth.2) or legacy fn-N.M/fn-N-xxx.M to work on single task
  • Markdown spec file path (creates epic from file, then executes)
  • Idea text (creates minimal epic + single task, then executes)
  • Chained instructions like "then review with /flow-next:impl-review"

Examples:

  • /flow-next:work fn-1-add-oauth
  • /flow-next:work fn-1-add-oauth.3
  • /flow-next:work fn-1 (legacy formats fn-1, fn-1-xxx still supported)
  • /flow-next:work docs/my-feature-spec.md
  • /flow-next:work Add rate limiting
  • /flow-next:work fn-1-add-oauth then review via /flow-next:impl-review

If no input provided, ask for it.

FIRST: Parse Options or Ask Questions

Check configured backend:

REVIEW_BACKEND=$($FLOWCTL review-backend)

Returns: ASK (not configured), or rp/codex/none (configured).

Option Parsing (skip questions if found in arguments)

Parse the arguments for these patterns. If found, use them and skip corresponding questions:

Branch mode:

  • --branch=current or --current or "current branch" or "stay on this branch" → current branch
  • --branch=new or --new-branch or "new branch" or "create branch" → new branch
  • --branch=worktree or --worktree or "isolated worktree" or "worktree" → isolated worktree

Review mode:

  • --review=codex or "review with codex" or "codex review" or "use codex" → Codex CLI (GPT 5.2 High)
  • --review=rp or "review with rp" or "rp chat" or "repoprompt review" → RepoPrompt chat (via flowctl rp chat-send)
  • --review=export or "export review" or "external llm" → export for external LLM
  • --review=none or --no-review or "no review" or "skip review" → no review

If options NOT found in arguments

If REVIEW_BACKEND is rp, codex, or none (already configured): Only ask branch question. Show override hint:

Quick setup: Where to work?
a) Current branch  b) New branch  c) Isolated worktree

(Reply: "a", "current", or just tell me)
(Tip: --review=rp|codex|export|none overrides configured backend)

If REVIEW_BACKEND is ASK (not configured): Ask both branch AND review questions:

Quick setup before starting:

1. **Branch** — Where to work?
   a) Current branch
   b) New branch
   c) Isolated worktree

2. **Review** — Run Carmack-level review after?
   a) Codex CLI
   b) RepoPrompt
   c) Export for external LLM
   d) None (configure later with --review flag)

(Reply: "1a 2a", "current branch, codex", or just tell me naturally)

Wait for response. Parse naturally — user may reply terse or ramble via voice.

Defaults when empty/ambiguous:

  • Branch = new
  • Review = configured backend if set, else none (no auto-detect fallback)

Do NOT read files or write code until user responds.

Workflow

After setup questions answered, read phases.md and execute each phase in order.

Worker subagent model: Each task is implemented by a worker subagent with fresh context. This prevents context bleed between tasks and keeps re-anchor info with the implementation. The main conversation handles task selection and looping; worker handles implementation, commits, and reviews.

If user chose review, pass the review mode to the worker. The worker invokes /flow-next:impl-review after implementation and loops until SHIP.

Completion review gate: When all tasks in an epic are done, if --require-completion-review is configured (via flowctl next), the work skill invokes /flow-next:epic-review before allowing the epic to close. This verifies the combined implementation satisfies the spec. The epic-review skill handles the fix loop internally until SHIP.

Guardrails

  • Don't start without asking branch question
  • Don't start without plan/epic
  • Don't skip tests
  • Don't leave tasks half-done
  • Never use TodoWrite for task tracking
  • Never create plan files outside .flow/

Source

git clone https://github.com/gmickel/gmickel-claude-marketplace/blob/main/plugins/flow-next/skills/flow-next-work/SKILL.mdView on GitHub

Overview

Flow-next work guides executing a Flow epic or task in a disciplined, plan-first manner. All task tracking happens in .flow/, and you follow a strict git workflow to prevent drift. Triggers on /flow-next:work with Flow IDs like fn-1-add-oauth (and legacy formats) to start work.

How This Skill Works

Use the bundled flowctl binary from FLOWCTL to drive all task state under .flow/. Work through tasks in order, updating flow state and code with git. For each completed task you must run flowctl done and verify the task shows status: done via flowctl show <task>, then stage with git add -A and commit. Do not invoke /flow-next:impl-review until tests are green.

When to Use It

  • When implementing a plan or spec into a Flow epic or task, and you need auditable progress.
  • When working through a Markdown spec file to create an epic and execute tasks.
  • When starting from idea text to generate a minimal epic plus a single task and execute it.
  • When you must enforce a strict, auditable git/.flow/ tracking and gating process.
  • When you require completion gating where a task is only considered done after flowctl shows status: done and tests pass.

Quick Start

  1. Step 1: Run /flow-next:work with a Flow ID (e.g., fn-1-add-oauth) or a Markdown spec path.
  2. Step 2: Work through tasks in order, updating .flow/ with flowctl and staging with git add -A.
  3. Step 3: For each completed task, run flowctl done, verify status: done via flowctl show <task>, then commit.

Best Practices

  • Follow the skill exactly to avoid drift and retries.
  • Use .flow/ for all task tracking; do not mix other trackers.
  • Use the bundled flowctl path (not a global install) as FLOWCTL.
  • Stage changes with git add -A so .flow/ is included in commits.
  • Do not claim completion until flowctl show <task> reports done and tests pass; defer impl-review until green.

Example Use Cases

  • Work on fn-1-add-oauth epic and sequentially complete all tasks with proper flowctl.done calls.
  • Start from a Markdown spec file docs/my-feature-spec.md to create an epic and execute tasks.
  • Process legacy inputs like fn-1 or fn-1.2 to work through all tasks in order.
  • Complete a multi-task flow, ensuring .flow/ is updated and committed after each done.
  • Respect Ralph Mode rules by verifying done status before committing and before impl-review.

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers