ms365-tenant-manager · borghei — Claude Code skill: what it does, install
ms365-tenant-manager writes PowerShell scripts for Microsoft 365 admins: tenant setup, user onboarding and offboarding, Conditional Access policies and security audits.
LicenseRef-MIT-Commons-Clause 127 installs ★ 1,183 updated 2026-11-08
npx skills add borghei/Claude-Skills --skill ms365-tenant-manager -a claude-codeWhat ms365-tenant-manager does
This skill produces PowerShell scripts built on Microsoft Graph for someone holding the Global Administrator role. It drafts a setup checklist for a new Microsoft 365 tenant, DNS records for the domain, bulk user creation from a CSV, and license suggestions per role or department. Name GDPR or HIPAA and the SKU suggestions shift accordingly.
The logic sits in three importable Python modules, not command-line tools. powershell_generator.py (PowerShellScriptGenerator) handles audits, Conditional Access and license scripts. user_management.py (UserLifecycleManager) covers onboarding and offboarding, and tenant_setup.py (TenantSetupManager) covers the checklist and DNS. Generated scripts log their work, handle errors and accept -WhatIf. The audit spans 7 categories, from MFA and admin roles to guests and mailbox delegations.
Conditional Access policies come out in report-only mode first. Offboarding runs through 11 steps and keeps the mailbox. If your identity setup is hybrid, synced from on-premises AD through AD Connect, this skill won't help. Intune and Power Platform are outside it too.
What it helps with
- Draft a setup checklist and DNS records for a new Microsoft 365 tenant
- Create accounts in bulk from a CSV with licenses matched to department
- Audit a tenant for missing MFA and inactive accounts
- Generate a Conditional Access policy in report-only mode
- Offboard a leaver while keeping their mailbox
Example prompts for the agent
- Use ms365-tenant-manager to build a setup checklist and DNS records for my new tenant
- Run a security audit of my Microsoft 365 tenant and list users without MFA
- Offboard a departing employee with ms365-tenant-manager and keep their mailbox
How to install ms365-tenant-manager
1Skills CLI (Vercel)
npx skills add borghei/Claude-Skills --skill ms365-tenant-manager -a claude-code2Manually: put the files in place
~/.claude/skills/ms365-tenant-manager/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/ms365-tenant-manager/
1Skills CLI (Vercel)
npx skills add borghei/Claude-Skills --skill ms365-tenant-manager -a codex2Manually: put the files in place
.agents/skills/ms365-tenant-manager/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add borghei/Claude-Skills --skill ms365-tenant-manager -a cursor2Manually: put the files in place
.cursor/skills/ms365-tenant-manager/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install borghei/Claude-Skills engineering/ms365-tenant-manager/SKILL.md2Manually: put the files in place
.github/skills/ms365-tenant-manager/SKILL.md1Skills CLI (Vercel)
npx skills add borghei/Claude-Skills --skill ms365-tenant-manager -a gemini-cli2Platform CLI
gemini skills install https://github.com/borghei/Claude-Skills --path engineering/ms365-tenant-managerManually: put the files in place
.devin/skills/ms365-tenant-manager/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add borghei/Claude-Skills --skill ms365-tenant-manager -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about ms365-tenant-manager
How do I install ms365-tenant-manager in Claude Code?
Run npx skills add borghei/Claude-Skills --skill ms365-tenant-manager -a claude-code. The skill ends up at ~/.claude/skills/ms365-tenant-manager/SKILL.md.
What does ms365-tenant-manager do?
It generates PowerShell scripts for Microsoft 365 tenant setup, CSV user provisioning, offboarding, Conditional Access and a 7-category security audit.
Does it cover hybrid AD or Intune?
No. AD Connect sync, Intune, Power Platform administration and third-party SSO or SCIM providers are outside it.
Similar skills
All skills for Cloud: AWS, Azure, GCP →ms365-tenant-manager by other authors comes first.