Use this skill when the user wants to create or redesign a frontend, landing page, dashboard, marketing page, or other UI with AIDesigner. Prefer the connected aidesigner MCP server for generate/refine, then use the local AIDesigner CLI for artifact capture, preview rendering, and repo-native adoption guidance.
Use AIDesigner to establish a strong visual direction, then port that direction into the repo's real frontend stack instead of shipping raw HTML.
aidesigner MCP server for whoami, get_credit_status, generate_design, and .refine_designaidesigner MCP server. That uses OAuth-backed account credits instead of API keys.AIDESIGNER_MCP_ACCESS_TOKEN is the preferred bearer token.AIDESIGNER_API_KEY remains an explicit fallback for CI or manual usage.AIDESIGNER_MCP_URL and AIDESIGNER_BASE_URL are optional.curl calls.npx -y @aidesigner/agent-skills <verb> ...
Supported verbs:
initdoctorcapturepreviewadoptDESIGN.md, .aidesigner/DESIGN.md, or docs/design.md if presentclone for a faithful recreation of a specific URLenhance for a redesign that preserves a specific URL's content or intentinspire for a new direction based on a specific URL's visual styleclone, verify screenshot-capable browser tooling before spending credits.
puppeteer in the repo using the repo package manager before generation so visual QA can happen after the run.aidesigner MCP server, call its generate_design or refine_design tool with a compact repo summary as repo_context.clone when the user explicitly wants a near-1:1 recreation, copy, match, or faithful clone of a specific URL.enhance when the user explicitly wants to improve, redesign, modernize, or upgrade a specific URL while preserving its content or intent.inspire when the user explicitly wants a new design inspired by a specific URL or its visual style.clone generation or refinement, confirm screenshot tooling is available. If Puppeteer or equivalent browser automation is missing, install it first in the repo rather than discovering that blocker after spending credits.mode or url.clone, enhance, or inspire but no reference URL is available yet, stop and ask for the URL before spending credits.refine_design and keep the existing mode and url as long as the user still wants that same reference workflow.mode and url and continue prompt-only. If needed, refine from the latest HTML artifact instead of reusing a prior run id so the new iteration does not inherit the old reference.DESIGN.md or .aidesigner/DESIGN.md after the first pass. Do not silently invent one during setup.If MCP succeeds, immediately persist the returned HTML into a local run:
npx -y @aidesigner/agent-skills capture --html-file .aidesigner/mcp-latest.html \
--prompt "<final prompt>" \
--transport mcp \
--remote-run-id "<run-id>"
If MCP is unavailable or the server says auth is expired:
AIDESIGNER_API_KEY is already configured, use npx -y @aidesigner/agent-skills generate or npx -y @aidesigner/agent-skills refine as the explicit fallback path.npx -y @aidesigner/agent-skills init in this repo, or npx -y @aidesigner/agent-skills init --scope user for all reposaidesigner server and finish browser sign-inAIDESIGNER_API_KEY and retry.capture or run:npx -y @aidesigner/agent-skills preview --id <run-id>
npx -y @aidesigner/agent-skills adopt --id <run-id>
clone, do not stop at the first generation.npx -y @aidesigner/agent-skills preview, host-provided browser tools, or local automation such as Playwright or Puppeteer.refine_design only when the clone is fundamentally off and a local correction pass would be slower or less reliable than another model iteration.pt-48 for pt-32, min-h-screen for min-h-[90vh], or text-6xl for text-[64px].After a successful run, provide or record all of the following:
.aidesigner/runs/<run-id>/AIDESIGNER_API_KEY is available, stop and explain how to run npx -y @aidesigner/agent-skills init and reconnect through the host's MCP flow.