agents copilot-instructions.md

Autocomplete instructions for GitHub Copilot while working inside the @commerce-atoms/agents package.

In plain words
What is it for?
Use them when asking Copilot for code, tests, imports, or file changes in this repository.
Why use it?
They keep Copilot from applying storefront rules to the package itself and steer its code suggestions toward the repository's TypeScript and testing practices.

Instructions file for GitHub Copilot

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/commerce-atoms/agents/copilot-instructions
Clone the repo
git clone --depth 1 https://github.com/commerce-atoms/agents

Made for: GitHub Copilot.

Per session 357 This file is loaded in full into every session.
When invoked 357 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00357 $0.00357
Opus 5 $0.00179 $0.00179
Sonnet 5 $0.00071 $0.00071
Haiku 4.5 $0.00036 $0.00036

Measured 2d ago against content hash 5f4705ea2d8c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

agents copilot-instructions.md scanned grade A with 0 findings 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 2d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/copilot-instructions.md · 16 lines

What it actually says

GitHub Copilot — @commerce-atoms/agents (kit authoring)

Copilot is operating in the @commerce-atoms/agents npm package itself, not in a Hydrogen storefront. Read AGENTS.md and CONTRIBUTING.md for full context.

The shipped product lives under kit/ and has its own kit/copilot-instructions.md. Those rules are for storefront repos and do not govern this repo.

Constraints for autocomplete in this repo

  1. TypeScript everywhere. All source under src/ and bin/ is .ts. Never suggest a .js or .mjs file. Use import syntax with .js extensions in relative imports (NodeNext resolution).
  2. Strict mode. No any, no implicit any, no as any casts. If a type can't be derived, ask for an explicit interface in the body.
  3. Stable test pattern. Tests use node:test and node:assert/strict. Co-locate foo.test.ts next to foo.ts. Don't suggest Jest, vitest, or other runners.
  4. kit/ is content, not config for this repo. Don't surface rules from kit/rules/core/* as if they applied here — they describe Hydrogen storefront discipline.
  5. Don't suggest npm publish from a workstation. Releases go via tag + .github/workflows/publish.yml.

When in doubt, suggest reading CONTRIBUTING.md.

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. 2d ago First seen · 16 lines · 357 tokens per session scan A 5f4705ea2d8c

Subscribe to this mod's changes

agents copilot-instructions.md is an instructions file published in the GitHub repository commerce-atoms/agents (1 stars, last pushed 4mo ago), licensed MIT. It adds 357 tokens to every session, about $0.0018 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.