secrets-le: Instructions file for Claude Code

CLAUDE.md

secrets-le CLAUDE.md is an instructions file for Claude Code from nolindnaidoo/secrets-le. It costs 1,194 tokens per session, scanned A, a copy of regex-le CLAUDE.md, MIT.

A set of Claude Code instructions for the secrets-le repository, including where to find project guidance and which checks must pass. It covers both the main project and its Rust command-line tool.

In plain words
What is it for?
Finding the right documentation, understanding project constraints, and validating changes with type checks, linting, tests, packaging, and end-to-end tests.
Why use it?
It helps coding agents follow the repository’s rules and run the required checks before releases.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

This is nolindnaidoo/secrets-le's own configuration. It tells Claude Code how to work on secrets-le 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 secrets-le configures →

Reuse

Borrowing it

Nothing to install: this file belongs to nolindnaidoo/secrets-le. 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/nolindnaidoo/secrets-le/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/nolindnaidoo/secrets-le

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 secrets-le CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/nolindnaidoo/secrets-le/claude-md.svg)](https://agentmods.dev/instructions/nolindnaidoo/secrets-le/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/nolindnaidoo/secrets-le/claude-md"><img src="https://agentmods.dev/badge/instructions/nolindnaidoo/secrets-le/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,194 This file is loaded in full into every session.
When invoked 1,194 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 91% copy Near-identical to another mod 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.01194 $0.01194
Opus 5 $0.00597 $0.00597
Sonnet 5 $0.00239 $0.00239
Haiku 4.5 $0.00119 $0.00119

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

Security

Grade A, and why

secrets-le CLAUDE.md 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 7d 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.

Origin

This is a copy

91% identical to regex-le CLAUDE.md — 14 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

CLAUDE.md · 84 lines

How it starts

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

CLAUDE.md

AGENTS.md is the technical source of truth for this repo: the engineering standard the code is held to — control flow, error handling, immutability, structure — plus this repo's architecture, invariants, toolchain and release. Read it before writing code. README.md is user-facing and partly generated.

The repo also hosts the Rust CLI in crate/ — read crate/CLAUDE.md and crate/AGENTS.md for that side; the shared corpus is crate/signatures/ + crate/fixtures/.

Where to look

Question File
How should this code be written? AGENTS.md — the standard, plus this repo's architecture and invariants
What does the user see? README.md — Testing and Performance are generated
What changed? CHANGELOG.md

Gates

bun run typecheck && bun run lint && bun run test

Before a release, also bun run test:integration, bun run package, and bun run test:e2e-vsix — the last is the only test that exercises the artifact users actually install.

Things that will bite you

  • Two README sections are generated. Testing and Performance sit between <!-- coverage:start --> / <!-- performance:start --> markers and come from scripts/coverage-readme.js and scripts/perf-readme.js. Edit the code and regenerate; do not type numbers in by hand. CI fails if the coverage figures no longer match a real run.
  • Output changes must update the characterization goldens in the same commit, with a CHANGELOG entry describing the behaviour change.
  • Every claim must be provable. No feature, metric or format goes in a README, the manifest, or help text unless the code backs it. That governs behaviour and numbers — not availability. Whether something is published, listed or installable is a fact about a registry at a moment in time, and it is false right up until you make it true. Copy for a release you are about to make is staged, never forbidden: write it, and let the release commit be what makes it true.
  • This repo is one of ten identical ones. The shared config files, scripts and workflows are byte-identical across the family, and letools-site/scripts/check-fleet.ts is what holds them there rather than memory: run bun run check:fleet ../ from a checkout of the site with the ten beside it, or dispatch its Fleet workflow. It names the file and the repos that drifted, so a missed copy is a report rather than something you find months later. Anything under crate/ is outside the check on purpose — the crates stand on their own.
  • Detection is shared with the Rust CLI, and the corpus under crate/ is the contract. Changing detection behaviour means running bun scripts/check-detection-parity.ts and updating the corpus — on both sides, in the same commit. CI fails when either drifts.
  • What the contract holds equal is the shared detect_secrets MCP tool, which both servers offer and must answer identically; a difference there is a bug. The surfaces are meant to differ. This one is IDE-first — the active buffer, plus a workspace scan on demand — one of two in the family that reaches past the buffer, and deliberately. The CLI is terminal-first: a tree walk, exit codes and JSON Lines, none of which has an editor equivalent. That is not drift, and nothing holds them equal — see crate/SPEC.md.
  • Nothing may print a secret. The masking in src/utils/mask.ts is what makes both frontends safe to run in CI. Before adding any output path, ask what a CI log would have captured.
  • Localization is two mechanisms, and they fail separately. src/i18n/package.nls.*.json covers the manifest; l10n/bundle.l10n.*.json covers runtime strings through vscode.l10n.t(). Twelve locales each, held in exact key parity by the integration test. Never call l10n.t() at module scope, never compare a translated label against an English literal, and use positional {0} placeholders rather than template literals.
  • CI narrows itself on a docs-only push. A change touching only *.md and LICENSE runs the Linux leg alone and skips the Zed build; ci-crate.yml runs its policy gate with every Rust job skipped. Nothing that covers the change is skipped — the README coverage gate, the integration suite and the installed-VSIX end-to-end are Linux-only anyway. Anything unrecognised, and an unreadable diff, counts as code and runs everything. A release commit always touches package.json, so a release still sees the full three-OS matrix.
  • Coverage floors are a backstop, not a target. They sit well below where the code actually is, and they are not raised to track it — a floor that follows real coverage becomes a tax on writing the next module.

Read the full file on GitHub · 84 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. 7d ago First seen · 84 lines · 1,194 tokens per session scan A 1b0df57f48e1

Subscribe to this mod's changes

secrets-le CLAUDE.md is an instructions file published in the GitHub repository nolindnaidoo/secrets-le (1 stars, last pushed 5d ago), licensed MIT. It adds 1,194 tokens to every session, about $0.0060 per session on Opus 5. A static security scan graded it A with 0 findings. It is 91% identical to regex-le CLAUDE.md, differing in 14 lines, and is treated as a copy.

Related

Other instructions, from other repositories

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens