From pact
Generates YAML PACT lifecycle flow documents for features by analyzing source code, covering purpose, invariants, states like fresh_install and error_paths, gotchas. Saves to docs/feature_flows/ after verbal summary verification.
How this skill is triggered — by the user, by Claude, or both
Slash command
/pact:pact-flowThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create a PACT lifecycle flow document for the feature the user specifies. Save it to `docs/feature_flows/{feature_name}_flow.yaml`.
Create a PACT lifecycle flow document for the feature the user specifies. Save it to docs/feature_flows/{feature_name}_flow.yaml.
Read the relevant source code first to understand the feature's actual behavior. Then generate a YAML flow document covering:
fresh_install — what exists, what's empty, what's defaultednormal_open — numbered order of operations + assumptionsbackground — what's active, held in memory, lostforce_close_reopen — what's lost, what's persisted, recovery pathbackground_resume — what re-initializes, what gets checkederror_paths — what happens when things go wrongAfter generating, present a verbal summary of the flow to the user for verification before finalizing.
Do NOT duplicate table names, file paths, or provider names from SYSTEM_MAP.yaml — use system_map_section to point there instead. This file owns BEHAVIOR (temporal). The map owns STRUCTURE (spatial).
npx claudepluginhub jonathanmr22/pact --plugin pactDocuments 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.
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.
Create, update, or fact-check Feature Design Docs that capture product design decisions for downstream code agents. Especially useful after vibe-coding sessions.