nacre: Skill for Claude Code

.claude/skills/authz-change/SKILL.md

authz-change is a skill for Claude Code from nacre-work/nacre. It costs 119 tokens per session (1,016 once invoked), scanned A, original, Apache-2.0.

Rules for changing the application’s permission system, including access grants, inherited permissions, denials, and search filtering. A permission system decides which people can see or use each piece of data.

In plain words
What is it for?
Use them when changing authorization code, access-control tables or caches, document search filters, inherited access, or permission tests.
Why use it?
They help prevent changes from exposing documents that a user should not be able to access, especially when permissions conflict or checks fail.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is nacre-work/nacre's own configuration. It tells Claude Code how to work on nacre itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything nacre configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/nacre-work/nacre/main/.claude/skills/authz-change/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/nacre-work/nacre

Made for: Claude Code.

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 authz-change

README.md
[![agentmods](https://agentmods.dev/badge/skills/nacre-work/nacre/authz-change.svg)](https://agentmods.dev/skills/nacre-work/nacre/authz-change)
Your own site
<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="Measured on agentmods" height="20"></a>
Per session 119 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,016 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.
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.00119 $0.01016
Opus 5 $0.00060 $0.00508
Sonnet 5 $0.00024 $0.00203
Haiku 4.5 $0.00012 $0.00102

Measured 6d ago against content hash 055cfeee8b80, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

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 6d 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.

.claude/skills/authz-change/SKILL.md · 81 lines

How it starts

The opening of the file, as written. The whole thing — 81 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:

  1. 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.
  2. 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 catch blocks that continue.
  3. 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

  • write does not imply read (rule 6), while admin implies both (rule 7). Every other permission system trains the opposite instinct. If you find yourself writing if (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_admin reads no documents (rule 2). Administering a tenant is not access to its data.
  • acl_tags is a cache. The grants table is the source of truth. Until a recomputation finishes, the layer filter and the tag filter both apply — do not "simplify" that to one.
  • Tag hashes are truncated to 8 bytes and collide by design. That is only safe because the query is also bounded by allowed layer_id. Removing the layer bound makes the truncation a leak.

Read the full file on GitHub · 81 lines

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. 6d ago First seen · 81 lines · 119 tokens per session scan A 055cfeee8b80

Subscribe to this mod's changes

authz-change is a skill published in the GitHub repository nacre-work/nacre (0 stars, last pushed 9d ago), licensed Apache-2.0. It adds 119 tokens to every session and 1,016 once invoked, about $0.0006 per session on Opus 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.

Related

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…

davila7/claude-code-templates · 63 tokens

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…

synthetic-sciences/openscience · 63 tokens

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…

OpenLAIR/dr-claw · 63 tokens

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…

Orchestra-Research/AI-Research-SKILLs · 63 tokens

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…

Microck/ordinary-claude-skills · 63 tokens

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…

liortesta/ClawdAgent · 63 tokens