Compliance Governance Audit logo

Compliance Governance Audit

Community
ricmmartins
compliance-governance-audit

Audit Azure environment for compliance and governance posture. Checks Azure Policy, RBAC, tagging, resource locks, naming conventions, and regulatory alignment. Use when asked about compliance, governance, audit readiness, or policy violations.

Overview

Publisherricmmartins
Repositoryazure-sre-agent-skills
Skill namecompliance-governance-audit
Stars
70
Forks
14
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by ricmmartins on GitHub. Read the source before you install it.

Installation

Install the Compliance Governance Audit AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/ricmmartins/azure-sre-agent-skills/tree/main/skills/02-compliance-governance
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ricmmartins/azure-sre-agent-skills.git /tmp/azure-sre-agent-skills
mkdir -p .claude/skills
cp -r /tmp/azure-sre-agent-skills/skills/02-compliance-governance .claude/skills/compliance-governance-audit
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Compliance Governance Audit in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Compliance Governance Audit on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Compliance Governance Audit is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Compliance & Governance Audit

Purpose

Assess the governance posture of Azure subscriptions by auditing policies, RBAC assignments, tagging standards, resource locks, and regulatory alignment. Produce a compliance scorecard with remediation steps.

CRITICAL formatting rule

Use Unicode emoji characters directly (🟢 🟡 🔴) in ALL output — headers, tables, findings, bullet points, everywhere. NEVER use emoji shortcodes like :red_circle:, :yellow_circle:, :green_circle:, or any :name: syntax. This applies to every section of the report without exception.

When to use this skill

  • User asks "are we compliant?"
  • User asks about governance, policy violations, or audit readiness
  • Pre-audit preparation (SOC2, ISO 27001, HIPAA, etc.)
  • Monthly governance review

Pre-check

Confirm with the user:

  • Scope: which subscriptions/management groups
  • Compliance framework (if any): SOC2, ISO 27001, HIPAA, PCI-DSS, CIS Benchmarks, or general best practices
  • Any known exceptions or waivers

Audit procedure

Step 1: Azure Policy compliance

Check overall policy compliance state.

bash
az policy state summarize --query "value[].{policy:policyDefinitionName, nonCompliant:nonCompliantResources}" -o table
  1. List all non-compliant resources grouped by policy
  2. Identify policies in "audit" mode that should be "deny"
  3. Check for orphaned policy assignments (assigned but no effect)
  4. Verify initiative assignments for regulatory frameworks (CIS, NIST, etc.)

Report:

  • Total policies assigned
  • % compliant
  • Top 5 violated policies with resource count

Step 2: RBAC review

Audit role assignments for least-privilege violations.

bash
az role assignment list --all --query "[].{principal:principalName, role:roleDefinitionName, scope:scope}" -o table
  1. Owner count: Flag if > 3 Owners at subscription level
  2. Contributor sprawl: List all Contributor assignments — flag service principals with Contributor when a custom role would suffice
  3. Classic admins: Check for legacy co-administrators
    bash
    az role assignment list --include-classic-administrators -o table
  4. Guest users with privileged roles: Flag external identities with Owner/Contributor
  5. Stale assignments: Cross-reference with sign-in logs — flag principals that haven't signed in for 90+ days
  6. Custom roles: Review custom role definitions for overly broad permissions (e.g., * actions)

Step 3: Tagging compliance

Check mandatory tags across all resources.

Define expected mandatory tags (confirm with user or use defaults):

  • environment (prod/staging/dev/test)
  • owner (team or individual)
  • cost-center (billing code)
  • application (workload name)
bash
az resource list --query "[?tags.environment==null || tags.owner==null].{name:name, type:type, rg:resourceGroup, tags:tags}" -o table

Report:

  • % of resources with all mandatory tags
  • Top offending resource groups
  • Resources with no tags at all

Step 4: Resource locks

Check critical resources for delete/read-only locks.

bash
az lock list --query "[].{name:name, level:level, resource:resourceId}" -o table
  1. Verify production databases have delete locks
  2. Verify production storage accounts have delete locks
  3. Verify networking resources (VNets, ExpressRoute) have locks
  4. Flag production resources without any lock

Step 5: Naming conventions

Analyze resource naming patterns.

  1. Extract all resource names and types
  2. Check against Azure naming conventions (e.g., rg-, vnet-, vm-, st, kv-)
  3. Flag resources that don't follow a consistent pattern
  4. Report % compliance with naming standards

Step 6: Network governance

  1. Check for resources with public endpoints that should be private
  2. Verify NSG flow logs are enabled
  3. Check for Network Watcher in all active regions
  4. Verify DDoS protection on VNets with public-facing resources

Step 7: Diagnostic settings

  1. Check that all critical resources have diagnostic settings enabled
  2. Verify logs flow to a central Log Analytics workspace
  3. Check Activity Log export at subscription level
bash
az monitor diagnostic-settings subscription list --subscription <id> -o table

Scoring model

RatingMeaning
🟢 CompliantMeets standard, no action needed
🟡 PartialPartially implemented, needs improvement
🔴 Non-compliantMissing or misconfigured, action required

Reminder: use the actual Unicode characters 🟢 🟡 🔴 above, never shortcodes.

Accepted exceptions (optional)

If the user provides a list of accepted exceptions, do not flag those items. Instead, note them in the report as Accepted Exception with the reason provided.

Example format the user may provide:

CheckReason
2.1 Owner countFounding engineers require Owner for break-glass access
3.1 Tagging complianceLegacy resource groups exempt until Q3 migration
4.2 Production locksTerraform-managed resources use state locking instead

When exceptions are provided:

  • Skip the flagged checks in scoring
  • List them in a separate "Accepted Exceptions" section at the end of the report
  • Recalculate the overall score excluding excepted checks

Expected output

Report header (mandatory — use this exact format)

Compliance & Governance Audit Report

FieldValue
Subscription(name + ID)
Assessment DateYYYY-MM-DD
Overall ScoreXX%

Governance scorecard

AreaStatusCompliantPartialNon-compliantScore
Azure Policy🟡XYZ%
RBAC🔴.........%
Tagging🟡.........%
Resource Locks🔴.........%
Naming🟢.........%
Network Gov.🟡.........%
Diagnostics🟡.........%
Overall%

Critical findings (act now)

Items that represent immediate risk or audit failure.

Remediation plan

For each finding:

  • What's wrong
  • Why it matters
  • How to fix it (with az cli command or portal steps)
  • Use GetAzCliHelp to validate the command syntax before suggesting
  • Include the official Microsoft Learn documentation link
  • Estimated effort
  • Priority (Critical/High/Medium/Low)

References

Regulatory mapping (if framework specified)

Map findings to specific controls (e.g., SOC2 CC6.1, ISO 27001 A.9.2.3).

Sample output

The following is a redacted example of what the report looks like when run against a subscription.

Compliance & Governance Audit Report

FieldValue
Subscriptioncontoso-prod-001 (a1b2c3d4-e5f6-7890-abcd-ef1234567890)
Assessment Date2026-07-15
Overall Score61%

Governance scorecard

AreaStatusCompliantPartialNon-compliantScore
Azure Policy🟡185369%
RBAC🔴21333%
Tagging🟡4512869%
Resource Locks🔴10325%
Naming🟢526287%
Network Gov.🟡31160%
Diagnostics🟡42157%
Overall61%

Critical findings (sample)

#FindingAreaSeverity
16 subscription-level Owners detected (limit: 3)RBAC🔴 Critical
22 guest users with Contributor role on productionRBAC🔴 Critical
3SQL Server sql-contoso-prod has no delete lockResource Locks🔴 High
48 resources in rg-app-prod missing cost-center tagTagging🟡 Medium

Remediation guidance (sample)

bash
# Remove excess Owner assignments
az role assignment delete --assignee user@external.com --role Owner --scope /subscriptions/a1b2c3d4-...

# Add delete lock to production SQL Server
az lock create --name CanNotDelete --resource-group rg-data-prod --resource sql-contoso-prod --resource-type Microsoft.Sql/servers --lock-type CanNotDelete

# Tag resources with missing cost-center
az resource tag --ids /subscriptions/.../resourceGroups/rg-app-prod/providers/Microsoft.Web/sites/app-api-prod --tags cost-center=CC-1234 environment=prod owner=platform-team

Frequently asked questions

What does the Compliance Governance Audit AI skill do?

Audit Azure environment for compliance and governance posture. Checks Azure Policy, RBAC, tagging, resource locks, naming conventions, and regulatory alignment. Use when asked about compliance, governance, audit readiness, or policy violations.

Why use Compliance Governance Audit on TypingMind?

Because you install it once and use it with any model. Compliance Governance Audit is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Compliance Governance Audit in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ricmmartins/azure-sre-agent-skills/tree/main/skills/02-compliance-governance. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Compliance Governance Audit?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Compliance Governance Audit?

As many as you like. As long as a model supports skills, you can use Compliance Governance Audit with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Compliance Governance Audit AI skill free?

Yes. It is published on GitHub by ricmmartins under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇