shrtnr: Instructions file for Claude Code

CLAUDE.md

shrtnr CLAUDE.md is an instructions file for Claude Code from oddbit/shrtnr. It costs 2,493 tokens per session, scanned A, original, Apache-2.0.

Project instructions for the oddbit/shrtnr codebase, covering styling, releases, SDK versions, and specification hashes. An SDK is a package that lets other programs use a service or library.

In plain words
What is it for?
Use them when changing versions, preparing releases for the app or TypeScript, Python, or Dart SDKs, updating changelogs, or checking the API specification hash.
Why use it?
They give contributors consistent rules for changing shared styles, releasing the app, updating SDKs, and keeping generated version hashes current.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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 shrtnr CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/oddbit/shrtnr/claude-md/github.svg)](https://agentmods.dev/instructions/oddbit/shrtnr/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/oddbit/shrtnr/claude-md"><img src="https://agentmods.dev/badge/instructions/oddbit/shrtnr/claude-md/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 shrtnr CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/oddbit/shrtnr/claude-md"><img src="https://agentmods.dev/badge/instructions/oddbit/shrtnr/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,493 This file is loaded in full into every session.
When invoked 2,493 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 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.02493 $0.02493
Opus 5.5 $0.00997 $0.00997
Sonnet 5.5 $0.00499 $0.00499
Haiku 4.5 $0.00249 $0.00249

Measured 17d ago against content hash def33cd0f161, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

shrtnr 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 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.

CLAUDE.md · 135 lines

How it starts

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

CLAUDE.md

Shape: docs/architecture.md, docs/code-architecture.md. Technical rules: docs/code-rules.md.

Styling

  • No inline styles for global design. Styles live in centralized files that components and pages import.

Releases

A version bump on main drives each track:

Target Manifest Tag prefix
Cloudflare Workers app root package.json app-v*
TypeScript/npm SDK sdk/typescript/package.json npm-v*
Python/PyPI SDK sdk/python/pyproject.toml py-v*
Dart/pub.dev SDK sdk/dart/pubspec.yaml pub-v*

SDK bumps: scripts/bump-sdk-version.sh <npm|python|pub> <version> edits the manifest, adds a placeholder CHANGELOG entry and refreshes lockfiles. Replace TODO: fill in release notes. before committing.

On "update the version", "bump version" or "create a release":

  1. Bump the manifest per semver. Confirm the track if ambiguous.
  2. Add a concise section (paragraph or bullets, not a commit log) to the CHANGELOG.md next to the manifest.
  3. App track only: the spec embeds info.version, so the bump stales all three SDK hashes. Run ./scripts/spec-hash.sh and update every hash field (see Spec hash) in the same commit, or CI's sdk-spec-drift fails.
  4. Commit. Do not push.
  5. Dart only: tag locally, do not push: git tag pub-v<version>. pub.dev publishes on tag push. CI tags app, npm and Python after publish.

Only the app track creates a GitHub Release (with --latest). SDK and extension workflows tag and publish to their registry; never add gh release create to them.

Details: docs/release-automation.md.

SDKs

  • SDK parity. A change to one SDK under sdk/ applies to the others: public methods, models, auth, errors, base-URL handling. A single-SDK change states its reason in the commit message.
  • README parity. SDK READMEs stay in lockstep (install, usage, auth, feature list), differing only for language idioms. Removing or renaming a documented feature in one means the same edit in the others.

Read the full file on GitHub · 135 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. 17d ago Changed · +2 lines · -145 tokens per session def33cd0f161
  2. 1mo ago Changed · +21 lines · +533 tokens per session f8cfe9227391
  3. 1mo ago Changed · +2 lines · +37 tokens per session 0d18f0c9cb74
  4. 1mo ago Changed · +6 lines · +278 tokens per session 65c65602a7c8
  5. 2mo ago First seen · 104 lines · 1,790 tokens per session scan A c2863845112b

Subscribe to this mod's changes

shrtnr CLAUDE.md is an instructions file published in the GitHub repository oddbit/shrtnr (33 stars, last pushed 3d ago), licensed Apache-2.0. It adds 2,493 tokens to every session, about $0.0100 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-30.

Related

shrtnr CLAUDE.md compared with instructions from other repositories

shrtnr CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
shrtnr CLAUDE.mdoddbit/shrtnrInstructions file333d agoApache-2.0A2,493Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode