Communitygithub.com

visual-communication

Create useful visual explanations, diagrams, architecture, workflows, comparisons, charts, timelines, UI/UX mockups and interactive prototypes. Use SVG for chat, Mermaid or SVG for Markdown documentation, and HTML for working interactions.

visual-communication 是什麼?

visual-communication is a Claude Code agent skill that create useful visual explanations, diagrams, architecture, workflows, comparisons, charts, timelines, UI/UX mockups and interactive prototypes. Use SVG for chat, Mermaid or SVG for Markdown documentation, and HTML for working interactions.

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/weidmanngabriel/copilot-skills/tree/HEAD/.github/skills/visual-communication

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

預覽

來自技能 README

Architecture overview

說明文件

Visual communication

Work in the user's language. Follow project instructions and approval boundaries. Use a visual only when it improves understanding; otherwise use concise prose or a table.

1. Choose the output

  • Chat: create a standalone SVG file and embed it directly in the response using a Markdown image link to its absolute local path (see below). Always provide a normal link to the same file as a fallback. No separate Markdown document is required.
  • Maintained Markdown: Mermaid if readable, editable source is sufficient; SVG if precise layout, charts or graphical flexibility add value. Respect project conventions. Avoid maintaining equivalent versions.
  • Interactive prototype: local Bootstrap CSS + minimal vanilla JavaScript. Use the PowerShell setup and prototype rules; no new dependencies, live services or persistent data writes.

2. Choose a pattern

Read only the useful sample(s) below and, when needed, one or more relevant guides (always read HTML prototype rules for interactive work): diagrams, data visualization, UI/UX, HTML prototypes. Simple visuals may need no additional guide. Sketches indicate structure, not prescribed styling. Adapt or combine patterns; do not load all samples.

NeedSchematicSource to open
Compare options[A] [B] : same rowsComparison
Show change[Before] -> [After]Before/after
Process / decisionA -> ? -> B / retryFlow, narrow flow
DependenciesApp -> A, B -> sharedTree, shared graph
ContainmentParent / Child A / Child BHierarchy
System architecture[Client] -> [API : DB]Architecture
TimelineA: ==== / B: ==== Timeline
Category quantitiesA ### / B ######Bar chart
Trend / correlationy: /\/ or . : .Chart selection
Status summary9 done / 3 open / [###-]Compact summary, metrics
Record detailTitle / current state / history vDetail
List / managementSearch / filters / rowsTable
Edit / validationLabel [field] / error / SaveDialog
New UI skeletonTitle / action / contentSVG template
Editable Markdown flowA -> ? -> BMermaid
HTML starting pointTitle / section / details vHTML starter
Interactive search / filter[search] [filter v] -> rowsFilterable table
Interactive formOpen -> [fields] -> Save/CancelHTML dialog
Interactive dashboard[period v] -> counts + barsDashboard

3. Design and create

  • Start with the primary question, audience and takeaway. Place each compact visual near the explanation it supports. Use one graphic per distinct question; split crowded topics. Keep prose useful without images.
  • Use clear reading order, aligned edges and baselines, whitespace before borders, a 4/8 px spacing rhythm and restrained typography. Omit repeated titles, nested cards, decorative effects and unused styles. Use one purposeful accent; semantic colors need visible labels or symbols. Aim for WCAG AA text contrast and 3:1 for meaningful non-text marks.
  • Design for actual display width: approximately 360–480 px for narrow chats, 16–24 px margins, 14–16 px body and 12–14 px secondary text at display size. Use short labels, vertical layouts or a separate full-size desktop preview rather than shrinking large canvases. Wrap text explicitly.
  • SVG: valid UTF-8 XML, namespace, dimensions and matching viewBox, accessible title/description. Escape text/attributes; use native shapes, paths, text and tspan, embedded CSS or literal colors, system fonts and an opaque background. Keep text selectable; avoid unavailable glyphs/icon fonts. Route connectors around unrelated shapes, label ambiguous arrows and use arrowheads only for directed relations.
  • Keep SVG passive: no scripts, event handlers, foreignObject or external resources. All demonstrations use synthetic data, no secrets or production records. Distinguish draft, approved and implemented; never invent actual values or business rules. Cite factual data.
  • Persist approved work only when requested or required by project rules; embed SVGs alongside relevant Markdown using relative paths and descriptive alt text.

Chat SVG delivery

  • Default to the current Copilot session's files directory (.copilot/session-state/<session-id>/files/, resolved from the active session context; the base location can vary by client). Save chat SVGs directly there. Use the actual directory assigned to this session, provided it is writable and accessible to the chat viewer. Do not guess the session ID, select the most recent session, inspect private chat logs, or modify session metadata. If no session artifact directory is available, use the workspace's designated artifact directory or .copilot-artifacts/svg/. Keep drafts out of application builds and Git commits (use an existing ignore rule or an authorized local exclusion).
  • Give each new SVG a descriptive name with a fresh GUID suffix; create without overwrite, including for revisions, to preserve previous chat links and isolate parallel sessions. Do not delete other sessions' files.
  • Verify the file exists and use its real absolute local path with forward slashes and angle brackets. For Windows drive paths, use /C:/... as in the example. Emit these as actual Markdown links in the chat, not a fenced code sample:
![Architecture overview](</C:/Users/example/.copilot/session-state/session-id/files/architecture-unique-id.svg>)
[Open SVG](</C:/Users/example/.copilot/session-state/session-id/files/architecture-unique-id.svg>)
  • Session files may be removed by the client when a session is cleaned up; persist approved documentation assets separately. Inline display depends on the client's local link viewer. If it does not render, the normal link is the fallback; offer an available editor/browser preview or report the limitation. Never claim the image rendered without evidence.

4. Verify and deliver

  • For every generated SVG, run the provided read-only validator before delivery, using the installed skill's real script path and the actual SVG path. In the skill directory: & ./scripts/copilot-validate-svg.ps1 -Path $svgPath (PowerShell 5.1+). Use this fixed script instead of generating inline validation commands. A PASS checks structure, dimensions, metadata and basic passive-SVG rules only; fix errors and rerun. If unavailable or not authorized, report the missing check; do not bypass approvals.
  • Check content, relationships, chart geometry, Mermaid syntax, references and permissions. Render with an available trusted viewer at intended and narrow widths; inspect clipping, overlap, contrast, labels and arrow direction. For HTML test interactions, keyboard access, relevant states and viewport sizes, and absence of unintended side effects.
  • Provide the actual artifact and a short explanation with assumptions and unverified checks. Never claim rendering, integration or implementation without evidence.
  • When maintaining the skill, use the acceptance tests; distinguish example validation from a real Copilot run.

相關技能