privileged-legal-data

privileged-legal-data is a skill for Claude Code, Codex from louisbrulenaudet/monorepo-template. It costs 111 tokens per session (1,631 once invoked), scanned A, original, Apache-2.0.

A set of rules for handling confidential legal-client and case data in a monorepo, a repository containing multiple related projects. It covers data in logs, errors, caches, queues, prompts, and external service calls.

In plain words
What is it for?
Use it when changing logging, tracing, storage, tenant isolation, model prompts, error responses, or third-party calls that may carry legal-client content.
Why use it?
It helps prevent confidential information from appearing where people or systems outside the relevant legal matter could access it. It also helps keep data from one client or case separate from another.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; installed under .agents/ (shared by several agents); mentions AGENTS.md.

Good fit Use it when changing logging, tracing, storage, tenant isolation, model prompts, error responses, or third-party calls that may carry legal-client content.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/louisbrulenaudet/monorepo-template/privileged-legal-data
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 louisbrulenaudet/monorepo-template --skill privileged-legal-data
Clone the repo
git clone --depth 1 https://github.com/louisbrulenaudet/monorepo-template

Made for: Claude Code, Codex.

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 privileged-legal-data

README.md
[![agentmods](https://agentmods.dev/badge/skills/louisbrulenaudet/monorepo-template/privileged-legal-data/github.svg)](https://agentmods.dev/skills/louisbrulenaudet/monorepo-template/privileged-legal-data)
Your own site
<a href="https://agentmods.dev/skills/louisbrulenaudet/monorepo-template/privileged-legal-data"><img src="https://agentmods.dev/badge/skills/louisbrulenaudet/monorepo-template/privileged-legal-data/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 privileged-legal-data

Your own site · 80×15
<a href="https://agentmods.dev/skills/louisbrulenaudet/monorepo-template/privileged-legal-data"><img src="https://agentmods.dev/badge/skills/louisbrulenaudet/monorepo-template/privileged-legal-data.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,631 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.00111 $0.01631
Opus 5 $0.00056 $0.00816
Sonnet 5 $0.00022 $0.00326
Haiku 4.5 $0.00011 $0.00163

Measured 12d ago against content hash 4e685ce5e192, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

privileged-legal-data 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 12d 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.

.agents/skills/privileged-legal-data/SKILL.md · 105 lines

How it starts

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

The single source of truth for the legal-sector data rules in this repo. The short prohibitions live in guardrails.md → "Privileged client data", which is always loaded; this skill is the depth behind them.

Deliberately model-invocable (no disable-model-invocation), unlike the review-* skills, so that a subagent can preload it via its skills: frontmatter or invoke it through the Skill tool. Change that and the reviewer agents lose their checklist.

The threat model

Not "leaking PII" in the generic sense. In a legal-domain system the harm is a confidentiality or privilege breach: two matters bleeding into each other, a client name in a log aggregator a third party can read, or privileged text pasted into a model prompt outside the engagement. Assume logs, traces, and error bodies are readable by more people than the matter is.

What counts as privileged

Anything that identifies a client or a matter, or that carries substantive content from either: client and counterparty names, matter or file numbers, case numbers and docket identifiers, the text of an instruction or advice, document contents and filenames, and free-text fields a user typed. An opaque internal id (a UUID with no external meaning) is not privileged; a "reference" that a human could look up is.

Boundary rules — Workers (worker-api, worker-*, queue-*, webhook-*, mcp-*)

  • Validate before you touch it. Every body, query, and path parameter goes through a Zod schema from @repo/dtos-common at the boundary (zValidator). Use .strict() where the shape is closed so unexpected fields are rejected rather than forwarded into a log or a store.
  • Logging. Log an opaque request id, a route name, a status, and a duration. Never a name, a matter reference, a document filename, or a request body. If you need to correlate to a matter, log the opaque id and resolve it in a system with the same access controls as the matter itself.
  • Errors. onError and HTTPException return a generic message plus that request id. No stack traces, no internal paths, no echoed input, no upstream provider error text - upstream errors routinely quote the payload back.
  • Cache keys and URLs. A Workers Cache key, a KV key, and a URL path or query string are all effectively logged infrastructure. Hash or use an opaque id; never embed a client name or matter reference. This applies to waitUntil writes as much as to responses.
  • Tenancy. Matter isolation is a property of the query, not of the caller's good behaviour. Every read and write is scoped by the matter or tenant id the request was authorised for - derived server-side from the credential, never taken from a client-supplied field.
  • Durable stores and queues. Anything written to KV, a queue message, D1, or an object store needs a stated retention and deletion rule in the owning app's AGENTS.md. A queue message is a copy of the data that outlives the request; treat enqueueing as a storage decision.
  • Secrets. Only .dev.vars locally and wrangler secrets or env bindings in deployed environments. Never in wrangler.jsonc vars, never in a log, never in an error body.
  • CORS and CSRF. An allowlist of known origins, never * in production; CSRF protection on state-changing /api/*. A permissive CORS header on a privileged endpoint is a disclosure bug, not a config preference.

Read the full file on GitHub · 105 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. 12d ago First seen · 105 lines · 111 tokens per session scan A 4e685ce5e192

Subscribe to this mod's changes

privileged-legal-data is a skill published in the GitHub repository louisbrulenaudet/monorepo-template (19 stars, last pushed 11d ago), licensed Apache-2.0. It adds 111 tokens to every session and 1,631 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-30.

Related

Other skills, from other repositories

gsap-scrolltrigger

Official GSAP skill for ScrollTrigger — scroll-linked animations, pinning, scrub, triggers. Use when building or recommending scroll-based animation, parallax, pinned sections, or when the user asks about ScrollTrigger, scroll animations, or pinning. Recommend GSAP for scroll-driven animation when no library is…

calesthio/OpenMontage · 68 tokens

seedance-2-5

Generate 4-30 second cinematic video with ByteDance Seedance 2.5 through fal.ai, Volcengine Ark, Runway, or ComfyUI Partner Nodes. Use for long single generations, synchronized audio, and large multimodal reference sets (up to 30 images, 10 videos, and 10 audio clips). Also covers the 2.5 prompt contract: section…

calesthio/OpenMontage · 117 tokens

threejs-geometry

Three.js geometry creation - built-in shapes, BufferGeometry, custom geometry, instancing. Use when creating 3D shapes, working with vertices, building custom meshes, or optimizing with instanced rendering.

calesthio/OpenMontage · 46 tokens

comfyui

Use when working with ComfyUI workflows in OpenMontage, including comfyuiimage/comfyuivideo/comfyuimusic, custom workflowjson/workflowpath inputs, outputnode selection, missing model setup, LoRAs, low-VRAM workflow choices, and community workflow imports.

calesthio/OpenMontage · 61 tokens

ltx2

AI video generation with LTX-2.3 22B — text-to-video, image-to-video clips for video production. Use when generating video clips, animating images, creating b-roll, animated backgrounds, or motion content. Triggers include video generation, animate image, b-roll, motion, video clip, text-to-video, image-to-video.

calesthio/OpenMontage · 76 tokens

lyria

Generate and validate music with Google Lyria 3 through the Gemini Interactions API. Use before calling OpenMontage googlemusic, designing Lyria 3 Clip or Pro prompts, using image-to-music or custom lyrics, choosing between Lyria 3 and Lyria RealTime, diagnosing Google music-generation failures, or preparing…

calesthio/OpenMontage · 76 tokens