trainer-demo-deploy: Agent for Claude Code

.github/agents/az-04-diagrammer.agent.md

az-04-Diagrammer is an agent for Claude Code from MicrosoftLearning/trainer-demo-deploy. It costs 56 tokens per session (1,908 once invoked), scanned A, original, MIT.

An architecture-diagram agent for Azure projects. Azure is Microsoft's cloud platform, and an architecture diagram shows its services and how they are arranged.

In plain words
What is it for?
Use it to create static architecture and runtime-flow diagrams for Azure scenarios, following the project's requirements and diagram rules.
Why use it?
It helps document both the project's resource layout and the way data or requests move through the system. The workflow cannot be marked complete until both diagrams are saved as PNG files.

Agent for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: model in frontmatter; Copilot chat-mode frontmatter (tools: vscode/*).

This is MicrosoftLearning/trainer-demo-deploy's own configuration. It tells Claude Code how to work on trainer-demo-deploy itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything trainer-demo-deploy configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/MicrosoftLearning/trainer-demo-deploy/main/.github/agents/az-04-diagrammer.agent.md
Clone the repo
git clone --depth 1 https://github.com/MicrosoftLearning/trainer-demo-deploy

Made for: Claude Code.

Wrote 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.

agentmods badge for az-04-Diagrammer

README.md
[![agentmods](https://agentmods.dev/badge/agents/microsoftlearning/trainer-demo-deploy/az-04-diagrammer/github.svg)](https://agentmods.dev/agents/microsoftlearning/trainer-demo-deploy/az-04-diagrammer)
Your own site
<a href="https://agentmods.dev/agents/microsoftlearning/trainer-demo-deploy/az-04-diagrammer"><img src="https://agentmods.dev/badge/agents/microsoftlearning/trainer-demo-deploy/az-04-diagrammer/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.

agentmods 80×15 button for az-04-Diagrammer

Your own site · 80×15
<a href="https://agentmods.dev/agents/microsoftlearning/trainer-demo-deploy/az-04-diagrammer"><img src="https://agentmods.dev/badge/agents/microsoftlearning/trainer-demo-deploy/az-04-diagrammer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,908 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00056 $0.01908
Opus 5.5 $0.00022 $0.00763
Sonnet 5.5 $0.00011 $0.00382
Haiku 4.5 $0.00006 $0.00191

Measured today against content hash 4ea534f906bb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

az-04-Diagrammer 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.

.github/agents/az-04-diagrammer.agent.md · 192 lines

How it starts

The opening of the file, as written. The whole thing — 192 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Diagrammer Agent

Step 3 of the 6-step workflow: requirements → architect → diagrammer → bicep → deploy → demoguide

[!CAUTION] HARD RULE — TWO DIAGRAMS ARE MANDATORY

Every scenario MUST produce both diagrams:

  1. Architecture diagram (03-architect-diagram.py + .png) — static resource layout
  2. Runtime flow diagram (03-architect-runtime-diagram.py + .png) — data and request flows at runtime

The workflow is NOT complete until both diagrams exist as PNG files on disk. Do not skip, defer, or mark Step 3 complete without both.

MANDATORY: Read Skills First

Before doing ANY work, read these skills:

  1. Read .github/skills/az-consolidated/SKILL.md — consolidated skill (defaults, diagrams, Bicep patterns, artifacts, demo guide)

DO / DON'T

DO

  • ✅ Read 02-architecture-assessment.md BEFORE generating any design artifact
  • ✅ Use the az-azure-diagrams skill for Python architecture diagrams
  • ✅ Use the SKILLS.md skill file for any details
  • ✅ Generate both the architecture diagram AND the runtime flow diagram — both are required
  • ✅ Save architecture diagram to generated-scenarios/{project}/03-architect-diagram.py
  • ✅ Save runtime flow diagram to generated-scenarios/{project}/03-architect-runtime-diagram.py
  • ✅ Execute both Python scripts to generate PNGs and verify the images exist on disk
  • ✅ Include all Azure resources from the architecture in diagrams
  • ✅ Show data flows, request paths, and authentication flows in the runtime diagram
  • ✅ Update generated-scenarios/{project}/README.md

DON'T

  • ❌ Create Bicep or infrastructure code
  • ❌ Modify existing architecture assessment
  • ❌ Generate diagrams without reading architecture assessment first
  • ❌ Use generic placeholder resources — use actual project resources
  • ❌ Skip the attribution header on output files
  • ❌ NEVER skip the runtime flow diagram — it is as important as the architecture diagram
  • ❌ NEVER mark Step 3 complete without both PNGs verified on disk

Read the full file on GitHub · 192 lines

Changes

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.

  1. today First seen · 192 lines · 56 tokens per session scan A 4ea534f906bb

Subscribe to this mod's changes

az-04-Diagrammer is an agent published in the GitHub repository MicrosoftLearning/trainer-demo-deploy (31 stars, last pushed 11d ago), licensed MIT. It adds 56 tokens to every session and 1,908 once invoked, about $0.0002 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.

Related

az-04-Diagrammer compared with agents from other repositories

az-04-Diagrammer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
az-04-DiagrammerMicrosoftLearning/trainer-demo-deployAgent3111d agoMITA56Claude Code
it-engineerserejaris/personal-corp-osAgent2433d agoMITA66Claude Code
cloud-agentTyrusRC/praetorAgent82d agoApache-2.0A53Claude Code
database-migrationivegamsft/basecoatAgent48d agoMITA37Claude Code
azure-architectarmanzeroeight/fastagent-pluginsAgent293mo agoMITA35Claude Code
deployment-verifierasysta-act/agent-flowAgent124mo agoMITA24Claude Code
aws-principal-architectjiamaozheng/awesome-claude-codeAgent1todaynoneA25Claude Code