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.
npx agentmods add instructions/spences10/sveltest/agents-mdgit clone --depth 1 https://github.com/spences10/sveltestWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.01850 | $0.01850 |
| Opus 5 | $0.00925 | $0.00925 |
| Sonnet 5 | $0.00370 | $0.00370 |
| Haiku 4.5 | $0.00185 | $0.00185 |
Grade A, and why
sveltest AGENTS.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 3d 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.
How it starts
The opening of the file, as written. The whole thing — 242 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Sveltest is a comprehensive testing example project for Svelte 5
applications using vitest-browser-svelte. It demonstrates real-world
testing patterns with client-side, server-side, and SSR testing
approaches.
Unbreakable Rules:
- Always use locators (
page.getBy*()) - never containers in vitest-browser-svelte - Use
.first(),.nth(),.last()for multiple elements to avoid strict mode violations - Always use
untrack()when accessing$derivedvalues in tests - Use real FormData/Request objects in server tests - minimal mocking only
- Co-locate tests with components (
.svelte.test.ts,.ssr.test.ts) - Follow naming conventions: kebab-case files, snake_case variables
- Start tests with "Foundation First" approach using
.skipblocks for planning - Always run
pnpm lintafter making changes - Never click SvelteKit form submit buttons - test state directly
- Use
await expect.element()for all locator assertions
Essential Commands
Development
pnpm dev # Start development server
pnpm build # Build for production
pnpm preview # Preview production build
Testing
pnpm test # Run all tests (unit + e2e)
pnpm test:unit # Run all unit tests
pnpm test:client # Client-side component tests (browser)
pnpm test:server # Server-side tests (Node.js)
pnpm test:ssr # SSR tests (server-side rendering)
pnpm test:e2e # Playwright e2e tests
pnpm coverage # Generate test coverage report
Code Quality
pnpm lint # Check formatting, linting, and types with Vite+
pnpm lint:fix # Fix Vite+ formatting and linting issues
pnpm format # Format JS, TS, Svelte, and Markdown with Oxfmt
pnpm check # Run vp check (oxlint + oxfmt + type check)
pnpm check:watch # Watch mode for type checking
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.
- 3d ago First seen · 242 lines · 1,850 tokens per session scan A 1f2dd00b6c55
sveltest AGENTS.md is an instructions file published in the GitHub repository spences10/sveltest (112 stars, last pushed 4d ago), licensed MIT. It adds 1,850 tokens to every session, about $0.0093 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-30.
Other instructions, from other repositories
pocketbase-sveltekit-starter AGENTS.md
Instructions for spinspire/pocketbase-sveltekit-starter, covering agents, project structure, dev mode, deployment and key commands.
ssgoi AGENTS.md
Instructions for meursyphus/ssgoi, covering ssgoi and releasing.
svelte-markdown CLAUDE.md
Instructions for humanspeak/svelte-markdown, covering claude.md, project overview, key technologies, project structure and development commands.
neo-svelte copilot-instructions.md
Instructions for dvcol/neo-svelte, covering examples old vs new, redirect and error handling, cookie path requirement, top-level promise handling and goto changes.
neo-svelte AGENTS.md
Instructions for dvcol/neo-svelte: Pick the guide that matches your task — load only the slice you need.
neo-svelte CLAUDE.md
Instructions for dvcol/neo-svelte: This project uses AGENTS.md as the single source of truth for AI agents. Open it and follow the link that matches your task.