From tomer-skills
This skill should be used when the user asks to "visualize architecture in Figma", "create architecture diagrams", "push diagrams to FigJam", "diagram the codebase", "architecture to figma", "create figma boards from code", or wants to turn codebase structure or documentation into FigJam architectural diagrams.
How this skill is triggered — by the user, by Claude, or both
Slash command
/tomer-skills:figma-blueprintThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate FigJam architectural diagrams from codebase analysis. Explore source code and documentation, extract architectural patterns, convert to Mermaid syntax, and push to FigJam via Figma MCP tools.
Generate FigJam architectural diagrams from codebase analysis. Explore source code and documentation, extract architectural patterns, convert to Mermaid syntax, and push to FigJam via Figma MCP tools.
Delegate exploration to a sub-agent (subagent_type: Explore) to avoid polluting the main context. The sub-agent should:
Provide the sub-agent with a thorough prompt specifying exactly what to extract. Target architectural structure, not implementation details.
From the exploration results, identify diagram candidates. Common diagram types:
| Type | Mermaid Syntax | Best For |
|---|---|---|
| System architecture | flowchart TB/LR | Layer stacks, component relationships |
| Data flow | flowchart LR | Memory tiers, message pipelines |
| Sequence diagram | sequenceDiagram | Request flows, message handling |
| Timeline/Roadmap | gantt | Phase planning, milestones |
| Component detail | flowchart TB with subgraphs | Zoomed-in subsystem views |
Prioritize diagrams that show relationships not obvious from reading individual files.
Convert each diagram candidate to Mermaid syntax. Guidelines:
subgraph sections for logical groupings (layers, tiers, services)style directives to distinguish component categoriesTwo paths depending on whether boards exist:
New boards — Use generate_diagram (from either mcp__claude_ai_Figma__generate_diagram or mcp__plugin_figma_figma__generate_diagram):
Existing boards — Use use_figma (requires the figma:figma-use skill loaded first):
plugin:figma:figma) for direct read/writeFigma MCP priority: Prefer the local plugin (plugin:figma:figma) over the Claude.ai built-in (claude.ai/Figma) when both are available. The local plugin provides direct OAuth-based access without claim links for existing boards.
Save board references to project memory for future sessions:
This enables future sessions to read/update boards without the user re-sharing URLs.
When exploring a codebase, look for these architectural patterns:
references/mermaid-patterns.md — Common Mermaid syntax patterns optimized for FigJam rendering, including color schemes, subgraph layouts, and connector styles that render well in FigJamnpx claudepluginhub thamam/a2x-marketplaceCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.