agentleFS
MicrosoftKnown publishermicrosoft/shell-intune-samples/AGENTS.md

shell-intune-samples

AGENTS.md1.1k starsChanged 5 months agoMITView on GitHub

Canonical entry point for AI agents and human contributors. Read this first. This repository is a curated collection of sample shell scripts maintained by the Microsoft Intune Customer Experience Engineering (CXE) team. The samples show how to manage macOS and Linux devices with Microsoft Intune. They are provided for education and "the art of the possible" — download, test, and adapt them, and run them only in a non-production / test environment. Classification: non-production (samples / learning environment). The full…

  • Installs packages

Trending

Quiet this year.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/shell-intune-samples repository that our weekly crawl found: only 2 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about microsoft/shell-intune-samples

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

  • 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.

The file

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

5 rules. About 1 is common, 3 are distinctive, and 1 is very specific to this project.

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    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
  • could be automatic: a setting could enforce it
  1. Very specific:

    Every script starts with a shebang, then the Microsoft copyright + MIT license header, then a ## banner with name, version, and a dated …

    line 31
  2. Common:

    Never commit secrets (tokens, certs, private keys).

    line 35
  3. Distinctive:

    Use short, imperative PR titles.

    line 56
  4. Distinctive:

    All contributions require the Microsoft CLA (the CLA bot guides you).

    line 58
  5. Distinctive:

    Keep PRs focused and reasonably sized.

    line 59

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

AGENTS.md — Intune Shell Script Samples

Canonical entry point for AI agents and human contributors. Read this first.

This repository is a curated collection of sample shell scripts maintained by the Microsoft Intune Customer Experience Engineering (CXE) team. The samples show how to manage macOS and Linux devices with Microsoft Intune. They are provided for education and "the art of the possible" — download, test, and adapt them, and run them only in a non-production / test environment.

Classification: non-production (samples / learning environment). The full compliance audit lives in shell-intune-samples-oss-compliance-report.md (local, gitignored).

Repository map

PathWhat's here
macOS/Apps/Scripts that download + install macOS apps via Intune
macOS/Config/macOS configuration / hardening samples
macOS/Custom Attributes/Shell-based custom attribute collectors
macOS/Custom Profiles/Sample .mobileconfig configuration profiles
macOS/Tools/Helper utilities (bundle IDs, beta tokens, migration)
Linux/Apps/Linux app install samples
Linux/Config/, Linux/Custom Compliance/, Linux/Misc/, Linux/WSL/Linux config, custom compliance, and WSL samples

Conventions

See docs/conventions.md for the full style guide. In short:

  • Every script starts with a shebang, then the Microsoft copyright + MIT license header, then a ## banner with name, version, and a dated change log.
  • Scripts must be idempotent and safe to re-run.
  • Log progress to a predictable location and exit non-zero on failure.
  • Never commit secrets (tokens, certs, private keys).

Build / test / validate — the verify loop

There is no compile step; the scripts themselves are the deliverable. Validate a change before pushing with the one-command verify loop:

./scripts/verify.sh

It runs shellcheck over every tracked *.sh and python3 -m py_compile over every *.py. Install shellcheck first (brew install shellcheck on macOS, apt-get install shellcheck on Linux).

Pull request conventions

See .github/instructions/telemetry.instructions.md and CONTRIBUTING.md.

  • Branch from master; name branches feature/..., fix/..., or chore/....
  • Use short, imperative PR titles; describe what the sample does and how it was tested (OS version + Intune scenario, in a test environment).
  • All contributions require the Microsoft CLA (the CLA bot guides you).
  • Keep PRs focused and reasonably sized; split large changes.

Authority Map

How agents should treat each artifact in this repo.

ArtifactAuthority
AGENTS.md (this file)canon — start here
docs/conventions.mdcanon — code style + structure
.github/instructions/telemetry.instructions.mdcanon — PR conventions
scripts/verify.shcanon — the verify loop
README.mdhuman overview — not agent-canonical
per-sample README.md fileshuman usage docs for that one sample
shell-intune-samples-oss-compliance-report.mdgenerated audit — local, not checked in

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.