Agent skill UI design
Paper Flex
Shape a web interface around a coherent visual direction.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add millionco/skills --skill paper-flex --agent claude-code --yesCheck this file in your project.claude/skills/paper-flex/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add millionco/skills --skill paper-flexSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Connect Paper Desktop MCP with the permitted file open and edit access for the target artboard. Keep an original baseline or duplicate.
View operation manualWhat this skill helps with
- Shape a web interface around a coherent visual direction.
Good for
- Visual direction
- Skill name
- paper-flex
- Scenario
- Convert a Paper summary card to flex
- Deliverable
- A verified flex hierarchy with original art, spacing and layer order preserved.
- Skill name
paper-flex- Repository
millionco/skills
Give the request a concrete task
A request with an unclear outcome
Redraw the card from its screenshot as a flex group.
A screenshot cannot preserve original vector paths, image crops, exact spacing, or rendering order.
A workflow with observable results
- Read the approved node and computed geometry
- Build flex wrappers around the original art
- Compare the screenshot and check clone order
Paper Flex operation manual
Capture the selected artboard’s true dimensions before converting layout wrappers while preserving its original graphics.
Replace the bracketed details with your own project and target.
Read the approved node and computed geometry
Save the baseline and measure direct children before editing.
Prompt · Step 1Use paper-flex for [authorized Paper frame and summary card]. Load the Paper MCP instructions, confirm the open file and selection with get_basic_info and get_selection, then capture get_screenshot. Read the tree and direct children with their computed positions, dimensions, fills, and effects. Derive gaps and padding from coordinates, and identify original assets and overlay order. Ask for the target if selection is ambiguous.Build flex wrappers around the original art
Clone graphics and restore positions in the correct layer order.
Prompt · Step 2Use paper-flex to convert [approved duplicate or target card] using the measured spacing. Build one flex group at a time and clone original SVGs, images and complex layers with x-paper-clone. Insert background clones before content where order matters. Reset flow clones’ left and top to 0px with update_styles, and restore deliberate overlay coordinates separately. Keep the original available for comparison.Compare the screenshot and check clone order
Read back offsets, inspect overlay positions, and finish after matching.
- The converted frame matches the original visual roles and artwork.
- Computed positions and ordered children support the screenshot result.
Prompt · Step 3Use paper-flex to verify [converted card] against [original Paper screenshot]. Compare layout, image crops, SVG fidelity, shadows and visual layer order. Use get_children and get_computed_styles to confirm neutral flow offsets and agreed overlay positions. Report mismatches and correct the approved copy. Keep the original unless replacement is explicitly within scope. Call finish_working_on_nodes when checks are complete.
Find the relevant rule
Point the assistant to the installed Skill and a specific issue.
An image loses its crop during conversionReference
- Command or reference
SKILL.md · Source Preservation Rules- Examples
- Clone the original node and compare its computed fill and screenshot.
A badge drops behind a layerReference
- Command or reference
references/layered-cards.md- Examples
- Check separate write order and reapply the overlay offsets.
Paper Flex troubleshooting
Can I start from the screenshot alone?
Use it as a visual baseline. Preserve source art and read exact child geometry from Paper before touching the layout.