agentleFS
mdmiller5933mdmiller5933/agentic-it-ops/skills/check-autopilot-serials/SKILL.md

check-autopilot-serials

Skill0 starsChanged 3 months agoMITView on GitHub

Check one or more device serial numbers against Microsoft Intune Windows Autopilot identities and Intune managed devices. Use when the user sends serial numbers and asks whether devices are enrolled, registered, imported, present in Autopilot, or already managed in Intune, especially for Contoso Windows laptop intake or provisioning checks.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    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
  1. Distinctive:

    Use live Microsoft Graph data.

    line 10
  2. Very specific:

    If working in the Contoso workspace, mint a Graph token with the acquire-graph-token skill (graph-app-token.cmd is enough for this …

    line 13
  3. Very specific:

    Run the bundled script, scripts/check-autopilot-serials.ps1 inside this skill's folder (same content under ~/.claude/skills and …

    line 16
  4. Distinctive:

    If both Autopilot and managed-device checks miss, say the serial was not found in Autopilot or Intune by that serial.

    line 28
  5. Distinctive:

    Do not import, delete, assign, wipe, sync, or otherwise change devices unless the user explicitly asks and approves the …

    line 32
  6. Very specific:

    If the user asks for a broad inventory or history rather than a live serial check, use the endpoint cache workflow from …

    line 34
  7. Distinctive:

    Do not print access tokens or authentication material.

    line 35

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill 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
SKILL.md

Check Autopilot Serials

Workflow

Use live Microsoft Graph data. This is a read-only workflow.

  1. Extract serial numbers from the user message. Normalize case and remove punctuation such as commas or semicolons.
  2. If working in the Contoso workspace, mint a Graph token with the acquire-graph-token skill (graph-app-token.cmd is enough for this read-only Autopilot/Intune lookup). Do not ask for device-code or intune-auth-desktop.cmd.
  3. Run the bundled script, scripts/check-autopilot-serials.ps1 inside this skill's folder (same content under ~/.claude/skills and ~/.codex/skills):
powershell -NoProfile -ExecutionPolicy Bypass -File "<this skill's folder>\scripts\check-autopilot-serials.ps1" SD004LB7 SD004LB0 -OutputDir "C:\automox-mcp-main\reports"
  1. Summarize per serial:
    • autopilotEnrolled: true means a Windows Autopilot device identity matched the serial.
    • enrollmentState is the Autopilot identity state, commonly enrolled.
    • Include manufacturer, model, group tag, deployment profile assignment status, and Autopilot identity ID when present.
    • Include Intune managed-device name, user, compliance state, managed device ID, and last sync when present.
    • If both Autopilot and managed-device checks miss, say the serial was not found in Autopilot or Intune by that serial.

Important Details

  • Do not import, delete, assign, wipe, sync, or otherwise change devices unless the user explicitly asks and approves the production-impacting action.
  • The Graph Autopilot identities endpoint may reject direct $filter=serialNumber eq '...' queries. The bundled script deliberately pages Autopilot identities and filters locally, then uses managed-device serial filtering for the Intune cross-check.
  • If the user asks for a broad inventory or history rather than a live serial check, use the endpoint cache workflow from C:\automox-mcp-main\docs\endpoint-cache-runbook.md when available.
  • Do not print access tokens or authentication material.

Script

Bundled script:

scripts/check-autopilot-serials.ps1

The script prints a compact JSON summary to stdout and writes a timestamped JSON report. Pass -OutputDir with an explicit base directory (normally C:\automox-mcp-main\reports in the Contoso workspace); without it the report lands in a reports folder under whatever the current working directory happens to be.

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.