一键导入
super-pencil-antipatterns
Use when you need to avoid common Pencil MCP mistakes or review design decisions
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when you need to avoid common Pencil MCP mistakes or review design decisions
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when using Pencil MCP - loads core workflow and dispatches to specialized skills as needed
Use when using Pencil MCP to edit .pen files, prevent errors and rendering issues
Use when Pencil MCP path renders in wrong position or strokes appear detached
Use when Pencil MCP returns errors, vague failures, or edits do not apply
| name | super-pencil-antipatterns |
| description | Use when you need to avoid common Pencil MCP mistakes or review design decisions |
Common mistakes that cause Pencil MCP errors, rendering issues, or vague failures. Review before making edits to avoid problems.
| Antipattern | Symptom | Fix |
|---|---|---|
| No node read | Wrong parent, duplicate edit | Use batch_get first |
| Absolute path geometry | Stroke renders off-position | Use local coords M0 0 |
| Placeholder left on | Document unfinished | Set placeholder:false |
| Too many ops | Debug impossible | Split to 25 ops/batch |
| Visual patching | Layout breaks | Screenshot first |
| Wrong frame | Edits not apply | Check get_editor_state |
| Reuse bindings | Batch fails | Fresh names per call |
| Geometry mismatch | Bounds drift | Match span to width/height |
Problem: Causes wrong parent selection, editing duplicate nodes, broken assumptions.
Fix: Always use batch_get to inspect target nodes before any edit.
Problem: Main cause of rendering drift. Path strokes appear in wrong position.
Bad:
I("nestedFrame",{
type:"path",
x:45, y:35,
width:175, height:30,
geometry:"M100 115q88 60 175 0"
})
Good:
I("topCard",{
type:"path",
x:96, y:110,
width:188, height:58,
geometry:"M0 8Q94 64 188 8"
})
Rule: Path geometry should use local coordinates starting near origin.
Problem: Makes document look unfinished, may confuse future edits.
Fix: Always set placeholder:false when done.
Problem: Makes debugging impossible if result breaks.
Fix: Split into smaller batches:
Problem: Position issues are often:
Fix: Always prove with screenshot before patching.
Problem: Edits may not apply to intended target.
Fix: Confirm active frame with get_editor_state before editing.
Problem: Bindings only work within same batch_design call.
Fix: Use fresh binding names every call.
Problem: x/y, width/height, and geometry describe different areas.
Fix: Ensure geometry span matches node dimensions.
STOP and check structure if you see:
Action: See super-pencil-path-debugging for path issues, super-pencil-troubleshooting for errors.
U("pageFrame",{placeholder:true})
U("topCard",{
x:0, y:0,
width:390, height:500,
clip:true,
cornerRadius:[0,0,40,40]
})
I("topCard",{
type:"path",
name:"face-head-arc",
x:96, y:110,
width:188, height:58,
geometry:"M0 8Q94 64 188 8",
stroke:{thickness:5,cap:"round",fill:"#000000"}
})
Benefits: Fewer coordinate surprises, easier screenshots, easier debugging.
super-pencil-core for standard editing workflowsuper-pencil-path-debugging when path renders wrongsuper-pencil-troubleshooting for error diagnosis