Token导航 LogoToken导航

Agent Skill · 待分类

canvas-design(画布设计)

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

canvas-design 是待分类类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描已通过,按安装量在待分类类的 11,209 个 Skill 里排第 4,290。

总安装 774周安装 31GitHub Stars 1下载 250核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:canvas-design(画布设计)
来源仓库:https://github.com/pixel-process-ug/superkit-agents
仓库路径:skills/canvas-design
安装命令:
npx skills add https://github.com/pixel-process-ug/superkit-agents --skill canvas-design
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/pixel-process-ug/superkit-agents --skill canvas-design

这个 Skill 是做什么的

这个 Skill 的分类还没最终确定,用法以来源仓库的说明为准。

canvas-design 用于辅助界面设计、视觉规范和交互体验优化,适合生成 UI 方案和检查一致性。适用于页面结构整理、UI 方案生成和组件层级优化的前端设计场景。结合品牌和设计系统使用,避免堆砌装饰元素;涉及真实页面时需通过截图或预览检查表现。

通过 npx skills add 命令从指定 GitHub 仓库安装并使用该技能。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/canvas-design

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/pixel-process-ug/superkit-agents --skill canva…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

canvas-design 怎么安装?

在终端执行 npx skills add https://github.com/pixel-process-ug/superkit-agents --skill canvas-design。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

canvas-design 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

canvas-design 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

canvas-design 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

canvas-design 用的人多吗?

公开数据是累计安装 774 次,近一周安装 31 次,下载 250 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

canvas-design 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理待分类类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

待分类类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
infsh-cli

infsh CLI · Codex、Claude

4,374,576382权限未标注未明确未收录
ai-video-generation

AI 视频生成 · Codex、Claude

4,313,376382调用外部服务未明确有提醒
lark-openapi-explorer

云雀 OpenAPI 浏览器 · Codex、Claude

2,064,1209,011需要联网未明确有提醒
lark-workflow-standup-report

Lark 工作流程站立报告 · Codex、Claude

2,041,6328,978需要联网未明确通过
use-my-browser

使用我的浏览器 · Codex、Claude

1,848,49140操作浏览器未明确未通过
canvas-design

画布设计 · 本页

7741操作浏览器未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

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

  1. Determine output type (static, animated, interactive, data-driven)
  2. Choose rendering technology (Canvas 2D, SVG, WebGL, hybrid)
  3. Identify data sources and update frequency
  4. Define accessibility requirements for the visualization
  5. Set performance budget (frame rate, element count)

STOP — Present technology recommendation with rationale before implementation.

Technology Selection Decision Table

RequirementCanvas 2DSVGWebGL
< 1000 elementsMaybeYesNo
> 10,000 elementsYesNoYes
DOM event handling neededNoYesNo
Pixel manipulationYesNoYes
Text-heavy visualizationNoYesNo
3D renderingNoNoYes
Print qualityNoYesNo
Animation-heavyYesMaybeYes
Accessibility criticalNoYesNo
SEO-relevant contentNoYesNo

When to Use Each Technology

Use CaseRecommendedWhy
Dashboard charts (< 500 data points)SVG + D3.jsDOM events, accessibility, print
Real-time data stream (1000+ points)Canvas 2DPerformance at scale
Interactive map with tooltipsSVGHover events, accessible
Particle system / generative artCanvas 2DPixel-level control, performance
3D data visualizationWebGL (Three.js)GPU acceleration
Infographic for blog postSVGScalable, accessible, printable
Game or simulationCanvas 2D or WebGLFrame rate, pixel control

Phase 2: Implementation

  1. Set up responsive canvas/SVG container
  2. Implement rendering pipeline (clear, update, draw)
  3. Add interaction handlers (hover, click, drag, zoom)
  4. Optimize render loop (requestAnimationFrame, dirty rectangles)
  5. Add accessibility layer (ARIA, screen reader descriptions)

STOP — Verify rendering works correctly at target frame rate before adding polish.

Canvas 2D API Patterns

Responsive Canvas Setup
function createResponsiveCanvas(container) {
  const canvas = document.createElement('canvas');
  const ctx = canvas.getContext('2d');
  const dpr = window.devicePixelRatio || 1;

  function resize() {
    const rect = container.getBoundingClientRect();
    canvas.width = rect.width * dpr;
    canvas.height = rect.height * dpr;
    canvas.style.width = `${rect.width}px`;
    canvas.style.height = `${rect.height}px`;
    ctx.scale(dpr, dpr);
  }

  const observer = new ResizeObserver(resize);
  observer.observe(container);
  container.appendChild(canvas);
  resize();

  return { canvas, ctx, destroy: () => observer.disconnect() };
}
Animation Loop Pattern
function createAnimationLoop(drawFn) {
  let rafId = null;
  let lastTime = 0;

  function loop(timestamp) {
    const deltaTime = timestamp - lastTime;
    lastTime = timestamp;
    drawFn(deltaTime, timestamp);
    rafId = requestAnimationFrame(loop);
  }

  return {
    start: () => { rafId = requestAnimationFrame(loop); },
    stop: () => { cancelAnimationFrame(rafId); rafId = null; },
    isRunning: () => rafId !== null,
  };
}
Dirty Rectangle Optimization
class DirtyRectRenderer {
  constructor(ctx, width, height) {
    this.ctx = ctx;
    this.dirtyRects = [];
    this.objects = [];
  }

  markDirty(x, y, w, h) {
    this.dirtyRects.push({ x, y, w, h });
  }

  render() {
    for (const rect of this.dirtyRects) {
      this.ctx.clearRect(rect.x, rect.y, rect.w, rect.h);
      for (const obj of this.objects) {
        if (this.intersects(obj.bounds, rect)) {
          obj.draw(this.ctx);
        }
      }
    }
    this.dirtyRects = [];
  }
}

SVG Patterns

Programmatic SVG Creation
function createSVG(width, height, viewBox) {
  const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
  svg.setAttribute('width', '100%');
  svg.setAttribute('height', '100%');
  svg.setAttribute('viewBox', viewBox || `0 0 ${width} ${height}`);
  svg.setAttribute('role', 'img');
  return svg;
}
SVG Accessibility
<svg role="img" aria-labelledby="chart-title chart-desc">
  <title id="chart-title">Monthly Revenue Chart</title>
  <desc id="chart-desc">Bar chart showing revenue from Jan to Dec 2025</desc>
  <!-- chart content -->
</svg>

D3.js Integration Patterns

Data Join Pattern (D3 v7)
function updateBars(svg, data) {
  const bars = svg.selectAll('.bar')
    .data(data, d => d.id);

  bars.exit()
    .transition().duration(300)
    .attr('opacity', 0)
    .remove();

  bars.enter()
    .append('rect')
    .attr('class', 'bar')
    .attr('opacity', 0)
    .merge(bars)
    .transition().duration(500)
    .attr('x', d => xScale(d.label))
    .attr('y', d => yScale(d.value))
    .attr('width', xScale.bandwidth())
    .attr('height', d => height - yScale(d.value))
    .attr('opacity', 1);
}
Scales and Axes
// Linear scale for continuous data
const yScale = d3.scaleLinear()
  .domain([0, d3.max(data, d => d.value)])
  .range([height, 0])
  .nice();

// Band scale for categorical data
const xScale = d3.scaleBand()
  .domain(data.map(d => d.label))
  .range([0, width])
  .padding(0.2);

// Color scale
const colorScale = d3.scaleOrdinal(d3.schemeTableau10);
Responsive D3 Chart
function responsiveChart(container, renderFn) {
  const observer = new ResizeObserver(entries => {
    const { width, height } = entries[0].contentRect;
    const margin = { top: 20, right: 20, bottom: 40, left: 50 };
    renderFn(container, {
      width: width - margin.left - margin.right,
      height: height - margin.top - margin.bottom,
      margin,
    });
  });
  observer.observe(container);
  return () => observer.disconnect();
}

Phase 3: Polish

  1. Add transitions and easing
  2. Implement responsive resizing
  3. Test across devices and browsers
  4. Add fallback content for unsupported environments

STOP — Verify accessibility and performance targets are met.

Generative Art Techniques

TechniqueCategoryUse Case
Perlin/Simplex noiseNoise-basedOrganic shapes, terrain
Fractal Brownian MotionNoise-basedTerrain-like textures
Domain warpingNoise-basedFluid-like effects
Particle systemsSimulationFire, water, swarms
L-systemsAlgorithmicPlant-like structures
Voronoi diagramsAlgorithmicCell-like partitions
Delaunay triangulationAlgorithmicMesh generation
Flow fieldsAlgorithmicDirectional patterns

Accessibility for Visualizations

RequirementImplementation
Text alternatives<title> and <desc> in SVG, ARIA labels on Canvas
Data table fallbackHidden table with same data for screen readers
Keyboard interactionTab to elements, arrow keys for navigation
Color-blind safeUse shape/pattern in addition to color
High contrast modeDetect and adjust colors
Reduced motionSimplify or disable animations with prefers-reduced-motion

Performance Guidelines

TechnologyOptimization
CanvasBatch draw calls, minimize state changes (fill/stroke/font)
SVGLimit to < 1000 DOM nodes, use <use> for repeated elements
WorkerOffscreenCanvas for web worker rendering
EventsThrottle mousemove handlers to 16ms (60fps)
CSSUse will-change: transform for CSS-animated SVG elements
CleanupDispose of observers, animation frames on unmount

Anti-Patterns / Common Mistakes

Anti-PatternWhy It Is WrongWhat to Do Instead
Canvas for text-heavy contentPoor text rendering, no accessibilityUse SVG for text-heavy visualizations
Full canvas redraw every frameWastes CPU when nothing changedUse dirty rectangle optimization
Creating new SVG elements instead of updatingMemory leaks, poor performanceUse D3 data join pattern
Forgetting devicePixelRatioBlurry on Retina/HiDPI displaysScale canvas by window.devicePixelRatio
No fallback content for CanvasScreen readers get nothingAdd aria-label and hidden data table
Inline event handlers on 1000+ SVG elementsMemory and performance overheadUse event delegation on parent
Not cleaning up animation framesMemory leaks on unmountcancelAnimationFrame in cleanup
Using D3 for simple static chartsOver-engineeringUse SVG directly or Chart.js

Integration Points

SkillIntegration
ui-ux-pro-maxChart type selection and color palettes
ui-design-systemDesign tokens for chart theming
artifacts-builderSelf-contained visualization artifacts
senior-frontendComponent integration in React/Vue/Svelte
performance-optimizationFrame rate and rendering optimization
mobile-designTouch 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.

平台分布

Codex

37.84%
按下载量换算95

Claude

28.69%
按下载量换算72

Cursor

18.36%
按下载量换算46

Gemini CLI

10.14%
按下载量换算25

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills