Vishnu Chandran
← Back to Learning

Prompt engineering · 5 min read

A universal structure for AI instructions

The 7-part brief I use with ChatGPT, Claude, Cursor and other AI tools. It turns vague answers into work I can actually ship.

Most weak AI output comes from a weak brief, not a weak model. When I started using AI for design and front-end work, I kept getting answers that were technically fine and practically useless: generic layouts, new colors my design system didn't have, code that ignored our conventions.

So I started briefing AI the same way I'd brief a designer joining the team. The structure below is what I use now, whether I'm generating a component, reviewing a flow or writing documentation.

The 7 parts

  1. 01

    Role

    Who should the AI act as?

    A role sets the level of judgement. “Senior product designer” gets you trade-offs and reasoning; no role gets you generic tips.

  2. 02

    Objective

    What do you want the AI to achieve?

    One clear outcome. If I can't write it in a sentence, I'm not ready to ask yet.

  3. 03

    Context

    What background information does it need?

    The product, the users, the constraints of the business. This is the part most prompts skip, and why most answers feel generic.

  4. 04

    Requirements

    What must be included or followed?

    The non-negotiables: the design system, spacing and type rules, responsive behaviour, accessibility level.

  5. 05

    Constraints

    What should it avoid?

    Telling the AI what not to do saves the most rework: no new colors, no hard-coded styles, don't break what already works.

  6. 06

    Expected output

    What should the final result look like?

    Format, depth and audience. A production-ready component and a quick sketch are very different answers.

  7. 07

    Validation

    How should it review and check its own result?

    Ask it to check its work against the requirements before handing it over: usability, consistency, accessibility, responsiveness.

The template

Copy this and fill in each part before you ask.

Template
ROLE
Who should the AI act as?

OBJECTIVE
What do you want the AI to achieve?

CONTEXT
What background information does it need?

REQUIREMENTS
What must be included or followed?

CONSTRAINTS
What should it avoid?

EXPECTED OUTPUT
What should the final result look like?

VALIDATION
How should it review and verify its result?

A real example

Here's how I'd brief an AI to improve a dashboard in an enterprise MIS. Notice how much of it is constraints and validation: that's where a design system protects itself.

Example · Enterprise MIS dashboard
ROLE
Act as a Senior Product Designer.

OBJECTIVE
Improve the existing dashboard UI.

CONTEXT
This is an enterprise MIS application used by staff in several roles, in English and Arabic.

REQUIREMENTS
- Follow the existing design system.
- Keep spacing and typography consistent.
- Make every layout responsive.

CONSTRAINTS
- Do not introduce new colors.
- Do not use hard-coded styles.
- Do not break existing functionality.

EXPECTED OUTPUT
An improved, production-ready dashboard.

VALIDATION
Review usability, consistency, accessibility (WCAG AA)
and responsiveness before returning the result.

What I've learned

  • Context does the heavy lifting. The same request with and without context produces two different quality levels.
  • Constraints save the most time. One line like “no new colors” prevents a whole round of corrections.
  • Always ask for validation. Asking the AI to check its own work against the requirements catches most mistakes before I do.
  • Keep the brief, reuse it. A good brief becomes a template. Mine are versioned alongside the design system.

Want to talk AI in design?

I'm always happy to compare notes on prompts, design systems and AI-assisted workflows.