Working with agents

copy the prompt · read the tokens

Point an agent at the system in three lines. The prompt routes to the source of truth; it deliberately does not restate the rules, so it cannot drift from them.

Copyable prompt

Build this UI with the AMMO design system.
Read https://styles.ammo.tools/AGENTS.md, then https://styles.ammo.tools/tokens.json.
Use the CSS custom properties — never hard-code a hex. Dark is the default.

Works in any agent that can fetch a URL. If it cannot browse, paste the contents of AGENTS.md and tokens.json instead.

The files it points at

Before you write code

  1. Read the tokens first. Link /static/app.css and use the custom properties. Never hard-code a hex that exists as a token.
  2. Pick the appearance before the layout. Dark is the default; data-theme="light" gives the paired light set. Every role is defined for both.
  3. Reuse a documented pattern. If a component exists in this guide, copy its markup and behaviour rather than inventing a variant.

Constraints an agent must hold

Portable widgets

For surfaces outside this repository, these files carry the same behaviour with no build step. Override the --ammo-* variables to match the host theme.

Tabs opt in with data-ammo-tabs on a role="tablist"; panels are matched by aria-controls. Search forms use role="search". The destructive control needs a server-side action and CSRF token of your own.

What an agent must not do