audit-permissions

audit-permissions is a skill for Claude Code from microsoft/power-platform-skills. It costs 153 tokens per session (18,128 once invoked), scanned A, original, MIT.

A permissions review tool for Power Pages sites. It compares table permissions with the site code and Dataverse metadata, then produces an HTML report grouped by severity.

In plain words
What is it for?
It checks web roles, table permissions, relationships, lookup columns, and site configuration, then presents audit results in a browser.
Why use it?
It helps reveal missing, invalid, or overly broad access rules before they cause site or security problems. The report explains findings and suggests corrections.

Skill for Claude Code ✓ vendor

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; names the AskUserQuestion tool.

Part of the power-pages plugin — 36 skills, 5 agents shipped together

Good fit It checks web roles, table permissions, relationships, lookup columns, and site configuration, then presents audit results in a browser.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/microsoft/power-platform-skills/audit-permissions
About the project

microsoft/power-platform-skills is a plugin marketplace containing reusable skills, agents, and commands for developing with Microsoft Power Platform. Developers use it to build and deploy Power Pages sites, model-driven Power Apps, and related solutions through Claude Code or GitHub Copilot. The catalogue entries are the marketplace's included skills, agents, plugins, and other agent components.

microsoft/power-platform-skills · 1,210 stars · on GitHub · microsoft.github.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add microsoft/power-platform-skills --skill audit-permissions
Clone the repo
git clone --depth 1 https://github.com/microsoft/power-platform-skills

Made for: Claude Code.

Or install power-pages, the plugin that ships this one along with the rest of its 36 skills, 5 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for audit-permissions

README.md
[![agentmods](https://agentmods.dev/badge/skills/microsoft/power-platform-skills/audit-permissions/github.svg)](https://agentmods.dev/skills/microsoft/power-platform-skills/audit-permissions)
Your own site
<a href="https://agentmods.dev/skills/microsoft/power-platform-skills/audit-permissions"><img src="https://agentmods.dev/badge/skills/microsoft/power-platform-skills/audit-permissions/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for audit-permissions

Your own site · 80×15
<a href="https://agentmods.dev/skills/microsoft/power-platform-skills/audit-permissions"><img src="https://agentmods.dev/badge/skills/microsoft/power-platform-skills/audit-permissions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 153 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 18,128 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Rogue Agent · line 481
    Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.
    Fix: Prevent the skill from modifying its own code, SKILL.md, or configuration files. Treat skill files as read-only at runtime.
  • medium Excessive Agency · line 30
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
  • medium Excessive Agency · line 11
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00153 $0.18128
Opus 5.5 $0.00061 $0.07251
Sonnet 5.5 $0.00031 $0.03626
Haiku 4.5 $0.00015 $0.01813

Measured 1mo ago against content hash 6b4910d37127, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

audit-permissions scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/collect-non-spa-permission-evidence.js, scripts/query-table-lookups.js, scripts/query-table-relationships.js, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/power-pages/skills/audit-permissions/SKILL.md · 949 lines

How it starts

The opening of the file, as written. The whole thing — 949 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Plugin check: Run node "${PLUGIN_ROOT}/scripts/check-version.js" — if it outputs a message, show it to the user before proceeding.

Audit Permissions

Audit existing table permissions on a Power Pages code site. Analyze permissions against the site code and Dataverse metadata, then generate a visual HTML report with deterministic 1–5 category scores, an advisory verdict, findings, reasoning, and suggested fixes.

The skill has two parts:

  1. Audit checks (evidence + remediation) — the per-table A–K checklist that compares every permission against real code usage and Dataverse metadata. It is the primary issue detector: it catches concrete, code-grounded problems (missing CRUD, append/appendto, $expand gaps, broken parent chains, over-provisioned grants) and emits each as a major/minor issue with concrete evidence and a fix.
  2. Scoring (reproducible result) — a 3-category rubric (9 dimensions) anchored by a recurring-issue catalog of fixed detection triggers + severities, followed by a single consolidation into root causes and one batched root-cause attribution pass for major issues. It turns the findings into pure-formula 1–5 category scores so two runs on the same configuration yield the same numbers.

Golden rule of scoring: you only ever find and label issues (major / minor). You do NOT invent the numeric score. The 1–5 numbers come from a fixed formula applied to the issue counts (see Appendix A). Same issue set ⇒ same score.

Site type routing

Before reading or executing the workflow below, perform the existing SPA project lookup first.

  • Look for powerpages.config.json in the current directory or immediate subdirectories using the existing file-search patterns.

  • If found, continue with the existing SPA workflow below.

  • Only when that existing SPA lookup finds no powerpages.config.json, run:

    node "${PLUGIN_ROOT}/scripts/lib/detect-project-context.js"
    

Read the full file on GitHub · 949 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +18 lines · +11 tokens per session 6b4910d37127
  2. 1mo ago Changed · +47 lines 6b3f745cb6d5
  3. 1mo ago Changed · +354 lines · +73 tokens per session 87866747104f
  4. 3mo ago First seen · 530 lines · 69 tokens per session scan A 47c598bf5ec5

Subscribe to this mod's changes

audit-permissions is a skill published in the GitHub repository microsoft/power-platform-skills (1,210 stars, last pushed today), licensed MIT. It adds 153 tokens to every session and 18,128 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

audit-permissions compared with skills from other repositories

audit-permissions next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
audit-permissionsmicrosoft/power-platform-skillsSkill1.2ktodayMITA153Claude Code
canvas-apps-ui-genToluVictor/canvas-apps-toolsSkill1527mo agoMITA71Claude Code
ux-heuristicswondelai/skillsSkill2.9k3d agoMITA122Claude Code, Codex
blue-ocean-strategywondelai/skillsSkill2.9k3d agoMITA152Claude Code
clean-codewondelai/skillsSkill2.9k3d agoMITA126Claude Code
session-scanoliver-kriska/claude-elixir-phoenixSkill5803d agoMITB36Claude Code
prices-and-plansfirecrawl/firecrawl-claude-pluginSkill276yesterdayMITA118Claude Code