Answers from the documentation; checking which model is on duty
Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
canvas-design - Skill - OpenSmartRoute
Skillv1.0.0
canvas-design
Use when the user needs HTML Canvas, SVG graphics, data visualization, generative art, or interactive visual elements with D3.js or similar libraries.
Imported from pixel-process-ug/superkit-agents (templates/skills/canvas-design/SKILL.md). Install upstream with npx skills add pixel-process-ug/superkit-agents --skill canvas-design. Copyright stays with the author.
Canvas Design
Overview
Create performant, accessible, and visually compelling graphics using HTML Canvas 2D, SVG, and data visualization libraries. This skill covers everything from low-level pixel manipulation to high-level chart composition with D3.js, including generative art, interactive graphics, and animation.
Phase 1: Requirements Analysis
Determine output type (static, animated, interactive, data-driven)
STOP — Verify accessibility and performance targets are met.
Generative Art Techniques
Technique
Category
Use Case
Perlin/Simplex noise
Noise-based
Organic shapes, terrain
Fractal Brownian Motion
Noise-based
Terrain-like textures
Domain warping
Noise-based
Fluid-like effects
Particle systems
Simulation
Fire, water, swarms
L-systems
Algorithmic
Plant-like structures
Voronoi diagrams
Algorithmic
Cell-like partitions
Delaunay triangulation
Algorithmic
Mesh generation
Flow fields
Algorithmic
Directional patterns
Accessibility for Visualizations
Requirement
Implementation
Text alternatives
<title> and <desc> in SVG, ARIA labels on Canvas
Data table fallback
Hidden table with same data for screen readers
Keyboard interaction
Tab to elements, arrow keys for navigation
Color-blind safe
Use shape/pattern in addition to color
High contrast mode
Detect and adjust colors
Reduced motion
Simplify or disable animations with prefers-reduced-motion
Performance Guidelines
Technology
Optimization
Canvas
Batch draw calls, minimize state changes (fill/stroke/font)
SVG
Limit to < 1000 DOM nodes, use <use> for repeated elements
Worker
OffscreenCanvas for web worker rendering
Events
Throttle mousemove handlers to 16ms (60fps)
CSS
Use will-change: transform for CSS-animated SVG elements
Cleanup
Dispose of observers, animation frames on unmount
Anti-Patterns / Common Mistakes
Anti-Pattern
Why It Is Wrong
What to Do Instead
Canvas for text-heavy content
Poor text rendering, no accessibility
Use SVG for text-heavy visualizations
Full canvas redraw every frame
Wastes CPU when nothing changed
Use dirty rectangle optimization
Creating new SVG elements instead of updating
Memory leaks, poor performance
Use D3 data join pattern
Forgetting devicePixelRatio
Blurry on Retina/HiDPI displays
Scale canvas by window.devicePixelRatio
No fallback content for Canvas
Screen readers get nothing
Add aria-label and hidden data table
Inline event handlers on 1000+ SVG elements
Memory and performance overhead
Use event delegation on parent
Not cleaning up animation frames
Memory leaks on unmount
cancelAnimationFrame in cleanup
Using D3 for simple static charts
Over-engineering
Use SVG directly or Chart.js
Integration Points
Skill
Integration
ui-ux-pro-max
Chart type selection and color palettes
ui-design-system
Design tokens for chart theming
artifacts-builder
Self-contained visualization artifacts
senior-frontend
Component integration in React/Vue/Svelte
performance-optimization
Frame rate and rendering optimization
mobile-design
Touch interaction for mobile charts
Skill Type
FLEXIBLE — Choose the rendering technology and library that best fits the use case. SVG for accessibility-critical and interactive charts, Canvas for performance-critical and animation-heavy visuals, WebGL for 3D and massive datasets.
Installed into a catalogue, chosen by a router
Install canvas-design and it becomes one more candidate the router can pick - when it fits.
A listing is a routing target with a manifest: what it does, which domains it covers, what it costs and who publishes it. Once installed it sits beside your own models and tools, is scored like any other candidate for each request, and shows up in the trace when it wins. Ratings come from workspaces that installed it, one per account.
When a provider is down or over quota the request moves on; the trace says it did.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slotcurl-s-X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.