.cursor/skills/qa-diagram-generator/SKILL.md
Universal diagram generator supporting 14 Mermaid diagram types. Works standalone or as an embedded service for other QA skills.
npx skillsauth add AZANIR/qa-skills qa-diagram-generatorInstall 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.
Universal diagram generator for the QA skills ecosystem. Works in two modes:
| Mode | Trigger | Output |
|------|---------|--------|
| Standalone | User: "Draw a sequence diagram for API auth flow" | Full Mermaid diagram + explanation |
| Embedded | qa-spec-writer needs state diagram for spec | Reference references/state-diagram.md + generate inline |
When embedded, the calling skill references the appropriate references/*.md file and generates Mermaid code following those patterns.
| Type | Use Cases | Mermaid Syntax | Reference |
|------|-----------|----------------|-----------|
| Flowchart | Test process flows, decision trees, regression flow | flowchart | references/flowchart.md |
| Sequence Diagram | API interactions, login flow, test execution flow | sequenceDiagram | references/sequence.md |
| Class Diagram | Test architecture, Page Object Model | classDiagram | references/class-diagram.md |
| State Diagram | Bug lifecycle, test case states, user session states | stateDiagram-v2 | references/state-diagram.md |
| ER Diagram | Test data models, database schemas | erDiagram | references/er-diagram.md |
| Mind Map | Test coverage mapping, feature decomposition | mindmap | references/mindmap.md |
| Gantt Chart | Test schedules, sprint planning, release timelines | gantt | references/gantt.md |
| C4 Model | System architecture (context/container/component) | C4Context, C4Container, C4Component | references/c4-model.md |
| User Journey | User experience testing flows, E2E scenarios | journey | references/journey.md |
| Pie Chart | Test result distribution, coverage breakdown | pie | references/charts.md |
| Quadrant Chart | Risk matrix, priority vs effort, impact vs likelihood | quadrantChart | references/charts.md |
| Git Graph | Branch strategy, release flow, merge workflows | gitGraph | references/flowchart.md (see note) |
| Block Diagram | System components, data flow blocks | block-beta | references/flowchart.md |
| BPMN | Business process flows, approval workflows | bpmn | references/flowchart.md |
When another skill needs a diagram, reference the appropriate file:
| Visualization Need | Reference | Example |
|--------------------|-----------|---------|
| State machines, lifecycle | references/state-diagram.md | Bug lifecycle, test case states |
| API flows, interactions | references/sequence.md | Login flow, API contract validation |
| Decision logic, process flow | references/flowchart.md | Test process, regression flow |
| Timelines, schedules | references/gantt.md | Sprint plan, release schedule |
| Architecture layers | references/c4-model.md | System context, container diagram |
| Test data structure | references/er-diagram.md | Test DB schema, fixture models |
| Coverage/feature breakdown | references/mindmap.md | Test coverage map, feature tree |
| User flows, E2E scenarios | references/journey.md | UAT journey, UX test flow |
| Result distribution, risk | references/charts.md | Pass/fail pie, risk quadrant |
| From screenshot/image | references/from-screenshot.md | UI → flowchart, whiteboard → diagram |
Can do (autonomous):
Cannot do (requires confirmation):
Will not do (out of scope):
| Symptom | Likely Cause | Fix | |---------|--------------|-----| | Mermaid parse error | Invalid syntax, reserved keywords | Check reference syntax; escape special chars | | Wrong diagram type | Ambiguous input | Ask user or infer from dominant structure (flow vs state vs sequence) | | Too complex | Too many nodes/edges | Split into multiple diagrams or simplify | | Embedded skill gets wrong ref | Mismatch between need and ref | Use embedding table to map visualization need → reference | | Screenshot analysis fails | Low quality or non-diagram image | Fall back to text description; ask user to describe | | C4/ER syntax errors | Mermaid version differences | Use standard syntax from references; avoid experimental features |
tools
Analyze OpenAPI/Swagger spec (JSON or YAML) against existing test files and generate an HTML coverage report with QA automation tasks. Use when user provides an OpenAPI spec file and wants to know test coverage status.
testing
Universal QA plan generator supporting 10 plan types including test plans, sprint plans, regression plans, release plans, UAT plans, performance plans, migration plans, onboarding plans, and custom plans.
development
Generate consumer-driven contract tests using Pact for JavaScript and Python to verify microservice API compatibility between consumer and provider.
development
Master skill coordinating all QA skills through pipeline modes (full-cycle, docs-only, testcases-only, write-tests, report), formalized handoff chains, scheduler rules, and framework/language selection based on project context.