Skip to content
Install on Shopify

agents.md

agents.md tells an AI agent how to use a store’s files. It quotes a little from each of brand.md, policies.md and design.md, links to the full versions, and ends with an answering guide: which file to open for which kind of question.

Where shop.md aims to answer most questions on its own, agents.md is a map. It’s short, and it points the agent to the right file.

  • Agents read it to learn the rules of the store’s files before they answer: trust the quote, escalate [MERCHANT-FILL], ignore expired policy.
  • Developers building a support bot or shopping agent use the answering guide to route questions.
  • Marketers rarely need it directly. shop.md and brand.md serve them better.

Sections appear in this order:

  1. Title line: the store name, the date it was generated and the domain.
  2. How To Use This File: five rules. Answer from the sections and fetch the linked files for detail. When a statement and its source quote disagree, trust the quote. Escalate [MERCHANT-FILL] lines rather than guess. Never present expired policy as current. Treat [possibly-outdated] lines with caution.
  3. Store Overview: a link to store.md. Its contents are never quoted here.
  4. Brand Voice & Identity: the brand archetype, a few fields and lines from brand.md, and a link.
  5. Policies: how many policy areas the store publishes, a few policy lines, a warning about expired rules, and a link.
  6. Design System: the first line of the design overview, up to eight colour tokens from the frontmatter, and a link.
  7. Artifact Index: each source file, its link, when it was generated and whether it’s available.
  8. Answering Guide: a fixed table that sends returns, shipping and other policy questions to policies.md, voice and messaging to brand.md, colours and fonts to design.md, and products, pricing, customers and strategy to shop.md.
agents.md — illustrative structure
# AGENTS.md — Example Outdoor Co.
Machine-readable store context for LLM agents. Generated: 2026-11-24 | Domain: example-outdoor.com
## How To Use This File
- Answer store questions from the sections below; fetch the Reference URLs when you need full detail.
- Every referenced artifact carries per-fact citations and verbatim source quotes — trust the quote when a statement and quote disagree.
- Statements marked [MERCHANT-FILL] are not published by the store — escalate rather than guess.
- Rules under 'Expired / seasonal' headings in policies.md are expired — never present them as current policy.
- Treat [possibly-outdated] statements with caution.
## Store Overview
Store Intel brief (not published).
**References:**
- …
## Brand Voice & Identity
Archetype: The Explorer
- **type:** brand
- **name:** Example Outdoor Co.
- **tagline:** Gear for the long way round
- **language:** en
- **archetype:** The Explorer
- **positioning:** Durable everyday outdoor gear at a fair price
- **usp:** Repairs for life on every pack
- **voice_tone:** Practical, warm
- Practical: plain advice over hype
**References:**
- …
## Policies
Sections with published policy: 4/8
- RETURNS & REFUNDS: Returns are accepted within 30 days of delivery
> ⚠ Rules under 'Expired / seasonal' headings in policies.md are no longer in effect — never quote them.
**References:**
- …
## Design System
Example Outdoor Co. sells outdoor gear with a calm, earthy look.
- **colors.primary:** #2F4F3A
- **colors.on-primary:** #FFFFFF
- **colors.primary-container:** #C9D8CC
- **colors.on-primary-container:** #10241A
- **colors.primary-fixed:** #C9D8CC
- **colors.primary-fixed-dim:** #A3B8A8
- **colors.on-primary-fixed:** #0A1A12
- **colors.on-primary-fixed-variant:** #22402E
**References:**
- …
## Artifact Index
| Artifact | Endpoint | Generated | Status |
|----------|----------|-----------|--------|
| Store Intel | … | — | available |
| brand.md | … | — | available |
| policies.md | … | — | available |
| design.md | … | — | available |
## Answering Guide
| Question is about | Use |
|-------------------|-----|
| returns, refunds, shipping, delivery, privacy, payments, warranties | policies.md |
| brand voice, tone, mission, archetype, messaging | brand.md |
| colors, fonts, design tokens, spacing, visual style | design.md |
| products, pricing, catalog, customers, competitors, strategy | shop.md |

Like shop.md, agents.md is assembled by code, not written by an AI model. ShopMD reads the latest published brand.md, policies.md, design.md and store.md, generates any that don’t exist yet, and lifts short excerpts from each. Excerpts drop confidence tags and skip [MERCHANT-FILL] lines. Policy excerpts never include rules from an “Expired / seasonal” section.

The answering guide is the same for every store.

Once published, at the store’s own domain:

https://your-store.com/apps/shopmd/agents.md
https://your-store.com/apps/shopmd/agents

The ShopMD MCP server returns the same content.

agents.md isn’t rebuilt automatically when its sources change. It reflects the source files as they were when it was last generated, and it changes only when it’s generated again.

Currently, agents.md can’t be withdrawn. See Withdraw or restore.