/pixso:pixso-code-to-designfrom pixso
Prepares HTML, URL, ZIP, or static web artifacts for import into Pixso via the `code_to_design` MCP tool. Handles version handshake and local URL capture before conversion.
Ships in pixso. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill when the user wants to import, paste, capture, push, or convert HTML, a web page URL, ZIP bundle, static web artifact, or browser-rendered page into editable Pixso design nodes.
The external Pixso MCP surface has fourteen discoverable tools: get_mcp_server_info, get_design_context, get_metadata, fetch_context, query_nodes, apply_design, eval_script, get_node_dsl, get_export_image, get_screenshot, read_component_config_data, code_to_design, get_prototype_context, and apply_prototype_interactions. Remote MCP exposes the same discoverable set. This skill calls code_to_design (and get_screenshot for optional visual verification); the retired helper tools of the pre-consolidation surface do not exist, so never call them and never claim you called them.
Before the first Pixso MCP tool call in a task, you MUST call get_mcp_server_info once. Check once per session; do not repeat it before every tool call.
requires: { "pixso": ">=3.0.10", "mcpSchema": 3 }. Read editorVersion (Pixso version) and schemaVersion (tool-contract version, may be absent) from the response.editorVersion is v0.0.0, empty, or unparsable (a development placeholder), skip the version gate, state that the current Pixso version cannot be confirmed, and continue the task.editorVersion is known and lower than 3.0.10, tell the user clearly: "Current Pixso editorVersion is X; this skill requires Pixso >= 3.0.10. Upgrade Pixso or use a matching skill version." Do not perform write operations before the user confirms.schemaVersion and it is not 3, tell the user that the skill or the client must be updated, and stop write operations.schemaVersion, report "the current client does not declare a tool-contract version", record a warning, and continue. Never block read-only flows for this reason.deploymentType, seat, filePermission, and skills.recommendedTag. Use filePermission when explaining why writes are rejected, and ignore missing optional fields.get_mcp_server_info (it runs in a sandboxed headless browser); call it once at session start. Some MCP hosts do not technically enforce the handshake gate, but the mandatory call still applies: if the call is unavailable, state that the handshake information is unavailable, never fabricate a version, and continue.get_mcp_server_info first and then retry (there is no dedicated error code). Call get_mcp_server_info in the same session, then retry the original call. Do not open a new session to bypass it.Before calling any Pixso MCP tool, confirm the final input is ready: use htmlStr for raw or self-contained HTML, and use real ZIP bytes in htmlBuffer for URLs or pages with resources. For URL input, first read and follow references/url-capture.md.
If login, permissions, region limits, anti-abuse controls, security policy, iframes, hash routes, missing resources, or hidden target content block capture, report the blocker and ask for the next step. Do not downgrade failed capture to pixso-design-editing, apply_design, hand-written HTML, or approximate reconstruction without user confirmation.
Use this skill only when the user explicitly asks to convert HTML, a URL, a ZIP bundle, or a static web artifact into Pixso, or explicitly asks for code_to_design.
Fallback exceptions:
pixso-design-editing first.apply_design.apply_design was unavailable and HTML-to-design conversion was used instead.When apply_design is available, do not use this skill for general Pixso design creation, UI mockups, redesigns, homepage generation, app screen generation, or canvas editing.
Handle raw HTML, self-contained HTML, capturable URLs, static exports, ZIP bundles, and targeted repairs after code_to_design. Do not pass URLs directly to code_to_design.
htmlStr or htmlBuffer; never both.htmlBuffer.htmlStr for URL-derived pages only when the capture is self-contained, or when omitted external resources are intentional and explicitly reported.Before handling URL input, read references/url-capture.md. Prefer the browser's native complete webpage save output. Use DOM / CSS-aware visual resource collection only when browser save is unavailable or clearly incomplete.
code_to_design means exact capture and conversion, not reference-based reconstruction.code_to_design fails, the wrong input was passed, or the result mismatches, report only the failure point and next options; do not switch tools or approximate-rebuild without confirmation.PLACEHOLDER, or TODO.htmlStr for raw/self-contained HTML and htmlBuffer for ZIP bytes.htmlBuffer ZIP unless the capture is fully self-contained.code_to_design. Convert the final artifact into Pixso nodes.A successful code_to_design call is enough to finish, but do not claim visual parity unless you actually verified screenshots or structure.
When the input is your own HTML and it must sit flush at the target size, set body { margin: 0; } explicitly and verify the imported content width/height; default body margins can cause clipping. Do not remove existing margins when importing an existing webpage unchanged.
Before the final response, verify:
code_to_design argument was final htmlStr or real htmlBuffer, not a placeholder, variable name, path, or temporary stub;code_to_design failed or the result mismatched, pixso-design-editing / apply_design was not used before user confirmation;pixso-design-editing or the current project design-system flow.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
pixso, code-to-design, html-import, url-capture, design-import
npx claudepluginhub pixsoltd/pixso-ai-integration --plugin pixso6 skills in this plugin
/pixso-component-configGenerate or update Pixso Design-to-Code component parser JSON (`componentParsers` / component config) from the current Pixso desktop file, its local and subscribed-library component inventory, or an open source component library. Also used as the generate-config step inside the code-generation flow. Use when the user asks to create, extract, draft, validate, or update component parser config JSON. Always confirm the target code resource first, fetch current-file component facts through the Pixso MCP surface (`read_component_config_data`, `eval_script`, `query_nodes`, `get_node_dsl`), inspect representative node DSL before complex mappings, and never generate mappings from cached data, stale output, or guesses./pixso-design-editingUse when an agent needs to create, modify, inspect, or refine UI designs inside Pixso with Pixso MCP tools, including Pixso canvas editing, eval_script property edits, Pixso DSL or apply_design work, UI mockups, design review fixes, screenshot-based visual checks, node or frame updates, Pixso design drafts, interface design, visual mockups, canvas changes, or UI redesign requests./pixso-design-to-codeDefault to Pixso get_design_context to turn design nodes, pages, components, or URLs into runnable code in the requested language or project stack, fully converting components, instances, variables, local styles, and assets, and performing visual verification. Fall back to pixso-read-dsl plus get_screenshot only when get_design_context is genuinely unavailable or returns an unusable result.Other plugins' skills for the same job