bmit-2026
AGENTS.md3 starsChanged 8 months agoMITArchived repositoryView on GitHub
Agentic Platform Engineering eXperience for Azure. Verified. Well-Architected. Deployable. A multi-agent orchestration system for Azure platform engineering. Specialized AI agents collaborate through a structured multi-step workflow: Requirements → Architecture → Design → Governance → Plan → Code → Deploy → Documentation. For the complete reference of all validation scripts, linting commands, git hooks, and CI workflows, see the published Validation & Linting Reference. Follow Azure Cloud Adoption Framework naming: Every Azure resource must include these 4 tags at minimum:
- Reads credentials
- Installs packages
- Commits and pushes
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 33,398 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository48 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- appinsights-instrumentationSkill
- azure-adrSkill
- azure-aigatewaySkill
- azure-aiSkill
- azure-artifactsSkill
- azure-bicep-patternsSkill
- azure-cloud-migrateSkill
- azure-complianceSkill
- azure-computeSkill
- azure-cost-optimizationSkill
- azure-defaultsSkill
- azure-deploySkill
- azure-diagnosticsSkill
- azure-diagramsSkill
- azure-hosted-copilot-sdkSkill
- azure-kustoSkill
- azure-messagingSkill
- azure-prepareSkill
- azure-quotasSkill
- azure-rbacSkill
- azure-resource-lookupSkill
- azure-resource-visualizerSkill
- azure-storageSkill
- azure-validateSkill
- context-optimizerSkill
- context-shreddingSkill
- copilot-customizationSkill
- count-registrySkill
- docs-writerSkill
- drawioSkill
- entra-app-registrationSkill
- excalidrawSkill
- github-operationsSkill
- golden-principlesSkill
- iac-commonSkill
- make-skill-templateSkill
- mermaidSkill
- microsoft-code-referenceSkill
- microsoft-docsSkill
- microsoft-foundrySkill
- microsoft-skill-creatorSkill
- python-diagramsSkill
- session-resumeSkill
- terraform-patternsSkill
- terraform-search-importSkill
- terraform-testSkill
- workflow-engineSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
15 rules. About 1 is common, 6 are distinctive, and 8 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 76
Follow Azure Cloud Adoption Framework naming:
- Distinctive: line 88
Every Azure resource must include these 4 tags at minimum:
- Distinctive: line 105
Always prefer AVM modules over raw resource definitions:
- Very specific: line 123
No public blob access (allowBlobPublicAccess: false)
- Very specific: line 124
No shared key access on storage (allowSharedKeyAccess: false) — use Entra ID
- Very specific: line 186
Always run npm run lint:md and relevant validations before committing.
- Very specific: line 240
All outputs go to agent-output/{project}/.
- Very specific: line 269
Never: place azure.yaml or .azure/ at the repo root — this breaks multi-project isolation
- Very specific: line 285
Parameter files: Use .bicepparam format
- Common: line 291
Never hardcode secrets, connection strings, or API keys in templates
- Distinctive: line 292
Use Key Vault references for sensitive parameters
- Distinctive: line 294
All storage accounts: HTTPS-only, TLS 1.2, no public blob access
- Very specific: line 297
Always check 04-governance-constraints.md for subscription-level Azure Policy requirements
- Distinctive: line 301
Run every 3 months to prevent context bloat regression:
- Very specific: line 310
Run npm run snapshot:baseline to capture current state for future diffs
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 AGENTS.md 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
APEX
Agentic Platform Engineering eXperience for Azure. Verified. Well-Architected. Deployable.
A multi-agent orchestration system for Azure platform engineering. Specialized AI agents collaborate through a structured multi-step workflow: Requirements → Architecture → Design → Governance → Plan → Code → Deploy → Documentation.
Setup Commands
# Create your own repo from the Accelerator template:
# https://github.com/jonathan-vella/azure-agentic-infraops-accelerator
# Then clone YOUR repo and open in dev container
git clone https://github.com/YOUR-USERNAME/my-infraops-project.git
cd my-infraops-project
code .
# F1 → Dev Containers: Reopen in Container
# Install Node.js dependencies (validation scripts, linting)
npm install
# Python dependencies (Azure Pricing MCP server, diagrams)
pip install -r requirements.txtPre-installed Tools (Dev Container)
- Azure CLI (
az) with Bicep extension - Azure Developer CLI (
azd) for standardized deployments - Terraform CLI with TFLint
- GitHub CLI (
gh) - Node.js + npm (validation scripts)
- Python 3 + pip (MCP server, diagram generation)
- Go (Terraform MCP server)
Build & Validation
For the complete reference of all validation scripts, linting commands, git hooks, and CI workflows, see the published Validation & Linting Reference.
# Full validation suite
npm run validate:all
# Individual checks
npm run lint:md # Markdown linting
npm run lint:json # JSON/JSONC validation
npm run lint:agent-frontmatter # Agent definition frontmatter
npm run lint:skills-format # Skill file format
npm run validate:instruction-checks # Instruction file format and reference validation
npm run lint:artifact-templates # Artifact template compliance
npm run lint:h2-sync # H2 heading sync between templates and artifacts
npm run lint:governance-refs # Governance reference validation
npm run validate:session-state # Session state JSON schema validation
npm run validate:session-lock # Session lock/claim model validation
npm run validate:workflow-graph # Workflow DAG graph validation
npm run validate:agent-registry # Agent registry consistency
npm run validate:skill-affinity # Skill/agent affinity catalog validation
npm run validate:iac-security-baseline # IaC security baseline (TLS, HTTPS, blob, identity, SQL auth)
# Bicep validation (replace {project} with actual project name)
bicep build infra/bicep/{project}/main.bicep
bicep lint infra/bicep/{project}/main.bicep
# Terraform validation
terraform fmt -check -recursive infra/terraform/
# Per-project: cd infra/terraform/{project} && terraform init -backend=false && terraform validate
npm run validate:terraformCode Style
Naming Conventions (CAF)
Follow Azure Cloud Adoption Framework naming:
| Resource | Abbreviation | Pattern | Max Length |
| Resource Group | rg | rg-{project}-{env} | 90 |
| Virtual Network | vnet | vnet-{project}-{env} | 64 |
| Key Vault | kv | kv-{short}-{env}-{suffix} | 24 |
| Storage Account | st | st{short}{env}{suffix} | 24 |
| App Service | app | app-{project}-{env} | 60 |
Required Tags (Azure Policy Enforced)
Every Azure resource must include these 4 tags at minimum:
| Tag | Example Values |
Environment | dev, staging, prod |
ManagedBy | Bicep or Terraform |
Project | Project identifier |
Owner | Team or individual name |
Default Region
- Primary:
swedencentral(EU GDPR-compliant) - Exception: Static Web Apps →
westeurope - Failover:
germanywestcentral
Azure Verified Modules (AVM) First
Always prefer AVM modules over raw resource definitions:
- Bicep:
br/public:avm/res/{provider}/{resource}:{version} - Terraform:
registry.terraform.io/Azure/avm-res-{provider}-{resource}/azurerm
Unique Suffix Pattern
Generate once, pass everywhere:
- Bicep:
uniqueString(resourceGroup().id) - Terraform:
random_string(4 chars, lowercase)
Security Baseline
These are non-negotiable for all generated infrastructure code:
- TLS 1.2 minimum on all services
- HTTPS-only traffic (
supportsHttpsTrafficOnly: true) - No public blob access (
allowBlobPublicAccess: false) - No shared key access on storage (
allowSharedKeyAccess: false) — use Entra ID - Managed Identity preferred over keys/connection strings
- Azure AD-only authentication for SQL
- App Service HTTP/2 enabled (
http20Enabled: true) - Container Registry admin user disabled (
adminUserEnabled: false) - MySQL/PostgreSQL SSL enforcement required
- Public network access disabled for production data services (dev/test exempt)
Testing
# Run all validations (CI equivalent)
npm run validate:all
# E2E Ralph Loop — validate artifacts (structural, no agent invocation)
npm run e2e:validate
# E2E Ralph Loop — benchmark scoring (8 dimensions, 0-100)
npm run e2e:benchmark
# E2E Ralph Loop — Terraform project benchmark
npm run e2e:benchmark -- terraform-e2e
# E2E Ralph Loop — multi-project comparison
npm run e2e:benchmark -- --compare
# Pre-commit hooks (installed via lefthook)
npm run prepare
# Pre-push hook (diff-based, automatic via lefthook)
# Only validates file types that changed: *.bicep, *.tf, *.md, *.agent.md, etc.
# Runs domain-scoped validators in parallel for speed
git push # triggers diff-based-push-check.sh automatically
# Bicep: lint + build before committing templates
bicep lint infra/bicep/{project}/main.bicep
bicep build infra/bicep/{project}/main.bicep
# Terraform: format + validate before committing
terraform fmt -recursive infra/terraform/
cd infra/terraform/{project} && terraform init -backend=false && terraform validateCommit & PR Guidelines
Use Conventional Commits:
<type>[optional scope]: <description>| Type | Purpose |
feat | New feature |
fix | Bug fix |
docs | Documentation only |
refactor | Code refactor (no feature/fix) |
ci | CI/config changes |
chore | Maintenance/misc |
Scopes: agents, skills, instructions, bicep, terraform, mcp, docs, scripts.
Always run npm run lint:md and relevant validations before committing.
Project Structure
.github/
agents/ # Agent definitions (*.agent.md) — top-level + subagents
_subagents/ # Subagent definitions (non-user-invocable)
skills/ # Reusable domain knowledge (SKILL.md per skill)
workflow-engine/ # DAG model, workflow-graph.json
context-shredding/ # Runtime context compression tiers and templates
iac-common/ # Shared deploy patterns + circuit-breaker.md
instructions/ # File-type rules with glob-based auto-application
agent-registry.json # Machine-readable agent role → file/model/skills mapping
skill-affinity.json # Skill/agent affinity weights (primary/secondary/never)
copilot-instructions.md # VS Code Copilot-specific orchestration instructions
agent-output/ # All agent-generated artifacts organized by project
{project}/ # Per-project: 00-session-state.json + 01-requirements.md through 07-*.md
infra/
bicep/{project}/ # Bicep templates (main.bicep + modules/)
azure.yaml # azd project manifest (per-project, co-located)
.azure/ # azd environment state (git-ignored)
plan.md # azure-prepare output — source of truth for validate/deploy
terraform/{project}/ # Terraform configurations (main.tf + modules/)
azure.yaml # azd project manifest (infra.provider: terraform)
.azure/ # azd environment state (git-ignored)
plan.md # azure-prepare output — source of truth for validate/deploy
assets/
excalidraw-libraries/ # Excalidraw libraries (whiteboarding only)
drawio-libraries/ # Draw.io Azure icon libraries (for VS Code extension; MCP server has built-in icons) (mxlibrary XML + mxfile.xsd)
mcp/
azure-pricing-mcp/ # Custom Azure Pricing MCP server (Python)
scripts/ # Validation and maintenance scripts (Node.js)
site/
src/content/docs/ # Published user-facing documentation (Astro Starlight)
public/ # Site-served static assets
.vscode/
mcp.json # MCP server configuration (github, azure-pricing, terraform, microsoft-learn, drawio)Agent Workflow
| Step | Phase | Output | Review |
| 1 | Requirements | 01-requirements.md | 1× |
| 2 | Architecture | 02-architecture-assessment.md + cost estimate | 1× + 1 cost (opt-in: multi-pass) |
| 3 | Design (opt) | 03-des-*.{py,png,md} diagrams and ADRs | — |
| 3.5 | Governance | 04-governance-constraints.md/.json | 1× |
| 4 | IaC Plan | 04-implementation-plan.md + 04-*-diagram.py/.png | opt-in (default: skip) |
| 5 | IaC Code | infra/bicep/{project}/ or infra/terraform/{project}/ | opt-in (default: skip) |
| 6 | Deploy | 06-deployment-summary.md | — |
| 7 | As-Built | 07-*.md documentation suite | — |
| Post | Lessons | 09-lessons-learned.json/.md | — |
All outputs go to agent-output/{project}/.
Unified planner (05-IaC Planner) feeds into dual IaC tracks: Bicep (06b/07b) and Terraform (06t/07t).
The Orchestrator agent orchestrates the full workflow with human approval gates.
Review column = adversarial passes by challenger subagents, complexity-dependent
Complexity-dependent. Conditional early exits reduce actual passes.
Reviews target AI-generated creative decisions (architecture, governance, plan, code) not
tool output (what-if/plan previews).
Content Sharing Decision Framework
| Content Type | Mechanism | When to Use |
| Enforcement rules | Instructions (auto-loaded by glob) | Rules that must apply to all files of a type |
| Shared domain knowledge | Skill references/ | Deep content loaded on-demand by agents |
| Executable scripts | Skill scripts/ (NOT references/) | Deterministic operations, build/deploy scripts |
| Cross-agent boilerplate | Subagent or instruction with narrow glob | Repeated patterns across multiple agent bodies |
azd Multi-Project Convention
This repo supports multiple independent projects. Each project is a fully self-contained
azd project with its own azure.yaml and .azure/ directory inside the IaC project folder.
- Project root:
infra/bicep/{project}/orinfra/terraform/{project}/ - azd manifest:
infra/{iac}/{project}/azure.yamlwithinfra.path: .(co-located) - azd state:
infra/{iac}/{project}/.azure/(git-ignored) — contains per-environment.envfiles - Prepare plan:
infra/{iac}/{project}/.azure/plan.md— source of truth for azure-validate → azure-deploy - Environment naming:
{project}-{env}(e.g.,hub-spoke-dev,webapp-prod) to avoid collisions - Running azd:
cd infra/{iac}/{project}then runazdcommands, or useazd -C infra/{iac}/{project}from repo root - Never place
azure.yamlor.azure/at the repo root — this breaks multi-project isolation
Terraform Conventions
- Provider pin:
~> 4.0(AzureRM) - Backend: Azure Storage Account
- Required tags: Same as above, with
ManagedBy = "Terraform" - Unique suffix:
random_stringresource (4 chars, lowercase) - AVM registry:
registry.terraform.io/Azure/avm-res-*/azurerm - azd support:
azure.yamlwithinfra.provider: terraformandinfra.path: .in each project directory
Bicep Conventions
- Unique suffix:
uniqueString(resourceGroup().id)— generated once inmain.bicep, passed to all modules - Required tags: Same as above, with
ManagedBy = "Bicep" - AVM registry:
br/public:avm/res/{provider}/{resource}:{version} - Parameter files: Use
.bicepparamformat - Deployment:
azure.yamlmanifest forazd(preferred);deploy.ps1PowerShell script (legacy fallback) - azd manifest:
azure.yamllives insideinfra/bicep/{project}/withinfra.path: .
Security Considerations
- Never hardcode secrets, connection strings, or API keys in templates
- Use Key Vault references for sensitive parameters
- Managed Identity is the default authentication method
- All storage accounts: HTTPS-only, TLS 1.2, no public blob access
- SQL databases: Azure AD-only authentication
- Production environments: disable public network access on data services
- Always check
04-governance-constraints.mdfor subscription-level Azure Policy requirements
Quarterly Context Audit
Run every 3 months to prevent context bloat regression:
npm run lint:skill-size— check for skills >200 lines without referencesnpm run lint:agent-body-size— check for agents >350 linesnpm run lint:glob-audit— check for broad wildcards on large filesnpm run lint:skill-references— check for orphaned reference filesnpm run lint:orphaned-content— check for unreferenced skillsnpm run lint:docs-freshness— check docs counts and links- Review
QUALITY_SCORE.mdand update if metrics changed - Run
npm run snapshot:baselineto capture current state for future diffs
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.

