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 skills add avmnu-sng/sutra --skill agent-docs-architecturegit clone --depth 1 https://github.com/avmnu-sng/sutraWrote 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/skills/avmnu-sng/sutra/agent-docs-architecture)<a href="https://agentmods.dev/skills/avmnu-sng/sutra/agent-docs-architecture"><img src="https://agentmods.dev/badge/skills/avmnu-sng/sutra/agent-docs-architecture/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.
<a href="https://agentmods.dev/skills/avmnu-sng/sutra/agent-docs-architecture"><img src="https://agentmods.dev/badge/skills/avmnu-sng/sutra/agent-docs-architecture.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00046 | $0.02952 |
| Opus 5 | $0.00023 | $0.01476 |
| Sonnet 5 | $0.00009 | $0.00590 |
| Haiku 4.5 | $0.00005 | $0.00295 |
Grade A, and why
agent-docs-architecture 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 9d 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 — 296 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agent docs architecture
Agent-facing docs fail in one of two ways: everything is crammed into a single entry file that no one can navigate, or the guidance is scattered with no declared order, no source of truth, and no way for an agent to tell which doc answers its question. Both leave an agent guessing, and a guessing agent hallucinates.
This skill lays out the structure that prevents that. The goal is a layered
tree where a thin entry doc routes to deeper guides, one rulebook is shared
verbatim across tools, every doc's job is declared, and one doc is named as
ground truth. The machine-readable manifest that binds these pieces together
-- entry-doc path, rulebook path, source-path-to-domain routing, skill
order -- lives in examples/setup.yaml. Treat that file as the contract and
this skill as the rationale.
When to use
- Setting up agent docs (
AGENTS.md,CLAUDE.md, adocs/tree) in a repo that has none, or has an overgrown single file. - Auditing an existing tree for the failure modes below: inlined entry doc, drifted cross-tool rules, no routing table, no declared source of truth.
- Adding a new domain guide and wanting it to match the house shape rather than being one more ad-hoc file.
When not to use
- The repo has no agents and no intent to add them; a plain
READMEis enough. - You are writing product or API docs for end users. This skill is about docs an agent reads to do work in the repo, not docs a customer reads.
1. Layer the tree; keep the entry doc thin
The entry doc (AGENTS.md or CLAUDE.md) is a switchboard, not an
encyclopedia. It states the project in two sentences, names the hard rules,
and links out to deeper docs. It does not inline setup steps, domain
walkthroughs, or troubleshooting -- those live in leaf docs and go stale the
moment they are duplicated at the top.
Target shape:
AGENTS.md <- thin entry: what this is, STOP-gate, routing table
CLAUDE.md <- byte-identical AI footer (see section 2)
docs/
rules.md <- the one shared rulebook
setup.md <- environment, toolchain, dev loop
domains/
<domain>.md <- one guide per feature area (routing in setup.yaml)
guides/
<topic>.md <- safety / domain guides (authored per section 8)
ground-truth.md <- the source of truth (see section 6)
examples/
setup.yaml <- machine-readable manifest binding all of the above
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.
- 9d ago First seen · 296 lines · 46 tokens per session scan A ad1f13fdf7f5
agent-docs-architecture is a skill published in the GitHub repository avmnu-sng/sutra (2 stars, last pushed 1mo ago), licensed MIT. It adds 46 tokens to every session and 2,952 once invoked, about $0.0002 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.
Other skills, from other repositories
memstack-business-gdpr
Use this skill when the user says 'GDPR', 'data protection', 'privacy compliance', 'DPA', 'DSAR', 'data subject request', 'cookie consent', 'privacy audit', 'CCPA', or asks 'do I need GDPR for this repo'. Scans the repository to detect what personal data is collected, classifies sensitivity, determines whether GDPR…
memstack-deployment-domain-ssl
Use this skill when the user says 'setup domain', 'configure DNS', 'SSL certificate', 'domain-ssl', 'custom domain', 'HTTPS setup', or needs to configure DNS records, SSL certificates, and custom domains for any hosting provider. Do NOT use for full deployment workflows.
memstack-development-refactor-planner
Use this skill when the user says 'refactor', 'refactoring plan', 'code cleanup', 'reduce duplication', 'simplify code', 'tech debt', 'god class', 'tight coupling', or needs to systematically improve existing code. Identifies targets, assesses risk, and builds incremental execution plans. Do NOT use for writing new…
memstack-product-feedback-analyzer
Use this skill when the user says 'analyze feedback', 'feedback analysis', 'what are customers asking for', or has support tickets, reviews, or survey data to categorize, score, and prioritize into actionable reports. Do NOT use for competitor analysis or market research.
memstack-seo-meta-tag-optimizer
Use this skill when the user says 'meta tags', 'title tag', 'meta description', 'optimize meta', 'SERP preview', or needs to write or optimize HTML meta tags for better search visibility and click-through rates. Do NOT use for schema markup or full site audits.
familiar
Use when the user says 'dispatch', 'send familiar', 'split task', or needs work split across parallel CC sessions.