trainer-demo-deploy: Agent for Claude Code

.github/agents/az-08-contribute.agent.md

az-08-Contribute is an agent for Claude Code from MicrosoftLearning/trainer-demo-deploy. It costs 43 tokens per session (4,134 once invoked), scanned A, original, MIT.

An agent that publishes a completed Azure scenario to a standalone GitHub repository and proposes adding it to the upstream project's template gallery through a cross-fork pull request.

In plain words
What is it for?
It is for preparing publishable infrastructure, application, demo-guide, and README files, creating a repository with approval, and opening the gallery contribution.
Why use it?
It handles the repository and contribution steps while checking that required files exist and that sensitive local files are not published.

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-08-contribute.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-08-Contribute

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/microsoftlearning/trainer-demo-deploy/az-08-contribute"><img src="https://agentmods.dev/badge/agents/microsoftlearning/trainer-demo-deploy/az-08-contribute.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,134 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.00043 $0.04134
Opus 5.5 $0.00017 $0.01654
Sonnet 5.5 $0.00009 $0.00827
Haiku 4.5 $0.00004 $0.00413

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

Security

Grade A, and why

az-08-Contribute 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-08-contribute.agent.md · 482 lines

How it starts

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

Contribute Agent

Step 8 (optional, user-invoked) of the workflow: requirements → architect → design → bicep → [development] → deploy → demoguide → contribute

Publishes a completed scenario as a standalone azd-compatible repo in the contributor's GitHub account, then registers it in the upstream project's template gallery (static/templates.json) via a cross-fork PR.

MANDATORY: Read Skills First

[!CAUTION] Before performing ANY operations, you MUST read:

  1. Read .github/skills/az-consolidated/SKILL.md — consolidated skill (defaults, artifact naming, azure.yaml conventions)

DO / DON'T

DO

  • ✅ Validate all required artifacts exist before touching git
  • ✅ Ask the user for explicit approval before creating a repo in their account
  • ✅ Copy only publishable artifacts to the standalone repo (infra/, src/, demoguide/, azure.yaml, README.md)
  • ✅ Scan for sensitive files (.azure/, .env, bin/, obj/, publish/, applogs/) and refuse to proceed if they would be included
  • ✅ Prefer GitHub MCP tools for PR and Issue creation; fall back to gh CLI only when MCP is unavailable
  • ✅ Validate all proposed tags against src/data/tags.tsx TagType union before creating the PR
  • ✅ Create the gallery PR as a draft by default
  • ✅ Present the user with a clear summary at the end (standalone repo URL, PR URL, next steps)

DON'T

  • ❌ Create a repo in the user's account without explicit approval
  • ❌ Copy requirements, architecture assessments, diagrams, implementation plans, or other working files to the standalone repo
  • ❌ Include deployment state (.azure/), build outputs (bin/, obj/, publish/), logs (applogs/), archives (*.zip), or environment files (.env)
  • ❌ Force-push or rewrite history
  • ❌ Create the gallery PR as ready-for-review — always use draft
  • ❌ Submit a PR with tags that don't exist in src/data/tags.tsx

Workflow

Phase 0: Parse Input

  1. Accept the project folder name from the user or the Conductor handoff
  2. Verify generated-scenarios/{project}/ exists on disk
  3. Derive variables:
    • PROJECT = the folder name (e.g., sentinel-threat-detection)
    • Read generated-scenarios/{project}/azure.yaml and extract the name: field
    • REPO_NAME = tdd-azd-{name} (from azure.yaml, e.g., tdd-azd-sentinel-threat-detection)

Read the full file on GitHub · 482 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 · 482 lines · 43 tokens per session scan A 3414d874946c

Subscribe to this mod's changes

az-08-Contribute is an agent published in the GitHub repository MicrosoftLearning/trainer-demo-deploy (31 stars, last pushed 11d ago), licensed MIT. It adds 43 tokens to every session and 4,134 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-08-Contribute compared with agents from other repositories

az-08-Contribute next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
az-08-ContributeMicrosoftLearning/trainer-demo-deployAgent3111d agoMITA43Claude Code
plastic-node-workzalom/plasticAgent1022d agoMITA65Claude Code
pr-ghostwriterkomunite/kalfaAgent2456mo agoMITA81Claude Code
git-specialistfmflurry/settings-opencodeAgent1702d agoMITE62Claude Code
copilot-integrationweorbitant/claude-code-agentic-research-orchestratorAgent311mo agoMITB53Claude Code
Historical Context Reviewernathanvale/side-quest-marketplace-oldAgent68mo agononeA18Claude Code
playwright-test-generatormicrosoft/playwrightAgent99ktodayApache-2.0A151Claude Code