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…
In this repository12 other files it gives its agents.
- agents.mdAGENTS.md
- cns/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- acn-go-context-lifecycleSkill
- acn-go-control-plane-contractsSkill
- acn-go-design-boundariesSkill
- acn-go-errors-loggingSkill
- acn-go-http-api-contractsSkill
- acn-go-interfaces-dependenciesSkill
- acn-go-platform-abstractionSkill
- acn-go-types-parsingSkill
- acn-go-version-bumpSkill
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
- Distinctive: line 7
Use all agents.md files found from the repository root to the current directory as instructions and context, applying them in root-to-leaf …
- Very specific: line 41
All other components use CGO_ENABLED=0
≈ “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.
Files
If
$GITHUB_WORKSPACEis set, do all work there and do NOT create agit worktree— only that path is committed and pushed, so edits made anywhere else are silently discarded. Before reporting completion, confirmgit diff --stat "origin/${GITHUB_BASE_REF:-master}"...HEADis 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:
| Skill | When to use |
acn-go-version-bump | Go version upgrades, FIPS/systemcrypto config, Dockerfile template updates, CVE patches |
acn-go-errors-logging | Error string formatting, zap logging discipline |
acn-go-context-lifecycle | Context propagation and lifecycle management |
acn-go-design-boundaries | Package boundaries and design patterns |
acn-go-interfaces-dependencies | Interface design and dependency injection |
acn-go-types-parsing | Type definitions and parsing logic |
acn-go-http-api-contracts | HTTP API contracts and handlers |
acn-go-platform-abstraction | Platform-specific abstractions |
acn-go-control-plane-contracts | Control plane contracts |
General Guidelines
- This repository builds container networking components for Azure (CNI, CNS, NPM, etc.)
- Build system uses
make dockerfileswith template rendering viarenderkit - Tools dependencies are managed via a dedicated modfile (
tools.go.modat repo root, ortools-go/go.modin some branches) - CI uses both GitHub Actions and Azure Pipelines (
.pipelines/) cilium-log-collectoris the only component usingCGO_ENABLED=1- All other components use
CGO_ENABLED=0 - GOEXPERIMENT requirements are version-dependent — consult the
acn-go-version-bumpskill for current rules. As of Go 1.26: CGO=1 needssystemcrypto, CGO=0 needsms_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.
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
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.

