All posts
AIDesignExperimentLaunchResearch

design.md is not just a file. It's a contract b/w PMs, UXDs & Devs

The design.md file is core, a solution to the design problem. It gave the agent persistent design context. A source of truth it could read before it wrote a single line of code.

Insha Naseem
Insha Naseem
Author
May 14, 2026
10 views 6 min read

# design.md Is Not Just a File. It's a Contract.

And most designers are still treating it like a sticky note.

The Problem Nobody Is Naming Clearly

When MCP servers started becoming a real conversation in the design and engineering world, a lot of noise followed. Everyone had a take.

And somewhere inside all of that noise, a quiet file format started showing up.

design.md

I started noticing it first in developer repos. Then in Figma community discussions. Then someone in a design systems Slack I'm part of dropped it casually, like it was already standard practice. It wasn't. At least not in the way people were implying.

So I did what I do - I dug in. Read the articles. Watched the tutorials. Went past the surface. And here's what I found: most people are fundamentally misunderstanding what this file is for.

They're treating design.md like a fancier version of a style guide. Or a README for designers. Or a prompt template you hand off to an AI agent so it can generate UI.

It's none of those things. And it's all of them. But only if you understand why it exists in the first place.

---

A Bit of Context: Where This Actually Came From

The concept didn't emerge from a design team. It emerged from the intersection of two things happening simultaneously:

First: AI coding agents - Cursor, Copilot, Claude in your terminal - started being used seriously for product development. Not just for boilerplate. For real UI, real component logic, real product decisions.

Second: These agents had no design memory. Every session was cold. Every prompt was stateless. You'd spend twenty minutes explaining your design language to an agent, get something decent, close the session, and the next day you'd start from zero. The agent didn't know your tokens. Didn't know your spacing philosophy. Didn't know that you never use border-radius greater than 8px because your product is enterprise, not consumer.

The design.md file was, at its core, a solution to this problem. It gave the agent persistent design context. A source of truth it could read before it wrote a single line of code.

But here's what the tutorials missed: it's not just for agents.

---

What I Actually Discovered

When I started looking at how designers were actually creating these files - not how engineers were documenting them, but how designers were thinking about them - something clicked.

The best design.md files I came across weren't just token dumps or component inventories. They were written with intent. They had a voice. They explained not just the what but the why.

One file I studied had a section that just said:

"We don't use shadows to create depth. We use space. If a component needs a shadow to feel elevated, reconsider the layout."

That's not a token. That's not a component spec. That's a design philosophy - written in a way that a developer could read, an agent could parse, and a new designer joining the team could internalize in thirty seconds.

That's the real power. design.md is a shared language between humans and machines.

And that changes everything about how you should write one.

design.md ≠ Design System

Screenshot 2026-05-12 at 17.41.39.png

This is the distinction I want to land clearly, because I keep seeing them conflated.

Your design system is the library. The design.md is the briefing document you hand someone before they walk into the room.

The design system says: here are all the buttons.

The design.md says: here's how we think about interaction, here's our token structure, here's what matters most.

One is exhaustive. The other is essential.

Both need to exist. But only one of them an AI agent - or a new contractor, or a developer working at 11pm without Figma access - can act on immediately.

The Figma Angle (This Is Where It Gets Interesting)

Here's the part that genuinely caught me off guard.

Some designers aren't just using design.md as a handoff document. They're using it to set the tone of their Figma file before they design anything.

Think about what that means. Before a single frame is created, before a component is built - they're writing down: what is this product's design personality, what constraints are non-negotiable, what patterns repeat, what decisions are already made.

It becomes a pre-design artifact. A design constitution.

And when you frame it that way, it reframes the whole process. Because now you're not just documenting design decisions after the fact. You're making them deliberately, upfront, in plain language, in a format that scales.

The Figma file becomes the implementation of the design.md. Not the other way around.

That mental shift - from design.md as output to design.md as input - is what separates designers who are getting real leverage from AI workflows and those who are just generating pretty screenshots.

How I Think About Writing One

Based on everything I've absorbed - the tutorials, the articles, the real files I've seen - here's the structure I've settled on. Not prescriptive. Opinionated.

1. Product Identity

What is this product? Who uses it? What's the emotional register? This isn't a marketing brief. It's a design north star. Two to four sentences, maximum.

2. Design Principles

Not values. Principles. Actionable, specific, occasionally uncomfortable. "Clarity over cleverness." "Never make the user count." "Motion is information, not decoration."

3. Token Architecture

Your primitive tokens. Your semantic layer. How they map. An agent needs this to write correct code. A developer needs this to not make up values. This section is non-negotiable.

4. Spacing & Layout Rules

Grid system. Spacing scale. Breakpoints. What changes at what viewport. Density decisions (compact vs comfortable).

5. Typography Rules

Type scale. Hierarchy logic. When to use which level. Responsive behavior. Not just a table of sizes - the why behind the hierarchy.

6. Component Conventions

Not every component. The patterns. "We build compound components, not monoliths." "Every interactive element must have a focus state." "States before variants."

7. What We Don't Do

This is the section most people skip. It's the most valuable one. Explicit constraints prevent implicit assumptions. For agents especially, knowing what not to do is as powerful as knowing what to do.

Why This Matters Now

We're in a moment where the gap between design intent and code output is collapsing fast. Agents are writing real UI. Developers are using AI to make design decisions they don't have context for. Products are being built by small teams moving faster than any process can keep up with.

In that environment, the design.md file is infrastructure. It's the thing that keeps your product from fragmenting when you're moving at speed.

It's not a side guide. It's not a prompt template. It's not a README.

It's a contract - between you and your future collaborators, human or machine. It says: this is how we think, this is what we've decided, this is the standard you're being held to.

Write it like it matters. Because it does.

Does this positive vibes and results only?
Absolutely not! the precision provided in the figma tool and creativity freedom still in hands of designers because Pixel Perfection matters. Comment down what you feel should be improved in a design.md to improve the design and ease the process.

What's Next

In the next part of this series, I'm going to walk through an actual design.md file I wrote for a product - structure, decisions, the things I got wrong the first time, and how I'd do it differently now.

If you're a designer who's been watching the AI workflow conversation from the sidelines, wondering where you actually fit - this is it. This is your surface area.

Start with a file. Write the contract.

ConveGenius Daily Signals

Receive the next signal

Get future product, design, AI, engineering, and team signals directly in your inbox. Only published signals. No spam.

Unsubscribe anytime · No tracking pixels

Reactions
Sign in to react

Discussion

2 comments
Login to comment. Use Google to join the discussion.
Login to comment
  • ananya goswami
    ananya goswami5/15/2026

    You explained this so well 🔥

  • Om Kumar
    Om Kumar5/15/2026

    Really loved this perspective — “Design.md is a contract” 👌🏻

More from Insha Naseem