jordancoin/ios-design-stack/pencil-ios-design
Claude Code and agent skill by jordancoin/ios-design-stack
- community
Checking that the SKILL.md file is still in the repository.
iOS-specific Pencil MCP design workflow. Creates iOS screens on canvas following Apple HIG with proper SF Pro typography, semantic colors, and 8pt spacing grid. Use when designing iOS UI in .pen files. Requires Pencil MCP server.
Install
npx vskill@latest install jordancoin/ios-design-stack/pencil-ios-designSKILL.md
Pencil iOS Design
How to design iOS screens using Pencil MCP tools. Every step follows Apple HIG.
Source tools: partme-ai/full-stack-skills
Prerequisites
Pencil MCP server must be configured. Check with get_editor_state.
Workflow
1. Open or Create Document
Then always call get_editor_state to confirm active document and schema.
2. Initialize iOS Design Tokens
Call set_variables with iOS system values. See ios-design-tokens skill for full specs.
Key variables to set:
- Font: SF Pro, sizes 11-34pt per iOS type scale
- Colors: iOS semantic colors (label, background, tints) for light AND dark
- Spacing: 4, 8, 12, 16, 20, 24, 32, 48 on the 8pt grid
- Radii: 8, 12, 16, 20 with continuous (squircle) corners
3. Get iOS Design Guidelines
This returns Apple HIG and mobile-specific rules. Read before designing.
4. Get Style Guide (Optional)
If the user wants a specific aesthetic:
5. Find Canvas Space
Before placing a new screen:
Standard iPhone 15 Pro frame: 393 x 852pt (logical, safe area content). Full frame with status bar + home indicator: 393 x 852pt.
Common iOS frame sizes:
| Device | Width | Height | |
|---|---|---|---|
| iPhone 15 Pro | 393pt | 852pt | |
| iPhone 15 Pro Max | 430pt | 932pt | |
| iPhone SE | 375pt | 667pt | |
| iPad (10th gen) | 820pt | 1180pt |
6. Design the Screen
Use batch_design with insert operations. Max 25 operations per call.
iOS Layout Rules (enforce these):
- Content starts below safe area (59pt from top for Dynamic Island)
- 16-20pt horizontal margins
- All touch targets ≥ 44x44pt
- 8pt grid for all spacing
- Use iOS semantic colors (not hardcoded hex)
- Navigation at top, tab bar at bottom (49pt)
- Continuous corner radius (squircle), not circular
- One focal point per screen
Typography Rules:
- Title:
.titleor.largeTitle— never custom sizes - Body text: 17pt Regular — this is the iOS standard
- Secondary:
.subheadline(15pt) or.footnote(13pt) - Max 2 font weights per screen
- Never force specific sizes — use Dynamic Type text styles
Color Rules:
- Use semantic colors:
Color(.label),Color(.systemBackground) - One accent/tint color per app (default: systemBlue #007AFF)
- Dark mode: don't invert — use semantic tokens that adapt
#000000for dark bg, not#1C1C1E(that's secondary)
7. Verify with Screenshot
After designing:
Check the screenshot against these criteria:
- [ ] Proper spacing (8pt grid)
- [ ] Touch targets ≥ 44pt
- [ ] Typography hierarchy clear (squint test)
- [ ] One focal point dominates
- [ ] Would Apple ship this?
8. Check Layout Issues
Fix any: clipped content, overlapping elements, elements outside frame bounds.
9. Audit Design Properties
Verify:
- Only SF Pro font family used
- Only iOS type scale sizes (11, 12, 13, 15, 16, 17, 20, 22, 28, 34)
- Only semantic colors (no random hex values)
- Consistent corner radii
10. Export to SwiftUI
Pencil can export nodes to SwiftUI code. Use this as the starting point, then refine in Xcode with XcodeBuildMCP.
Common iOS Screen Patterns
Login Screen
Settings / List Screen
Detail Screen
Anti-Patterns (Never Do These)
- Custom font sizes not in the iOS type scale
- Touch targets under 44pt
- Hardcoded colors instead of semantic tokens
- Circular corners instead of continuous (squircle)
- Full-bleed separators (iOS uses inset separators, leading edge)
- Tab bar with more than 5 items
- Navigation title on the left (it's centered or large-title left-aligned)
- Forgetting safe areas (content under Dynamic Island or home indicator)
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/pencil-ios-design/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jordancoin/ios-design-stack/pencil-ios-design)