| name | super-pencil-core |
| description | Use when using Pencil MCP to edit .pen files, prevent errors and rendering issues |
Super Pencil Core
Overview
Core workflow for using Pencil MCP safely. Follow this every time you edit a .pen file to prevent errors and rendering issues.
Quick Reference
| Step | Action | Command |
|---|
| 1 | Open file | open_document |
| 2 | Load schema | get_editor_state(include_schema=true) |
| 3 | Read nodes | batch_get with patterns |
| 4 | Set placeholder | U("frameId",{placeholder:true}) |
| 5 | Edit batches | batch_design (max 25 ops) |
| 6 | Screenshot | get_screenshot |
| 7 | Debug | See related skills |
| 8 | Remove placeholder | U("frameId",{placeholder:false}) |
Core Workflow
Follow these 8 steps in order:
-
Open the file
{"filePathOrTemplate": "<absolute path to .pen file>"}
-
Load schema
{"include_schema": true}
Confirm: file path is correct, top-level frame IDs visible.
-
Read target nodes
{"filePath": "<path>", "patterns": [{"name": "target-name"}], "readDepth": 2, "searchDepth": 4, "includePathGeometry": true, "resolveVariables": true}
-
Set placeholder
U("frameId",{placeholder:true})
-
Edit in small batches
- Max 25 operations per
batch_design call
- Separate structure from visual edits
- Use fresh binding names every call
-
Screenshot immediately
{"filePath": "<path>", "nodeId": "frameId"}
-
Debug if needed
- Path renders wrong →
super-pencil-path-debugging
- Error occurs →
super-pencil-troubleshooting
-
Remove placeholder
U("frameId",{placeholder:false})
Non-Negotiable Rules
- Always load schema first - skip this = unsafe
- Use placeholder flags - set
true during work, false when done
- Keep batches small - max 25 operations
- Validate visually - screenshot after each change
- Prefer simple structures - copy working patterns over patching broken ones
Path Safety
For path nodes, ensure:
geometry matches node width/height
- Use local coordinates (e.g.,
M0 0 ...)
- Avoid nested frames with complex offsets
Related Skills
- Antipatterns: Use
super-pencil-antipatterns to avoid common mistakes
- Path debugging: Use
super-pencil-path-debugging when path renders in wrong position
- Troubleshooting: Use
super-pencil-troubleshooting when MCP returns errors
Common Mistakes
- Editing without reading nodes first
- Using large absolute path geometry in nested containers
- Leaving finished frames in placeholder mode
- Too many operations in one batch