minshop: Instructions file for Codex

AGENTS.md

minshop AGENTS.md is an instructions file for Codex, OpenCode from ddyy/minshop. It costs 3,889 tokens per session, scanned A, original, MIT.

Project instructions for working on minshop, a small online shop built with Astro and Cloudflare services. They describe the project’s development loop, checks, local data tools, and common commands.

In plain words
What is it for?
Use them when developing, testing, inspecting local shop data, or validating changes in the minshop codebase.
Why use it?
They give an agent the project-specific rules it needs before changing code. This reduces mistakes caused by using the wrong runtime, command, data-inspection method, or verification step.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is ddyy/minshop's own configuration. It tells Codex and OpenCode how to work on minshop itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything minshop configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ddyy/minshop. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ddyy/minshop/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/ddyy/minshop

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for minshop AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ddyy/minshop/agents-md/github.svg)](https://agentmods.dev/instructions/ddyy/minshop/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/ddyy/minshop/agents-md"><img src="https://agentmods.dev/badge/instructions/ddyy/minshop/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for minshop AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ddyy/minshop/agents-md"><img src="https://agentmods.dev/badge/instructions/ddyy/minshop/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,889 This file is loaded in full into every session.
When invoked 3,889 The same file — it is already loaded in full.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.03889 $0.03889
Opus 5.5 $0.01556 $0.01556
Sonnet 5.5 $0.00778 $0.00778
Haiku 4.5 $0.00389 $0.00389

Measured 2mo ago against content hash 91207e421ddb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

minshop AGENTS.md scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s localhost:4321/cdn-cgi/explorer/api/d1/database/DB/raw \
AGENTS.md · 260 lines

How it starts

The opening of the file, as written. The whole thing — 260 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md — working on minshop

A guide for contributors and automated tooling making changes to minshop: a small, full-Cloudflare ecommerce store (Astro 7 SSR on Workers + D1 + R2 + Stripe / Lightning). Read this before editing. It's the map, the rules, the recipes, and the traps.

The loop (run this constantly)

nvm use 22         # REQUIRED — the supported toolchain runs on Node 22
npm run verify     # complete storefront + D1 + MCP green/red gate

npm run verify is the single signal that a change is sound: it runs unit tests, full Astro diagnostics, the production build, the clean-room D1 integration, and the MCP typecheck/deployment dry run. If it's green, the change holds together. Run it after every meaningful edit, not just at the end.

Other commands: npm run dev (astro dev), npm run preview (wrangler dev = production mode, for testing middleware/auth), npm run db:migrate (local D1), npm test.

Inspecting local data: use Local Explorer, not the CLI

Any local dev server (npm run dev, npm run preview) serves Cloudflare's Local Explorer — a UI at /cdn-cgi/explorer and a self-describing REST API at /cdn-cgi/explorer/api covering D1, KV, R2, Durable Objects and Workflows. It reads the same local state the app does, with no setup.

Prefer it over npx wrangler d1 execute --local for reads and fixture setup: that spawns a process each time (~1.2s) where this is an HTTP call (~0.02s) — roughly 70x, which is the difference between checking state freely and avoiding it. GET /cdn-cgi/explorer/api returns the OpenAPI spec, so the endpoints are discoverable rather than memorized. The D1 database id is the binding name:

curl -s localhost:4321/cdn-cgi/explorer/api/d1/database/DB/raw \
  -H 'content-type: application/json' \
  -d '{"sql":"SELECT status, COUNT(*) FROM orders GROUP BY status"}'

Local only, and unauthenticated on the dev origin — it is never exposed on a deployed Worker, but do not bind a dev server to a public interface. Anything touching --remote still goes through wrangler. The API reports itself as version 0.0.1, so use it for working loops, not as the basis of a test gate.

Read the full file on GitHub · 260 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 260 lines · 3,889 tokens per session scan A 91207e421ddb

Subscribe to this mod's changes

minshop AGENTS.md is an instructions file published in the GitHub repository ddyy/minshop (191 stars, last pushed 3d ago), licensed MIT. It adds 3,889 tokens to every session, about $0.0156 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

minshop AGENTS.md compared with instructions from other repositories

minshop AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
minshop AGENTS.mdddyy/minshopInstructions file1913d agoMITA3,889Codex, OpenCode
vibetags com-example-service-OrderService.instructions.mdPIsberg/vibetagsInstructions file25yesterdayMITA553GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot