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/davidvkimball/astro-modular/agents-mdgit clone --depth 1 https://github.com/davidvkimball/astro-modularWrote 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.
[](https://agentmods.dev/instructions/davidvkimball/astro-modular/agents-md)<a href="https://agentmods.dev/instructions/davidvkimball/astro-modular/agents-md"><img src="https://agentmods.dev/badge/instructions/davidvkimball/astro-modular/agents-md.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.06845 | $0.06845 |
| Opus 5 | $0.03423 | $0.03423 |
| Sonnet 5 | $0.01369 | $0.01369 |
| Haiku 4.5 | $0.00685 | $0.00685 |
Grade C, and why
astro-modular AGENTS.md scanned grade C 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 4d 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
9. **Never use destructive commands** (`rm -rf`, `git reset --hard`, force push) How it starts
The opening of the file, as written. The whole thing — 731 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md — Astro Modular (Astro + Obsidian blog theme)
Source of truth for AI agents (Claude Code, Cursor, etc.) working in this repo. Read this entire file before making changes. It captures the things that are non-obvious about how Astro Modular is structured.
If the answer to "how does X work?" isn't here and it took you more than one round of investigation, add it here when you figure it out.
What Astro Modular is
Astro Modular is an Astro blog theme designed for Obsidian users, by
David V. Kimball. The src/content/ folder is a real
Obsidian vault — users write in Obsidian, commit, and publish.
Stack:
- Astro 7.x. Netlify / Vercel / GitHub Pages / Cloudflare Workers friendly.
- HTML comments cannot live inside a JSX expression. Astro 7's compiler rejects
{cond ? (followed by<!-- ... -->, and a{/* ... */}sibling next to an element in the same branch is equally invalid, because the branch must be a single expression. Put the comment INSIDE the element ({/* ... */}as a child) or ABOVE the whole expression (<!-- ... -->at template level). Astro 5 tolerated both. - Obsidian vault as CMS.
src/content/.obsidian/is committed, with a curated plugin set. - Swup for client-side page transitions (NOT Astro's ClientRouter).
- Tailwind + custom theme variables (17+ built-in color themes, switchable at runtime).
- Vanilla JS only — no React, no jQuery.
- Modular by design — almost every feature toggles via
siteConfiginsrc/config.ts.
Core philosophy: Content lives in Obsidian. Standard markdown links, wikilinks, Obsidian embeds, callouts, and tags should work identically in Obsidian and on the live site. Don't take shortcuts that break Obsidian-native behavior.
Cardinal rules
- NEVER edit files in
src/content/without explicit user permission. Posts, pages, projects, docs, frontmatter — all belong to the user. Only edit config, components, layouts, utilities, scripts, and plugins. - Use
pnpm, notnpm. Scripts:pnpm run <script>. - Use
entry.id, NEVERentry.slug.slugis removed in Astro v6 and returnsundefined. Folder-based entries have IDs like'folder-name', NOT'folder-name/index'. - Never disable the Astro dev toolbar (
devToolbar.enabled: trueinastro.config.mjs). The pnpm module-loading errors in the console are cosmetic. - Never disable
vite.server.fs.strict. Security boundary. - Never use
console.log()in production code. Usesrc/utils/logger.ts. - Never hardcode colors. Use Tailwind classes that reference theme variables
(
primary-*,highlight-*) withdark:variants. The theme system has 17+ color themes — hardcoded colors break all of them. - Never remove or rename
// [CONFIG:KEY]comment markers insrc/config.ts. The Astro Modular Settings Obsidian plugin uses them to edit config from inside the vault. - Never use destructive commands (
rm -rf,git reset --hard, force push) without explicit approval. Investigate root causes. - Match existing patterns. This codebase already solves most problems consistently. Search before inventing.
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.
- 4d ago First seen · 731 lines · 6,845 tokens per session scan C f2865b9d62de
astro-modular AGENTS.md is an instructions file published in the GitHub repository davidvkimball/astro-modular (225 stars, last pushed 9d ago), licensed MIT. It adds 6,845 tokens to every session, about $0.0342 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
8-BitQuest CLAUDE.md
Claude Code instructions for Astro-Craft-Theme/8-BitQuest: The full instructions for this repository live in AGENTS.md, next to this file, and are imported here so they load in full.
8-BitQuest AGENTS.md
AGENTS.md instructions for Astro-Craft-Theme/8-BitQuest, covering agents.md — astro template, commands, project structure, stack defaults and don't / gotchas.
stardrive AGENTS.md
Instructions for peltmonger/stardrive, covering 🛑 critical: repository bootstrap directive 🛑, general information and guidelines for ai agents, analyze your high-level use case first, how the .ai guidance files relate and this is an astro project.
stardrive copilot-instructions.md
Instructions for peltmonger/stardrive: Follow AGENTS.md for repository mode selection, project conventions, and applicable workflow guides.
obsidian-transcriber AGENTS.md
Instructions for dsebastien/obsidian-transcriber, covering project documentation, documentation surfaces, project overview, agent workflow and session-start checklist.
Polyglow AGENTS.md
AGENTS.md instructions for zbzailabs/Polyglow, covering polyglow agent guide, purpose, stack, required commands and build cache.