agentleFS
MicrosoftKnown publishermicrosoft/azurelinux/AGENTS.md

azurelinux

AGENTS.md5.3k starsChanged 2 months agoMITView on GitHub

For project context and architecture, see .github/copilot-instructions.md. USE YOUR BEST JUDGEMENT, but when in doubt, test. If your change could affect the built RPMs, smoke-test before reporting success. See azldev-mock. Do NOT skip testing for changes that affect RPM output. Do NOT tell the user "the build succeeded" without also running the smoke-test. If testing cannot be performed (e.g., the package has no runnable binary, or some other issue), explicitly document why and what was verified instead.

  • Deletes or force-pushes

Trending

Quiet since September.about the whole repository

Dec 2025: 0 mentionsJan 2026: 3 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 1 mentionMay 2026: 3 mentionsJun 2026: 1 mentionJul 2026: 3 mentionsAug 2026: 0 mentionsSep 2026: 2 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/azurelinux repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about microsoft/azurelinux

The biggest 5 of 40 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 40

Talked about on GitHub, Bluesky and Hacker News (40 times).

On GitHub · 26

21 more on GitHub

On Bluesky · 11

6 more on Bluesky

On Hacker News · 3

The file

We split this AGENTS.md into the rules it gives an agent

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

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Always run azldev comp list -p <name> -q -O json before modifying a component.

    line 34
  2. Distinctive:

    Prefer overlays over forking/local specs when customizing upstream packages.

    line 35
  3. Very specific:

    After modifying overlays or component config, re-render with azldev comp render -p <name> and inspect specs/<first-char>/<name>/ to verify …

    line 36
  4. Very specific:

    Use prep-sources for deeper debugging: azldev comp prep-sources -p <name> --skip-overlays --force -o <pre-dir> -q and azldev comp …

    line 40
  5. Very specific:

    Follow the inner loop cycle: investigate → modify → render → build → test → inspect.

    line 41

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

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Azure Linux — Agent Guide

For project context and architecture, see .github/copilot-instructions.md.

Mandatory Testing

USE YOUR BEST JUDGEMENT, but when in doubt, test. If your change could affect the built RPMs, smoke-test before reporting success. See azldev-mock.

Examples of changes that should trigger a final test prior to sign-off (not an exhaustive list)

  • Version bumps or pinning a new upstream version
  • Adding, modifying, or removing overlays (trivial edits may only require render verification, but when in doubt, do a full build + smoke-test)
  • Changing build config (build.defines, build.with, build.without)
  • Modifying local spec files or source files (again, trivial edits may not require a full rebuild, but when in doubt, test)
  • Adding a new component (first build)

Examples of changes that may not require testing (no effect on RPM output)

  • Moving a component definition between files (inline components.toml → dedicated <name>.comp.toml or vice versa)
  • Editing only component metadata fields (e.g., overlay descriptions, build descriptions, comments) without changing actual build config or overlays
  • Adding or editing TOML comments
  • Pure documentation or formatting changes

Minimum required testing

  1. Build — azldev comp build -p <name> succeeds, RPMs appear in base/out/.
  2. Inspect — Use mock --copyin to copy the RPM into the chroot and inspect with rpm -qlp without installing. See azldev-mock.
  3. Smoke-test — Use a mock chroot (azldev adv mock shell --add-package /path/to/rpm) to install and validate basic functionality (e.g., <binary> --version, service starts, library loads). See azldev-mock.

Do NOT skip testing for changes that affect RPM output. Do NOT tell the user "the build succeeded" without also running the smoke-test. If testing cannot be performed (e.g., the package has no runnable binary, or some other issue), explicitly document why and what was verified instead.

Conventions

  • Always run azldev comp list -p <name> -q -O json before modifying a component.
  • Prefer overlays over forking/local specs when customizing upstream packages.
  • After modifying overlays or component config, re-render with azldev comp render -p <name> and inspect specs/<first-char>/<name>/ to verify the result. This is the fastest verification path.
    • Note: Changing a global snapshot time may affect all components that depend on it, potentially causing widespread rebuilds. Full re-render is time-consuming, but may be done by azldev comp render -a --clean-stale.
  • Always re-run azldev comp update -p <name> before opening a PR, even for minor edits — lock fingerprints are computed from the full component config, and the Update Locks CI check runs against the committed state. See azldev-update-component.
  • Every commit that touches a component bumps %changelog / Release: on the next render (rpmautospec walks git log for the spec). After committing, re-render and amend so the spec tracks your commit, otherwise Check Rendered Specs will fail. See azldev-update-component for the finalize-and-amend pattern, plus the pin-bump variant.
  • Use prep-sources for deeper debugging: azldev comp prep-sources -p <name> --skip-overlays --force -o <pre-dir> -q and azldev comp prep-sources -p <name> --force -o <post-dir> -q to diff pre/post overlay output when you need to understand what upstream provides vs. what overlays change. Always use --force to overwrite an existing output dir, rm -rf requires user confirmation which is disruptive.
  • Follow the inner loop cycle: investigate → modify → render → build → test → inspect. See azldev-build-component.
    • Note: Use your best judgement, some packages are VERY slow to build (e.g., kernel), in those cases you may want to do multiple iterations of investigate → modify → verify with render before doing a full build + test.
  • prep-sources -o <dir> output is ad-hoc (user-chosen dir). comp build output goes to project-configured dirs (base/out/, base/build/). Don't conflate them.
  • For temporary files, ensure they are all placed inside the project's defined work directory (azldev config dump -q -f json 2>&1 | grep 'workDir'). Example commands use base/build/work/scratch/, and all temp directories should be inside it unless there's a specific reason not to be.

Do NOT use /tmp or bare mktemp -d — always use base/build/work/scratch/ (or a subdirectory) for temporary files. This avoids permission issues and keeps all working files inside the project tree.

Example: workDir="/home/user/azurelinux/base/build/work", use "./base/build/work/scratch/" for all temp dirs, or a subdir like "./base/build/work/scratch/thing".

Skills

Detailed workflows live in skills (loaded on-demand when relevant):

TaskSkill
Use azldev or edit distro configurationazldev
Build a component, debug build failuresazldev-build-component
Bump a component's upstream pin (lock files)azldev-update-component
Add a new component to the distroazldev-add-component
Remove component(s) from the distroazldev-remove-component
Diagnose and fix overlay issuesazldev-overlays
Test and inspect packages in mock chrootazldev-mock
Review component for hygiene and best practicesazldev-comp-toml review checklist
Build, boot, test, or configure imagesazldev-image
Triage Koji build failuresskill-koji-triage
Batch-triage build failures from results fileskill-mass-triage
Fix Stage 1 Fedora mirror dependency gaps (injections)skill-fedora-mirror-injections
Inspect Koji AKS cluster health and node poolsskill-aks-health
Resolve Koji AKS deployment contextskill-deployment-context
KQL queries for Koji logs, pods, and eventsskill-kql-queries
Query Azure Monitor metrics for Koji AKSskill-metrics

Azure infra workflow ordering: Before running any KQL log queries, metrics queries, or AKS health checks, always resolve deployment context first using skill-deployment-context. This provides the resource group, cluster name, subscription, and Log Analytics workspace needed by the other Azure skills.

Directory Guidance

  • Components: base/comps/AGENTS.md — file organization rules
  • Distro config: distro/AGENTS.md — build defaults, shared config

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.