agentleFS
jonathan-vellajonathan-vella/bmit-2026/.github/copilot-instructions.md

bmit-2026

Copilot instructions3 starsChanged 8 months agoMITArchived repositoryView on GitHub

VS Code Copilot-specific orchestration instructions. For general project conventions, build commands, and code style, see the root AGENTS.md. All outputs → agent-output/{project}/. Context flows via artifact files + handoffs. Review column = adversarial passes by challenger subagents; 1-pass default, multi-pass opt-in Single-pass comprehensive review is the default; multi-pass rotating lens is opt-in for complex projects. Reviews target AI-generated creative decisions only (Steps 1, 2, 3.5, 4, 5).

  • Reads credentials
  • Commits and pushes

The file

We split this copilot-instructions.md into the rules it gives an agent

5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    All outputs → agent-output/{project}/.

    line 26
  2. Very specific:

    If a user message starts with gh, treat it as a GitHub operation.

    line 89
  3. Very specific:

    Only use gh for operations that have no equivalent MCP write tool in the current environment.

    line 96
  4. Distinctive:

    AVM-first: Always prefer Azure Verified Modules over raw Bicep/Terraform

    line 104
  5. Very specific:

    Governance: Always check 04-governance-constraints.md for subscription-level Azure Policy

    line 105

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

APEX - Copilot Instructions

VS Code Copilot-specific orchestration instructions. For general project conventions, build commands, and code style, see the root AGENTS.md.

Quick Start

  1. Enable subagents: "github.copilot.chat": { "customAgentInSubagent": { "enabled": true } }
  2. Open Chat (Ctrl+Shift+I) → Select Orchestrator → Describe your project
  3. The Orchestrator guides you through all steps with approval gates

Multi-Step Workflow

StepAgentOutputReviewGate
1Requirements01-requirements.md1×Approval
2Architect02-architecture-assessment.md + cost estimate1× + 1 cost (opt-in: multi-pass)Approval
3Design (opt)03-des-*.{py,png,md} diagrams and ADRs——
3.5Governance (04g-Governance)04-governance-constraints.md/.json1×Approval
4IaC Plan (05-IaC Planner)04-implementation-plan.md + 04-dependency-diagram.py/.png + 04-runtime-diagram.py/.pngopt-in (default: skip)Approval
5IaC Code (Bicep: 06b-Bicep CodeGen / Terraform: 06t-Terraform CodeGen)infra/bicep/{project}/ or infra/terraform/{project}/opt-in (default: skip)Validation
6Deploy (Bicep: 07b-Bicep Deploy / Terraform: 07t-Terraform Deploy)06-deployment-summary.md—Approval
7As-Built07-*.md documentation suite——
PostLessons (Orchestrator)09-lessons-learned.json/.md——

All outputs → agent-output/{project}/. Context flows via artifact files + handoffs. Review column = adversarial passes by challenger subagents; 1-pass default, multi-pass opt-in Single-pass comprehensive review is the default; multi-pass rotating lens is opt-in for complex projects. Reviews target AI-generated creative decisions only (Steps 1, 2, 3.5, 4, 5).

Skills (Auto-Invoked by Agents)

SkillPurpose
appinsights-instrumentationApplication Insights telemetry patterns, SDK setup, APM best practices
azure-adrArchitecture Decision Records
azure-aiAzure AI services (Search, Speech, OpenAI, Document Intelligence)
azure-aigatewayAzure API Management as AI Gateway for models, MCP tools, agents
azure-artifactsTemplate H2 structures, styling, generation rules
azure-bicep-patternsReusable Bicep patterns (hub-spoke, PE, diagnostics)
azure-cloud-migrateCross-cloud migration assessment and code conversion to Azure
azure-complianceCompliance scanning, security auditing, Key Vault expiration monitoring
azure-computeVM size recommendations, VMSS, configuration guidance
azure-cost-optimizationCost savings analysis, utilization metrics, optimization recommendations
azure-defaultsRegions, tags, naming, AVM, security, governance, pricing
azure-deployExecute Azure deployments (azd up, terraform apply, az deployment)
azure-diagnosticsKQL templates, health checks, remediation playbooks
azure-diagramsRouting skill — delegates to drawio, python-diagrams, mermaid
azure-hosted-copilot-sdkBuild and deploy GitHub Copilot SDK apps to Azure
azure-kustoKQL queries for Azure Data Explorer, log analytics, time series
azure-messagingTroubleshoot Azure Event Hubs and Service Bus SDK issues
azure-preparePrepare Azure apps for deployment (infra, azure.yaml, Dockerfiles)
azure-quotasCheck and manage Azure quotas, usage, capacity validation
azure-rbacFind least-privilege RBAC roles, generate assignment CLI/Bicep
azure-resource-lookupList, find, and show Azure resources across subscriptions
azure-resource-visualizerAnalyze resource groups and generate Mermaid architecture diagrams
azure-storageBlob, File, Queue, Table Storage and Data Lake guidance
azure-validatePre-deployment validation for Azure readiness
context-optimizerAudit agent context window usage, token profiling, redundancy detection
context-shreddingRuntime context compression tiers for large artifacts
copilot-customizationVS Code Copilot customization (instructions, agents, skills, MCP)
count-registryCanonical entity counts from count-manifest.json
docs-writerDocumentation generation
drawioAzure architecture diagrams via MCP server (700+ Azure icons, batch creation, transactional mode)
entra-app-registrationMicrosoft Entra ID app registration, OAuth 2.0, MSAL integration
excalidrawHand-drawn whiteboarding, brainstorming, wireframes, informal sketches
github-operationsGitHub issues, PRs, CLI, Actions, releases, commit conventions
golden-principlesThe 10 agent-first operating principles governing agent behavior
iac-commonShared IaC deploy patterns, circuit breaker, known deploy issues
make-skill-templateScaffold new Agent Skills from templates
mermaidInline Mermaid diagrams for markdown documentation
microsoft-code-referenceAzure SDK/API verification and code sample lookup
microsoft-docsOfficial Microsoft documentation search and retrieval
microsoft-foundryDeploy, evaluate, and manage Foundry agents end-to-end
microsoft-skill-creatorGenerate custom agent skills for Microsoft technologies
python-diagramsPython charts (WAF/cost/compliance) and diagrams library patterns
session-resumeSession state tracking, resume protocol, context budgets
terraform-patternsTerraform HCL patterns (hub-spoke, PE, diagnostics, AVM pitfalls)
terraform-search-importAzure resource discovery and bulk Terraform import
terraform-testTerraform testing framework (.tftest.hcl, mocks, assertions)
workflow-engineDAG workflow graph, complexity routing, step definitions

Agents read skills via: "Read .github/skills/{name}/SKILL.md" in their body. At >60% context, agents load SKILL.digest.md (compact); at >80% they load SKILL.minimal.md. See the context-shredding skill for tier selection.

Chat Triggers

  • If a user message starts with gh, treat it as a GitHub operation. Examples: gh pr create ..., gh workflow run ..., gh api ....
  • Automatically follow the github-operations skill guidance (MCP-first, gh CLI fallback) from .github/skills/github-operations/SKILL.md.

GitHub MCP Priority (Mandatory)

  • For issues and pull requests, always prefer GitHub MCP tools over gh CLI.
  • Only use gh for operations that have no equivalent MCP write tool in the current environment.
  • In devcontainers, do not run gh auth commands unless the user explicitly asks for CLI authentication troubleshooting.
  • GH_TOKEN is set via VS Code User Settings (terminal.integrated.env.linux) — shell exports do not propagate reliably.

Key Conventions

See the root AGENTS.md for full conventions. Summary of VS Code-specific overrides:

  • AVM-first: Always prefer Azure Verified Modules over raw Bicep/Terraform
  • Governance: Always check 04-governance-constraints.md for subscription-level Azure Policy

Full details in .github/skills/azure-defaults/SKILL.md.

Terraform Conventions

Full details in .github/skills/terraform-patterns/SKILL.md and root AGENTS.md.

Key Files

PathPurpose
AGENTS.mdCross-agent project conventions and commands
.github/agents/*.agent.mdAgent definitions
.github/skills/*/SKILL.mdReusable skill knowledge
.github/instructions/File-type rules (Bicep, Markdown, etc.)
.github/agent-registry.jsonAgent role → file/model/skills mapping
.github/skill-affinity.jsonSkill/agent affinity weights
agent-output/{project}/Agent-generated artifacts
agent-output/{project}/00-session-state.jsonMachine-readable workflow progress (session-resume skill)
infra/bicep/{project}/Bicep templates
mcp/azure-pricing-mcp/Azure Pricing MCP server
.vscode/mcp.jsonMCP server configuration (github, azure-pricing, terraform, microsoft-learn)
infra/terraform/{project}/Terraform templates by project

Validation

See AGENTS.md for full build and validation commands. Quick reference:

npm run validate:all
npm run lint:md

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.