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 ShAInyXYZ/Dia-GramV --skill skillgit clone --depth 1 https://github.com/ShAInyXYZ/Dia-GramVWrote 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/shainyxyz/dia-gramv/skill)<a href="https://agentmods.dev/skills/shainyxyz/dia-gramv/skill"><img src="https://agentmods.dev/badge/skills/shainyxyz/dia-gramv/skill/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/shainyxyz/dia-gramv/skill"><img src="https://agentmods.dev/badge/skills/shainyxyz/dia-gramv/skill.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.00159 | $0.01681 |
| Opus 5 | $0.00079 | $0.00840 |
| Sonnet 5 | $0.00032 | $0.00336 |
| Haiku 4.5 | $0.00016 | $0.00168 |
Grade A, and why
dgv 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 10d 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 — 46 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Dia-GramV (DGV)
One diagram per system, stored as dgv/<name>.dgv.json in the project. The agent authors it through MCP tools; the developer sees it live in the viewer and can drag, edit, and save from there. The file is the single source of truth — both sides read and write it.
Why it exists: a plan written in prose hides incompatibilities (a module calling a DB over HTTP, a service that nobody starts, a bridge with one side, an API nobody calls, an import cycle). DGV makes every component a typed node with ports, every relation a typed edge with a protocol, and lints the whole thing so those mistakes surface before code — instead of after a day of tokens.
Workflow (always this order)
dgv_catalogonce per session — the allowed node kinds, edge kinds, protocols. Never invent a kind.dgv_list/dgv_read— is there already a diagram for this system? Read it before reading code: it is the map, and it is cheaper than the tree. Extend it; do not create a second one for the same system.dgv_create(new) thendgv_applyin a few large batches, not one node per call:- frames first (boundaries: machine, process, service group, remote), then nodes with
frame, then edges. - every node:
kind,label, shortsublabel,tech, andpath— the file or directory that implements it (a glob or a list is fine). Nopathon things that are not code here: devices, externals, stores. Addportson anything that is called (api, service, db, model, sidecar):{ id, protocol, dir, shape }whereshapesays what crosses it ("JSON /api/v1","text[] → float[][]"). - every edge:
kind(sync | async | data | import | deploy | control),protocol,label(what happens),targetPortwhen the target declares ports,payloadwhen the shape matters. - never send
position— DGV places new nodes; calldgv_layoutafter a batch.
- frames first (boundaries: machine, process, service group, remote), then nodes with
- Read the lint report
dgv_applyreturns. Fix every error by changing only the namedsubjectusing one of itsfixes. Warnings are advice: fix them when they reveal a real gap (orphans, unspecified contracts, one-sided bridges). When a warning is intentional, setack: "<why>"on that element viadgv_apply— it becomes info and the reason travels with the diagram. Never ack something you have not verified. - Flag what lint cannot see. A diagram can lint clean and still be wrong. When you read it and spot an incoherence — a process with an
execedge in and nothing else, so every settings change is a restart; the same module imported by three programs that each load it again; a spawned child with no death-pact; a store written by two producers with no shared schema —dgv_flagit on the element:title(one line, what is wrong),note(what you saw, why it matters),fix(the concrete change),kindissue | idea | question. The viewer shows it as a bubble on that card until it is resolved, and lint lists it (flag/issue= warning). Flag the element, not the diagram; never flag what a lint rule already reports; never flag what you have not verified in the code. When you fix it — or the user says it is intentional —dgv_resolve. Open flags appear as ⚑ indgv_readand at session start: treat them as the to-do list of the architecture. dgv_layoutthendgv_open— tell the user the URL. They may rearrange and save; re-read withdgv_readbefore your next edit so you never overwrite their layout.dgv_export format=markdownwhen the plan is agreed → paste into the project's docs / CLAUDE.md so the build follows it.- While building and before you stop:
dgv_drift. Fixdrift/missingfirst (the code moved: updatepath; the node is gone: remove it, orstatus: todoif it is not written yet). Fordrift/unclaimed, add a node or widen apath— or put the directory inmeta.driftIgnorewith good reason. Then setstatuson what you built or changed. A diagram that is not updated is worse than none: the next session will trust it. Everydgv_apply,dgv_flaganddgv_resolveis recorded in the diagram's history (dgv_history, also the tail ofdgv_read):who(agent or viewer) changedwhaton which element. Read it when the user asks what changed, or when the file differs from what you remember — the viewer's saves show up there asviewer.
What ships with it
3 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.
- 10d ago First seen · 46 lines · 159 tokens per session scan A 6ec7ab25eb85
dgv is a skill published in the GitHub repository ShAInyXYZ/Dia-GramV (6 stars, last pushed 10d ago), licensed MIT. It adds 159 tokens to every session and 1,681 once invoked, about $0.0008 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
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
insight-error-page
Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…
next-cache-components-optimizer
Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…
next-partial-prefetching-adoption
Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…