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 BlackBeltTechnology/pi-agent-dashboard --skill rebuild-package-diagramsgit clone --depth 1 https://github.com/BlackBeltTechnology/pi-agent-dashboardWrote 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/blackbelttechnology/pi-agent-dashboard/rebuild-package-diagrams)<a href="https://agentmods.dev/skills/blackbelttechnology/pi-agent-dashboard/rebuild-package-diagrams"><img src="https://agentmods.dev/badge/skills/blackbelttechnology/pi-agent-dashboard/rebuild-package-diagrams/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/blackbelttechnology/pi-agent-dashboard/rebuild-package-diagrams"><img src="https://agentmods.dev/badge/skills/blackbelttechnology/pi-agent-dashboard/rebuild-package-diagrams.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.00094 | $0.05109 |
| Opus 5.5 | $0.00038 | $0.02044 |
| Sonnet 5.5 | $0.00019 | $0.01022 |
| Haiku 4.5 | $0.00009 | $0.00511 |
Grade A, and why
rebuild-package-diagrams 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 5d 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 — 281 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Rebuild package diagrams
Turn the text of a reverse-spec-for-rebuild package into two visual views without
inventing anything:
- ER view — domain entities of
model.mdwith keys and cardinality. - Process view — actor-triggered use cases of
capabilities/<cap>/spec.mdas BPMN 2.0.
The agent does the judgement (which entities are domain, which cardinality, which requirements form a use case). A deterministic script is the gate: it refuses any entity, field or rule id that is not in the package, any relation without evidence and any BPMN node without a resolvable ref.
Inputs
PKG = a rebuild package directory holding model.md, rules.md, quirks.md,
gaps.md, capabilities/<cap>/spec.md (the reverse-spec-for-rebuild layout). Output
goes to PKG/diagrams/ unless the user names another place. The source package is never
edited.
D = node <this skill dir>/scripts/diagrams.mjs — subcommands extract-model,
render-er, check-trace, check-use-cases, build-site (Node ≥ 20, no deps; exit 2 =
bad usage/input). Parsers/gates live in scripts/lib.mjs, the catalog assembly in
scripts/site.mjs, the page in templates/catalog.html, templates/catalog.css,
templates/catalog.js.
Optional peers: mmdc (Mermaid CLI) for PNG/SVG; the bpmn-package-explorer skill for
BPMN layout, validation and the canvas viewer. Without them the .mmd/.bpmn sources are
still produced and checked.
Procedure — ER view
$D extract-model PKG/model.md > PKG/diagrams/model.json. Each entity carriescapabilities,identity,persistence,persistent(heuristic: persistence line names a table/row/collection/DB),fields[]andrelationshipstext.- Classify every entity (read identity + persistence, not only the flag) per
references/er-mapping.md: domain (persisted business data or the in-memory aggregate that owns it), config, ui, test, technical. Only domain goes on the main diagram. Write the classification table toPKG/diagrams/er-scope.md(entity · class · one-line reason) so the user can overrule it. - Group domain entities into 4–8 clusters (one per subject area; capabilities are a good first cut). Clusters keep each diagram readable (≤ ~15 entities).
- Author
PKG/diagrams/er/<cluster>.jsonand oneoverview.json(≤ ~25 hub entities, no attributes — a 40-box overview with attributes is unreadable) in theer.jsonschema ofreferences/er-mapping.md: keys (PK/FK/UK) and a few business-defining fields per entity; relations withcardinality,label,confidence,evidence. Evidence = a verbatim substring of either endpoint'sRelationships:text, or the exact name of a field on either endpoint. $D render-er PKG/diagrams/er/<x>.json PKG/diagrams/model.json > PKG/diagrams/er/<x>.mmdfor each file. Exit 1 lists every violation — fix the JSON, never the check. Relations notconfirmedrender dashed.- Render images when
mmdcexists:mmdc -i x.mmd -o x.png -b white -s 2(see Pitfalls for the Chrome path).
What ships with it
60 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.
- assets/ifml-js/diagram-js.css 17 KB
- assets/ifml-js/ifml-font-embedded.css 24 KB
- assets/ifml-js/ifml-navigated-viewer.production.min.js 186 KB runs code
- assets/ifml-js/LICENSE 1.4 KB
- assets/ifml-js/README.md 375 B
- references/architecture-mapping.md 2.6 KB
- references/architecture-mapping.md.AGENTS.md 215 B
- references/behaviour-mapping.md 6.1 KB
- references/behaviour-mapping.md.AGENTS.md 534 B
- references/bpmn-mapping.md 2.1 KB
- references/bpmn-mapping.md.AGENTS.md 249 B
- references/crud-matrix.md 2.2 KB
- references/crud-matrix.md.AGENTS.md 282 B
- references/er-mapping.md 2.3 KB
- references/er-mapping.md.AGENTS.md 285 B
- references/ifml-mapping.md 5.3 KB
- references/ifml-mapping.md.AGENTS.md 432 B
- references/ifml-metamodel.json 18 KB
- references/ifml-metamodel.json.AGENTS.md 260 B
- references/splitting.md 3.4 KB
- references/splitting.md.AGENTS.md 349 B
- references/uc-links.md 1.7 KB
- references/uc-links.md.AGENTS.md 247 B
- references/usage.md 2.8 KB
- references/usage.md.AGENTS.md 237 B
- references/variability.md 2.4 KB
- references/variability.md.AGENTS.md 232 B
- scripts/arch.mjs 17 KB runs code
- scripts/arch.mjs.AGENTS.md 751 B
- scripts/behaviour.mjs 27 KB runs code
- scripts/behaviour.mjs.AGENTS.md 922 B
- scripts/crud.mjs 8.4 KB runs code
- scripts/crud.mjs.AGENTS.md 553 B
- scripts/diagrams.mjs 22 KB runs code
- scripts/diagrams.mjs.AGENTS.md 2.2 KB
- scripts/ifml-import.mjs 12 KB runs code
- scripts/ifml-import.mjs.AGENTS.md 598 B
- scripts/ifml.mjs 22 KB runs code
- scripts/ifml.mjs.AGENTS.md 975 B
- scripts/lib.mjs 16 KB runs code
- scripts/lib.mjs.AGENTS.md 1.4 KB
- scripts/links.mjs 6.4 KB runs code
- scripts/links.mjs.AGENTS.md 345 B
- scripts/render.sh 5.7 KB runs code
- scripts/render.sh.AGENTS.md 1.2 KB
- scripts/site.mjs 11 KB runs code
- scripts/site.mjs.AGENTS.md 1.9 KB
- scripts/split.mjs 17 KB runs code
- scripts/split.mjs.AGENTS.md 490 B
- scripts/usage.mjs 16 KB runs code
- scripts/usage.mjs.AGENTS.md 1.1 KB
- scripts/variability.mjs 11 KB runs code
- scripts/variability.mjs.AGENTS.md 562 B
- SKILL.md.AGENTS.md 1.5 KB
- templates/catalog.css 9.3 KB
- templates/catalog.css.AGENTS.md 809 B
- templates/catalog.html 1.0 KB
- templates/catalog.html.AGENTS.md 430 B
- templates/catalog.js 86 KB runs code
- templates/catalog.js.AGENTS.md 3.3 KB
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.
- 5d ago First seen · 281 lines · 94 tokens per session scan A 27a28a6ee30d
rebuild-package-diagrams is a skill published in the GitHub repository BlackBeltTechnology/pi-agent-dashboard (319 stars, last pushed yesterday), licensed MIT. It adds 94 tokens to every session and 5,109 once invoked, about $0.0004 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-10-11.
Other skills, from other repositories
goga-define-experience
Define the user experience required to achieve the established product goals and solve the identified problem.
akihtmlreport
Visualize a complex report that already exists in the conversation as one self-contained HTML file — nothing else, no new analysis. Distills a dense analysis/report already discussed into a single-file, ultra-wide, visually dense HTML report (REPORT.html) at the project root, for content too dense to stay legible as…
pdf-processor
Extracts text and tables from PDF files, fills forms, and merges documents. Use when working with PDF files or when the user mentions PDFs, forms, or document extraction.
goga-cookbook
Principles for applying DSL specification in cell and CODEMANIFEST design.
goga-plan-by-design
Compile a design document into a ralphex execution plan.
goga-review-plan
Verify execution plan completeness and correctness.