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.00902 |
| Opus 5 | $0.00056 | $0.00451 |
| Sonnet 5 | $0.00023 | $0.00180 |
| 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 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 — 119 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.
- 9d 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 yesterday), licensed MIT. It adds 113 tokens to every session and 902 once invoked, about $0.0006 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
skill-builder
Automatically detect source types and build AI skills using Skill Seekers. Use when the user wants to create skills from documentation, repos, PDFs, videos, or other knowledge sources.
omh-apple-design
This is a Hermes-native apple-design workflow skill.
conversational-ux
Design voice and conversational interfaces — dialog flows, error recovery, and persona. Use when the interface speaks and listens rather than being tapped. For graphical input collection, use form-design.
design-negotiation
Advocate for design quality, scope, and timeline with partners and leadership using evidence and shared goals. Use in the conversation itself. For the commercial vocabulary behind it, use business-design (ux-strategy).
form-design
Design a form end to end — field order, grouping, validation, and completion. Use when the artifact is a form. For product-wide error strategy use error-handling-ux; for first-run signup use onboarding-design.
peak-end-rule
Apply the Peak-End Rule — a flow is remembered by its most intense moment and its last. Use when designing completion, celebration, or cancellation moments. For sustaining engagement mid-flow, use zeigarnik-effect.