/engineering-advanced-skills:ms365-tenant-managerfrom engineering-advanced-skills
Generates reviewed, reversible PowerShell for Microsoft 365 administration: tenant setup, DNS, bulk provisioning, offboarding, Conditional Access, and security audits via Microsoft Graph and Exchange Online.
Ships in engineering-advanced-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
The agent produces reviewed, reversible PowerShell for Microsoft 365 administration: tenant setup plans and DNS records, bulk provisioning, secure offboarding, Conditional Access and 7-category security audits through Microsoft Graph and Exchange Online. The tools generate scripts from local inputs; they never connect to a tenant, so an administrator stays the one who runs every change.
Before generating scripts, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
These changes have real blast radius: a bad Conditional Access policy locks everyone out, and offboarding the wrong account cuts off a working employee.
enabledForReportingButNotEnforced; check sign-in logs before enabling.-WhatIf where the script supports it (offboarding), and run bulk jobs on a pilot group of two or three users first.assets/sample_users.csv shows the columns) or tenant config (sample_input.json).scripts/ms365_cli.py <subcommand> ... -o file.ps1.provision validates every user and writes nothing if any row is invalid (exit 1); fix the CSV and rerun.# from engineering/ms365-tenant-manager/
python3 scripts/ms365_cli.py audit --domain contoso.com -o "$(mktemp -d)/audit.ps1"
python3 scripts/ms365_cli.py provision --domain contoso.com --users assets/sample_users.csv | head -40
python3 scripts/ms365_cli.py provision --domain contoso.com --users assets/flawed_users.csv # exit 1, 2 invalid users
python3 scripts/ms365_cli.py conditional-access --domain contoso.com --exclude [email protected]
python3 scripts/ms365_cli.py offboard --domain contoso.com --user [email protected]
python3 scripts/ms365_cli.py setup --config sample_input.json --part dns
python3 scripts/ms365_cli.py recommend-license --role "Finance Director" --department Finance --format json
| Tool | Purpose |
|---|---|
scripts/ms365_cli.py | CLI: audit, conditional-access, bulk-license, provision, offboard, recommend-license, setup. Writes to stdout or -o FILE; --format json for data subcommands. |
scripts/powershell_generator.py | Library: audit, Conditional Access and bulk-license script templates (PowerShellScriptGenerator) |
scripts/user_management.py | Library: provisioning, offboarding, license and group recommendations, user validation (UserLifecycleManager) |
scripts/tenant_setup.py | Library: setup checklist, DNS records, setup script, license distribution (TenantSetupManager) |
Exit codes (ms365_cli.py): 0 output written; 1 provision found invalid users (no script written); 2 unusable input (missing file, bad JSON or CSV, invalid domain or user principal name). License prices are list prices baked into the module; check current Microsoft pricing before quoting them.
Mistake: Enforcing a Conditional Access policy on day one. Why it matters: A policy that blocks legitimate sign-ins takes the whole company offline, admins included. Instead: Create it report-only, review a week of sign-in logs, exclude the break-glass account, then enable.
Mistake: Running bulk provisioning or license scripts against everyone at once. Why it matters: One wrong column or SKU repeats across hundreds of accounts and is slow to unwind. Instead: Validate the CSV (the CLI refuses invalid rows), run a pilot of two or three users, then the rest.
Mistake: Deleting a departing user's account on their last day. Why it matters: Deletion starts the clock on mailbox and OneDrive data and can breach retention or legal-hold duties. Instead: Disable sign-in, revoke sessions, convert the mailbox to shared and keep the account until the retention owner signs off.
| File | Purpose |
|---|---|
scripts/ms365_cli.py | Command-line entry point (stdlib only) |
scripts/powershell_generator.py, scripts/user_management.py, scripts/tenant_setup.py | Template libraries the CLI imports |
sample_input.json | Tenant config for setup (Acme, 75 users, GDPR) |
expected_output.json | Example structured output for the sample config |
assets/sample_users.csv | Three valid users; provision writes a script |
assets/flawed_users.csv | Username with spaces, missing first name; provision exits 1 |
Covers: tenant setup planning and DNS, user lifecycle (provisioning, offboarding, license and group recommendations), Conditional Access and MFA scripts, security audits, all through Microsoft Graph and Exchange Online PowerShell.
Does not cover:
assets/flawed_users.csv (opens in a new tab)assets/sample_users.csv (opens in a new tab)expected_output.json (opens in a new tab)references/operations-and-best-practices.md (opens in a new tab)references/powershell-templates.md (opens in a new tab)references/security-policies.md (opens in a new tab)references/tools-and-workflows.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)sample_input.json (opens in a new tab)scripts/ms365_cli.py (opens in a new tab)scripts/powershell_generator.py (opens in a new tab)scripts/tenant_setup.py (opens in a new tab)scripts/user_management.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub borghei/claude-skills --plugin engineering-advanced-skills100 skills in this plugin
/a11y-auditStatic WCAG scan of HTML files (alt text, headings, labels, ARIA, lang, landmarks) and colour contrast checks for colour pairs or CSS. Use when auditing templates for accessibility, checking contrast, or adding an a11y gate to CI.
/agent-designerDesigns multi-agent system architectures with orchestration patterns, tool schemas, and performance evaluation. Use when building AI agent systems, designing agent workflows, creating tool schemas, or evaluating agent performance.
/agent-harnessTest and evaluation harness for AI agents — scenario suites, deterministic replay, regression diffing, cost and latency budgets. Use when agent quality is vibe-checked, before shipping a prompt or model change, or when evals drift.
Other plugins' skills for the same job