How your agent uses Goop

How a coding agent builds with Goop: the rules file, llms.txt, the screen recipes and a page for each part.

3 min readMarkdown

Goop is written for your agent to read, so it builds screens from the theme's parts instead of drawing its own. You don't need to read any of it yourself: this page says what your agent reads, and what to tell it.

Point your agent at Goop

  1. Open your coding agent in your project.
  2. Paste this:

Use Goop for every screen in this app. Read https://goop.so/llms.txt first, and follow Goop's rules in AGENTS.md if this project has them.

Hand this to your agent
  1. Your agent reads Goop's pages, then builds each screen from Goop's parts.

What your agent reads

  • The rules file. The theme's rules sit in your project's AGENTS.md, which your agent loads in every session: use the theme's part for everything it has, take every colour and size from its tokens, and never restyle it. The setup step writes them (see Install); each theme's rules page shows them in full (the theme guides link each one).
  • Two screen recipes. Before its first file, your agent reads two recipes: the app's frame, and the screen it writes first (an overview, a list, a record, an inbox or settings). It copies both whole, then writes that screen. Each theme's guide lists its own (the theme guides).
  • A page for each part. Every part has a written page: its import, an example, its options, its parts, its states and its keys. Your agent looks a part up there instead of opening the part's code. The same pages are on this site under Components.
  • llms.txt. Each theme ships an llms.txt that lists its docs as plain text, and every page of this site has a plain-text copy beside it: goop.so/llms.txt lists them all.
  • This site's search. Rather than read every page, your agent can search goop.so with a keyword or a plain question, and gets back the matching page sections. Every page tells it where to search.
Show the exact commands

The agent looks a part up with node goop/agent/lookup.mjs part <name> instead of opening the part's source.

It searches the site at https://goop.so/.well-known/search?q=date+picker: a keyword or a plain question, answered with the matching page sections in Markdown, each with its address. Every page names this address in its agent:endpoint tag, and every Markdown copy in its front matter.

Checking a screen

  1. When your agent has built a screen, paste this:

Check the screen you just built with Goop's lint and review tools, look at the pictures they take, and fix anything that is off.

Hand this to your agent
  1. Your agent holds the screen's file to the theme's values, then takes pictures of the screen: at phone width in light, and at desktop width in light and dark. It looks at them and fixes what is off.
What you'll see
The screen is checked
  • Its colours and sizes are the theme's own
  • Pictures of it at phone and desktop widths
Show the exact commands

node goop/agent/lint.mjs <file> holds a file to the theme's values. node goop/agent/review.mjs check <url> <file> runs the lint, then takes pictures of the screen (375 px light, 1280 px light and dark) for the agent to look at.

The free core comes with a README and a short llms.txt; the rules file, the part pages and the lookup and review tools come with Goop Pro.

Where would you like to start?

Free · now

The Goop plugin

A design system for your AI coding agent, so screen ten matches screen one.

/plugin marketplace add goop-so/skillsthen /plugin install goop@goopCodex, Cursor, ChatGPT, the Claude app and more: Connect Goop
FreePro

The components

Every part live, with its props, its keys and what an agent sees. Whole page and app templates, working with sample data.