Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

flow-next-capture

FreeNo executable scriptsNot checked

Save the current conversation as a source-tagged flow-next spec, then offer review or editing. Use when asked to capture this as a spec.

gmickelby gmickel★ 735 GitHub stars

About this skill

/flow-next:capture — agent-native conversation → spec

A discussion (or a /flow-next:prospect survivor) often holds a complete spec that never gets written down, and the next session loses it. Capture is the synthesis step: the host agent extracts the user's turns, drafts a spec against the resolved template, tags only what it paraphrased or inferred ([paraphrase] / [inferred] / [strategy:<track>]; the user's verbatim words stay untagged), writes it through flowctl, prints a compact summary, and offers the saved file in the editor (docs/read-back.md). The capture request authorizes the write; substantive choices still get short questions. No Python synthesizer, no model subprocess.

flowctl supplies thin plumbing (spec create, spec set-plan, spec set-branch, memory search) plus the chart link-spec callback after a chart-briefing capture. Capture never writes chart files or a chart's ready flag; chart never writes .flow/specs.

Clear ideas and finished chart briefings route here; capture never manufactures a chart for clear work. Unsure: /flow-next:flow --explain.

Read workflow.md for the phases and phases.md for the source tags. Branch-specific machinery lives in references/*.md, loaded only when its gate fires.

Read working-rules.md first unless you already have this run; it holds for every step of this skill.

Preamble

CRITICAL: flowctl is BUNDLED — NOT installed globally. which flowctl will fail (expected). workflow.md's Preamble defines $FLOWCTL; later blocks (there and in phases.md) use it.

Inline skill (no context: fork) — plain-text numbered prompt must stay reachable across phases; subagents cannot call plain-text numbered prompts.

Mode Detection

Parse $ARGUMENTS for the literal tokens mode:autofix, from:flow, from:goal and from:issue and the flags --rewrite <spec-id>, --from-compacted-ok, --yes, --override-strategy, --no-plan. Strip recognized tokens; the remainder is ignored (the conversation is the input), except under from:goal, where it names the goal or its source, and under from:issue, where it names the tracker issue.

RAW_ARGS="$ARGUMENTS"
MODE="interactive"
REWRITE_TARGET=""
FROM_COMPACTED_OK=0
COMMIT_YES=0
OVERRIDE_STRATEGY=0

if &quot;$RAW_ARGS&quot; == *&quot;mode:autofix&quot;*; then
  MODE="autofix"
  RAW_ARGS="${RAW_ARGS//mode:autofix/}"
fi

if [ -n "${ZSH_VERSION:-}" ]; then setopt BASH_REMATCH KSH_ARRAYS; fi   # zsh: bash-style regex captures
if [[ "$RAW_ARGS" =~ --rewrite:space:+([^[:space:]]+) ]]; then
  REWRITE_TARGET="${BASH_REMATCH[1]}"
  RAW_ARGS="${RAW_ARGS//--rewrite ${REWRITE_TARGET}/}"
fi

if &quot;$RAW_ARGS&quot; == *&quot;--from-compacted-ok&quot;*; then
  FROM_COMPACTED_OK=1
  RAW_ARGS="${RAW_ARGS//--from-compacted-ok/}"
fi

# --yes (autofix write gate), --override-strategy, --no-plan, from:flow, from:goal
# and from:issue authorize durable writes, so they are EXACT-token matches: lookalikes
# ("--yesterday", "--no-planning", "from:flowchart", "from:goals") stay in the remainder.
NO_PLAN_OPT=0
FROM_FLOW=0
FROM_GOAL=0
FROM_ISSUE=0
CLEANED_ARGS=""
for TOK in $(printf '%s\n' "$RAW_ARGS"); do
  if [ "$TOK" = "--yes" ]; then
    COMMIT_YES=1
  elif [ "$TOK" = "--override-strategy" ]; then
    OVERRIDE_STRATEGY=1
  elif [ "$TOK" = "--no-plan" ]; then
    NO_PLAN_OPT=1
  elif [ "$TOK" = "from:flow" ]; then
    FROM_FLOW=1
  elif [ "$TOK" = "from:goal" ]; then
    FROM_GOAL=1
  elif [ "$TOK" = "from:issue" ]; then
    FROM_ISSUE=1
  else
    CLEANED_ARGS="$CLEANED_ARGS $TOK"
  fi
done
RAW_ARGS="$CLEANED_ARGS"

# from:goal is an unattended write the --goal invocation already consented to.
if [ "$FROM_GOAL" = "1" ]; then
  MODE="autofix"
  COMMIT_YES=1
  echo "GATE ACTIVE — STOP. Read references/from-goal.md before continuing."
fi
# from:issue is the write a `flow --auto --from-issue` run consented to through the board move.
if [ "$FROM_ISSUE" = "1" ]; then
  MODE="autofix"
  COMMIT_YES=1
  echo "GATE ACTIVE — STOP. Read references/from-issue.md before continuing."
fi
if [ "$MODE" = "autofix" ]; then
  echo "GATE ACTIVE — STOP. Read references/autofix-mode.md before continuing."
fi   # default branch: bare no-op — NO link, NO read path
Mode When Behavior
Interactive (default) User is at the terminal Asks on duplicates and must-ask cases; writes the spec, shows its summary, offers the editor; no generic write approval
Autofix (mode:autofix) Batch or scripted invocation No questions; every ask becomes exit 2; writes only with --yes

When the sentinel prints, read references/autofix-mode.md before Phase 0; it owns the per-phase autofix rules. Under from:goal, read references/from-goal.md as well; it says where a goal run's source differs. Under from:issue, read [references/from-issu

Full SKILL.md on GitHub

Install flow-next-capture in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

Read
Bash
Grep
Glob
Write
Edit
Task

Bundled files

agents/openai.yamlphases.mdreferences/autofix-mode.mdreferences/business-context.mdreferences/chart-briefing.mdreferences/codebase-verification.mdreferences/compaction.mdreferences/confidence-tiers.mdreferences/duplicate-branch.mdreferences/editor-corrections.mdreferences/from-goal.mdreferences/from-issue.mdreferences/glossary-consent.mdreferences/glossary-terms.mdreferences/mark-ready.mdreferences/must-ask-cases.mdreferences/readiness-snapshot.mdreferences/rewrite-mode.mdreferences/split-proposal.mdreferences/strategy-alignment.mdreferences/strategy-override.mdreferences/tracker-integration.mdworkflow.md

FAQ

What does the flow-next-capture skill do?

Save the current conversation as a source-tagged flow-next spec, then offer review or editing. Use when asked to capture this as a spec.

How do I install the flow-next-capture skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the flow-next-capture skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare flow-next-capture with