azure-container-apps
AGENTS.md447 starsChanged 4 months agoMITView on GitHub
This file is read by AI coding agents (GitHub Copilot CLI, Claude Code, Cursor, etc.) working in this repository. Follow these conventions when authoring documentation, samples, skills, or code in this repo. uv is the canonical Python tooling for this repository. When writing docs, skills, samples, or scripts that involve Python, always lead with uv — never lead with bare python, python3, pip, or pip3. 1. Do not lead with pip install … / pip3 install … in any prose,…
- Pipes a download into a shell
- Installs packages
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- aca-sandboxesSkill
The file
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 82
When updating a skill, also update its acceptance-criteria table in SKILL.md if the change affects what a "correct response" looks like.
- Very specific: line 85
Verify CLI flags against aca --help / aca <verb> --help before documenting them.
- Distinctive: line 90
When docs, samples, skills, or prereqs specify a minimum version of a language runtime, always recommend a version that is currently in …
- Distinctive: line 108
When you write "Python X.Y or later", "Node X+", ".NET X", etc., pick the version from the table above.
- Distinctive: line 111
Do not carry over a previously-documented floor without checking it against current upstream support.
- Very specific: line 118
When a doc PR changes a runtime floor, update every mention of that runtime version in the changed scope in the same PR (search for python …
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md 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
Agent instructions — azure-container-apps
This file is read by AI coding agents (GitHub Copilot CLI, Claude Code, Cursor, etc.) working in this repository. Follow these conventions when authoring documentation, samples, skills, or code in this repo.
Python tooling: lead with uv
uv is the canonical Python tooling for this repository. When writing
docs, skills, samples, or scripts that involve Python, always lead
with uv — never lead with bare python, python3, pip, or
pip3.
Required commands
| Task | Use |
| Install a package | uv pip install <pkg> |
| Install from a local wheel | uv pip install ./path/to/*.whl |
| Create a virtual env | uv venv |
| Run a script | uv run <script.py> |
| Run a one-shot tool | uvx <tool> |
| Sync a project's deps | uv sync |
| Add a dependency to a project | uv add <pkg> |
Hard rules
- Do not lead with
pip install …/pip3 install …in any prose, code block, README, skill cue, or sample. Useuv pip install …. - Do not lead with
python script.py/python3 script.pyto invoke a script. Useuv run script.py. No "or" branches that present
pip/python/python3/pip3as an equally-valid alternative. Example of what not to write:Canonical install:
uv pip install foo(orpip install foo).Just write
uv pip install foo. Period. No alternative.- Bare
python/python3/pip/pip3are acceptable inside examples that are showing legacy behavior, error output, or third-party docs we are quoting — but never as the recommended command. If they appear, they should be incidental, not the instruction. - Installing
uvitself uses the upstream installer:curl -LsSf https://astral.sh/uv/install.sh | sh(orirm https://astral.sh/uv/install.ps1 | iexon Windows). Don't recommendpip install uv(chicken-and-egg, and we are not leading withpip). Always preflight
uvbefore invoking it in docs / scripts / skills. Don't assume the user hasuv. Gate the install:# Linux / macOS command -v uv >/dev/null 2>&1 || curl -LsSf https://astral.sh/uv/install.sh | sh uv pip install <pkg># Windows if (-not (Get-Command uv -ErrorAction SilentlyContinue)) { irm https://astral.sh/uv/install.ps1 | iex } uv pip install <pkg>This pattern works for any uv-leading command (
uv pip install,uv run,uv venv, etc.).
Why
uvis materially faster and reproducible.- Single-tool guidance reduces the "two ways to do it" tax on readers and downstream agents.
- Agents that fan out from our docs (e.g. coding agents in a sandbox) inherit a clean, consistent install path with no decision points.
Other conventions
- Documentation lives near the code/skill it documents. Skill docs are
under
plugin/skills/<skill-name>/. - When updating a skill, also update its acceptance-criteria table in
SKILL.mdif the change affects what a "correct response" looks like. - Verify CLI flags against
aca --help/aca <verb> --helpbefore documenting them. Do not invent flags.
Language runtime versions: recommend mainstream LTS only
When docs, samples, skills, or prereqs specify a minimum version of a language runtime, always recommend a version that is currently in mainstream (full-support / bug-fix) status from its upstream maintainer — not just security-fix-only status, and never a version that is EOL.
Current floors (review quarterly)
| Stack | Recommend at least | Why |
| Python | 3.13+ | Python 3.13 is in mainstream bug-fix support through ~2027; 3.12 drops to security-only in late 2026; 3.10 / 3.11 are security-only / near-EOL. |
| Node.js | The current Active LTS (even-numbered) line | Skip "Current" odd lines for docs; skip "Maintenance LTS" once it drops to security-only. |
| .NET | The current LTS release (e.g. .NET 10 once GA) | Use the LTS tag in mcr.microsoft.com/dotnet/...:<tag>. STS releases are fine for samples that explicitly call themselves out as such, but defaults / floors are LTS. |
| Go | One of the two most recent stable lines | Go supports only the two latest minors; older minors get no fixes. |
| Java | Latest LTS (e.g. 21) | Skip non-LTS feature releases for default guidance. |
Rules
- When you write "Python X.Y or later", "Node X+", ".NET X", etc., pick the version from the table above. Bump the table when an upstream release rolls a line out of mainstream.
- Do not carry over a previously-documented floor without checking it against current upstream support. Stale floors are the most common version-related doc bug.
- CI matrices, container base images, and dev-container definitions should also default to the mainstream LTS version. Older versions are acceptable only as additional matrix legs (compatibility coverage), not as the default.
- When a doc PR changes a runtime floor, update every mention of
that runtime version in the changed scope in the same PR (search
for
python 3\./node/dotnet/ etc.). Don't leave one page on the old floor and another on the new one.
Why
Recommending a runtime that is only on security-only support pushes users onto a release that gets fewer / slower fixes and shorter remaining support life. For samples and quickstarts in particular, the floor we document tends to become what readers actually install and run in production for years. We owe them the version that has the longest remaining mainstream support window.
Pre-PR checklist
- No bare
pip install …/pip3 install …leading instructions added to docs or samples. - No bare
python script.py/python3 script.pyleading instructions added to docs or samples. - No "or
pip install …" / "orpython …" alternative branches added. - Every
uv pip install …/uv run …example in docs is preceded by thecommand -v uv(bash) /Get-Command uv(PowerShell) preflight (or runs in an environment whereuvis known to be pre-installed, e.g. a sandbox disk that ships uv). - Any new CLI commands verified against
aca --help. - Any language runtime version floor (Python, Node, .NET, Go, Java) matches the current mainstream-LTS table in the "Language runtime versions" section above.
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.

