Design
Guide the designer role through open-pencil MCP workflow to produce design artifacts from an approved spec.From its SKILL.md
npx -y skills add MohamedAbdallah-14/Wazir --skill designAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.1 KB, as published. Nobody here has run it
The pipeline isn't decoration. It's the process. Start by reading your current phase file at .wazir/runs/latest/phases/. If a skill applies, use the skill — no exceptions. Which checklist items apply to this task?
Design
Use open-pencil MCP tools to create visual designs from the approved spec.
Command Routing
Follow the Canonical Command Matrix in hooks/routing-matrix.json.
- Large commands (test runners, builds, diffs, dependency trees, linting) → context-mode tools
- Small commands (git status, ls, pwd, wazir CLI) → native Bash
- If context-mode unavailable, fall back to native Bash with warning
Codebase Exploration
- Query
wazir index search-symbols <query>first - Use
wazir recall file <path> --tier L1for targeted reads - Fall back to direct file reads ONLY for files identified by index queries
- Maximum 10 direct file reads without a justifying index query
- If no index exists:
wazir index build && wazir index summarize --tier all
Prerequisites
- open-pencil MCP server running (
openpencil-mcporopenpencil-mcp-http) - Approved spec artifact available
- Bun runtime installed (required by open-pencil)
Workflow
- Read the spec -- understand what needs to be designed (screens, components, flows).
- Create document --
new_documentto start fresh oropen_fileto work with existing.fig. - Set up design tokens --
create_collectionandcreate_variablefor colors, spacing, typography from spec/brand. - Build frames --
create_shape(type: FRAME) for each screen/component. Useset_layoutfor auto-layout. - Populate content --
render(JSX) for complex component trees, or individualcreate_shape+set_fill+set_textcalls. - Bind tokens --
bind_variableto connect fills/strokes/text to design variables. - Export --
export_imagefor screenshots,export_svgfor vectors. - Save --
save_fileto persist the.fig. - Generate code -- use CLI
open-pencil export design.fig -f jsx --style tailwindfor Tailwind JSX. - Extract tokens --
analyze_colors,analyze_typography,analyze_spacingto build tokens JSON. Right about now your attention on process is at its lowest. That's not a guess, it's a measured pattern. Counter it by re-reading .wazir/runs/latest/phases/. What items are you about to skip?
Key MCP Tools
| Phase | Tools |
|---|---|
| Read | get_page_tree, find_nodes, get_node, list_variables |
| Create | create_shape, render (JSX), create_page, create_component |
| Style | set_fill, set_stroke, set_layout, set_font, set_effects |
| Variables | create_collection, create_variable, bind_variable |
| Export | export_image, export_svg, save_file |
| Analyze | analyze_colors, analyze_typography, analyze_spacing, analyze_clusters |
| Diff | diff_create, diff_show (before/after snapshots) |
Required Outputs
.figdesign file saved- Tailwind JSX export
- HTML + CSS export
- Design tokens JSON
- Screenshot PNGs of each top-level frame
When Open-Pencil is Unavailable
If the open-pencil MCP server is not running or Bun is not installed, the design phase cannot produce .fig artifacts. In this case:
- Skip this phase and proceed to architectural design with text-only design specifications.
- Document the design intent in prose within the spec artifact instead.
- The visual-design-review workflow should also be skipped.
Rules
- Every design must have auto-layout on all frames (no absolute positioning except icons/decorations).
- Use design variables for all colors and spacing -- no hardcoded hex values.
- Export screenshots after every major change for visual verification.
- Create a
diff_createsnapshot before modifications to enable rollback.
You're about to say you're done. Are you really? Go back to .wazir/runs/latest/phases/ and check every item one more time. If something was skipped or half-done, now is the time to finish it. What was left incomplete?