OpenPencil Design Orchestrator
Use this skill to turn vague Pencil/OpenPencil requests into a controlled multi-step workflow.
Default to MCP-first execution. Prefer small, verifiable edits over one-shot generation.
Quick Start
- Run
scripts/preflight-check.sh when the environment or MCP connectivity is unknown.
- Read
references/prompt-framework.md before drafting or executing prompts.
- Read
references/client-adapters.md when the user mentions Claude Code, Codex, Cursor, or Windsurf setup.
- Read
references/risk-matrix.md when debugging failures or choosing guardrails.
- Read
references/fallback-mode.md when MCP is unavailable or unstable.
Workflow
Step 1 - Preflight
- Confirm Pencil/OpenPencil is running if the workflow depends on desktop-hosted MCP.
- Confirm whether transport is
stdio or HTTP.
- Confirm
openpencil-mcp is installed when using MCP.
- Read the current file/page tree before proposing mutations.
- Refuse giant blind edits when the current structure is unknown.
Step 2 - Planning
- Translate the request into pages, sections, components, tokens, and execution order.
- Resolve ambiguity before editing.
- Ask for confirmation only when ambiguity materially changes layout or scope.
- Prefer explicit checkpoints over creative guessing.
Step 3 - Skeleton
- Create only structural scaffolding: pages, frames, sections, containers, autolayout, naming.
- Avoid visual polish and long-form copy generation in this phase.
- Keep hierarchy obvious and reusable.
Step 4 - Section Content
- Edit one section at a time.
- Re-read the relevant nodes before each mutation batch.
- Report what changed: nodes touched, nodes created, styles/tokens applied, unresolved conflicts.
- Stop when cross-section drift appears.
Step 5 - Refinement
- Refine spacing, alignment, typography consistency, color/token consistency, and emphasis hierarchy.
- Avoid restructuring information architecture unless the user explicitly requests it.
- Preserve the approved skeleton.
Step 6 - Save / Handoff
- Save only after confirming the changed scope.
- Summarize what changed and any remaining weak spots.
- Offer a next pass rather than silently widening the change scope.
Core Operating Rules
- Prefer MCP-first workflows; use file-level fallback only when MCP is unavailable or unsuitable.
- Prefer
stdio for local interactive use and HTTP for controlled automation or remote workflows.
- Treat
eval as high risk. Do not rely on it by default. When using HTTP mode, keep eval disabled unless the user explicitly accepts the risk.
- Prefer staged prompts over one-shot “design the whole app” prompts.
- Keep each mutation batch bounded to a page or section whenever possible.
- Re-read tree/node context before writing.
- Stop and report conflicts instead of improvising through them.
Reference Routing
- For prompt wording and reusable templates, read
references/prompt-framework.md.
- For exact phase ordering and mutation discipline, read
references/workflow-sequence.md.
- For agent/client-specific setup patterns, read
references/client-adapters.md.
- For failure modes, mitigations, and known risks, read
references/risk-matrix.md.
- For degraded-mode operation without MCP, read
references/fallback-mode.md.
Scripts
scripts/preflight-check.sh
- Check whether
openpencil-mcp exists.
- Inspect common MCP config locations.
- Print a short readiness report.
scripts/scaffold-phase-prompt.py
- Generate phase-specific prompt scaffolds for
planning, skeleton, section, refine, and safety.
Task Fit Guidance
Use this skill for:
- Pencil/OpenPencil MCP orchestration
- staged design prompt generation
- design read/write workflows through coding agents
- design audits, diff reviews, export checks, and token/consistency analysis
Do not use this skill as the primary path for:
- unconstrained one-shot whole-product generation
- unreviewed destructive bulk edits
- security-insensitive automation that assumes unrestricted
eval
- fake/live-edit claims when running in fallback-only mode
Output Expectations
When using this skill, structure the response around:
- Current mode (
MCP-first, HTTP automation, or fallback)
- Current phase
- Exact scope being changed
- Risks / blockers
- Next action
Keep outputs operational. Do not bury the active scope or failure condition inside long prose.
1---2name: openpencil-design-orchestrator3description: OpenPencil Design Orchestrator4---56# OpenPencil Design Orchestrator78Use this skill to turn vague Pencil/OpenPencil requests into a controlled multi-step workflow.9Default to MCP-first execution. Prefer small, verifiable edits over one-shot generation.1011## Quick Start12131. Run `scripts/preflight-check.sh` when the environment or MCP connectivity is unknown.142. Read `references/prompt-framework.md` before drafting or executing prompts.153. Read `references/client-adapters.md` when the user mentions Claude Code, Codex, Cursor, or Windsurf setup.164. Read `references/risk-matrix.md` when debugging failures or choosing guardrails.175. Read `references/fallback-mode.md` when MCP is unavailable or unstable.1819## Workflow2021### Step 1 - Preflight2223- Confirm Pencil/OpenPencil is running if the workflow depends on desktop-hosted MCP.24- Confirm whether transport is `stdio` or `HTTP`.25- Confirm `openpencil-mcp` is installed when using MCP.26- Read the current file/page tree before proposing mutations.27- Refuse giant blind edits when the current structure is unknown.2829### Step 2 - Planning3031- Translate the request into pages, sections, components, tokens, and execution order.32- Resolve ambiguity before editing.33- Ask for confirmation only when ambiguity materially changes layout or scope.34- Prefer explicit checkpoints over creative guessing.3536### Step 3 - Skeleton3738- Create only structural scaffolding: pages, frames, sections, containers, autolayout, naming.39- Avoid visual polish and long-form copy generation in this phase.40- Keep hierarchy obvious and reusable.4142### Step 4 - Section Content4344- Edit one section at a time.45- Re-read the relevant nodes before each mutation batch.46- Report what changed: nodes touched, nodes created, styles/tokens applied, unresolved conflicts.47- Stop when cross-section drift appears.4849### Step 5 - Refinement5051- Refine spacing, alignment, typography consistency, color/token consistency, and emphasis hierarchy.52- Avoid restructuring information architecture unless the user explicitly requests it.53- Preserve the approved skeleton.5455### Step 6 - Save / Handoff5657- Save only after confirming the changed scope.58- Summarize what changed and any remaining weak spots.59- Offer a next pass rather than silently widening the change scope.6061## Core Operating Rules6263- Prefer MCP-first workflows; use file-level fallback only when MCP is unavailable or unsuitable.64- Prefer `stdio` for local interactive use and `HTTP` for controlled automation or remote workflows.65- Treat `eval` as high risk. Do not rely on it by default. When using HTTP mode, keep `eval` disabled unless the user explicitly accepts the risk.66- Prefer staged prompts over one-shot “design the whole app” prompts.67- Keep each mutation batch bounded to a page or section whenever possible.68- Re-read tree/node context before writing.69- Stop and report conflicts instead of improvising through them.7071## Reference Routing7273- For prompt wording and reusable templates, read `references/prompt-framework.md`.74- For exact phase ordering and mutation discipline, read `references/workflow-sequence.md`.75- For agent/client-specific setup patterns, read `references/client-adapters.md`.76- For failure modes, mitigations, and known risks, read `references/risk-matrix.md`.77- For degraded-mode operation without MCP, read `references/fallback-mode.md`.7879## Scripts8081- `scripts/preflight-check.sh`82 - Check whether `openpencil-mcp` exists.83 - Inspect common MCP config locations.84 - Print a short readiness report.85- `scripts/scaffold-phase-prompt.py`86 - Generate phase-specific prompt scaffolds for `planning`, `skeleton`, `section`, `refine`, and `safety`.8788## Task Fit Guidance8990Use this skill for:9192- Pencil/OpenPencil MCP orchestration93- staged design prompt generation94- design read/write workflows through coding agents95- design audits, diff reviews, export checks, and token/consistency analysis9697Do not use this skill as the primary path for:9899- unconstrained one-shot whole-product generation100- unreviewed destructive bulk edits101- security-insensitive automation that assumes unrestricted `eval`102- fake/live-edit claims when running in fallback-only mode103104## Output Expectations105106When using this skill, structure the response around:1071081. Current mode (`MCP-first`, `HTTP automation`, or `fallback`)1092. Current phase1103. Exact scope being changed1114. Risks / blockers1125. Next action113114Keep outputs operational. Do not bury the active scope or failure condition inside long prose.