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 d-o-hub/github-template-ai-agents --skill architecture-diagramgit clone --depth 1 https://github.com/d-o-hub/github-template-ai-agentsWrote 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/d-o-hub/github-template-ai-agents/architecture-diagram)<a href="https://agentmods.dev/skills/d-o-hub/github-template-ai-agents/architecture-diagram"><img src="https://agentmods.dev/badge/skills/d-o-hub/github-template-ai-agents/architecture-diagram/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/d-o-hub/github-template-ai-agents/architecture-diagram"><img src="https://agentmods.dev/badge/skills/d-o-hub/github-template-ai-agents/architecture-diagram.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.00113 | $0.00905 |
| Opus 5.5 | $0.00045 | $0.00362 |
| Sonnet 5.5 | $0.00023 | $0.00181 |
| Haiku 4.5 | $0.00011 | $0.00090 |
Grade A, and why
architecture-diagram 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 1mo 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 — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Architecture Diagram
Generates an architecture SVG diagram by scanning the live project structure.
When to Use
- User asks to update / regenerate / sync the architecture diagram
- Skills, agents, or commands have changed
- First-time setup (diagram doesn't exist yet)
Execution
Step 1 — locate project root
Use the bash tool to find the project root (directory containing .agents/):
# From wherever the agent is currently working
pwd
ls .agents/ .opencode/ 2>/dev/null || echo "NOT_FOUND"
If .agents/ is not in the current directory, search upward or ask the user
to confirm the project root before continuing.
Step 2 — run the generator script
Copy the script from the skill bundle into a temp location and run it from the project root:
python /path/to/skill/scripts/generate_diagram.py \
--root . \
--out docs/architecture.svg
The script auto-discovers:
- Skills →
.agents/skills/*/SKILL.md(readsname:from frontmatter) - Agents →
*/agents/*.md(uses filename stem) - Commands →
*/commands/*.md(uses filename stem, strips leading/)
It writes a self-contained SVG to --out (default: docs/architecture.svg).
Step 3 — confirm and report
After the script exits:
- Tell the user the output path
- Report counts: N skills · M agents · K commands
- If counts differ from the last known state, summarise what changed
Output
docs/architecture.svg — a standalone SVG output file, viewBox 680 × auto, compatible
with GitHub README embedding (example: ).
Customisation
The script reads an optional docs/diagram-config.json if present:
{
"title": "Project Architecture",
"project_name": "My Project",
"author": "maintainer",
"pipeline_stages": [
{"name": "build", "color": "teal"},
{"name": "test", "color": "blue"},
{"name": "deploy", "color": "green"}
]
}
All fields are optional — the script uses sensible defaults when the file is absent.
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 1mo ago Changed · -3 lines 194a94550d24
- 3mo ago First seen · 119 lines · 113 tokens per session scan A 5bbd60345b95
architecture-diagram is a skill published in the GitHub repository d-o-hub/github-template-ai-agents (2 stars, last pushed today), licensed MIT. It adds 113 tokens to every session and 905 once invoked, about $0.0005 per session on Opus 5.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.
architecture-diagram compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| architecture-diagramd-o-hub/github-template-ai-agents | Skill | 2 | today | MIT | A | 113 | Claude Code, Codex |
| skill-builderyusufkaraaslan/Skill_Seekers | Skill | 15k | 3d ago | MIT | A | 38 | Claude Code, Codex |
| omh-apple-designrlaope/oh-my-hermes | Skill | 6.2k | today | MIT | A | 21 | Claude Code |
| conversational-uxOwl-Listener/designer-skills | Skill | 3.5k | 11d ago | MIT | A | 43 | Claude Code, Codex |
| law-of-similarityOwl-Listener/designer-skills | Skill | 3.5k | 11d ago | MIT | A | 47 | Claude Code, Codex |
| form-designOwl-Listener/designer-skills | Skill | 3.5k | 11d ago | MIT | A | 51 | Claude Code, Codex |
| peak-end-ruleOwl-Listener/designer-skills | Skill | 3.5k | 11d ago | MIT | A | 47 | Claude Code, Codex |