Borrowing it
Nothing to install: this file belongs to MicrosoftLearning/trainer-demo-deploy. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/MicrosoftLearning/trainer-demo-deploy/main/.github/prompts/design-diagram.prompt.mdgit clone --depth 1 https://github.com/MicrosoftLearning/trainer-demo-deployWrote 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/commands/microsoftlearning/trainer-demo-deploy/design-diagram)<a href="https://agentmods.dev/commands/microsoftlearning/trainer-demo-deploy/design-diagram"><img src="https://agentmods.dev/badge/commands/microsoftlearning/trainer-demo-deploy/design-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/commands/microsoftlearning/trainer-demo-deploy/design-diagram"><img src="https://agentmods.dev/badge/commands/microsoftlearning/trainer-demo-deploy/design-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.00009 | $0.00584 |
| Opus 5.5 | $0.00004 | $0.00234 |
| Sonnet 5.5 | $0.00002 | $0.00117 |
| Haiku 4.5 | $0.00001 | $0.00058 |
Grade A, and why
design-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 today.
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 — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Generate Architecture Diagram
Create a Python architecture diagram using the diagrams library that
visualizes all Azure resources, network topology, and data flow for the project.
Mission
Read the architecture assessment, extract all Azure resources and their relationships, and generate a Python script that produces a PNG architecture diagram following the az-azure-diagrams skill conventions.
Scope & Preconditions
generated-scenarios/${input:projectName}/02-architecture-assessment.mdmust exist- Read
.github/skills/az-consolidated/SKILL.mdfor diagram conventions, icon catalog, and naming conventions - Use the
diagramsPython library (pre-installed in dev container)
Inputs
| Variable | Description | Default |
|---|---|---|
${input:projectName} |
Project name matching the generated-scenarios/ folder |
Required |
Workflow
Step 1: Read Architecture
Read generated-scenarios/{projectName}/02-architecture-assessment.md for the
full resource list, network topology, and data flow paths.
Step 2: Design Diagram Layout
- Group resources by Azure resource group or logical tier
- Show network connectivity (VNets, subnets, private endpoints)
- Include data flow arrows with labels
- Use the correct Azure icons from the diagrams skill icon catalog
Step 3: Generate Python Script
Follow the az-azure-diagrams skill template structure:
- File header with project metadata
- Diagram context with project name as title
- Cluster groupings for resource groups or tiers
- Edge definitions for data flow
Step 4: Execute and Verify
Run the Python script to produce the PNG output. Verify the image renders correctly.
Step 5: Save Artifacts
Save to generated-scenarios/{projectName}/03-architect-diagram.py.
Output Expectations
generated-scenarios/{projectName}/
├── 03-architect-diagram.py # Python source
└── 03-architect-diagram.png # Rendered output
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.
- today First seen · 84 lines · 9 tokens per session scan A 4f4d936b4197
design-diagram is a command published in the GitHub repository MicrosoftLearning/trainer-demo-deploy (31 stars, last pushed 11d ago), licensed MIT. It adds 9 tokens to every session and 584 once invoked, about $0.0000 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-11-07.
design-diagram compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| design-diagramMicrosoftLearning/trainer-demo-deploy | Command | 31 | 11d ago | MIT | A | 9 | Claude Code, GitHub Copilot |
| cost-optimizewshobson/agents | Command | 42k | 2d ago | MIT | A | 26 | Claude Code |
| deploybutterbase-ai/butterbase-skills | Command | 535 | 7d ago | MIT | A | 20 | Claude Code |
| envvercel/vercel-plugin | Command | 328 | yesterday | none | A | 35 | Claude Code |
| firebase-publishPierry/harness-kit | Command | 4 | 1mo ago | MIT | A | 20 | Claude Code |
| scanprajapatimehul/claude-aws-cost-saver | Command | 24 | 4mo ago | MIT | A | 6 | Claude Code |
| migrationdatabayt/hogwarts | Command | 18 | 4d ago | none | A | 4 | Claude Code |