How to Make AI Coding Assistants Understand Design: 7 Skills
This article breaks down seven reusable skills that help AI coding assistants produce more intentional, maintainable interface designs. It covers design-first instructions, aesthetic parameters, design tokens, layout rules, responsive and accessibility checks, motion guidelines, and a review loop, showing how developers without a design background can turn visual quality into a repeatable engineering process.
1. The Problem: Why AI-Generated Pages Look Fine but Feel Forgettable
When you give an AI coding tool a single prompt like “build me a landing page,” it will most likely return a highly templated result: a purple gradient background, a sans-serif font, a hero headline saying something like “Build faster with AI,” three equal-width rounded cards with line icons below it, and sometimes even a pricing table nobody asked for. The output is not ugly. The problem is the absence of trade-offs: there are no deliberate visual decisions, only a statistically “safe answer.”
For indie developers, the pain is more concrete. Mac apps, directory sites, and small SaaS tools all need landing pages or admin interfaces, but hiring a designer for every small project is not realistic. That turns the issue into a real engineering problem: how to turn design from something inspiration-driven into something process-driven, so developers without a design background can consistently ship interfaces that are maintainable and reviewable.
Over the past few months, one practical direction has been to build a “skill” system around AI coding tools: a set of structured Markdown instruction files that constrain design decisions before any code is generated. This article strips away product-specific details and abstracts the approach into seven general capabilities.
2. Skill 1: Design-First Instruction
The core idea is to settle on a clear visual direction before writing the first line of code, instead of letting the model improvise.
Possible directions include Editorial, Brutalism, Retro, Organic, and others. What matters is that the direction is singular and verifiable. A reusable prompt sketch:
Before generating any code, explain in three sentences:1) The visual direction (choose one from the given list)2) The default patterns that are explicitly forbidden (centered stacking, purple gradients, sans-serif + gradient combinations)3) The single visual focal point of the hero section
The comparison in practice is straightforward. Without constraints, the output is still the familiar gradient template. With constraints, the page might switch to a warm off-white background, a serif display font for the headline, and a hero screenshot that breaks out of the grid. Even if you still need to fine-tune the accent color manually, the page already shows that a design trade-off was made.
Watch for the reverse risk: overly strong constraints can lead to overkill, forcing a plain internal dashboard into maximalism. The fix is to declare the context (internal tool vs. customer-facing) and the desired level of restraint in the prompt.
3. Skill 2: Aesthetic as Parameters
Turning aesthetics into adjustable knobs is the most underrated of the seven skills. You can define three 1–10 parameters at the top of the main skill file:
DESIGN_VARIANCE: 1 means fully symmetrical and orderly; 10 means artistically disordered.MOTION_INTENSITY: 1 is close to static; 10 is cinematic motion.VISUAL_DENSITY: 1 is gallery-like whitespace; 10 is a data-dense cockpit.
The value of parameterization is reproducibility and negotiability: team members can discuss numbers instead of arguing about something “feeling off.” A landing page might use (4, 3, 2), while an admin dashboard might use (2, 1, 8).
4. Skill 3: Design Tokens and Theme Systems
One root cause of templated output is the lack of an abstraction layer. Extracting colors, the type scale, spacing, radii, shadows, and elevation into tokens allows you to swap themes without touching layout code:
{"color": { "bg": "#F7F3EC", "fg": "#1C1B19", "accent": "#2F6F5B" },"font": { "display": "serif", "body": "system-ui" },"space": [4, 8, 12, 24, 40, 64],"radius": { "sm": 4, "md": 8, "lg": 16 }}
A common industry practice is to ship several preset themes for slides, documents, or throwaway HTML pages. For production products, however, a hybrid model is usually better: build your own tokens plus a small set of presets, so every project does not end up wearing the same face.
5. Skill 4: Layout and Component Rules
Explicitly forbid “everything centered, stacked vertically block after block.” Instead, define a grid and rhythm: a 12-column grid, asymmetric splits, and permission for hero elements to bleed in order to break the boundary. Also constrain component semantics to avoid auto-generating filler modules nobody asked for, such as pricing tables, testimonial walls, or FAQs. One hard rule worth adding: every section must map to an item in the requirements list, or it is not generated.
6. Skill 5: Responsive and Accessibility (A11y)
Design quality must not come at the expense of usability. The skill file should include built-in checks: a breakpoint strategy (mobile first), body text contrast of at least 4.5:1, visible focus states on interactive elements, alternative text required for images, and semantic tags preferred over pure div stacking. These constraints should act as a post-generation checklist that the tool verifies item by item before output.
7. Skill 6: Motion and Feedback
Motion should serve hierarchy and causality, not decoration. Suggested rules: 120–240ms duration, consistent easing, transitions only on position and opacity, and respect for the system’s “reduce motion” preference. Example:
@media (prefers-reduced-motion: reduce) {* { transition: none !important; animation: none !important; }}
8. Skill 7: The Review Loop
The last skill turns subjective taste into executable acceptance criteria: screenshot comparison, token consistency checks, a check that the hero has a single focal point, and a blacklist scan for templated traits (gradient + centered + three cards). Adjust only one parameter per iteration so changes are easy to attribute.
9. Putting It into Practice
In AI coding environments that support a skill mechanism, you can turn these seven capabilities into a local instruction directory. If you use Baidu AI Cloud’s development toolchain, you can also keep tokens and the acceptance checklist in the code repository and pipeline, and track the impact of page revisions with logging and monitoring alerts. The overall path is: set the direction first, tune the parameters second, and verify with the checklist last, so that “looking good” becomes an engineering outcome rather than a coincidence.
