home / skills / nweii / agent-stuff / extract-flow-scenario
This skill extracts a precise workflow narrative from conversation into a structured markdown flow for accurate design and specification.
npx playbooks add skill nweii/agent-stuff --skill extract-flow-scenarioReview the files below or copy the command above to add this skill to your agents.
---
name: extract-flow-scenario
description: Extracts a sequence of workflow events from conversation context into a structured markdown list. Surfaces actors, state changes, and pain points to serve as raw data for any later synthesis, design planning, or spec development. Use when asked to document an actual operational flow, user journey, or scenario from a conversation to capture exactly what happened.
argument-hint: [flow-scenario]
disable-model-invocation: true
metadata:
author: nweii
version: "1.0.0"
---
When asked to document a workflow or scenario, output a fenced markdown code block containing a numbered list. Rules:
- **Title:** Begin with a concise descriptive heading capturing the subject, action, and key conditions (e.g., "[Entity/Subject] [Specific Action] ([Key Context/Condition])").
- **Specificity:** Document the _actual, specific_ scenario that occurred. Do NOT generalize or abstract into a generic workflow. This is a single building block. Include real names, identifiers, tool/platform names, and exact values where known.
- **Inline Structure:** Make retrieval easier by using bold formatting or inline tags (e.g., `Trigger:`, `Actor:`, `Outcome:`, `State Change:`) to call out when the flow starts, who does what, and when a state handoff occurs.
- **Optional Metadata:** If the user explicitly asks for a metadata block (or "properties"), include a brief block at the top of the flow detailing the `Trigger`, `Actors`, and `Outcome`. Ignore this block unless requested.
- **Structure:** Use nested indents (4 spaces) for sub-steps, alternative paths, and conditional branches (e.g., "If X... / If Y..."). Keep step language terse and direct.
- **Epistemological Honesty:** Document _only_ what was described. If you notice a logical gap or missing technical step in the context, do not silently invent it. Instead, **pause and ask the user for clarification in the conversation** before generating the final markdown block. This saves tokens, makes the process more collaborative, and prevents the need to continuously regenerate complex outputs.
- **Pending States:** Leave open-ended flows with a final pending step noting exactly what input or event is awaited before the flow can continue.
This skill extracts a concrete sequence of workflow events from a conversation and emits a ready-to-use, structured markdown numbered list in a fenced code block. It surfaces actors, explicit state changes, triggers, and pain points exactly as described — no abstraction or invented steps. Use it to capture a single observed scenario as raw input for downstream synthesis, design, or spec work.
When given a conversational transcript or scenario description, the skill parses the text for specific, named actors, tools, timestamps, and explicit actions. It builds a terse numbered list with inline tags (Trigger:, Actor:, State Change:, Outcome:) and uses nested indents for sub-steps and conditional branches. The skill refuses to invent missing technical steps; instead it pauses and requests clarification if a logical gap is detected. The final output is a fenced markdown code block containing the precise, documented flow.
Will the skill invent missing technical steps?
No. If the conversation omits a required step or contains a logical gap, the skill will pause and ask you for clarification before producing the final markdown.
Can it include an early metadata block?
Yes — include an explicit request for a metadata/properties block (Trigger, Actors, Outcome) and the skill will place it at the top of the flow.