From devstefancho-skills
Documents a single runtime scenario as a structured Flow file under flows/<topic>/ with context, one Mermaid diagram, step-by-step branches, and source references so end-to-end service behavior is visible at a glance.
How this skill is triggered — by the user, by Claude, or both
Slash command
/devstefancho-skills:writing-flowsgeneral-purposeThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Document how one scenario behaves at runtime as a **Flow** file under `flows/`. A Flow makes the order of operations and the branching visible at a glance — the thing specs, tasks, and ADRs can't show.
Document how one scenario behaves at runtime as a Flow file under flows/. A Flow makes the order of operations and the branching visible at a glance — the thing specs, tasks, and ADRs can't show.
flows/README.md or flows/INDEX.md — the directory listing is the index.flows/<topic>/NN-name.md at the project root. Topic = coherent feature/domain (auth, checkout), the same axis as ADR-0001 — never phase numbers.flows/*/ directories before creating a new one.NN is a 2-digit index within the topic, starting 01. Filenames are lowercase-with-hyphens.Glob flows/**/*.md and check whether a Flow for this scenario already exists.
AskUserQuestion: update, create new, or cancel.## Source files no longer exist (verify with Glob) → report as outdated; propose an update, never apply silently.Glob specs/**/*.md) or conversation context, and say so in the report.Read templates/flow-template.md and fill it strictly:
sequenceDiagram when the story is interaction between components/services; flowchart TD when it is user-facing branching between screens/states. Never both, never other types.— 실패 시 → ...).(design — no code yet).Diagram and Steps must agree with each other and with the code. On update, preserve sections the user didn't ask to change.
End with a short report: Action (Created/Updated), File (relative path), Scenario (H1), Basis (code files explored, or spec/conversation), and any outdated Flows found in Phase 1. One actionable next step (e.g. a neighboring scenario worth documenting).
WRONG: drawing the diagram from the user's description while the code says otherwise. RIGHT: explore the code first; if it contradicts the user's description, surface the difference and ask which one the Flow should capture.
WRONG: one giant Flow covering signup, login, and password reset.
RIGHT: three Flow files in flows/auth/, each one scenario.
This skill only writes Flow files. Requirements belong to writing-specs, work breakdown to writing-tasks. It never modifies source code.
npx claudepluginhub devstefancho/skillsGenerates GitHub-renderable Mermaid flowcharts from PRDs, docs, or codebases with evidence maps tracing nodes to sources. Useful for creating user flow diagrams.
Adds Mermaid sequenceDiagram blocks to the SAD's runtime view (sad.md §6) for critical flows, with happy and error paths. Reads participants from §5, writes diagrams one flow at a time after user confirmation.
Creates user flow diagrams mapping product paths, decisions, branches, error handling, and system processes for UX planning.