Skip to content
Dashboard

Teaching agents product design at Vercel

Design Engineer

Link to headingInside the product-design skill

repository/
├── AGENTS.md
├── .agents/
│ └── skills/
│ └── product-design/
│ ├── AGENTS.md
│ ├── SKILL.md
│ ├── references/
│ │ ├── product-judgment.md
│ │ ├── interface-quality.md
│ │ ├── resilience.md
│ │ ├── surfaces.md
│ │ ├── surfaces-{surface}.md
│ │ ├── copy.md
│ │ ├── rules.md
│ │ ├── glossary.md
│ │ ├── patterns.md
│ │ └── coverage-gaps.md
│ └── exemplars/
│ └── pr-{name}.md
└── tooling/
└── scripts/
└── copywriting-eval/
├── fixtures.json
├── rules-checklist.json
└── <fixture>/
├── before/
└── after/

The product-design skill structure inside the repository.

Link to headingHow the skill routes

SKILL.md
---
name: product-design
description: >-
Single entry point for product design and user-facing product implementation
in apps/vercel-site. Use whenever work changes what a user sees, understands,
chooses, or does: shaping requirements and flows; building or redesigning
pages and components; reviewing URLs, screenshots, diffs, or Vercel Agent
findings; improving product copy, information architecture, component choice,
Geist compliance, hierarchy, layout, interaction, accessibility, responsive
behavior, and loading, empty, error, permission, billing, or destructive
states. Trigger on design, UX, UI, usability, flow, onboarding, settings,
dashboard, build, improve, fix, audit, review, polish, simplify, or
production-ready requests. Also use when backend behavior changes a
user-visible outcome. Not for backend-only work with no user-visible effect,
tests with no shipped UI impact, telemetry-only work, documentation, or
marketing content.
---
# Vercel Product Design
Make the interface correct for the user, the product, and Vercel. Working code is not enough: choose the right interaction, make scope and consequences clear, cover reality beyond the happy path, and verify the rendered result.
## Operating Contract
- **Start with the job, not the pixels.** Identify who is acting, what they are trying to accomplish, the product object involved, and what the system will change.
- **Define the outcome before the output.** Establish the current user problem, desired behavior, success signal, and non-goals before choosing a surface or component.
- **Use evidence, not taste.** Trace decisions to product behavior, canonical repository guidance, an accepted design decision, or a verified adjacent pattern.
- **Separate facts from decisions.** Mark assumptions and unresolved product choices explicitly; do not hide them inside implementation details.
- **Treat shipped code as evidence, not automatic precedent.** It proves what exists, not why it is correct. Check it against current components, product behavior, and explicit guidance.
- **Choose the smallest coherent intervention.** Consider better defaults, behavior, or reuse before adding UI. Do not solve one job by creating unrelated settings or abstractions.
- **Decide before decorating.** Resolve information architecture, component semantics, interaction, and state behavior before styling or rewriting copy.
- **Design every reachable state.** Include only states the product can actually enter, but do not stop at the populated success case.
- **Verify the real surface.** Source inspection establishes behavior; a rendered interface establishes visual and interaction quality. Never claim visual verification from code alone.
- **Keep one user-facing entry point.** Invoke `product-design`; route internally to the canonical sources below.
## Request Modes
Resolve the mode from the user's verb and artifact before acting.
| Mode | Typical request | Required behavior |
| --------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Shape | "Design this flow", "How should this work?", feature brief without settled UI | Frame the problem and evidence, compare material alternatives, then define the flow, states, acceptance criteria, risks, and open decisions. Do not edit unless asked. |
| Implement | "Build", "fix", "improve", "make compliant", or "run product-design on everything" | Resolve material product decisions, then implement the smallest coherent end-to-end change within scope. Do not absorb unrelated review findings. |
| Review | "Audit", "critique", "what's wrong?", code review | Inspect source and rendered evidence, then report prioritized findings. Do not edit unless asked. |
| Copy | "Fix the copy", "rewrite these errors" | Edit user-facing language, accessible names, and directly required JSX only. Report structural blockers without silently broadening scope. |
| Harden | "Polish", "production-ready", "handle edge cases" | Preserve the settled product direction while fixing state, resilience, responsive, accessibility, and finish defects. |
When intent is ambiguous, use the narrowest mode supported by the verb. A URL, screenshot, route, or component identifies scope; it does not by itself authorize edits.
A material decision changes the user's task, default, scope, consequence, navigation, interaction surface, or reachable states. Copy mechanics, token replacement, and established component substitutions usually are not material.
## Decision Authority
Resolve conflicts in this order:
1. The user's explicit goal and constraints.
2. Verified user/product evidence and system truth.
3. Repository-canonical guidance: `AGENTS.md`, Geist component APIs, `packages/geist/STYLE_GUIDE.md`, and routed skills.
4. Accepted product/design decisions and exemplars with stable evidence.
5. Verified adjacent shipped patterns in the same product area.
6. General interface heuristics.
## Workflow
### 1. Set scope and mode
Name the target surface and request mode in the work plan or review notes.
### 2. Load product context
Before proposing UI, read the applicable `AGENTS.md` chain, supplied briefs and designs, and the product logic that determines mutations, permissions, validation, errors, and side effects.
### 3. Model the product decision
For Shape, Implement, Harden, full Review, or any material product/flow change, read `product-judgment.md` and write a compact internal brief covering user, job, current behavior, desired outcome, success signal, non-goals, object, scope, action, consequence, reversibility, permissions, and open decisions.
### 4. Map the surface and states
Inventory entry points, visible regions, overlays, transitions, exits, and return paths. Map only reachable states including loading, empty, sparse, populated, validation, error, permission, disabled, optimistic, stale, destructive, and responsive variants.
### 5. Load the routed references
| Need | Load |
| ---- | ---- |
| Product/flow/component decision | `product-judgment.md` + `component-guide` |
| Implementation, material visual change, or full review | `interface-quality.md` |
| Copy or accessible names | `copy.md` + `surfaces.md` routing |
| Layout, typography, color, spacing, Geist APIs | `design-guidelines` + `packages/geist/STYLE_GUIDE.md` |
| Keyboard, focus, forms, touch, animation, URL state, performance | `web-interface-guidelines` |
| Overflow, localization, extreme data, network/error resilience | `resilience.md` |
### 6. Decide, then implement
For each non-mechanical change, be able to answer: what user problem does this solve, why is this component appropriate, what consequence must the interface communicate, which evidence supports the decision, and what is the smallest coherent change?
### 7. Verify
1. Confirm the primary job and acceptance criteria.
2. Run repository lint checks.
3. Inspect relevant compact and wide viewports.
4. Exercise every materially changed reachable state.
5. Verify keyboard order, focus movement, loading behavior, and pointer/touch targets.
6. Test long content, large values, constrained width, and localization/RTL risk.
7. Load `review-design-system` for structural visible changes.
## Product Design Standards
- Make the user's primary task and primary action unmistakable.
- Preserve the user's mental model and current context unless changing it solves a verified problem.
- Name the exact object, scope, and consequence of important actions.
- Use navigation components for navigation and action components for actions.
- Choose surface persistence to match importance.
- Prefer inline disclosure before adding a modal.
- Expose advanced controls when needed without making the default path carry their complexity.
- Prefer strong defaults and direct behavior over adding configuration the user must learn and maintain.
- Use semantic Geist components and their APIs before custom HTML or styling.
- Use hierarchy, spacing, and alignment before adding containers.
- Preserve user input through validation and recoverable errors.
- Keep loading control labels stable; use the component's loading/busy affordance.
- Make destructive actions proportional to impact and provide undo when the system can honestly support it.
- Do not add decorative novelty, motion, or copy unless it clarifies structure, state, or brand intent.
## Review Output
Lead with findings, ordered by user impact:
- **P0:** blocks the primary task, creates severe accessibility failure, or can cause unrecoverable user harm.
- **P1:** likely task failure, misleading consequence, missing critical state, or major responsive/accessibility defect.
- **P2:** meaningful friction, inconsistency, weak hierarchy, or recoverability issue.
- **P3:** minor craft or consistency improvement.
For each finding include: file/line or rendered location, verification status, canonical source, user consequence, and smallest concrete fix.
## Skill Integrity
- Add or change a rule only after current-source verification and human acceptance.
- Record scope, rationale, evidence, exceptions, and a bad/good example.
- Prefer the narrowest destination: canonical source, routed reference, exemplar, lint/eval check, or coverage gap.
- Keep deterministic checks mechanical. Keep judgment in prose with its evidence and degree of freedom.
- Never promote one screenshot, one shipped file, or one reviewer comment into a universal rule by itself.

The product-design SKILL.md. Routing modes, operating contract, and governance.

Link to headingMake findings traceable

rule/destructive-names-action
Source: copy.md > Actionable; verbs.md
Rule: Destructive CTAs follow Verb + Noun.
Never use Confirm, OK, or a bare verb.

Example rule format with stable ID and canonical source.

Link to headingUse linters for faster feedback

prefer-radio-for-few-static-options.js
/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
meta: {
type: 'suggestion',
docs: {
description: 'Suggest Radio buttons when Select has 2-3 static options',
category: 'Design System',
recommended: true,
},
schema: [],
messages: {
preferRadio:
'Select with {{ count }} static options. Consider using Radio buttons — they show all options at once without requiring a click to open.',
},
},
create(context) {
return {
JSXElement(node) {
const opening = node.openingElement;
if (opening.name.type !== 'JSXIdentifier') return;
if (opening.name.name !== 'Select') return;
const hasDynamic = node.children.some(
(child) =>
child.type === 'JSXExpressionContainer' &&
child.expression.type === 'CallExpression',
);
if (hasDynamic) return;
const optionChildren = node.children.filter(
(child) =>
child.type === 'JSXElement' &&
child.openingElement.name.type === 'JSXIdentifier' &&
child.openingElement.name.name === 'option',
);
if (optionChildren.length < 2 || optionChildren.length > 3) return;
context.report({
node: opening,
messageId: 'preferRadio',
data: { count: String(optionChildren.length) },
});
},
};
},
};

Lint rule that recommends radio buttons over selects with 2 or 3 static options.

Link to headingHow we test the guidance with evals

Link to headingKeep the guidance current

Link to headingHow to build product-design into your codebase

Link to heading1. Start with repeated decisions

# Decision: {name}
Status: proposed | accepted | rejected
Scope:
Decision:
Rationale:
Evidence:
Exceptions:
Bad example:
Good example:
Assumptions:
Open decisions:

Decision record template.

Link to heading2. Add an explicit trigger and firm boundaries

When shaping, editing, or reviewing user-facing UI,
load .agents/skills/product-design/SKILL.md.
Applies to:
- user-facing pages and components
- copy, interaction, accessibility, responsive behavior, and states
Skip:
- backend-only work with no user-visible effect
- telemetry, generated files, documentation, and marketing

AGENTS.md trigger and scope boundaries for the product-design skill.

Link to heading3. Separate routing, rules, and evidence

# {Surface}
Load when:
Canonical owner:
## rule/{stable-id}
Scope:
Rule:
Why:
Exceptions:
Source:
## Examples
Bad:
Good:
## Coverage gaps
- {missing decision or evidence}

Rule reference template with stable ID, examples, and coverage gaps.

Link to heading4. Use code for clear rules

Can code identify the failure without rendering?
- No: use agent guidance.
- Yes: can the rule avoid likely false positives?
- No: use agent guidance.
- Yes: does the violation have a concrete fix?
- Yes: use a linter.
- No: use a warning or agent guidance.
Needs product or codebase context: use agent guidance.
Establishes a new standard or product policy: require a human decision.
For either path, add an example or eval that can catch regressions.

Decision tree for choosing between a linter and agent guidance.

Link to heading5. Assign ownership and an update loop

Collector prompt
You are the collector. Gather messages, links, files, and nearby context.
Write raw artifacts only. Do not score candidates or propose rules.
Judge prompt
You are the judge. Validate coverage before grouping related evidence.
Separate verified facts, inferences, and open questions.
Keep every candidate pending. Do not edit the guidance.
Human review
Choose: rule, reference, exemplar, lint rule, eval, coverage gap, or no change.
Require stable evidence, explicit scope and exceptions, and an approver.

Evidence-review prompts for collector, judge, and human review.

Link to headingBuild your own

Ready to deploy?