trainer-demo-deploy: Command for Claude Code

.github/prompts/generate-webapp.prompt.md

generate-webapp is a command for Claude Code, GitHub Copilot from MicrosoftLearning/trainer-demo-deploy. It costs 23 tokens per session (798 once invoked), scanned A, original, MIT.

A command that scaffolds a .NET 10 C# web application using Razor Pages, a page-based ASP.NET Core web framework. It adds industry-specific local sample data, connects the app to Azure Developer CLI configuration, and validates the build.

In plain words
What is it for?
Use it to generate a sample web app for a named project and industry, with Razor Pages, seed data, and integration with the existing Azure deployment setup.
Why use it?
It removes the repetitive setup work needed to create a buildable demo application with pages, models, services, and sample records. It also applies the project's required architecture and coding instructions.

Command for Claude CodeGitHub Copilot

Written for Claude Code and GitHub Copilot: argument-hint in frontmatter, but also a Copilot chat mode or prompt. Also seen: model in frontmatter.

This is MicrosoftLearning/trainer-demo-deploy's own configuration. It tells Claude Code and GitHub Copilot 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/prompts/generate-webapp.prompt.md
Clone the repo
git clone --depth 1 https://github.com/MicrosoftLearning/trainer-demo-deploy

Made for: Claude Code, GitHub Copilot.

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 generate-webapp

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/microsoftlearning/trainer-demo-deploy/generate-webapp"><img src="https://agentmods.dev/badge/commands/microsoftlearning/trainer-demo-deploy/generate-webapp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 798 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.00023 $0.00798
Opus 5.5 $0.00009 $0.00319
Sonnet 5.5 $0.00005 $0.00160
Haiku 4.5 $0.00002 $0.00080

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

Security

Grade A, and why

generate-webapp 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/prompts/generate-webapp.prompt.md · 100 lines

How it starts

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

Generate Sample Web Application

Scaffold a .NET 10 C# Razor Pages web application with industry-specific seed data, wire it into the azd framework, and validate the build.

Mission

Generate a complete, buildable sample web application that demonstrates the Azure demo workload with realistic local data. The application must integrate with the existing infrastructure via the azure.yaml service configuration.

Scope & Preconditions

  • generated-scenarios/${input:projectName}/02-architecture-assessment.md must exist
  • generated-scenarios/${input:projectName}/infra/ must contain validated Bicep templates
  • Read .github/skills/az-consolidated/SKILL.md for naming conventions and defaults
  • Read .github/skills/az-webapp-development/SKILL.md for .NET 10 patterns
  • Read .github/instructions/az-dotnet-webapp.instructions.md for coding standards
  • Output saved to generated-scenarios/${input:projectName}/src/{ProjectName}.Web/

Inputs

Variable Description Default
${input:projectName} Project name matching the generated-scenarios/ folder Required
${input:industry} Business industry for seed data Required

Workflow

Step 1: Context Extraction

  1. Read 02-architecture-assessment.md to identify compute targets
  2. Determine if webapp is eligible (App Service, Container Apps, ACI, AKS)
  3. If compute is VM-only, skip webapp generation entirely

Step 2: Scaffold .NET 10 Project

  1. Run dotnet new webapp --framework net10.0 --name {ProjectName}.Web
  2. Set up project structure per skill patterns

Step 3: Generate Models and Seed Data

  1. Create entity models based on industry selection
  2. Generate 10-20 realistic seed records per entity as JSON
  3. Create SampleDataService for in-memory data loading

Step 4: Build Razor Pages

  1. Home dashboard with entity counts and navigation
  2. List and Detail pages per entity type

Read the full file on GitHub · 100 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 · 100 lines · 23 tokens per session scan A cf50f75ad6a7

Subscribe to this mod's changes

generate-webapp is a command published in the GitHub repository MicrosoftLearning/trainer-demo-deploy (31 stars, last pushed 11d ago), licensed MIT. It adds 23 tokens to every session and 798 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-11-07.

Related

generate-webapp compared with commands from other repositories

generate-webapp next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
generate-webappMicrosoftLearning/trainer-demo-deployCommand3111d agoMITA23Claude Code, GitHub Copilot
initfcakyon/claude-codex-settingsCommand1.2ktodayApache-2.0A0Claude Code
http-serviceMadAppGang/magusCommand14todayMITA27Claude Code
api-contract-reviewMozurok/fhorja.devCommand1028d agoMITA64Claude Code
buildAzure/ai-gatewayCommand510d agoMITA0Claude Code
start-10-1minicoohei/ai-agent-campCommand3471mo agononeA2Claude Code
fastapimfmezger/ai_agent_dotfilesCommand73mo agoMITA84Claude Code, Gemini CLI