skills/ux-flow-builder/SKILL.md
# Skill: UX Flow Builder > Generates user flow diagrams (Mermaid) from PRD personas and screen specifications. Surfaces dead ends, missing screens, and disconnected flows before design or engineering starts. Helps PMs think in screens, not features. --- ## Trigger - Automatically during PRD Phase 4 (Personas & Flows) to visualize the user journey - On-demand when the PM says "show me the flow" or "map the user journey" - During PRD evaluation to verify screen connectivity --- ## Input ```
npx skillsauth add bigeasyfreeman/adlc skills/ux-flow-builderInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Generates user flow diagrams (Mermaid) from PRD personas and screen specifications. Surfaces dead ends, missing screens, and disconnected flows before design or engineering starts. Helps PMs think in screens, not features.
{
"personas": [
{
"name": "string",
"user_stories": ["string"]
}
],
"screens": [
{
"id": "string (e.g., Screen 1)",
"name": "string",
"status": "OPEN | IN_DESIGN | IN_PROGRESS | FULLY_DESIGNED",
"trigger": "string (what causes this screen to appear)",
"ctas": [
{
"label": "string",
"destination": "string (screen ID or external)"
}
],
"variants": ["string (sub-screen names)"]
}
]
}
{
"flow_diagram": "string (Mermaid markdown)",
"per_persona_flows": [
{
"persona": "string",
"flow_diagram": "string (Mermaid markdown)",
"screens_visited": ["string (screen IDs in order)"],
"decision_points": ["string (where the flow branches)"]
}
],
"issues": [
{
"type": "dead_end | orphan_screen | missing_screen | circular_flow | missing_error_path",
"description": "string",
"affected_screens": ["string"],
"recommendation": "string"
}
]
}
From the screen specs, build a directed graph:
For each persona, trace their path through the screens:
| Issue | Detection | Example | |-------|-----------|---------| | Dead end | A screen has no outgoing CTA | "Screen 4 (Email) has a CTA to Screen 5, but Screen 5 has no CTA back to the app after auth" | | Orphan screen | A screen has no incoming edge | "Screen 1 (Welcome) is defined but no flow leads to it — is it triggered by first visit?" | | Missing screen | A CTA references a screen that doesn't exist | "Screen 3 CTA says 'triggers email dispatch' but no email screen is defined" | | Missing error path | No screen handles failure states | "What happens if email send fails? No error state defined" | | Circular flow | User can loop infinitely | "Screen 5 → Screen 3 → Screen 5 creates an infinite loop for unauth users" |
flowchart TD
A[Screen 2: Deliverable Output] -->|Click Share| B[Screen 3: Invite Modal]
B -->|Send| C[Screen 4: Email Sent]
C -->|Recipient clicks CTA| D{Authenticated?}
D -->|Yes| E[Screen 2: Deliverable View]
D -->|No| F[Screen 5: Replay / Sign-Up]
F -->|Sign up| E
A -->|Turn into Playbook| G[Screen 6: Playbook Created]
G -->|Share| B
style A fill:#4CAF50
style F fill:#FF9800
style G fill:#2196F3
Rules:
generate_ux_flow{
"name": "generate_ux_flow",
"description": "Generate user flow diagrams from PRD personas and screen specs",
"inputSchema": {
"type": "object",
"properties": {
"prd_content": {
"type": "string",
"description": "Full PRD markdown"
},
"persona_filter": {
"type": "string",
"description": "Optional — generate flow for a specific persona only"
}
},
"required": ["prd_content"]
}
}
# Generate flow from PRD
adlc-prd flow --input ./prd.md --output ./flow.mermaid
# Generate flow for a specific persona
adlc-prd flow --input ./prd.md --persona "New User" --output ./new-user-flow.mermaid
# Check for flow issues only
adlc-prd flow-check --input ./prd.md
contract_version and semver compatibility checks.docs/schemas/prd-template.schema.json before generating flow artifacts.missing_screen_graph, schema_mismatch, unsupported_version).development
Orchestration skill: chains the full ADLC Build Loop. PRD → Brief → Council → Scaffold → Codegen → LDD → TDD → Council → PR. Use when implementing a new feature end-to-end.
development
# Skill: Helm & ArgoCD Deployment > Validates Helm charts and generates ArgoCD Application manifests when the ADLC pipeline produces infrastructure or service code. Ensures every deployable artifact has correct chart structure, environment-specific values, and a GitOps-ready Application manifest before code review. --- ## Why This Exists Without deployment validation in the pipeline, common failures slip through to production: - **Helm charts fail `helm template`** because of missing values,
testing
Decide whether an intersecting verifier actually exercises the semantic change.
testing
Audits generated test strength on changed files using deterministic coverage and mutation measurement, then judges only surviving-mutant materiality.