/magicpath:magicpathfrom MagicPath
Guidelines for working with MagicPath (the AI design canvas) through its MCP server. Use whenever a task involves MagicPath designs or components, projects or canvases, themes/design systems, teams, canvas selections, share links, or MagicPath skills — including installing or exporting MagicPath components into local code, making local UI match a design 1:1, recreating local files or Git repositories on the MagicPath canvas, and creating or editing interactive canvas components. Also use for FigJam-style drawing on the canvas with native shapes: diagrams, flowcharts, wireframes, user journeys, sticky-note boards, and annotations.
Ships in MagicPath. 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.
MagicPath is a multiplayer design canvas whose components are real Vite + React + TypeScript mini-apps. All platform operations go through the magicpath MCP server that ships with this plugin.
Vocabulary: users say "design" for a MagicPath component, "theme" for a design system, and "team" or "workspace" for a MagicPath team. Treat these as interchangeable.
magicpath://guide before any state-changing work, and magicpath://host-guidance before local-file handoffs. If resources are unreachable, the tool descriptions carry the critical mechanics.Call get_context to verify auth and learn the user's identity, teams, and capability map. On an authorization error, have the user authenticate the magicpath server through the client's own MCP authorization flow, then retry. Never ask for raw tokens or attach credentials yourself.
Direction confusion is the main failure mode. Decide the direction first; load only what that direction needs.
| The user wants | Direction | Do |
|---|---|---|
| Use, install, or export a MagicPath design in local code; make local UI match a design; translate a design to another framework | MagicPath → code | Read Using MagicPath designs in local code before writing any files |
| Create a new design on the canvas | code → MagicPath | Must read Before generating a new design before choosing a visual direction or writing UI, even with a detailed brief; apply the Design Defaults below |
| Edit an existing design, or recreate local or repository UI in MagicPath | code → MagicPath | Preserve the existing design or source and apply the Design Defaults below; for recreating code or repos, read Bringing code to the canvas first; if creating a new canvas design, also read Before generating a new design without replacing the source's visual direction |
| Draw diagrams, flowcharts, wireframes, sticky notes, or annotations on the canvas (FigJam-style), or arrange existing canvas shapes | canvas shapes | Read Drawing on the canvas first — components stay the default for anything meant to look real or behave |
| Browse, search, share, or answer questions about projects, components, teams, themes, images, or MagicPath skills | read-only | Call the tools directly; no reference needed |
Never mix directions. Install/export/inspect tools read MagicPath → code; code sessions write code → MagicPath. Never start a code session to serve an export, and never install source to serve a canvas edit.
selectedRevisionId into revision-aware calls so you operate on the version the user is looking at.previewImageUrl — download and view it to understand what a design looks like.generatedName or the target came from their canvas selection, present the matched component (name, project, preview) and stop for confirmation before exporting, installing, or replacing anything.These are the only mandatory stops. Everything else proceeds autonomously.
Every component you create or edit on the canvas follows these rules unless the user explicitly overrides them. They do not apply to the install direction.
w-full, max-w-*, flex/grid, breakpoints). No hardcoded pixel dimensions on outer containers; only intrinsically fixed elements (avatars, icons, media) are exempt.Craft bar: deliberate visual hierarchy, strong typography, restrained color, semantic HTML, visible focus styles, and polished loading/empty/error states.
Watching the agent build live on the canvas is the core MagicPath experience. The link ritual has two ends: put the user on the canvas before the work, and hand them every result link after it.
Before the work:
When the work is done:
Always:
A theme returned by the theme tools contains light/dark CSS-variable maps, optional fonts, and an optional prompt holding the designer's styling instructions — follow that prompt. Apply the variables instead of hardcoded values, load the fonts, and for non-web targets translate the values into native tokens (SwiftUI colors, Android theme XML, etc.) rather than pasting CSS.
To install a MagicPath skill into a local agent: fetch it with the skill tools, create a folder named after its slug, write SKILL.md (frontmatter name + description, body = its instructions), and recreate any bundled files at their relative paths. Ask before writing outside the current project or into global agent configuration.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub magicpathai/magicpath-agent-plugin --plugin magicpath