mdscript: Instructions file for Claude Code

CLAUDE.md

mdscript CLAUDE.md is an instructions file for Claude Code from dean0x/mdscript. It costs 2,014 tokens per session, scanned A, original, MIT.

A set of instructions for mds, a Markdown-based tool that compiles reusable prompt templates for language models. The project includes Rust code with JavaScript and Python bindings, plus WebAssembly and native packages.

In plain words
What is it for?
Use it when building, testing, releasing, or changing mds and its packages. It covers Rust, JavaScript, WebAssembly, native Node.js, and Python components.
Why use it?
It documents the different build and test paths, including cases where a native component is not built automatically and the tool falls back to WebAssembly.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/dean0x/mdscript/claude-md"><img src="https://agentmods.dev/badge/instructions/dean0x/mdscript/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,014 This file is loaded in full into every session.
When invoked 2,014 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.02014 $0.02014
Opus 5.5 $0.00806 $0.00806
Sonnet 5.5 $0.00403 $0.00403
Haiku 4.5 $0.00201 $0.00201

Measured 1mo ago against content hash 776052395e7e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mdscript 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 1mo 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 · 65 lines

How it starts

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

MDS (Markdown Script)

Composable LLM prompt template compiler. Rust core (crates/) with WASM, native Node.js (napi-rs), and native Python (PyO3) bindings, plus npm packages (packages/).

Build and test

cargo test --workspace                        # 590+ Rust tests
cargo fmt --all --check && cargo clippy --workspace --all-targets -- -D warnings
RUSTDOCFLAGS="-D warnings" cargo doc -p mds-core --no-deps   # CI rustdoc gate: catches broken intra-doc links
# Windows local twin — clippy only (cannot link/run). Windows tests run only in the
# `rust-windows` CI job (`Rust — clippy, test (windows-latest)`):
rustup target add x86_64-pc-windows-msvc
cargo clippy -p mds-core -p mds-cli --all-targets --target x86_64-pc-windows-msvc -- -D warnings
npm ci && npm run build -w @mdscript/mds-wasm && npm run build --workspaces --if-present
# The native addon is NOT built by `--workspaces` (its script is `build:native`, not
# `build`); needs the Rust toolchain. Without it @mdscript/mds silently falls back to WASM.
npm run build:native -w @mdscript/mds-napi
npm test --workspaces --if-present

# Python bindings (crates/mds-python) — 0 Rust tests by design; test via pytest:
python -m venv .venv && . .venv/bin/activate     # maturin develop needs a venv
pip install "maturin==1.13.3" pytest mypy pyright
maturin develop -m crates/mds-python/Cargo.toml && pytest crates/mds-python/tests -q

Release

All packages ship as a single coordinated release at the same version, driven by release.yml. Release via tag-push:

node scripts/bump-version.mjs X.Y.Z   # bump all manifests + stamp CHANGELOG
# land the bump on main via PR (CI-gated), then:
git tag -a vX.Y.Z -m vX.Y.Z && git push origin vX.Y.Z

Pushing the vX.Y.Z tag triggers release.yml: build 7 native targets + WASM, A3 name-gate, publish to crates.io and npm (with provenance), create a GitHub Release. Run gh workflow run release.yml (no inputs) for a dry-run that validates the build + A3 gate and publishes nothing.

Read the full file on GitHub · 65 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. 1mo ago Changed · +6 lines · +261 tokens per session 776052395e7e
  2. 1mo ago Changed · +73 tokens per session 283b1dc90e1b
  3. 2mo ago Changed · +1 lines · +99 tokens per session 8f5dbfde65a3
  4. 2mo ago First seen · 58 lines · 1,581 tokens per session scan A 896309dbcd4f

Subscribe to this mod's changes

mdscript CLAUDE.md is an instructions file published in the GitHub repository dean0x/mdscript (2 stars, last pushed 2d ago), licensed MIT. It adds 2,014 tokens to every session, about $0.0081 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-31.

Related

mdscript CLAUDE.md compared with instructions from other repositories

mdscript CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mdscript CLAUDE.mddean0x/mdscriptInstructions file22d agoMITA2,014Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,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