agentleFS
VercelKnown publishervercel/shop/AGENTS.md

shop

AGENTS.md73 starsChanged 57 days agoMITView on GitHub

This is a monorepo for developing a template and skills for using Next.js with Shopify and deploying to Vercel. Every feature in this repo belongs to exactly one owner. Use this as the acceptance test for new work: if a change cannot name its owner, or needs to reach into another owner's territory, redesign it before shipping it. The template apps/template/AGENTS.md states the boundary rules between owners. Docs and skills describe the product in the same three-owner terms. Code, comments,…

  • Reads credentials

The file

We split this AGENTS.md into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every feature in this repo belongs to exactly one owner.

    line 7
  2. Very specific:

    Keep the allowBuilds values in sync between the root pnpm-workspace.yaml and the one in apps/template.

    line 27
  3. Very specific:

    Run pnpm install from the monorepo root, never from apps/template.

    line 28

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Vercel Shop Monorepo

This is a monorepo for developing a template and skills for using Next.js with Shopify and deploying to Vercel.

Three owners

Every feature in this repo belongs to exactly one owner. Use this as the acceptance test for new work: if a change cannot name its owner, or needs to reach into another owner's territory, redesign it before shipping it.

  • Shopify owns commerce. Catalog, cart state and mutations, checkout, customer accounts, predictive search, policies, and analytics come from Shopify through the Hydrogen SDK. We do not reimplement commerce logic.
  • Next.js owns the app. Routing, Server Components, caching and invalidation, metadata, the request boundary (proxy.ts) that adapts Hydrogen's handlers, and the storefront's machine-readable surface for answer engines: Markdown representations, /llms.txt, structured data, sitemap, and crawl guidance.
  • Eve owns the agent. Sessions, channels, tools, connections, and /eve/v1/*. Eve tools call Shopify directly; Next.js only prepares the browser for them.

The template apps/template/AGENTS.md states the boundary rules between owners. Docs and skills describe the product in the same three-owner terms.

Describe the product, not the change

Code, comments, docs, skills, commit messages, and pull requests describe current behavior in terms of the three owners. They do not narrate the work that produced it.

  • Pull requests are terse: what the shopper, merchant, or agent can now do, which owner it belongs to, and how it was verified. No rollout narrative or review history.
  • Docs add a detail only when a reader needs it to act or decide. A change touching a feature is not a reason to add implementation specifics about that change; add them only when asked.
  • Comments state a hidden constraint on one line or do not exist. Never reference the PR, issue, refactor, or "new" state.
  • Names and file placement carry the architecture. If a reader needs prose to find the owner of a module, fix the name or location instead.

Template

  • The main app in this monorepo is apps/template, which is a template/reference architecture for using Shopify and Next.js. Learn more by reading the AGENTS.md in the directory.
  • Keep the allowBuilds values in sync between the root pnpm-workspace.yaml and the one in apps/template.
  • Run pnpm install from the monorepo root, never from apps/template. Its nested pnpm-workspace.yaml supports standalone use and causes pnpm to treat that directory as a separate workspace when installing there.

Testing (temporary policy)

We plan to write tests in a future, coordinated testing effort. For now, do not add tests à la carte while fixing bugs, adding features, refactoring, or updating docs. Do not introduce test files, suites, runners, dependencies, or package scripts unless the user explicitly requests that testing work. Missing test coverage alone is not permission to expand the task.

Continue to verify changes with existing relevant checks, such as lint, formatting, typechecking, schema validation, builds, and direct runtime or browser checks. Run existing tests when relevant, and report unverified behavior clearly. This is a temporary pause on unsolicited test additions, not a decision against testing.

Skills

Skills to be used by the template are written to skills/.

Environment files

.env.example files are examples, not secret manifests — never use redaction language like [redacted] or <secret> in them. Use realistic placeholders: Shopify values get their real format or prefix (your-store.myshopify.com, shp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, a sample Storefront token), and everything else gets a your-…-here-style string (your-session-secret-here).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.