/purview-compliance:compliance-playbook <scenario> [--dry-run] [--owner <email>] [--regulatory-framework <name>]from purview-compliance
Guided compliance automation — choose a scenario like 'Set up retention for HR documents' and walk through configuration step-by-step. Produces an audit-ready change log and owner sign-off summary.
Ships in purview-compliance. Installing the plugin adds it to Claude Code.
Run a guided compliance workflow by choosing a common scenario. Each playbook walks through configuration step-by-step using plain language, produces an audit-ready change log, and generates an owner sign-off summary.
Scenario: "I need to keep HR files for 7 years, then auto-delete"
Steps:
Scenario: "Block sharing credit card numbers outside the org"
Steps:
Scenario: "Label project documents as Confidential with encryption"
Steps:
Scenario: "Place a legal hold on specific employees' mailboxes and OneDrive"
Steps:
<scenario>: Playbook name or description (e.g., "retention for HR", "DLP credit cards", "sensitivity labels", "legal hold")--dry-run: Show what would be configured without making changes--owner <email>: Email of the compliance owner for the sign-off summary--regulatory-framework <name>: Context for the change (e.g., "GDPR", "HIPAA", "SOX", "internal policy")Every playbook produces a markdown change log:
# Compliance Change Log
| # | Timestamp | Action | Detail | Status |
|---|-----------|--------|--------|--------|
| 1 | 2026-03-01T10:00:00Z | Created retention label | "HR-7Year-Delete", 7-year retain then delete | Success |
| 2 | 2026-03-01T10:01:00Z | Created label policy | Published to HR SharePoint sites | Success |
## Regulatory Context
- Framework: [GDPR / HIPAA / SOX / internal policy]
- Requirement: [specific requirement reference]
- Justification: [business reason]
## Owner Sign-Off
- Owner: [name / email]
- Date: [pending sign-off]
- Status: Awaiting review
--dry-run for previewing changes before applyingskills/purview-compliance/SKILL.md for Purview API guidanceskills/purview-compliance/references/playbook-patterns.md for API patternsWhat the command file sets; muted values are Claude Code's defaults
compliance, retention, dlp, sensitivity-labels, legal-hold, audit
7-day visitors to each command page
npx claudepluginhub thelobbi/claude-m --plugin purview-compliance5 commands in this plugin
/dlp-reviewReview DLP policy coverage, false-positive hotspots, and missing controls. Prioritize recommendations by risk reduction impact./ediscovery-planCreate an eDiscovery readiness plan with custodians, data sources, legal hold approach, search strategy, and escalation paths./purview-setupSet up the Purview Compliance plugin — confirm regulatory context, tenant scope, workload coverage, and install Security & Compliance PowerShell module/retention-reviewEvaluate retention and records coverage across workloads — identify gaps, conflicts, and operational risks in retention labels and policies.Other plugins' commands for the same job