{"id":"superdesign","name":"superdesign","summary":"Superdesignキャンバス上でフロントエンドのUI、プレゼンテーション、グラフィックを設計または再設計し、主要なAIモデルから選択できます。","body":"Superdesign helps you find design inspiration and generate or iterate design drafts on an infinite canvas, with multiple leading models available for different design tasks and side-by-side exploration. When a design needs a new visual asset, it can also provide image and video generation.\n\n---\n\n# Core scenarios (what this skill handles)\n\n1. **Analyze a codebase for design work** — `superdesign init` builds reusable UI context in `.superdesign/init/`; read [INIT.md](references/INIT.md).\n2. **Design, reproduce, or improve UI** — create pages, features, flows, and new products on the canvas; read [SUPERDESIGN.md](references/SUPERDESIGN.md).\n3. **Choose and compare leading design models** — run `list-models`, select a model suited to the task, or use different models to explore independent directions.\n4. **Create design systems and reusable components** — establish visual foundations, extract patterns, and design connected multi-page experiences.\n5. **Design from a live website or reference URL** — extract and apply its design language; read [WEBSITE.md](references/WEBSITE.md).\n6. **Create or export presentations** — plan an editable slide outline, approve it in chat, generate a real presentation draft, make slide-safe edits, or reconstruct an editable PPTX when requested and supported; read [PRESENTATION.md](references/PRESENTATION.md).\n7. **Create graphics** — posters, covers, social posts, thumbnails, flyers, and ads; read [GRAPHIC.md](references/GRAPHIC.md).\n8. **Generate supporting images or video** — use native image generation when appropriate or choose from Superdesign's generation models; read [ASSET_GENERATION.md](references/ASSET_GENERATION.md).\n9. **Continue or directly correct existing work** — resume saved targets through [RESUME.md](references/RESUME.md), or use [design-with-your-model.md](references/design-with-your-model.md) when direct authoring is the right path.\n\nWhen continuing a draft, follow [SUPERDESIGN.md](references/SUPERDESIGN.md) **ITERATION MODE ROUTING**: replace refines the selected direction with version history; branch is only for alternatives the user wants to compare.\n\n# Step 0 — Environment preflight (BEFORE any CLI step)\n\nSuperdesign runs entirely through its CLI, so you must be able to execute shell commands. Confirm that capability first, before any CLI verification.\n\nIf you have no way to run shell commands in this environment (no terminal/execution tool at all), OR your very first bare `npx --yes @superdesign/cli@latest` preflight attempt fails because command execution itself is unavailable (the harness reports it cannot run commands / there is no shell) then STOP. Do NOT keep retrying or improvise workarounds. Tell the user once, and pick the message that matches where you are running:\n\n- **Standard ChatGPT chat without Work Mode tools** — this exact copy, because the Work tab is the fix:\n\n  ```text\n  Chat isn't supported by the Superdesign plugin. Please switch to the Work tab and paste this prompt in for the full experience.\n  ```\n\n- **Any other harness** (a coding agent whose shell is unavailable or disabled) — do NOT send the ChatGPT copy; there is no Work tab to switch to. Say plainly that Superdesign drives its CLI over the shell, that this session cannot run shell commands, and that they can re-run it in a session with shell access or design in the web app at https://superdesign.dev.\n\n# Step 1 — Is there a codebase to analyze?\n\nTwo entry paths. Choose one with this cheap, deterministic check BEFORE any init or design work.\n\n**No meaningful codebase** (empty workspace, scratch/sandbox dir, no frontend code) — treat the workspace as \"no codebase\" when ALL of these hold:\n\n- No `.superdesign/init/` files already exist, AND\n- No dependency manifest with frontend deps (no `package.json`, or a `package.json` whose deps include no frontend framework/UI library — react, vue, svelte, angular, next, nuxt, astro, etc.), AND\n- No frontend source found (a quick scan for `.tsx`/`.jsx`/`.vue`/`.svelte` files, any `.html`/`.css` files such as a root `index.html` + `style.css`, or a `src/`/`app/`/`components/` dir with UI files, turns up nothing).\n\n→ SKIP repo init entirely. Do NOT \"analyze\" an empty sandbox, and do NOT ask the user to point you at a repo they don't have. Instead, gather design context conversationally FIRST: ask what they want to build, the target audience/platform, style/brand preferences, and any reference designs or inspirations. Then design from that conversation via the **BRAND NEW PROJECT** path in [SUPERDESIGN.md](references/SUPERDESIGN.md).\n\n**Real codebase present** (any frontend code, or an existing `.superdesign/init/`) — repo init must have completed at least once before designing. Reuse a valid initialized target through Step 1.5; run the full analysis only when init is incomplete or warm state cannot be used.\n\n**Exception — standalone extraction:** if the task is ONLY to extract a site's design DNA or set/refresh `design-system.md` from a URL (`extract-website` → `design-system.md`, no design generation; read [WEBSITE.md](references/WEBSITE.md) for the recipes), run it WITHOUT repo init — extracting an external site's style doesn't require analyzing the user's codebase. Init is still required before generating designs FOR the existing codebase's UI (reproducing/redesigning an existing page).\n\n**Exception — graphics:** posters/marketing assets (scenario 7) skip init even in a real codebase — the brief carries the style, and most of init's output (components, layouts, routes, pages) has no bearing on a fixed-canvas artwork. The graphic brief round asks whether the artwork should be on-brand with this repo's product ([GRAPHIC.md](references/GRAPHIC.md) Step 1); only an on-brand \"yes\" pulls in the design-system/brand context — running init first only if that context doesn't already exist.\n\n**Exception — presentations:** slide decks (scenario 6) skip UI repo init by default because routes, components, and page dependency trees do not help deck creation. Follow [PRESENTATION.md](references/PRESENTATION.md). Use narrowly relevant product documents, design-system context, and Brand Assets when the user wants an on-brand product presentation; run init only when matching the codebase brand is required and no usable brand/theme context exists yet.\n\n**Exception — image/video generation:** a standalone generated asset (scenario 8) skips init even in a real codebase. Read [ASSET_GENERATION.md](references/ASSET_GENERATION.md) and gather only the project, brand, reference, or destination context the requested asset actually needs. If the asset is one step inside a broader UI, presentation, or graphic-design task, follow that task's normal init/brief path and use asset generation only at the point where a new visual is needed.\n\n# Step 1.5 — Resume before rediscovery (real-codebase UI path)\n\nBefore reading init artifacts or source files, check `.superdesign/resume.json` for the requested route/feature. A matching target defaults to [RESUME.md](references/RESUME.md) regardless of whether the user says \"continue\", \"change\", \"redesign\", or gives only a direct instruction such as \"make the dashboard darker\". Intent phrasing never decides warm versus cold routing.\n\nApply the saved target's trust/structural checks FIRST. A safe, structurally valid target reuses the saved project, draft, component records, design direction, and exact `--context-file` bundle: matching hashes go to warm resume, while mismatches go to incremental refresh without cold rediscovery. If a request needs code understanding not captured by the active draft metadata, use RESUME.md's targeted context-expansion rule; do not rerun full discovery merely to understand that request.\n\nUse the cold path only when no saved entry covers the requested target, the user explicitly asks to start over from fresh ground truth, the state is unsafe/structurally invalid, or targeted repair determines it is stale beyond incremental repair. A new agent session, different wording, or a fingerprint mismatch alone never forces cold routing.\n\n# Init: Repo Analysis (real-codebase path)\n\nWhen a real codebase is present (per Step 1, and no Step 1 exception applies) and init is NOT complete, you MUST automatically:\n\n1. Create the `.superdesign/init/` directory\n2. Read [INIT.md](references/INIT.md)\n3. Follow its instructions to analyze the repo and write context files\n\n**Init-complete test (one decidable rule, used everywhere):** init is complete only if all six named files below exist AND are non-empty. A directory that is missing any of them, or holds an empty one (e.g. an interrupted init), is NOT complete — rerun the full init, which regenerates all six; overwriting existing files is expected and fine.\n\nDo NOT ask the user to do this manually — just do it.\n\n# Init Files (cold/stale context path)\n\nFor a first design of a target, or after [RESUME.md](references/RESUME.md) determines that saved context is stale/unusable, read all six files before collecting the target context:\n\n- `components.md` — shared UI primitives with full source code\n- `layouts.md` — shared layout components (nav, sidebar, header, footer)\n- `routes.md` — page/route mapping\n- `theme.md` — design tokens, CSS variables, Tailwind config\n- `pages.md` — page component dependency trees (which files each page needs)\n- `extractable-components.md` — components that can be extracted as reusable DraftComponents\n\nOn a valid warm resume, only check that all six files exist and are non-empty — do NOT read their contents. Reuse the target's saved context bundle; read only narrowly selected source files when [RESUME.md](references/RESUME.md) explicitly triggers targeted context expansion.\n\n**When cold-designing an existing page**: First check `pages.md` for the page's dependency tree — the candidate set of `--context-file` files. Pass them under the PAYLOAD BUDGET rules in [SUPERDESIGN.md](references/SUPERDESIGN.md) so the payload does not 400. Then also add the globals.css tokens, tailwind.config, and design-system.md. Persist the final selection per [RESUME.md](references/RESUME.md).\n\n# Superdesign CLI (MUST use before any command)\n\n**IMPORTANT: Run the CLI on demand with `npx --yes @superdesign/cli@latest`. Start every session with the bare command — it IS the preflight.**\n\n1. Preflight once:\n   ```\n   npx --yes @superdesign/cli@latest\n   ```\n   The bare command verifies everything in one shot: that the CLI runs at all, an `auth:` status line (`authenticated as team \"…\"` vs `not authenticated — run superdesign login`), and a list of recent projects. On a valid warm resume, use the saved `projectId`/`activeDraftId` directly. Otherwise read the recent-project list when deciding whether to reuse an existing project or `create-project`; `fetch-design-nodes --project-id <id>` is the fallback for recovering draft ids when durable resume state is unavailable or rejected.\n\n2. If the `auth:` line says not authenticated, run login NOW, before any real command:\n   ```\n   npx --yes @superdesign/cli@latest login\n   ```\n   Wait for login to complete successfully before proceeding.\n\n3. Run the intended commands with the same `npx --yes @superdesign/cli@latest` prefix. A session can still expire mid-flow — handle a later auth/login error per the failure block below.\n\n> **Never assume the user is already logged in** — read the preflight's `auth:` line instead of guessing or probing with real commands.\n\n## When a command fails\n\n- **Auth/login error** (the CLI ran but rejected the session): run `login` (above), then retry the intended command ONCE. If login itself fails (headless/no-browser auth, expired flow, user declines), tell the user plainly and STOP — do not keep retrying or improvise.\n- **`extract-website` fails or times out** (it can take ~60–120s): retry ONCE. If it still fails, offer to continue WITHOUT the extraction (design from the conversation / existing design system) rather than blocking.\n- **General rule:** retry a failed command at most once. If `create-design-draft` or `iterate-design-draft` still fails, continue via [design-with-your-model.md](references/design-with-your-model.md); otherwise report the failure and stop.\n\n## Command examples\n\nAlways use the full on-demand runner prefix, e.g.:\n\n```bash\nnpx --yes @superdesign/cli@latest create-project --title \"X\"\n```\n\nFull invocations live at their use sites — the SOPs in [SUPERDESIGN.md](references/SUPERDESIGN.md) and the graphic steps in [GRAPHIC.md](references/GRAPHIC.md); flag sets come from `<command> --help`, and the COMMAND CONTRACT in [SUPERDESIGN.md](references/SUPERDESIGN.md) covers the traps help leaves out.\n\nThe CLI defaults to an agent-optimized output (compact TOON plus `help[]` next-step hints); add `--json` only when you need the full machine-readable payload.\n\n# Surface the canvas URL\n\nEvery project/draft command's default output includes a `canvas:` link (the project canvas, `https://superdesign.dev/teams/<teamId>/projects/<projectId>`) and, for drafts, a `preview:` link (`https://superdesign.dev/preview/draft/<draftId>`). Read these from the command output — do NOT hand-construct them (the ids are server-generated).\n\nAfter creating a project or design draft, and at natural review moments (after `iterate-design-draft` or `execute-flow-pages`), give the user the `canvas` URL as a clickable link and invite them to open it to watch designs stream in and leave feedback. Adding `?live=1` to the canvas URL opens the live view where drafts appear as they generate.\n\n## Browser Choice\n\n`create-project` auto-opens the canvas in user's browser by default. Leave it on, and tell the user the canvas was opened (with the `canvas` URL as a clickable link). Only pass `--no-open` when there's no user-facing browser (CI, headless).\n\n# Images and local assets\n\nBefore generation, inventory only the images the user attached or the narrowly relevant local assets selected for this target. Follow [SUPERDESIGN.md](references/SUPERDESIGN.md) **ASSET PURPOSE ROUTING**: temporary screenshots/references go to canvas reference nodes; logos, fonts, and reusable identity imagery go to Brand Assets; final-content imagery stays project content. Pass returned node ids or Brand Asset keys with `--reference-id` so create, iterate, and flow generation receive the actual pixels. When any source component or requested design has a logo position, enforce SUPERDESIGN.md's **Logo invariant**: an available appropriate Brand Asset logo must visibly render there, including inside reusable components; never substitute initials, emoji, generic marks, invented SVGs, or text alone. For a pasted direct public image URL or a website reference, read [WEBSITE.md](references/WEBSITE.md) and materialize only the selected visual through the same upload flow. Never bulk-upload the repository and never put local filesystem paths into draft HTML.\n\n# After generating: offer to go further\n\nAlways close with a short, warm follow-up that offers to go further (on every surface). Ask one question with 2 to 3 concrete options tailored to what you just made, not a generic list. For example: try a different hero image or key visual direction, try an alternate layout or composition, or generate a few more variations or asset ideas as surprises. Only generate after the user picks, since every generation spends credits.\n\n(Graphics get a dedicated one-round visual self-review before this close — [GRAPHIC.md](references/GRAPHIC.md) Step 5. UI drafts are reviewed by the user on the canvas.)\n\n# How it works\n\nRead [SUPERDESIGN.md](references/SUPERDESIGN.md), then follow its instructions.\n\nFor an image or video generation request, read [ASSET_GENERATION.md](references/ASSET_GENERATION.md). Load the other scenario-specific references linked above when those scenarios apply.","author":"@superdesigndev","ownerProfile":null,"authorContacts":null,"sourceUrl":"https://github.com/superdesigndev/superdesign-skill/tree/main/skills/superdesign","license":"MIT","category":"document","lang":"en","tokens":3522,"stars":0,"calls30d":1,"claimed":false,"visibility":"public","origin":"crawler","version":"0.1.0","createdAt":"2026-08-22","updatedAt":"2026-08-22","files":[{"path":"agents/openai.yaml","size":192,"sha256":"0e1c60a46d7837a3b47fb5a034d9b210b06af8fef7b33090122f9672ca5abb84"},{"path":"INIT.md","size":438,"sha256":"fa40e7c282d2520544167084d21a8b277e13a6ea299058c5021dd793f86c99c7"},{"path":"references/ASSET_GENERATION.md","size":6377,"sha256":"655fdb83dc3d9603dcf34229f7dc37973275e9484eb4eef75fc8acc6313cb572"},{"path":"references/COMPONENTS.md","size":4756,"sha256":"03935ff4b869327b31146cf7ee7020aa90044b6921567f96d4180810685bf7fb"},{"path":"references/design-with-your-model.md","size":3193,"sha256":"986f7dcab61a5d5ad74dfdb6c4c6b43378c4887cd776719b944233aed9c40cf2"},{"path":"references/GRAPHIC.md","size":16510,"sha256":"873c40621ac75627411b5a0734728f085dc7f41cb1f5f5786102cdb5a55b6092"},{"path":"references/INIT.md","size":8379,"sha256":"b262b4dc10705eac6caeaa7f55cae1814a71b186667d27b6a89ed776ef9f48ec"},{"path":"references/PRESENTATION.md","size":13362,"sha256":"1e090e67e94d544aff8d5bb99d1aa36f11cc745b45ad6cfef65c734efa038639"},{"path":"references/RESUME.md","size":21554,"sha256":"84c7b05038bb81f5c8067f385923be09f17ef2fe10c872504bbab3ab6986c3da"},{"path":"references/SUPERDESIGN.md","size":48403,"sha256":"cecaa6ca1ef8ce39430f7f2c8d786e744e6c2a3eda2fde780d22f8162c04f791"},{"path":"references/WEBSITE.md","size":4648,"sha256":"5cd4a0fd36249bd18c1f6d2f683b3c9d96c9d136fa7a7ba5832966b09e16b4fe"},{"path":"SUPERDESIGN.md","size":459,"sha256":"b243e0dba9889115c8b363ebe6e1b3b286b59c54293b76927e78a3febabea610"}],"requires":{"mcp":[],"tools":[]},"safety":{"flags":[],"scannedAt":"2026-08-22","hasScripts":false,"networkEndpoints":["cdn.example.com","superdesign.dev"]}}