/aimi-engineering:design:aimi:design:craft [feature description or confirmed brief]from aimi-engineering
Builds a feature with high-quality UX and UI through a structured process: shape design, land visual direction, implement production code, then inspect and improve in-browser.
Ships in aimi-engineering. Installing the plugin adds it to Claude Code.
Build a feature with high-quality UX and UI quality through a structured process: shape the design, land the visual direction, build real production code, then inspect and improve in-browser until the result meets a high-end studio bar.
Before starting, check for existing context. Run in this order:
.aimi/brainstorms/ for a relevant file (semantic match on topic, within 14 days). If found, use it as context for the shape step.Craft is not a first pass. It is a loop with these required artifacts:
Do not let generated mockups replace interface structure, copy, accessibility, responsive behavior, or state design. But do treat the approved mock as a concrete visual contract for composition, hierarchy, density, atmosphere, signature motifs, image needs, and distinctive visual moves. "North star" means "preserve the important visible ingredients in semantic code," not "use it as loose mood."
Run /aimi:design:shape, passing along whatever feature description the user provided.
Wait for the design brief to be fully confirmed by the user before proceeding. The brief is your blueprint, and every implementation decision should trace back to it.
If the user has already run /aimi:design:shape and has a confirmed design brief, skip this step and use the existing brief.
Read ${CLAUDE_PLUGIN_ROOT}/skills/frontend-design/references/index.md to resolve the register (brand vs product) and identify which reference files apply to this surface.
Based on the design brief's "Recommended References" section, consult the relevant reference files under ${CLAUDE_PLUGIN_ROOT}/skills/frontend-design/references/. At minimum, always consult:
${CLAUDE_PLUGIN_ROOT}/skills/frontend-design/references/spatial-design.md for layout and spacing${CLAUDE_PLUGIN_ROOT}/skills/frontend-design/references/typography.md for type hierarchyThen add references based on the brief's needs:
${CLAUDE_PLUGIN_ROOT}/skills/frontend-design/references/interaction-design.md${CLAUDE_PLUGIN_ROOT}/skills/frontend-design/references/motion-design.md${CLAUDE_PLUGIN_ROOT}/skills/frontend-design/references/color-and-contrast.md${CLAUDE_PLUGIN_ROOT}/skills/frontend-design/references/responsive-design.md${CLAUDE_PLUGIN_ROOT}/skills/frontend-design/references/ux-writing.md${CLAUDE_PLUGIN_ROOT}/skills/frontend-design/references/brand.md${CLAUDE_PLUGIN_ROOT}/skills/frontend-design/references/product.mdBefore implementation, generate high-fidelity visual comps when all of these are true:
When those conditions are met, this step is mandatory for both brand and product work in Codex and any harness with built-in image generation. Use native image generation; in Codex, use the built-in image_gen tool via the imagegen skill. If image generation is unavailable, do not ask the user to install APIs or tooling. State in one line that the image step is skipped because the harness lacks native image generation, then proceed.
Do not skip this step because the eventual UI should be semantic, editable, code-native, responsive, or accessible. Those are implementation requirements, not reasons to avoid visual exploration.
Use the mock step to find a stronger visual lane than code-first generation would reliably discover on its own. The brief remains authoritative on user, purpose, content, constraints, states, and anti-goals. The mock clarifies composition, hierarchy, density, typography, and visual tone.
Generate 1 to 3 high-fidelity north-star comps based on the confirmed brief. If shape already produced direction probes, use those results as input and generate a more resolved mock from the winning lane, not another unrelated exploration.
The comps must be genuinely different in primary visual direction, not just color variants.
Show the comps and ask what should carry forward. If the user asks for changes or the best direction is still weak, generate a focused revision before implementation. Continue until one direction is approved, or until the user explicitly delegates the choice.
If the user delegates, pick the strongest direction and explain the decision using the brief, not personal taste.
Before moving to implementation, summarize:
This summary is required before Step 4. It is the handoff between visual exploration and semantic implementation.
Before building, inventory the approved mock's major visible ingredients:
For each ingredient, decide how it will be implemented: semantic HTML/CSS/SVG, generated asset, sourced project asset, icon library, canvas/WebGL, or an explicitly accepted omission. Do not substitute a different hero composition or new visual driver after approval unless the user approves the change.
Treat the mock as a north star, not a screenshot to trace. Do not rasterize core UI text or let the mock override the confirmed brief. But if the live result lacks the mock's major visible ingredients, the implementation is wrong.
If the chosen direction includes image-native visual ingredients that would materially improve the implementation, generate them as separate assets before building.
Good candidates:
For travel, editorial, portfolio, venue, product showcase, entertainment, education, or any other image-led brand surface, visual assets are usually core content, not decoration. Do not ship abstract CSS panels where the approved mock or subject matter calls for real imagery, generated plates, illustrations, maps, product/object renders, or destination scenes.
Do not export assets for core UI text, navigation, body copy, or any structure that should stay semantic and editable in code.
Usually 1 to 5 extracted assets is enough. If the design can be built cleanly in HTML/CSS/SVG, prefer that over raster assets. If the mock contains major visual content that cannot be built credibly in code, asset extraction is not optional.
Implement the feature following the design brief. Build in passes so structure, visual system, states, motion/media, and responsive behavior each get deliberate attention. The list below is the definition of done, not inspiration.
srcset / picture for raster assets, and no project-referenced asset left outside the workspace.This step is critical. Do not stop after the first implementation pass.
Open the result in a browser. In Codex, use browser-use or equivalent browser automation when available; otherwise use Playwright or ask the user for screenshots. Inspect screenshots, not just DOM or terminal output.
Check the experience at the viewports that matter for the brief. Default minimum:
For each viewport, capture or inspect the rendered state and look for visual defects: overlap, clipping, weak hierarchy, off-grid alignment, awkward whitespace, cramped controls, unreadable type, broken imagery, hover-only functionality, layout shift, and text overflow.
After the first browser pass, write a short critique for yourself and patch the implementation. Repeat browser inspection after fixes. Continue until no material issues remain against this checklist:
The exit bar is not "it works." It is: the rendered result looks intentional at all checked viewports, all expected states are handled, no placeholders remain unless explicitly accepted, and the implementation quality would be defensible in a high-end studio review.
Present the result to the user:
Iterate based on feedback. Good design is rarely right on the first pass.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub romulo-banhe/aimi-eng --plugin aimi-engineering21 commands in this plugin
/aimi:brainstormExplore ideas through guided brainstorming with batched questions and codebase research/aimi:deepenEnrich tasks.json stories with research insights/design:aimi:design:auditaimi:design:auditTechnical quality audit for frontend interfaces — accessibility (a11y), performance, theming, responsive design, and anti-pattern detection. Dedicated home for WCAG/a11y checks. Use when you need a systematic, code-level quality report before release./design:aimi:design:critiqueaimi:design:critiqueDesign critique for frontend interfaces — visual hierarchy, information architecture, anti-patterns, and Nielsen's heuristics scoring. Use when you want a design director's honest assessment of a UI./design:aimi:design:polishaimi:design:polishFinal-pass polish for frontend interfaces — catches the small details that separate good work from great work. Use after a feature is functionally complete and you want to align it to the design system, fix visual inconsistencies, and bring everything to a consistent quality level./design:aimi:design:shapeaimi:design:shapeShape the UX and UI for a feature before any code is written. Produces a confirmed design brief. Use when starting a new UI surface, planning a feature's visual direction, or preparing context for /aimi:design:craft. Trigger phrases: design brief, shape this feature, ux planning, ui planning, design before coding.2 plugins ship this exact command · first indexed Jun 4, 2026
Other plugins' commands for the same job