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 GoogleCloudPlatform/cortex-framework --skill generate_er_diagramgit clone --depth 1 https://github.com/GoogleCloudPlatform/cortex-frameworkWrote 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/googlecloudplatform/cortex-framework/generate_er_diagram)<a href="https://agentmods.dev/skills/googlecloudplatform/cortex-framework/generate_er_diagram"><img src="https://agentmods.dev/badge/skills/googlecloudplatform/cortex-framework/generate_er_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/googlecloudplatform/cortex-framework/generate_er_diagram"><img src="https://agentmods.dev/badge/skills/googlecloudplatform/cortex-framework/generate_er_diagram.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00034 | $0.01017 |
| Opus 5.5 | $0.00014 | $0.00407 |
| Sonnet 5.5 | $0.00007 | $0.00203 |
| Haiku 4.5 | $0.00003 | $0.00102 |
Grade A, and why
generate-er-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 3mo 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 — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Generating Entity-Relationship (ER) Diagrams
This skill allows agents to automatically generate clean, structured Entity-Relationship (ER) diagrams from one or more Cortex data products. The diagrams represent data models, primary keys, and relationships inferred from the data product's manifest, annotations, and definitions.
Core Operating Behaviors
When asked to generate an ER diagram for a data product:
-
Establish Output Format (CRITICAL):
- You MUST check if the user has specified the desired format for the ER diagram (e.g.,
dot,mermaid,draw.io, orall). - If the format is not specified, you MUST explicitly ask the user:
"Which format would you like to use for the ER diagram?
- Mermaid diagram (.mmd) - Best for quick markdown integration (also creates a .md file for immediate visual preview)
- Graphviz dot notation (.dot) - Best for custom graph rendering
- draw.io XML (.drawio) - Best for importing directly into draw.io as an interactive layout
- All formats - Generates Mermaid, DOT, and draw.io diagrams concurrently"
- Wait for the user's choice before executing the generator.
- You MUST check if the user has specified the desired format for the ER diagram (e.g.,
-
Locate target data product:
- Determine the name or folder of the data product to analyze. If it is not specified, look inside
src/data_modules/<namespace>/<source>/products/for available products.
- Determine the name or folder of the data product to analyze. If it is not specified, look inside
-
Execute the generator script:
- Use the virtualenv Python interpreter to run the tool:
cortex-framework-core/.venv/bin/python external-skills/.agents/skills/generate_er_diagram/scripts/generate_er_diagram.py -p <data_product_path_or_name> -f <mermaid|dot|drawio> [options] - Optional Flags:
--include-siblings: Include sibling data products in the same namespace to map cross-product relationships. (Disabled by default to prevent oversized diagrams).--all-foundation-fields: Render all fields for foundation tables (by default only keys and relationship-participating fields are shown to avoid clutter).--all-data-product-fields: Render all fields for data product tables (by default only keys and relationship-participating fields are shown to avoid clutter).
- Note: If the user selects All formats, execute the generator command three times sequentially, once for each format option (
mermaid,dot,drawio).
- Use the virtualenv Python interpreter to run the tool:
What ships with it
2 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.
- 3mo ago First seen · 69 lines · 34 tokens per session scan A b13931966929
generate-er-diagram is a skill published in the GitHub repository GoogleCloudPlatform/cortex-framework (18 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 34 tokens to every session and 1,017 once invoked, about $0.0001 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.
generate-er-diagram compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| generate-er-diagramGoogleCloudPlatform/cortex-framework | Skill | 18 | 1mo ago | Apache-2.0 | A | 34 | Claude Code, Codex |
| bigquery-migration-metadata-extractorgoogle/skills | Skill | 25k | today | Apache-2.0 | A | 188 | Claude Code, Codex |
| bigquery-migration-data-exportergoogle/skills | Skill | 25k | today | Apache-2.0 | A | 142 | Claude Code, Codex |
| bigquery-observabilitygoogle/skills | Skill | 25k | today | Apache-2.0 | A | 144 | Claude Code, Codex |
| bigquery-migration-sql-translatorgoogle/skills | Skill | 25k | today | Apache-2.0 | A | 132 | Claude Code, Codex |
| bigquery-udfsgoogle/skills | Skill | 25k | today | Apache-2.0 | A | 132 | Claude Code, Codex |
| bigquery-migration-data-loadergoogle/skills | Skill | 25k | today | Apache-2.0 | A | 177 | Claude Code, Codex |