agentleFS
paulanunes85paulanunes85/three-horizons-accelerator/.github/copilot-instructions.md

three-horizons-accelerator

Copilot instructions2 starsChanged 10 months agoMITView on GitHub

This is the Three Horizons Accelerator v4.0.0 - an enterprise-grade platform accelerator for Azure with AI capabilities. The platform is organized into three horizons: Option A — Agent-guided: Option B — Automated script: Option C — Manual: The platform uses 11 Copilot Chat Agents in .github/agents/ for interactive development assistance, plus 18 skills for specialized CLI operations. There are also 16 Terraform modules, 22 Golden Path templates, and 28 Issue templates.

The file

Show its rules and text

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈22

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Always specify provider versions

    line 24
  2. Distinctive:

    Use modules for reusable components

    line 25
  3. Distinctive:

    Use Workload Identity (never service principal secrets)

    line 27
  4. Distinctive:

    Use Kustomize for environment overlays

    line 31
  5. Distinctive:

    Always set resource limits and requests

    line 32
  6. Distinctive:

    Run containers as non-root

    line 33
  7. Distinctive:

    Use standard Kubernetes labels (app.kubernetes.io/*)

    line 36
  8. Distinctive:

    Use FastAPI for APIs

    line 40
  9. Distinctive:

    Use Pydantic for validation

    line 41
  10. Distinctive:

    Use structlog for logging

    line 42
  11. Distinctive:

    Follow PEP 8 style guidelines

    line 43
  12. Distinctive:

    Use bash with strict mode (set -euo pipefail)

    line 46
  13. Distinctive:

    Use meaningful variable names

    line 49
  14. Distinctive:

    Authentication: Always use Workload Identity or Managed Identity

    line 69
  15. Distinctive:

    Network: Use private endpoints, configure NSGs

    line 71
  16. Distinctive:

    Scanning: Run security scans in CI/CD (Trivy, tfsec, gitleaks)

    line 72
  17. Distinctive:

    RBAC: Follow least privilege principle

    line 73
  18. Distinctive:

    @test: Test generation, validation, quality assurance

    line 132
  19. Distinctive:

    When generating code for agents:

    line 140
  20. Very specific:

    Follow the agent specification format in .github/agents/

    line 141
  21. Distinctive:

    When creating or modifying Golden Path templates:

    line 149
  22. Distinctive:

    Follow Backstage template format

    line 150
  23. Distinctive:

    Test scaffolding locally before registering

    line 153

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

GitHub Copilot Instructions for Three Horizons Accelerator

Project Overview

This is the Three Horizons Accelerator v4.0.0 - an enterprise-grade platform accelerator for Azure with AI capabilities. The platform is organized into three horizons:

  • H1 Foundation: Core infrastructure (AKS/ARO, networking, security, databases)
  • H2 Enhancement: Platform services (ArgoCD, RHDH, observability, Golden Paths)
  • H3 Innovation: AI capabilities (AI Foundry, agents, MLOps)

Technology Stack

  • Infrastructure: Terraform for Azure (AKS, ARO, networking, databases)
  • Container Platform: Azure Kubernetes Service (AKS) or Azure Red Hat OpenShift (ARO)
  • GitOps: ArgoCD for continuous deployment
  • IDP: Red Hat Developer Hub (Backstage-based)
  • Observability: Prometheus, Grafana, Alertmanager, Loki
  • AI: Azure AI Foundry, OpenAI models

Code Standards

Terraform

  • Use Terraform 1.5+
  • Always specify provider versions
  • Use modules for reusable components
  • Tag all resources with: environment, project, owner, cost-center
  • Use Workload Identity (never service principal secrets)
  • Enable private endpoints for all PaaS services

Kubernetes

  • Use Kustomize for environment overlays
  • Always set resource limits and requests
  • Run containers as non-root
  • Configure liveness and readiness probes
  • Apply network policies
  • Use standard Kubernetes labels (app.kubernetes.io/*)

Python

  • Use Python 3.11+
  • Use FastAPI for APIs
  • Use Pydantic for validation
  • Use structlog for logging
  • Follow PEP 8 style guidelines

Shell Scripts

  • Use bash with strict mode (set -euo pipefail)
  • Include usage instructions
  • Validate inputs
  • Use meaningful variable names

File Locations

ComponentLocation
Terraform modulesterraform/modules/
Environment configsterraform/environments/
Kubernetes manifestsdeploy/kubernetes/
Helm valuesdeploy/helm/
Golden Path templatesgolden-paths/
Agent specifications.github/agents/
Agent skills.github/skills/
Automation scriptsscripts/
Documentationdocs/
Prompt files.github/prompts/
Instructions.github/instructions/

Security Requirements

  1. Authentication: Always use Workload Identity or Managed Identity
  2. Secrets: Store in Azure Key Vault, never in code
  3. Network: Use private endpoints, configure NSGs
  4. Scanning: Run security scans in CI/CD (Trivy, tfsec, gitleaks)
  5. RBAC: Follow least privilege principle

Naming Conventions

  • Resources: {project}-{environment}-{resource}-{region}
  • Terraform: snake_case for variables, resources
  • Kubernetes: kebab-case for names, labels
  • Files: kebab-case for filenames

Common Tasks

Creating a new module

./scripts/create-module.sh <module-name>

Deploying the platform (3 options)

Option A — Agent-guided:

@deploy Deploy the platform to dev environment

Option B — Automated script:

./scripts/deploy-full.sh --environment dev --dry-run
./scripts/deploy-full.sh --environment dev

Option C — Manual:

cd terraform
terraform init
terraform plan -var-file=environments/dev.tfvars
terraform apply -var-file=environments/dev.tfvars

Running validation

./scripts/validate-prerequisites.sh
./scripts/validate-config.sh --environment dev
./scripts/validate-deployment.sh --environment dev

Agent System

The platform uses 11 Copilot Chat Agents in .github/agents/ for interactive development assistance, plus 18 skills for specialized CLI operations. There are also 16 Terraform modules, 22 Golden Path templates, and 28 Issue templates.

Agent Organization

  • @deploy: Deployment orchestration, end-to-end platform deployment
  • @architect: System architecture, AI Foundry, multi-agent design
  • @devops: CI/CD, GitOps, MLOps, Golden Paths, pipelines
  • @docs: Documentation generation and maintenance
  • @onboarding: New team member onboarding and guidance
  • @platform: RHDH portal, platform services, developer experience
  • @reviewer: Code review, PR analysis, quality checks
  • @security: Security policies, scanning, compliance
  • @sre: Reliability engineering, incident response, monitoring
  • @terraform: Infrastructure as Code, Terraform modules
  • @test: Test generation, validation, quality assurance

Skills Available

Agents can use skills from .github/skills/ including: terraform-cli, kubectl-cli, azure-cli, argocd-cli, helm-cli, github-cli, oc-cli, validation-scripts, and more.

Agent Handoffs

Agents support handoffs for workflow orchestration. Example: @terraform -> @devops -> @security -> @test

When generating code for agents:

  • Follow the agent specification format in .github/agents/
  • Include proper YAML frontmatter with tools, infer, skills, handoffs
  • Define three-tier boundaries: ALWAYS / ASK FIRST / NEVER
  • Reference skills for CLI operations
  • Include clarifying questions before proceeding

Golden Paths

When creating or modifying Golden Path templates:

  • Follow Backstage template format
  • Include skeleton files
  • Add comprehensive documentation
  • Test scaffolding locally before registering

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.