plugins/magicpath/skills/magicpath/SKILL.md
Use when the user mentions MagicPath, designs, UI components, themes, canvas selections, or repo-to-canvas UI work; run magicpath-ai to search, inspect, install, or author components.
npx skillsauth add openai/plugins magicpathInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
MagicPath is a canvas and component platform. Use this skill when the user mentions MagicPath, designs, UI components, themes/design systems, team projects, selected canvas items, or bringing local/repository UI into a MagicPath canvas.
Always run MagicPath CLI commands as:
npx -y magicpath-ai <command> -o json
Use JSON output for data-returning commands and -y for non-interactive installs.
Run:
npx -y magicpath-ai info -o json
If the user is not authenticated, run:
npx -y magicpath-ai login
npx -y magicpath-ai whoami -o json
selection -o json for selected components/images, or active-project -o json for the open project.list-teams -o json, then pass --team "<nameOrId>" to project, search, theme, or member commands.list-themes -o json, then get-theme <id-or-name> -o json; apply CSS variables, fonts, and prompt guidance in the target app.code start, edit only allowed files, then code submit --wait.selection -o json.active-project -o json.npx -y magicpath-ai search "button" -o json
npx -y magicpath-ai list-projects -o json
npx -y magicpath-ai list-components <projectId> -o json
Search/list results include generatedName, project context, owner fields, and often previewImageUrl. Use previews when visual context matters.
Stop and ask for confirmation before installing or editing unless the user gave an exact generatedName, selected canvas item, or component/project id.
Use this when MagicPath is the source and the user's app is the destination.
npx -y magicpath-ai inspect <generatedName> -o json
npx -y magicpath-ai add <generatedName> -y -o json
importStatement and usage.src/components/magicpath/<name>/:
Do not run add just to read code. Use inspect for read-only source. For non-JS projects, inspect and translate the design into the target framework instead of running add.
Use this when the MagicPath canvas is the destination.
npx -y magicpath-ai code start --project <projectId> --dir <workdir> --name "Component Name" --width <px> --height <px> -o json
npx -y magicpath-ai code start --component <componentId> --dir <workdir> -o json
npx -y magicpath-ai code submit --dir <workdir> --wait -o json
Rules for code work:
code start before writing files so the canvas shows the pending work.src/App.tsx, src/index.css, src/components/generated/**, and temporary image assets under assets/**.src/App.tsx alone except for the theme value.src/components/generated/<Name>.tsx; split larger pieces into sibling files there.src/index.css; do not add tailwind.config.js.code start, use the downloaded assetPath, not the short-lived accessUrl.code submit fails, fix only allowed files and resubmit.code context is read-only. Do not use it as the submit path.
list-teams -o json: discover teams/workspaces.list-members --team "<team>" -o json: resolve people to user ids.list-projects --team "<team>" -o json: see team projects only.list-components <projectId> --created-by <userId> -o json: find work by a person in a team project.Personal projects are private to their owner unless shared. Do not search another person's personal work; search team projects instead.
Use share when you need a URL without opening a browser:
npx -y magicpath-ai share <generatedName> -o json
npx -y magicpath-ai share <projectId> -o json
Use view only when intentionally opening the OS browser:
npx -y magicpath-ai view <generatedName>
npx -y magicpath-ai view <projectId>
Never run view commands in parallel.
development
Use when the user wants to spin up / create / launch / provision a DigitalOcean droplet (or "a remote dev box on DO") and connect to it from Codex as a remote SSH workspace.
data-ai
Search through Microsoft Teams chats or channels, triage unread or recent activity, draft follow-ups, and manage Planner tasks through connected Teams data.
tools
Motion / animation context for the `use_figma` MCP tool — animating Figma nodes via manual keyframes, animation styles, easing, and timeline duration. Load alongside figma-use whenever a task involves adding, editing, or inspecting animation on a node.
development
SwiftUI ↔ Figma translation. Use whenever the user mentions Swift, SwiftUI, iOS, iPhone, or iPad — in EITHER direction — translating a Figma design into SwiftUI (design → code), or pushing SwiftUI views / screens / tokens back into a Figma file (code → design). Triggers on phrases like 'implement this Figma design in SwiftUI', 'build this screen in Swift', 'push this SwiftUI view to Figma', 'mirror my Swift code in a Figma file', or whenever a Figma URL appears alongside `.swift` files / an `.xcodeproj`. Routes to a direction-specific reference doc; loads alongside `figma-use` for the code → design path.