用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill canvas命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | canvas |
| description | | Use when this capability is needed. |
Start here when using terminal canvases. This skill covers the overall workflow, canvas types, and IPC communication.
Try asking things like:
Calendar:
Document:
Flight:
Canvas provides interactive terminal displays (TUIs) that can be spawned and controlled via OpenCode tools. Each canvas type supports multiple scenarios for different interaction modes.
| Canvas | Purpose | Scenarios |
|---|---|---|
calendar | Display calendars, pick meeting times | display, meeting-picker |
document | View/edit markdown documents | display, edit, email-preview |
flight | Flight comparison and seat selection | booking |
| Tool | Purpose |
|---|---|
canvas_spawn | Spawn a canvas in tmux split pane |
canvas_env | Detect terminal environment (tmux, mouse support) |
canvas_update | Send configuration updates to active canvas |
canvas_close | Close an active canvas |
canvas_get_selection | Get text selection from document canvas |
canvas_get_content | Get full content from document canvas |
| Tool | Purpose |
|---|---|
canvas_display_document | Display markdown document (read-only) |
canvas_edit_document | Open document for text selection |
canvas_pick_meeting_time | Calendar picker for scheduling |
canvas_display_calendar | Display calendar events (read-only) |
Check environment first:
Use canvas_env to verify tmux is available
Spawn a canvas:
Use canvas_spawn with kind="calendar", scenario="meeting-picker"
Or use high-level tools:
Use canvas_display_document with content="# Hello\n\nMarkdown here."
Interactive canvases communicate via Unix domain sockets.
Canvas -> Controller:
{ type: "ready", scenario } // Canvas is ready
{ type: "selected", data } // User made a selection
{ type: "cancelled", reason? } // User cancelled
{ type: "error", message } // Error occurred
Controller -> Canvas:
{ type: "update", config } // Update canvas configuration
{ type: "close" } // Request canvas to close
{ type: "ping" } // Health check
The canvas CLI is also available for standalone use:
# Run canvas in current terminal
bun run src/cli.ts show calendar
# Spawn canvas in new tmux split
bun run src/cli.ts spawn calendar --scenario meeting-picker --config '{...}'
| Skill | Purpose |
|---|---|
calendar | Calendar display and meeting picker details |
document | Document rendering and text selection |
flight | Flight comparison and seat map details |
Converted and distributed by TomeVault — claim your Tome and manage your conversions.