UI Pencil
Designui-pencilUI Pencil is an Agent Skill for design published in the ryfineZ/my-ai-skills repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Use when UI work benefits from live visual co-editing in Pencil so the user can see, review, and modify structure or layout directly on a .pen canvas.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/ryfineZ/my-ai-skills/blob/HEAD/packages/custom/ui-pencil/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/ui-pencil, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
UI Pencil
Pencil 用于可视化共改,不替代真实实现预览。
Use When
- 需要先定结构和视觉方向,再写代码
- 用户希望直接看到你的设计过程
- 用户想在画布里一起改布局、组件和层级
Workflow
get_editor_state确认当前.pen文档和画布batch_get读现有节点batch_design做结构化修改get_screenshot及时复查- 定稿后再回到代码实现或浏览器预览
Notes
- Pencil 的布局和字体语义与浏览器 CSS 不完全相同,不能直接等同。
- Pencil 负责设计过程可视化,浏览器负责最终实现验证。
- 当前环境已验证可连接、可读、可写、可截图。
- 工作流细节:
references/pencil-workflow.md - 使用红线:
references/pencil-rules.md