Borrowing it
Nothing to install: this file belongs to nacre-work/nacre. 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/nacre-work/nacre/main/.claude/skills/authz-change/SKILL.mdgit clone --depth 1 https://github.com/nacre-work/nacreWrote 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/nacre-work/nacre/authz-change)<a href="https://agentmods.dev/skills/nacre-work/nacre/authz-change"><img src="https://agentmods.dev/badge/skills/nacre-work/nacre/authz-change/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/nacre-work/nacre/authz-change"><img src="https://agentmods.dev/badge/skills/nacre-work/nacre/authz-change.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.00119 | $0.01155 |
| Opus 5.5 | $0.00048 | $0.00462 |
| Sonnet 5.5 | $0.00024 | $0.00231 |
| Haiku 4.5 | $0.00012 | $0.00115 |
Grade A, and why
authz-change 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 17d 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 — 89 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Changing the permission model
This is the module where a mistake is a leaked document that gets discovered in
an auditor's report. docs/authz.md is normative — implement it as written and
raise deviations rather than absorbing them.
Before touching code
Read docs/authz.md in full, not the section you think you need. The rules
interact: rule 5 (any deny beats any allow, at any depth) and rule 4
(inheritance downward) together mean a deny on a workspace kills an explicit
allow on a document beneath it. That row is in the truth table and it is the one
people get wrong.
The check for every diff
Answer all three explicitly in the PR description — the template asks:
- Is filtering still applied during index traversal? Not after ranking, not by fetching more and trimming. If your change adds a code path that receives results and removes some, it is wrong regardless of what it removes.
- What happens when permission evaluation fails? Every failure — timeout,
cache miss that cannot be filled, malformed grant — denies. There is no
fallback that widens access. Look specifically for
catchblocks that continue. - Are "no permission" and "no such object" still indistinguishable? Same status, same body, same timing characteristics where practical. A different error string is a leak.
Rules easiest to break by accident
writedoes not implyread(rule 6), whileadminimplies both (rule 7). Every other permission system trains the opposite instinct. If you find yourself writingif (perm >= read), stop — permissions are not ordered.- Deny is absolute, not nearest-wins. Do not implement "most specific scope wins"; that is a different model and it grants access the spec denies.
platform_adminreads no documents (rule 2). Administering a tenant is not access to its data.- The vector payload carries no permission cache. There is no
acl_tags: migration 0016 removed it —buildFilternever emitted the clause, and the per-layer tags could not express a document-scoped grant. The permitted set is computed fromgrantson every request and the bound islayer_id(plus document-scoped allows and amust_notfor denied documents). Do not reintroduce a cached tag set — it delays grants and does nothing for revocations.docs/authz.md, "The vector payload carries no permission cache". - The effective-principals cache is safe only through its key. It carries
organizations.groups_version, which triggers bump on every write togroups,group_membersandgrants, so a revoked grant composes a different key on the next request. The TTL bounds memory, not staleness.
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.
- 17d ago Changed · +8 lines fb96f7a995fa
- 1mo ago First seen · 81 lines · 119 tokens per session scan A 055cfeee8b80
authz-change is a skill published in the GitHub repository nacre-work/nacre (2 stars, last pushed 18d ago), licensed Apache-2.0. It adds 119 tokens to every session and 1,155 once invoked, about $0.0005 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-08-31.
Other skills, from other repositories
chroma
Open-source embedding database for AI applications. Store embeddings and metadata, perform vector and full-text search, filter by metadata. Simple 4-function API. Scales from notebooks to production clusters. Use for semantic search, RAG applications, or document retrieval. Best for local development and open-source…
chroma
Open-source embedding database for AI applications. Store embeddings and metadata, perform vector and full-text search, filter by metadata. Simple 4-function API. Scales from notebooks to production clusters. Use for semantic search, RAG applications, or document retrieval. Best for local development and open-source…
chroma
Open-source embedding database for AI applications. Store embeddings and metadata, perform vector and full-text search, filter by metadata. Simple 4-function API. Scales from notebooks to production clusters. Use for semantic search, RAG applications, or document retrieval. Best for local development and open-source…
chroma
Open-source embedding database for AI applications. Store embeddings and metadata, perform vector and full-text search, filter by metadata. Simple 4-function API. Scales from notebooks to production clusters. Use for semantic search, RAG applications, or document retrieval. Best for local development and open-source…
chroma
Open-source embedding database for AI applications. Store embeddings and metadata, perform vector and full-text search, filter by metadata. Simple 4-function API. Scales from notebooks to production clusters. Use for semantic search, RAG applications, or document retrieval. Best for local development and open-source…
chroma
Open-source embedding database for AI applications. Store embeddings and metadata, perform vector and full-text search, filter by metadata. Simple 4-function API. Scales from notebooks to production clusters. Use for semantic search, RAG applications, or document retrieval. Best for local development and open-source…