Borrowing it
Nothing to install: this file belongs to bayesimpact/bayes-platform. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/bayesimpact/bayes-platform/main/.claude/skills/check-permission-matrix/SKILL.mdgit clone --depth 1 https://github.com/bayesimpact/bayes-platformWrote 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.
[](https://agentmods.dev/skills/bayesimpact/bayes-platform/check-permission-matrix)<a href="https://agentmods.dev/skills/bayesimpact/bayes-platform/check-permission-matrix"><img src="https://agentmods.dev/badge/skills/bayesimpact/bayes-platform/check-permission-matrix/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.
<a href="https://agentmods.dev/skills/bayesimpact/bayes-platform/check-permission-matrix"><img src="https://agentmods.dev/badge/skills/bayesimpact/bayes-platform/check-permission-matrix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00046 | $0.00613 |
| Opus 5.5 | $0.00018 | $0.00245 |
| Sonnet 5.5 | $0.00009 | $0.00123 |
| Haiku 4.5 | $0.00005 | $0.00061 |
Grade A, and why
check-permission-matrix 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 20d ago.
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.
How it starts
The opening of the file, as written. The whole thing — 31 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Verify that docs/rbac-permission-matrix.md is an exact mirror of the RBAC catalog in code.
Steps
-
Read the two code sources of truth:
packages/api-contracts/src/rbac/permissions.ts— permission string constants (the only declaration) and every member of theGlobalPermissionunion.apps/api/src/domains/rbac/rbac.constants.ts— extract every role key and its granted permissions from every*_ROLE_PERMISSIONSmap:ORGANIZATION_ROLE_PERMISSIONS,PROJECT_ROLE_PERMISSIONS,AGENT_ROLE_PERMISSIONSandREVIEW_CAMPAIGN_ROLE_PERMISSIONS. Search the file for_ROLE_PERMISSIONS = {so a new map is not missed. Also readPROJECT_PERMISSIONS_FROM_REVIEW_CAMPAIGN(the project keys a campaign role gives on the campaign's project),REVIEW_CAMPAIGN_STATUSES_GIVING_PROJECT_PERMISSIONS(the campaign statuses under which each campaign role gives them),RESOURCE_TYPE_PERMISSIONS_MAP(the keys a parent passes down to each child type) andPARENT_RESOURCE_TYPE_MAP(the parents of each type). Permission constants such asTRACE_READ_PERMISSIONare imported from the contracts file; resolve them to their string values. The API file must not redeclare those strings.
-
Read
docs/rbac-permission-matrix.mdand parse each table into (permission, role) → granted/not-granted pairs. A cell such as✅ while activeis a grant with a campaign status condition. -
Compare both directions and collect mismatches:
- Role in code but missing from the doc (or the reverse)
- Permission granted in code but unchecked/missing in the doc (or the reverse)
GlobalPermissionunion member absent from the "Global roles" table- A key granted on a review campaign role that is neither a
review_campaign.*key nor inPROJECT_PERMISSIONS_FROM_REVIEW_CAMPAIGN - A campaign status statement in the doc, in prose or in a table cell, that differs from
REVIEW_CAMPAIGN_STATUSES_GIVING_PROJECT_PERMISSIONS - A statement that a key passes down from a parent, or does not, that differs from
RESOURCE_TYPE_PERMISSIONS_MAPandPARENT_RESOURCE_TYPE_MAP
-
Report the results:
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.
- 20d ago Changed · +3 lines a0c35852d125
- 1mo ago Changed 2e3806647b95
- 1mo ago First seen · 28 lines · 46 tokens per session scan A 59ca389c9751
check-permission-matrix is a skill published in the GitHub repository bayesimpact/bayes-platform (23 stars, last pushed yesterday), licensed MIT. It adds 46 tokens to every session and 613 once invoked, about $0.0002 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-14.
check-permission-matrix compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| check-permission-matrixbayesimpact/bayes-platform | Skill | 23 | yesterday | MIT | A | 46 | Claude Code |
| autoreviewopenclaw/clawhub | Skill | 9.5k | yesterday | MIT | A | 17 | Claude Code, Codex |
| agent-teams-simplify-and-hardenLeoYeAI/openclaw-master-skills | Skill | 2.2k | 6d ago | MIT | A | 115 | Claude Code, Codex |
| omh-code-reviewrlaope/oh-my-hermes | Skill | 5.2k | yesterday | MIT | A | 48 | Claude Code, Codex |
| revdiff-planumputun/revdiff | Skill | 945 | yesterday | MIT | A | 84 | Claude Code |
| explore-unknownsdzhng/skills | Skill | 1.4k | 2d ago | MIT | A | 162 | Claude Code, Codex |
| re0-mergeLilMGenius/paperthin | Skill | 1.4k | 4d ago | MIT | A | 70 | Claude Code |