Custom Agents
What This Demonstrates
Section titled “What This Demonstrates”This repo ships 3 custom agents under .github/agents/. Each is a domain expert that can be invoked by name in Copilot Chat.
BDD Specialist
Section titled “BDD Specialist”Agent file: .github/agents/bdd-specialist.agent.md
Generates Gherkin feature files, coverage matrices, and Playwright E2E tests.
Prompt A — Coverage Matrix + Gherkin
Section titled “Prompt A — Coverage Matrix + Gherkin”@bdd-specialist Create a BDD coverage matrix and Gherkin feature file for thecheckout flow in `services/order-service`. Include happy path, edge cases(empty cart, out-of-stock), error scenarios (payment failure), andaccessibility checks.What to look for:
- Coverage matrix with scenario categories
- Gherkin
.featurefile with proper tags - Edge cases specific to this project’s checkout flow
Prompt B — Playwright E2E Tests
Section titled “Prompt B — Playwright E2E Tests”@bdd-specialist Write Playwright E2E tests for the product catalog searchfeature, covering search with results, search with no matches, andkeyboard-only navigation. Follow the project's existing Playwright configand page-object patterns.Terraform Azure Infrastructure Planning
Section titled “Terraform Azure Infrastructure Planning”Agent file: .github/agents/terraform-azure-planning.agent.md
Creates detailed, phased Terraform implementation plans for Azure resources.
Prompt A — Service Bus Integration
Section titled “Prompt A — Service Bus Integration”@terraform-azure-planning Create an implementation plan for adding AzureService Bus to this project for async event-driven communication betweenorder-service and payment-service. Include resource definitions,dependencies, and phased tasks.What to look for:
- Terraform module structure consistent with existing modules
- Resource dependencies and ordering
- Integration with existing networking (VNet, subnets)
Prompt B — Redis Cache with Private Endpoint
Section titled “Prompt B — Redis Cache with Private Endpoint”@terraform-azure-planning Plan the Azure infrastructure needed to add RedisCache (for cart-service session store) with private endpoint connectivityto the existing AKS cluster.GitHub Actions Expert
Section titled “GitHub Actions Expert”Agent file: .github/agents/github-actions-expert.agent.md
Designs secure, least-privilege CI/CD workflows with supply-chain hardening.
Prompt A — Security Audit
Section titled “Prompt A — Security Audit”@github-actions-expert Review the existing GitHub Actions workflows in thisrepo and suggest security improvements: action pinning, permissionshardening, OIDC for Azure, and dependency review.What to look for:
- Actions pinned to SHA (not just version tags)
- Minimal
permissionsblocks - OIDC authentication instead of long-lived secrets
Prompt B — Reusable CI Workflow
Section titled “Prompt B — Reusable CI Workflow”@github-actions-expert Create a reusable CI workflow for backend servicesthat runs lint, unit tests, and container image build — triggered only whenthat service's files change. Follow least-privilege permissions and pinall actions.Follow-Up Prompts
Section titled “Follow-Up Prompts”- “@bdd-specialist Add negative test scenarios for authentication failures.”
- “@terraform-azure-planning What’s the estimated monthly cost for these resources?”
- “@github-actions-expert Add a matrix strategy to test across Node 18 and 20.”