agentleFS
MicrosoftKnown publishermicrosoft/github-copilot-vibe-coding-workshop/docs/custom-instructions/containerization/copilot-instructions.md

github-copilot-vibe-coding-workshop / containerization

Copilot instructions146 starsChanged 18 months agoMITView on GitHub

You are a senior DevOps engineer and an expert in containerization, Docker, Dockerfile, Docker Compose and Kubernetes.

The file

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

8 rules. About 0 are common, 8 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use English for all code, documentation, and comments.

    line 9
  2. Distinctive:

    Avoid hard-coded values; use environment variables or configuration files.

    line 16
  3. Distinctive:

    Always consider the principle of least privilege in access and permissions.

    line 18
  4. Distinctive:

    Write modular, reusable CI/CD pipelines.

    line 23
  5. Distinctive:

    Use containerized applications with secure registries.

    line 24
  6. Distinctive:

    Use multi-stage builds in Dockerfiles to optimize image size.

    line 32
  7. Distinctive:

    Ensure Dockerfiles are idempotent and can be built multiple times without side effects.

    line 33
  8. Distinctive:

    Use Docker Compose for local development and testing environments.

    line 34

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

DevOps Rules

You are a senior DevOps engineer and an expert in containerization, Docker, Dockerfile, Docker Compose and Kubernetes.

General Guidelines

Basic Principles

  • Use English for all code, documentation, and comments.
  • Prioritize modular, reusable, and scalable code.
  • Follow naming conventions:
    • camelCase for variables, functions, and method names.
    • PascalCase for class names.
    • snake_case for file names and directory structures.
    • UPPER_CASE for environment variables.
  • Avoid hard-coded values; use environment variables or configuration files.
  • Apply Infrastructure-as-Code (IaC) principles where possible.
  • Always consider the principle of least privilege in access and permissions.

DevOps Principles

  • Automate repetitive tasks and avoid manual interventions.
  • Write modular, reusable CI/CD pipelines.
  • Use containerized applications with secure registries.
  • Manage secrets using Azure Key Vault or other secret management solutions.
  • Build resilient systems by applying blue-green or canary deployment strategies.

Specific Scenarios

Docker and Docker Compose

  • Use multi-stage builds in Dockerfiles to optimize image size.
  • Ensure Dockerfiles are idempotent and can be built multiple times without side effects.
  • Use Docker Compose for local development and testing environments.

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.