Borrowing it
Nothing to install: this file belongs to crabsmadethis/d2r-horadric-tools. 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/crabsmadethis/d2r-horadric-tools/main/CLAUDE.mdgit clone --depth 1 https://github.com/crabsmadethis/d2r-horadric-toolsWrote 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/instructions/crabsmadethis/d2r-horadric-tools/claude-md)<a href="https://agentmods.dev/instructions/crabsmadethis/d2r-horadric-tools/claude-md"><img src="https://agentmods.dev/badge/instructions/crabsmadethis/d2r-horadric-tools/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.
<a href="https://agentmods.dev/instructions/crabsmadethis/d2r-horadric-tools/claude-md"><img src="https://agentmods.dev/badge/instructions/crabsmadethis/d2r-horadric-tools/claude-md.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.01076 | $0.01076 |
| Opus 5 | $0.00538 | $0.00538 |
| Sonnet 5 | $0.00215 | $0.00215 |
| Haiku 4.5 | $0.00108 | $0.00108 |
Grade A, and why
d2r-horadric-tools 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 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.
How it starts
The opening of the file, as written. The whole thing — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Claude Instructions
Follow these rules when working in this repository. They apply to Claude Code slash commands, MCP tool use, and direct file edits.
Data Sources
- Do not invent item IDs, UIDs, stat encodings, runeword IDs, skill IDs, or binary format values.
- Read the generated data modules in
d2r_chargen/data/before using D2R constants:unique_items.pyset_items.pyitem_bases.pyitem_dimensions.pyrunewords.pyitem_stat_cost.pyskills.py
- Use MCP lookups such as
d2r_lookup_unique,d2r_lookup_runeword, andd2r_searchwhen available. - Do not trust web research for D2R game data. If the value is not in local extracted data or a verified source file, treat it as unknown.
Save-File Invariants
- Do not rebuild a
.d2sfrom scratch when a targeted edit can preserve the existing file structure. Header fields around0x14-0x7Fare interdependent. - Back up before writing any
.d2s:
shutil.copy2(path, path + ".pre_DESCRIPTION_bak")
- Verify the backup exists before editing.
- Write to a temp or staging path first. Do not write directly to the live save path.
- Run the scanner after every edit phase:
d2r-chargen scan <name>
- Verify checksums after writing:
stored == calc_checksum(result)
- Verify file-size fields when the write changes file length.
- Promote the temp file to the live path only after scanner validation passes.
- Do not stack multiple risky edits before scanning.
- Treat scanner hard errors as deployment blockers unless bit-level evidence proves the scanner is wrong.
- D2R caches saves at session startup. Fully exit and relaunch D2R after file changes; staying on character select is not enough.
Item and Stat Encoding
- Items must include stat properties.
build_item()with onlyunique_idand nomagic_attributescan display the correct name with zero stats. - Encode item properties from
item_stat_cost.py. - Grouped stats with
num_params > 0must encode all parameter and value pairs under the same stat ID. Splitting or omitting grouped values can make a save fail to join. - Merc gear direct injection requires canonical JM[merc] encoding:
col=bodyloc, not0- runeword low 12 bits are
id + 27 - runeword high 4 bits are
5 lf_count=0
- Use
equipment_mode: directfor mercenary YAML. The stash-and-equip workaround is not required for direct mode.
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.
- 12d ago First seen · 126 lines · 1,076 tokens per session scan A d4d15f719b16
d2r-horadric-tools CLAUDE.md is an instructions file published in the GitHub repository crabsmadethis/d2r-horadric-tools (5 stars, last pushed 1mo ago), licensed MIT. It adds 1,076 tokens to every session, about $0.0054 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.
Other instructions, from other repositories
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.
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.
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).
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.
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.
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).