- Floating pill tab bar with raised Scan button; Booths tab becomes Venue map (tappable floor plan, filters, booth directory) - Home: points card with tier progress, event card, mystery lead tile, badges strip - Achievements: tier timeline (Valley Walker → Summit Pioneer) and badges - Me: profile, stats, perforated ticket pass carousel - Scan result: confetti, count-up points, tier progress; tier-unlock modal and badge toasts; welcome and merch-order toasts; leaderboard podium - Add aidesigner agent skills (npx @aidesigner/agent-skills init) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7.9 KiB
7.9 KiB
Use AIDesigner for the request in $ARGUMENTS.
Scope Defaults
- Spend AIDesigner credits only when the user explicitly asked to use AIDesigner or clearly opted into that workflow.
- Prefer the connected
aidesignerMCP server forwhoami,get_credit_status,generate_design, andrefine_design. - Treat HTML as a design artifact first and implementation input second.
Pre-Flight
- Gather design context before spending credits:
- Read
DESIGN.md,.aidesigner/DESIGN.md, ordocs/design.mdif present. - Inspect theme files, tokens, fonts, shared components, and the target route or page.
- Read
- Write a compact internal design brief from that repo context:
- platform and surface
- product goal and main user action
- visual language to preserve, evolve, or reset
- important repo patterns, constraints, and content types
- concrete typography or tokens only if preserving the current repo aesthetic
- Split the task into:
- a visual reference prompt for AIDesigner
- a detailed implementation spec you keep local
- If this will use
mode: "clone", check for screenshot-capable browser tooling before spending credits.- If Puppeteer or equivalent browser automation is missing, install
puppeteerin the repo with the repo package manager first. - Do not start clone generation when visual QA tooling is known to be unavailable.
- If Puppeteer or equivalent browser automation is missing, install
Workflow
1. Build The Visual Prompt
Rewrite $ARGUMENTS into a broad visual reference prompt before calling AIDesigner.
- Focus on product type, audience, UX priorities, overall feel, and non-negotiable constraints.
- Let AIDesigner choose the specific layout, supporting sections, composition, and most stylistic details.
- Avoid exact section orders, card counts, micro-copy, and detailed per-element placement unless the user explicitly requested them.
- Do not pass exhaustive content outlines, tables, command lists, API fields, or other documentation detail dumps into the prompt.
- If the user gave a very specific page spec, compress it into a smaller visual brief for AIDesigner and save the full spec for local implementation.
- If matching an existing aesthetic, it is fine to mention concrete repo colors, fonts, and tokens.
- If this is a new design or revamp, keep styling guidance broad and do not hard-code exact colors or gradients unless the user explicitly asked for them.
2. Generate Or Refine
- Keep MCP calls prompt-driven unless the user explicitly asked for a reference-URL workflow.
- Use
mode: "clone"only for a near-1:1 recreation or faithful copy of a specific URL. - Use
mode: "enhance"only to improve or modernize a specific URL while preserving its content or intent. - Use
mode: "inspire"only for a new design inspired by a specific URL or its visual style. - Before
mode: "clone"generation or refinement, make sure Puppeteer or equivalent screenshot tooling is installed. If it is missing, install it before you spend credits. - If the user only mentions a URL as context, do not pass
modeorurl. - If the user wants one of those reference workflows but has not provided the URL yet, stop and ask for it before spending credits.
- If a prior run already used a reference mode and the user still wants that workflow, use
refine_designand keep the samemodeandurl. - If the user explicitly wants to move away from the reference, drop
modeandurland continue prompt-only. Refine from the latest HTML artifact instead of a prior run id if you need to avoid inheriting the old reference mode.
After a successful MCP generation or refinement, 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 needs re-auth:
- If
AIDESIGNER_API_KEYis already set, usenpx -y @aidesigner/agent-skills generate --prompt "<final prompt>". - Otherwise stop and show setup instructions:
- Recommended:
npx -y @aidesigner/agent-skills init, then reconnect through the host's MCP flow and sign intoaidesigner. - Cross-repo:
npx -y @aidesigner/agent-skills init --scope user - Fallback: set
AIDESIGNER_API_KEYand retry
- Recommended:
3. Preview, Adopt, And Port
- After every successful run, use the preview image and run
npx -y @aidesigner/agent-skills adopt --id <run-id>. - For
mode: "clone", run a visual QA loop before calling the result done:- screenshot the result with browser automation, using the preview output, host browser tools, or Playwright/Puppeteer
- if the page is integrated into the repo, prefer screenshots of the integrated implementation
- compare those screenshots against the reference URL and any available screenshots
- check section order, layout geometry, spacing, typography, image placement, backgrounds, and repeated block counts
- text-only or DOM-only verification is not sufficient
- if no screenshot-capable browser tooling is available, stop and ask to install or enable one before claiming QA is complete
- fix remaining fidelity issues locally yourself in the HTML artifact or repo code
- rerender the preview after edits and repeat until only minor differences remain
- use
refine_designonly if the clone is fundamentally off and local edits are a worse option
- The design artifact defines two distinct layers - port them differently:
- Design system layer (match precisely): extract and faithfully reproduce every visual decision from the artifact - palette, gradients, shadows, radii, border styles, spacing, typography values, background effects, opacity, transitions, and layout structure. Convert them into the repo's native token system rather than approximating with "close enough" utility classes. When the artifact defines exact values, those are the spec.
- Content layer (adapt freely): copy, section count, placeholder data, button labels, testimonial quotes, and other content should come from the user's actual product context and request unless they explicitly asked for a close recreation.
- In clone mode, treat reference-provided media assets as fidelity-critical. Preserve real product screenshots, logos, hero images, photos, illustrations, and videos when they exist.
- Do not replace real asset URLs with homemade mocks, inline SVG stand-ins, or fake reconstructed UI unless the originals are unavailable or the user explicitly asked for substitution.
- Before signing off a clone port, run a simple asset audit so key screenshots and logos present in the artifact/reference are still present in the integrated implementation.
- When porting the design system layer, work methodically:
- First extract theme tokens from the artifact config or styles and define them in the repo token system.
- Then port each component's visual structure, preserving exact spacing, sizing, and effects.
- Do not substitute approximate values such as
pt-48forpt-32,min-h-screenformin-h-[90vh], ortext-6xlfortext-[64px].
- For very large HTML ports, split the implementation into section-level or component-family subagent tasks.
- Keep tokens, shared primitives, route shell, and final integration in the main agent.
- Use subagents only for independent leaf sections, and give each one a tight file scope plus the exact artifact fragment it must port.
- Apply the full user requirements during repo implementation using local content, behaviors, and component structure. Do not ship raw standalone HTML into app code.
Required Outputs
At the end of a successful run, provide or record:
- the final prompt or a concise prompt summary
- the remote run id if MCP returned one
- the local run id
- the preview image path
- the adoption brief path, or confirmation that adoption analysis ran
- the intended route or component targets for integration
- any blockers or remaining risks