Skill and Subagent Reference¶
Skills¶
Skills are invoked automatically by agents, but you can also reference them directly in prompts.
azure-defaults¶
Provides regions, tags, naming conventions, AVM module references, and security baselines. This is the foundational skill — agents read it before every task.
azure-diagrams¶
Generates Python architecture diagrams using the diagrams library.
Generate an architecture diagram for the infrastructure in
infra/bicep/my-project/ using the azure-diagrams skill.
azure-bicep-patterns¶
Provides reusable Bicep patterns: hub-spoke networking, private endpoints, diagnostic settings, conditional deployments, and AVM module composition.
terraform-patterns¶
Provides reusable Terraform patterns: hub-spoke networking, private endpoints, diagnostic settings, AVM-TF module composition, and known AVM pitfalls.
azure-troubleshooting¶
KQL templates, metric thresholds, health checks, and remediation playbooks for diagnosing Azure resource issues.
azure-adr¶
Creates Architecture Decision Records following a structured template.
git-commit¶
Provides conventional commit message conventions for this repository.
github-operations¶
Manages GitHub issues, PRs, Actions, and releases. Uses MCP tools first,
falls back to gh CLI.
Create a GitHub issue for adding monitoring to the payment gateway.
Label it with 'enhancement' and 'infrastructure'.
docs-writer¶
Generates and maintains documentation following repository standards.
make-skill-template¶
Scaffolds a new skill directory from the template.
Create a new skill called 'azure-monitoring' for Application Insights
and Log Analytics best practices.
azure-artifacts¶
Artifact template structures, H2 compliance rules, and documentation styling for all agent outputs (all steps).
context-optimizer¶
Audits agent context window usage via debug logs, token profiling, and redundancy detection. Produces optimisation recommendations.
context-shredding¶
Runtime context compression with 3 tiers (full/summarised/minimal) and per-artifact templates to keep agents within context limits.
@workspace What compression tiers does context-shredding define
for the architecture assessment artifact?
copilot-customization¶
Authoritative reference for VS Code Copilot customisation mechanisms: instructions, prompt files, custom agents, skills, MCP servers, and hooks.
I want to create a new custom agent for database migration tasks.
Walk me through the steps using copilot-customization.
golden-principles¶
The 10 agent-first operating principles governing how agents work in this repository. Defines governance invariants and philosophy.
iac-common¶
Shared IaC patterns for deploy agents: CLI auth validation, deployment strategies, known issues, and governance-to-code property mapping.
session-resume¶
Session state tracking and resume protocol for the 8-step workflow. Manages checkpoint recovery and session-state.json schema.
workflow-engine¶
Machine-readable workflow DAG for the 8-step pipeline. Defines node types, edge conditions, gates, and fan-out patterns.
Subagents¶
Not user-invocable
Subagents are delegated to automatically by parent agents. You cannot
select them from the agent picker (Ctrl+Shift+A). See
Workflow Prompts for end-user scenarios.
Subagents¶
Subagents are called automatically by the Bicep CodeGen, Terraform CodeGen, Bicep Deploy, Terraform Deploy, Architect, and IaC Planner agents. You do not invoke them directly, but understanding their output helps you interpret validation results.
bicep-lint-subagent¶
Runs bicep lint and bicep build to validate template syntax. Returns a
structured PASS/FAIL result with error counts and details.
bicep-review-subagent¶
Reviews Bicep templates against AVM standards, naming conventions, security baselines, and best practices. Returns an APPROVED, NEEDS_REVISION, or FAILED verdict with actionable feedback.
bicep-whatif-subagent¶
Runs az deployment group what-if to preview deployment changes. Analyzes
policy violations, resource changes, and cost impact. Returns a structured
change summary.
terraform-lint-subagent¶
Runs terraform fmt -check, terraform validate, and TFLint to validate
configuration syntax. Returns a structured PASS/FAIL result with diagnostics.
terraform-review-subagent¶
Reviews Terraform configs against AVM-TF standards, CAF naming conventions, security baselines, and governance compliance. Returns APPROVED, NEEDS_REVISION, or FAILED verdict with actionable feedback.
terraform-plan-subagent¶
Runs terraform plan to preview infrastructure changes. Classifies resources
into create/update/destroy/replace, highlights destructive operations,
and returns a structured change summary.
cost-estimate-subagent¶
Queries Azure Pricing MCP tools for real-time SKU pricing. Compares regions and returns a structured cost breakdown.
governance-discovery-subagent¶
Queries Azure Policy assignments via REST API (including management group- inherited policies). Classifies policy effects and returns structured governance constraints.
Tips and Patterns¶
Context Priming¶
Open Files Before Prompting
Open relevant artifact files before starting a complex workflow step. Copilot uses open files as context, giving agents better awareness of your project state.
Before starting a complex workflow, open relevant files so Copilot has context:
- Open the requirements document (
01-requirements.md) - Open the architecture assessment (
02-architecture-assessment.md) - Then ask the Bicep Planner agent to create the implementation plan
Chaining Agents¶
You can chain agents manually by using handoff buttons in the chat, or run the Conductor for automatic orchestration. Manual chaining gives you more control over each step.
Bicep track:
- Run Requirements → review and approve
01-requirements.md - Run Architect → review WAF scores and cost estimate
- Run Bicep Planner → review governance constraints and plan
- Run Bicep CodeGen → review generated templates
- Run Bicep Deploy → review what-if before approving deployment
- Run As-Built → generate post-deployment documentation
Terraform track:
- Run Requirements → review and approve
01-requirements.md - Run Architect → review WAF scores and cost estimate
- Run Terraform Planner → review governance constraints and plan
- Run Terraform CodeGen → review generated configs
- Run Terraform Deploy → review plan output before applying
- Run As-Built → generate post-deployment documentation
Recovering from Errors¶
If an agent produces incorrect output, use specific follow-up prompts:
The VNet address space conflicts with our on-premises range (10.0.0.0/8).
Change the hub VNet to 172.16.0.0/16 and spoke VNets to 172.17.0.0/16.
Working with Existing Infrastructure¶
Agents can work with existing deployments, not just greenfield projects:
I have an existing resource group rg-legacy-app-prod with 15 resources.
Generate as-built documentation for this infrastructure.
Review the existing Bicep templates in infra/bicep/legacy-app/
and suggest improvements for WAF alignment.