agentleFS
Microsoft AzureKnown publisherAzure/azure-container-networking/.github/copilot-instructions.md

azure-container-networking

Copilot instructions433 starsChanged 59 days agoMITView on GitHub

If $GITHUB_WORKSPACE is set, do all work there and do NOT create a git worktree — only that path is committed and pushed, so edits made anywhere else are silently discarded. Before reporting completion, confirm git diff --stat "origin/${GITHUB_BASE_REF:-master}"...HEAD is non-empty; if it is empty, say so instead of describing uncommitted work. Use all agents.md files found from the repository root to the current directory as instructions and context, applying them in root-to-leaf order; if instructions conflict, the agents.md closest…

The file

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

2 rules. About 0 are common, 1 is distinctive, and 1 is 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.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use all agents.md files found from the repository root to the current directory as instructions and context, applying them in root-to-leaf …

    line 7
  2. Very specific:

    All other components use CGO_ENABLED=0

    line 41

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

If $GITHUB_WORKSPACE is set, do all work there and do NOT create a git worktree — only that path is committed and pushed, so edits made anywhere else are silently discarded. Before reporting completion, confirm git diff --stat "origin/${GITHUB_BASE_REF:-master}"...HEAD is non-empty; if it is empty, say so instead of describing uncommitted work.

Use all agents.md files found from the repository root to the current directory as instructions and context, applying them in root-to-leaf order; if instructions conflict, the agents.md closest to the current directory takes precedence. Use relevant repo skills from .github/skills/ when applicable.

Public authorship is human-owned. Copilot and all other AI agents must never comment, reply, review, react, resolve threads, or edit/close/reopen public PR/issue text or metadata. Draft text for a human maintainer instead. Read-only GitHub access remains allowed. Branch pushes are allowed. PR creation and workflow/release actions are allowed only when the current user task explicitly requests that action.

Copilot Instructions for Azure Container Networking

Available Skills

For task-specific guidance, use the appropriate skill:

SkillWhen to use
acn-go-version-bumpGo version upgrades, FIPS/systemcrypto config, Dockerfile template updates, CVE patches
acn-go-errors-loggingError string formatting, zap logging discipline
acn-go-context-lifecycleContext propagation and lifecycle management
acn-go-design-boundariesPackage boundaries and design patterns
acn-go-interfaces-dependenciesInterface design and dependency injection
acn-go-types-parsingType definitions and parsing logic
acn-go-http-api-contractsHTTP API contracts and handlers
acn-go-platform-abstractionPlatform-specific abstractions
acn-go-control-plane-contractsControl plane contracts

General Guidelines

  • This repository builds container networking components for Azure (CNI, CNS, NPM, etc.)
  • Build system uses make dockerfiles with template rendering via renderkit
  • Tools dependencies are managed via a dedicated modfile (tools.go.mod at repo root, or tools-go/go.mod in some branches)
  • CI uses both GitHub Actions and Azure Pipelines (.pipelines/)
  • cilium-log-collector is the only component using CGO_ENABLED=1
  • All other components use CGO_ENABLED=0
  • GOEXPERIMENT requirements are version-dependent — consult the acn-go-version-bump skill for current rules. As of Go 1.26: CGO=1 needs systemcrypto, CGO=0 needs ms_nocgo_opensslcrypto. Go 1.27+ changes these rules.

AI Documentation

See .github/AI-DOCS.md for details on how AI instruction files are structured in this repo.

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.