All skills
simota avatar

/canvas

@35ffd55
by shingo imotasimota/agent-skills85 stars
15

Visualizing code, specs, or context as Mermaid, ASCII, or draw.io diagrams: flowcharts, sequence/state/class/ER, Journey Maps, personas, coverage heatmaps. Use to reverse-document systems visually.

Use this Skill: https://skilld.dev/gh/simota/agent-skills/canvas

This session only. Nothing lands on disk.

referenceaccessibility.md

≈731 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Canvas Accessibility Reference

Purpose: Read this when the diagram must remain understandable for color-vision deficiency, screen-reader use, or plain-text fallback.

Contents

  • CVD-safe palette
  • Shape and pattern differentiation
  • Alt text rules
  • ASCII fallback triggers
  • Accessibility checklist

CVD-Safe Palette

Role Hex Notes
Blue #4477AA Safe primary line or highlight
Teal #228833 Positive / success
Yellow #CCBB44 Caution / neutral
Coral #EE6677 Risk / error
Cyan #66CCEE Secondary emphasis
Gray #BBBBBB Neutral or de-emphasis
Purple #AA3377 Accent
Light Blue #99DDFF Soft highlight

Why This Matters

Condition Approx. prevalence Design implication
Protanopia ~1% Avoid red-only meaning
Deuteranopia ~1% Avoid green-only meaning
Tritanopia ~0.01% Avoid blue-yellow-only meaning
Achromatopsia ~0.003% Use labels, line style, and shape, not color alone

Rules

  • Never encode meaning with color only.
  • Pair color with labels, icons, line style, or node shape.
  • Keep contrast strong enough for typical documentation viewing.
  • Use ASCII fallback if the environment cannot reliably render color or shape.

Mermaid Starter

---
config:
  theme: base
  themeVariables:
    primaryColor: "#4477AA"
    primaryTextColor: "#111111"
    lineColor: "#444444"
    secondaryColor: "#228833"
    tertiaryColor: "#CCBB44"
---
flowchart TD
    A[Start] --> B[Decision]
    B --> C[Success]
    B --> D[Risk]

draw.io Style Hints

  • Use high-contrast stroke colors.
  • Use dashed vs solid edges for semantic differences.
  • Use shape differences for success, warning, and critical states.
  • Do not use pale fill as the only severity signal.

Alt Text Formula

Use one short paragraph:

  1. Purpose: what question the diagram answers
  2. Structure: major sections or flows
  3. Highlight: the most important transition or risk

Example:

This flowchart shows the authentication flow from login to token refresh. The main path goes Login -> Validate -> Issue Token -> Refresh. The most important risk branch is refresh failure, which routes to re-authentication.

ASCII Fallback Triggers

Use ASCII instead of Mermaid or draw.io when any of these apply:

  • The user explicitly requests plain text or comment-safe output
  • The target environment does not render Mermaid reliably
  • The viewer depends on terminal-only or screen-reader-first consumption
  • Color or layout fidelity is not trustworthy enough to carry meaning

Accessibility Checklist

  • Title present
  • Legend present
  • Meaning is not color-only
  • Labels are explicit
  • Diagram stays within readable density
  • ASCII fallback considered
  • Alt text included when the diagram will be reused in docs or handoffs

Source: SKILL.md on GitHub

No alerts13d5 checks · Risk SAFE
  • Gen Agent Trust Hub13d

    The skill provides comprehensive visualization and reverse-engineering capabilities using Mermaid and other diagramming tools. It possesses a potential attack surface for indirect prompt injection by processing untrusted project code, though it includes best-practice instructions for source disclosure and uncertainty marking. It also documentedly uses well-known external rendering services like Kroki for processing diagram DSL.

  • Socket13d

    No alerts

  • Snyk13d

    Risk: LOW · No issues

  • Runlayer6mo

    14 files scanned · No issues

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 35ffd55. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 days ago.

Activeupdated 2 weeks ago

README badge

README badge for simota/agent-skills/canvas