agentleFS
mdmiller5933mdmiller5933/agentic-it-ops/skills/run-intune-maa-teams-notifier/SKILL.md

run-intune-maa-teams-notifier

Skill0 starsChanged 3 months agoMITView on GitHub

Run the existing Contoso Intune Multi Admin Approval (MAA) Teams notifier. Use on any scheduled/cron run that checks pending Intune MAA approval requests, and whenever the user asks to check pending Intune approvals or MAA requests, post new approval cards to the Teams group chat "Intune MAA Group", verify or summarize notifier health/status, or troubleshoot the local intune-maa-teams-notifier automation.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    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. Very specific:

    Run the local script from C:\automox-mcp-main:

    line 10
  2. Very specific:

    If pwsh.exe is unavailable, use powershell.exe with the same arguments.

    line 16
  3. Very specific:

    Do not print, echo, log, or inspect INTUNE_MAA_TEAMS_WEBHOOK_URL.

    line 35
  4. Distinctive:

    Do not paste webhook URLs, Graph tokens, refresh tokens, or cookies into chat.

    line 36
  5. Distinctive:

    Do not browse Teams, Power Automate, or Intune for routine scheduled runs.

    line 37
  6. Distinctive:

    Do not change Intune, Graph, Teams, Power Automate, or local script state from this skill.

    line 38
  7. Distinctive:

    Treat this workflow as already approved to send Teams notifications for newly pending Intune MAA requests.

    line 39
  8. Distinctive:

    If no new request exists, say the notifier is healthy and sent nothing.

    line 40
  9. Distinctive:

    If the script exits nonzero, read the status JSON if it exists and summarize the failure without secrets.

    line 44

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

Run Intune MAA Teams Notifier

Fast Path

Run the local script from C:\automox-mcp-main:

pwsh.exe -NoProfile -ExecutionPolicy Bypass -File C:\automox-mcp-main\scripts\notify-intune-maa-approvals-to-teams.ps1

If pwsh.exe is unavailable, use powershell.exe with the same arguments.

Then read:

C:\automox-mcp-main\reports\intune-maa-teams-notifier-status.json

Report only:

  • status
  • pendingCount
  • sentCount
  • sentRequestIds, only when non-empty
  • errorCount
  • errors, only when non-empty

Rules

  • Do not print, echo, log, or inspect INTUNE_MAA_TEAMS_WEBHOOK_URL.
  • Do not paste webhook URLs, Graph tokens, refresh tokens, or cookies into chat.
  • Do not browse Teams, Power Automate, or Intune for routine scheduled runs.
  • Do not change Intune, Graph, Teams, Power Automate, or local script state from this skill.
  • Treat this workflow as already approved to send Teams notifications for newly pending Intune MAA requests.
  • If no new request exists, say the notifier is healthy and sent nothing.

Failure Handling

If the script exits nonzero, read the status JSON if it exists and summarize the failure without secrets.

Common cases:

  • status: blocked and reason mentions INTUNE_MAA_TEAMS_WEBHOOK_URL: say the Teams webhook environment variable is missing.
  • Graph authentication errors: say the z-account Graph context needs repair and suggest C:\automox-mcp-main\scripts\intune-auth-test.cmd.
  • Teams webhook HTTP errors: say the Power Automate Teams webhook may need to be recreated or re-copied.

Existing Setup

  • Script: C:\automox-mcp-main\scripts\notify-intune-maa-approvals-to-teams.ps1
  • Runbook: C:\automox-mcp-main\docs\intune-maa-teams-notifier.md
  • State file: C:\automox-mcp-main\reports\intune-maa-teams-notifier-state.json
  • Status file: C:\automox-mcp-main\reports\intune-maa-teams-notifier-status.json
  • Teams chat: Intune MAA Group
  • Approval button target: https://intune.microsoft.com/#view/Microsoft_Intune_DeviceSettings/TenantAdminMenu/~/multiAdminApproval

Automation Guidance

This skill is intentionally low-reasoning. For a scheduled automation in either tool (Codex cron or a Claude Code scheduled task), prefer:

  • Five-minute cron cadence while MAA approvals are active.
  • A cheap/mini-class model and minimal/low reasoning effort when available.
  • A prompt that explicitly invokes this skill by name ($run-intune-maa-teams-notifier in Codex; "use the run-intune-maa-teams-notifier skill" in Claude Code) and asks for the compact status summary only.

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.