skills/ux-draw-relationships/SKILL.md
Step 2.2 of Sketch the Solution. Draw interaction relationships between entities as a Mermaid ERD. Use when asked to 'draw relationships', 'entity relationships', 'relationship diagram', or 'ERD'.
npx skillsauth add arndvs/ctrlshft ux-draw-relationshipsInstall 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.
Output "Read UX Draw Relationships skill." to chat to acknowledge you read this file.
Phase: /ux-system-map → Step 2 of 2
Connect entities with labeled relationships showing how they interact. Generate a Mermaid entity-relationship diagram.
Take the entity inventory from Step 2.1
Map relationships between entities using the verbs extracted in Phase 1:
Generate Mermaid ERD:
erDiagram
MEMBER ||--o{ CONTENT : creates
MEMBER ||--o{ SKILL : has
MEMBER ||--|| PROFILE : has
CONTENT ||--o{ COMMENT : has
CONTENT }o--|| TOPIC : "belongs to"
MEMBER }o--o{ MEMBER : searches
Label every arrow with the action verb (creates, views, edits, searches, has)
Validate completeness — trace each user story through the diagram:
Append to system-map.md: Mermaid ERD diagram and relationship table.
development
Use when implementing UI, checking dark/light mode, or validating animations — adds a visual feedback loop via browser screenshots so frontend changes are verified, not assumed.
development
Use when Claude Code sessions had many manual approval ("press 1") prompts or when auditing hook permissions; identifies which Bash commands required approval.
tools
Use after merging a PR or during periodic cleanup to archive plan-mode files by linking them to merged PRs.
testing
Use when stress-testing a plan against the project's domain model — grills the design, sharpens terminology, and updates documentation (CONTEXT.md, ADRs) inline as decisions crystallise.