awesome-azd
Copilot instructions271 starsChanged 4 months agoMITView on GitHub
Awesome azd is a Docusaurus-based website showcasing Azure Developer CLI templates. The site serves as a discovery platform for azd templates, provides contribution guides, and hosts a searchable gallery of community and Microsoft-authored templates. Always reference these instructions first and fallback to search or bash commands only when you encounter unexpected information that does not match the info here. Bootstrap, build, and test the repository: After making any changes to the website, ALWAYS validate functionality by: Key directories and files:…
In this repositoryOne other file it gives its agents.
The file
Show its rules and text
We split this copilot-instructions.md into the rules it gives an agent
51 rules. About 0 are common, 29 are distinctive, and 22 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈29
Distinctive · estimate
This author's own choices. Worth a look.
22
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 5
Always reference these instructions first and fallback to search or bash commands only when you encounter unexpected information that does …
- Very specific: line 11
Ensure Node.js 18+ is available: node --version (should show v20.19.5 or later)
- Very specific: line 14
Run tests: npm test -- takes ~1 second.
- Very specific: line 16
Start development server: npm run start -- takes ~30 seconds to compile.
- Distinctive: line 29
After making any changes to the website, ALWAYS validate functionality by:
- Very specific: line 31
Start the development server: cd website && npm run start
- Distinctive: line 32
Wait for "Compiled successfully" message
- Very specific: line 33
Test website accessibility: curl -f "http://localhost:3000/awesome-azd/"
- Distinctive: line 38
All navigation links work
- Very specific: line 54
All commands must be run from the website/ directory:
- Distinctive: line 92
Use keyless authentication (Managed Identity preferred or Key Vault) instead of API keys
- Distinctive: line 95
Use Azure Key Vault for secrets management
- Distinctive: line 98
Add Responsible AI governance controls (content safety filters, etc.)
- Distinctive: line 122
Always run the full validation sequence after changes
- Very specific: line 123
Test that templates.json changes don't break the test: npm test
- Distinctive: line 124
Verify gallery displays correctly through manual browser testing
- Distinctive: line 125
Check that all navigation and filtering works
- Very specific: line 130
Add entry to website/static/templates.json with required fields
- Very specific: line 131
Ensure all tags exist in website/src/data/tags.tsx (add if needed)
- Very specific: line 132
Run npm test to validate template tags
- Very specific: line 133
Test gallery display with npm run start
- Distinctive: line 138
Test changes with development server
- Distinctive: line 139
Verify navigation and links work correctly
- Distinctive: line 150
No ESLint or Prettier configuration found
- Distinctive: line 166
When working on contributions:
- Distinctive: line 168
Follow the PR template when creating pull requests
- Distinctive: line 169
Check SECURITY.md for security vulnerability reporting procedures
- Distinctive: line 170
Use appropriate issue templates for bugs, features, or template requests
- Distinctive: line 190
When reviewing pull requests for this repository, follow these guidelines:
- Very specific: line 194
If the PR makes changes to website/static/templates.json, perform the following checks:
- Very specific: line 197
All required fields are present: title, description, preview, authorUrl, author, source, tags, id
- Distinctive: line 203
Check for "new" Tag: If a template is being added for the first time or is newly featured:
- Very specific: line 204
Verify whether the "new" tag has been added to the template's tags array
- Very specific: line 208
Verify "aicollection" Tag: If a template includes the "aicollection" tag:
- Distinctive: line 210
Verify the template is listed at https://azure.github.io/ai-app-templates/
- Distinctive: line 211
If the template is NOT found in the AI collection website:
- Distinctive: line 214
If unable to verify due to site access issues, note this limitation in your review
- Very specific: line 216
Validate All Tags: Ensure all tags used in the template are defined in website/src/data/tags.tsx:
- Very specific: line 217
Check tags in the tags array
- Very specific: line 222
If any tag is not defined in tags.tsx, request that the tag be added to that file first
- Very specific: line 223
Run npm test from the website/ directory to automatically validate tags against the defined list
- Distinctive: line 238
Verify that no tag appears in multiple arrays
- Very specific: line 239
If a tag is duplicated (e.g., appservice in both tags and azureServices):
- Very specific: line 241
Keep it only in the correct array based on its type field and presence of azureIcon
- Distinctive: line 248
Before requesting testing, check whether the template submission issue was created by a trusted author.
- Distinctive: line 253
When mentioning people in PR comments, write mentions as plain text (for example, @v-xuto).
- Distinctive: line 258
Do not suppress this request.
- Distinctive: line 270
Always be respectful and constructive in your feedback
- Very specific: line 273
Run the test suite (npm test) to catch issues automatically
- Distinctive: line 274
Check that CI/CD workflows pass successfully
- Distinctive: line 275
Verify that documentation is updated if the changes affect user-facing features
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Awesome Azure Developer CLI (azd)
Awesome azd is a Docusaurus-based website showcasing Azure Developer CLI templates. The site serves as a discovery platform for azd templates, provides contribution guides, and hosts a searchable gallery of community and Microsoft-authored templates.
Always reference these instructions first and fallback to search or bash commands only when you encounter unexpected information that does not match the info here.
Working Effectively
Bootstrap, build, and test the repository:
- Ensure Node.js 18+ is available:
node --version(should show v20.19.5 or later) - Navigate to website directory:
cd website - Install dependencies:
npm ci-- takes ~15-60 seconds with warnings about deprecated packages (this is normal) - Run tests:
npm test-- takes ~1 second. NEVER CANCEL. Set timeout to 30+ seconds. - Build the website:
npm run build-- takes ~75 seconds. NEVER CANCEL. Set timeout to 120+ seconds. - Start development server:
npm run start-- takes ~30 seconds to compile. NEVER CANCEL. Set timeout to 60+ seconds. - Serve production build:
npm run serve-- starts immediately after build
Critical Timing and Timeout Requirements
- npm ci: 15-60 seconds (normal with deprecated package warnings about rimraf, glob, inflight)
- npm test: 1 second (set timeout to 30+ seconds)
- npm run build: 75 seconds (set timeout to 120+ seconds)
- npm run start: 30 seconds initial compile (set timeout to 60+ seconds)
- NEVER CANCEL any build or test commands - they will complete successfully
Manual Validation Requirements
After making any changes to the website, ALWAYS validate functionality by:
- Start the development server:
cd website && npm run start - Wait for "Compiled successfully" message
- Test website accessibility:
curl -f "http://localhost:3000/awesome-azd/" - Navigate to key pages and verify:
- Homepage displays template gallery correctly
- Getting Started page loads with video and action cards
- Contribute page shows documentation
- All navigation links work
Repository Structure
Key directories and files:
website/- Main Docusaurus applicationsrc/- React components, pages, and datadocs/- Markdown documentation filesstatic/- Static assets includingtemplates.json(5548 lines)package.json- Dependencies and npm scripts
.github/workflows/- CI/CD pipelines (release.yml, test-deploy.yml)README.md- Project overview and resourcesGALLERY.md- Gallery documentation
Available Commands
All commands must be run from the website/ directory:
npm ci- Install dependencies (required first step)npm test- Run Jest tests (validates templates.json against tags)npm run build- Build production website tobuild/directorynpm run start- Start development server at http://localhost:3000/awesome-azd/npm run serve- Serve production build locallynpm run docusaurus- Direct Docusaurus CLI access
Key Technologies
- Docusaurus 3.7.0 - Static site generator
- React 18 - UI framework
- TypeScript - Type checking
- Jest - Testing framework
- Fluent UI - Microsoft design system components
- Node.js 20+ - Runtime requirement
Template Gallery System
The template gallery is driven by:
website/static/templates.json- Template metadata (5548 lines)website/src/data/tags.tsx- Tag definitions for filteringwebsite/src/components/gallery/- Gallery componentswebsite/static/templates/images/- Template preview images
Template Requirements
Templates must meet these standards to be included in the collection:
README Requirements:
- Standard structure with project name, use case, features, and architecture diagram
- Step-by-step deployment and customization instructions
- Getting started section with quick setup options (GitHub Codespaces, Dev Containers, local)
- Clear feature list highlighting AI capabilities
- CI/CD pipeline setup guidance using azd commands
Security Recommended Practices:
- Use keyless authentication (Managed Identity preferred or Key Vault) instead of API keys
- Implement Role-Based Access Control (RBAC) for resource access
- Enable data encryption at rest and in transit
- Use Azure Key Vault for secrets management
- Configure network isolation with private endpoints where applicable
- Include monitoring with Azure Monitor and Application Insights
- Add Responsible AI governance controls (content safety filters, etc.)
- Include SECURITY.md file with security reporting procedures
azure.yaml Metadata Requirements:
- name field (required): Unique app/template name using lowercase, numbers, dashes
- metadata.template field (recommended): Template identifier with version (e.g.,
app-name@1.0.0) - List all Azure services and dependencies
- Include infrastructure as code (Bicep or Terraform) configuration
Example azure.yaml structure:
name: my-ai-app
metadata:
template: my-ai-app@1.0.0
services:
web:
project: ./src/web
language: python
host: appserviceContributing Workflow
When making changes:
- Always run the full validation sequence after changes
- Test that templates.json changes don't break the test:
npm test - Verify gallery displays correctly through manual browser testing
- Check that all navigation and filtering works
Common Development Tasks
Adding a new template to the gallery:
- Add entry to
website/static/templates.jsonwith required fields - Ensure all tags exist in
website/src/data/tags.tsx(add if needed) - Run
npm testto validate template tags - Test gallery display with
npm run start
Modifying site content:
- Edit files in
website/docs/for documentation - Edit files in
website/src/pages/for main pages - Test changes with development server
- Verify navigation and links work correctly
CI/CD Pipeline
The repository uses GitHub Actions:
test-deploy.yml- Runs automatically on PRs (build + test)release.yml- DO NOT RUN - Manual deployment workflow restricted to maintainers only for deploying to GitHub Pages- Your changes will be validated by
test-deploy.ymlautomatically when you open a PR
Known Limitations
- No ESLint or Prettier configuration found
- Build warnings about deprecated packages are normal and expected
- External analytics scripts may fail to load in development (this is expected)
- Some external Microsoft resources may be blocked in sandbox environments
Common File Locations
- Template data:
website/static/templates.json - Tag definitions:
website/src/data/tags.tsx - Gallery components:
website/src/components/gallery/ - Documentation:
website/docs/ - Main pages:
website/src/pages/ - Site configuration:
website/docusaurus.config.js
Contributing Guidelines
When working on contributions:
- Review the Contributor Guide for template submission requirements
- Follow the PR template when creating pull requests
- Check SECURITY.md for security vulnerability reporting procedures
- Use appropriate issue templates for bugs, features, or template requests
Specialized Copilot Prompts
The prompts/ directory contains specialized prompts for specific tasks:
awesome-azd-template-pr.md- Automated template submission processor for handling new azd template contributions
External Resources
Key Azure Developer CLI (azd) documentation:
The build succeeds reliably and the website functions correctly when all steps are followed precisely. The build succeeds reliably and the website functions correctly when all steps are followed precisely.
Pull Request Review Guidelines
When reviewing pull requests for this repository, follow these guidelines:
Changes to templates.json
If the PR makes changes to website/static/templates.json, perform the following checks:
- Validate Template Syntax: Review each new template entry to ensure:
- All required fields are present:
title,description,preview,authorUrl,author,source,tags,id - The
idfield is a unique UUID - The
previewpath points to an existing image file or uses the default test image - The
sourceURL is a valid GitHub repository URL - JSON syntax is correct (proper quotes, commas, brackets)
- All required fields are present:
- Check for "new" Tag: If a template is being added for the first time or is newly featured:
- Verify whether the
"new"tag has been added to the template'stagsarray - The "new" tag should be included for templates that are being newly showcased
- Example:
"tags": ["msft", "new"]or"tags": ["community", "new"] - Verify "aicollection" Tag: If a template includes the
"aicollection"tag:- This tag is reserved for templates that are part of the Microsoft-curated AI collection
- Verify the template is listed at https://azure.github.io/ai-app-templates/
- If the template is NOT found in the AI collection website:
- Request the user to remove the
"aicollection"tag from the template'stagsarray - Example comment: "The
aicollectiontag is reserved for templates included in the Microsoft-curated AI collection at https://azure.github.io/ai-app-templates/. Since this template is not listed there, please remove theaicollectiontag."
- Request the user to remove the
- If unable to verify due to site access issues, note this limitation in your review
- Verify whether the
Validate All Tags: Ensure all tags used in the template are defined in
website/src/data/tags.tsx:- Check tags in the
tagsarray - Check tags in the
languagesarray - Check tags in the
frameworksarray - Check tags in the
azureServicesarray - Check tags in the
IaCarray - If any tag is not defined in
tags.tsx, request that the tag be added to that file first - Run
npm testfrom thewebsite/directory to automatically validate tags against the defined list
Verify Correct Tag Placement by Category:
- Each tag in
tags.tsxhas atypefield that indicates its category - Tags should be placed in the appropriate array based on their
type:- Tags with
type: "Language"→ should ONLY be in thelanguagesarray - Tags with
type: "Framework"→ should ONLY be in theframeworksarray - Tags with
type: "Infrastructure as Code"→ should ONLY be in theIaCarray - Tags with
type: "Service"AND haveazureIconproperty (Azure services) → should ONLY be in theazureServicesarray - Tags with
type: "Service"WITHOUTazureIconproperty (non-Azure services) → should be in thetagsarray - Special tags (
msft,community,new,popular,aicollection) → should be in thetagsarray
- Tags with
- Example:
appservicehastype: "Service"ANDazureIcon, so it belongs inazureServices, NOT intags - Example:
sharepointhastype: "Service"but NOazureIcon, so it belongs intags, NOT inazureServices
Check for Duplicate Tags Across Arrays:
- Verify that no tag appears in multiple arrays
- If a tag is duplicated (e.g.,
appservicein bothtagsandazureServices):- Request removal from the incorrect array
- Keep it only in the correct array based on its
typefield and presence ofazureIcon
- Example: If
appservice(hasazureIcon) appears in bothtagsandazureServices, suggest removing it fromtagsand keeping it only inazureServices - Example: If
sharepoint(noazureIcon) appears in bothtagsandazureServices, suggest removing it fromazureServicesand keeping it only intags
- Check tags in the
Testing Requirements Based on Template Type:
Template type is determined by checking if the
"msft"tag is present in the template'stagsarray. Before requesting testing, check whether the template submission issue was created by a trusted author. If the issue creator is trusted, do not request manual template testing or deployment proof.Trusted Authors:
- paulyuk
When mentioning people in PR comments, write mentions as plain text (for example, @v-xuto). Do not wrap mentions in inline code formatting, because that prevents GitHub notifications.
For Community Templates (tags do NOT contain "msft"):
- @ mention the manual test team member @v-xuto in a PR comment to request testing of the template
- Example comment: "@v-xuto Please test this community template to ensure it works as expected."
- Do not suppress this request. Write the mention as plain text, without inline code or quotation marks, so it sends a valid notification.
For Microsoft Templates (tags contain "msft"):
- @ mention the PR author (use their actual GitHub username) requesting they provide proof of successful testing
- Request either:
- A link to a test pipeline that validates the template
- Screenshots or other proof showing the template deploys successfully
- Example comment: "@author_username Please provide a test pipeline link or proof of success for this Microsoft-authored template."
- Note: Replace
author_usernamewith the actual GitHub username of the PR author (e.g., @johndoe)
General PR Review Best Practices
- Always be respectful and constructive in your feedback
- Provide specific examples when requesting changes
- Acknowledge good work and improvements made by contributors
- Run the test suite (
npm test) to catch issues automatically - Check that CI/CD workflows pass successfully
- Verify that documentation is updated if the changes affect user-facing features
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

