Skip to content
Agentmart
Submit a tool

canvas_preview

Produce self-contained HTML, React, or Python preview code for quick in-app rendering when the user wants a simple demo, toy UI, or fast visual verification…

Skill by AiharaMahiru

IndexedApache-2.0★ 4
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/aiharamahiru-canvas-preview

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Produce self-contained HTML, React, or Python preview code for quick in-app rendering when the user wants a simple demo, toy UI, or fast visual verification rather than a full project.

Use cases: design, frontend

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/canvas-preview

What's inside

Skill name
canvas_preview
Description
Produce self-contained HTML, React, or Python preview code for quick in-app rendering when the user wants a simple demo, toy UI, or fast visual verification rather than a full project.
License
Apache-2.0
Instructions
33 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • name: only lowercase letters, digits and single hyphens allowed

Files (2)

  • SKILL.md
  • reference.md

SKILL.md (first lines)

# canvas_preview

当用户需要:

- 写一个单文件 HTML/React/Python 小 demo
- 快速验证一个简单界面、小游戏、交互组件或算法可视化
- 直接在当前会话里运行预览代码,而不是搭完整项目
- 修正一段“本来想预览,但无法渲染”的简单代码

优先加载这个 skill。

## 推荐流程

1. 先判断用户目标是否属于“简单、单文件、可快速验证”的预览任务
2. 在 `HTML / React / Python` 中选最稳的一种;没有明确要求时优先 `HTML`
3. 生成自包含代码,并按预览运行约束主动规避外部依赖、多文件结构和长链路启动
4. 输出前自检:语法是否完整、入口是否明确、是否能直接渲染出可见结果
5. 如果用户要的是项目级页面、复杂工程、后端联动或多文件应用,明确不要套用这个 skill

## 关键约束

- 这个 skill 只适用于“简单、快速验证”的代码预览,不适用于项目级实现
- `HTML` 必须单文件自包含,样式和脚本内联,不依赖 CDN 和外部资源
- `React` 必须是单文件组件预览:默认导出 `App`,不引入第三方包,不拆多文件
- `Python` 必须使用标准库;优先直接打印完整 HTML/SVG,或写出 `preview.html` / `preview.svg` / `preview.png`
- 不要输出需要长期运行的 server、终端交互程序、文件监听器、数据库、认证流程或复杂构建链
- 代码必须能在当前预览能力下快速看到结果;如果做不到,要主动降级为更简单的实现

## 参考资料

详细内容见同目录的 `reference.md`

From AiharaMahiru/motus_ui, Apache-2.0.

Signals

Stars
4
Forks
0
Open issues
0
Last commit (this folder)
Apr 20, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from AiharaMahiru

Cite this page

canvas_preview skill. Agent Mart. https://agentmart.dev/skills/aiharamahiru-canvas-preview (last updated 2026-10-24)