lume-js: Instructions file for Claude Code

CLAUDE.md

lume-js CLAUDE.md is an instructions file for Claude Code from sathvikc/lume-js. It costs 1,897 tokens per session, scanned A, original, MIT.

Project-specific instructions for Lume.js, a small JavaScript library for managing changing data in web pages using standard JavaScript and HTML attributes.

In plain words
What is it for?
Use it when an agent must understand Lume.js, follow its source-of-truth documents, map its directories, or format prose without manual line wrapping.
Why use it?
It gives coding agents the project context, file-navigation rules, and strict writing conventions they need before editing code.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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 lume-js CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/sathvikc/lume-js/claude-md"><img src="https://agentmods.dev/badge/instructions/sathvikc/lume-js/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,897 This file is loaded in full into every session.
When invoked 1,897 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.01897 $0.01897
Opus 5.5 $0.00759 $0.00759
Sonnet 5.5 $0.00379 $0.00379
Haiku 4.5 $0.00190 $0.00190

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

Security

Grade A, and why

lume-js 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 8d 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 · 89 lines

How it starts

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

CLAUDE.md — Lume.js

Agent onboarding: what this project is and how to navigate it. The process contract (artifact matrix, quality gates, commit rules) lives in AGENTS.md — read it before making ANY change. This file doesn't repeat it.

What this is

Lume.js is a reactive state-management library whose entire pitch is standards-only: plain JavaScript Proxy state + data-* attributes in valid HTML. No custom syntax, no build step, no virtual DOM. The product is trust in a tiny core: a 1.49 KB gz universal kernel (lume-js/state — works in Node/Deno/Bun/workers), 2.90 KB with DOM binding (lume-js), everything else opt-in via lume-js/addons and lume-js/handlers. Published on npm as lume-js (v2.4.0), MIT, docs site at https://sathvikc.github.io/lume-js/.

Formatting rule — never hard-wrap prose (STRICT)

Never hard-wrap prose at a fixed column — not in markdown files, not in commit message bodies, not in PR descriptions. One paragraph = one line; one list item = one line, however long. Editors soft-wrap; manual line breaks create ragged gaps and make diffs noisy. Line breaks in prose are reserved for real structure only: new paragraph, new list item, headings, tables, and code blocks (code keeps its normal line breaks).

Source-of-truth documents (read in this order)

  1. AGENTS.md — the process contract. Non-negotiable.
  2. docs/design/design-decisions.md — ratified decisions. If your change contradicts an entry, the entry wins until amended.
  3. docs/design/VISION.md — direction, roadmap, open problems.
  4. docs/ARCHITECTURE.md — how the code actually works (module walkthrough, data flow).

Directory map

src/
  core/state.js      # THE kernel: Proxy, per-state microtask flush, $subscribe, read observers
  core/batch.js      # cross-store synchronous batching (state.js imports it; never the reverse)
  core/effect.js     # auto-tracking + explicit-deps effects (built on withReadObserver)
  core/bindDom.js    # data-* attribute binding, handler engine, two-way input delegation
  state.js           # `lume-js/state` entry (kernel only, DOM-free)
  index.js           # `lume-js` entry (state + bindDom + effect)
  all.js             # CDN/global IIFE entry (re-exports everything)
  addons/            # computed, watch, repeat, persist, hydrateState, cleanupGroup, withPlugins, debug
  handlers/          # show, className, classToggle, boolAttr, ariaAttr, stringAttr, on, presets, htmlAttrs
  utils/log.js       # logError/logWarn (the only module handlers may import)
  *.d.ts             # HANDWRITTEN type declarations — update in the same commit as signature changes
tests/               # vitest + jsdom; mirrors src/ layout; 100% coverage enforced
e2e/                 # Playwright smoke tests (headless Chromium) over examples/ pages + fixtures
docs/api/            # one reference page per public export
docs/guides/         # universal-core, choosing-reactive-primitives, cleanup, SSR
docs/design/         # design-decisions.md (contract) + VISION.md (roadmap)
docs/changes/        # per-commit write-ups for proposal branches
examples/            # runnable demos; import from 'lume-js' (vite alias → src/)
scripts/             # build.js, check-size.js, complexity.js, bench-core.js, build-site-assets.js
gh-pages/            # docs-site source (deployed by workflow — don't touch unless asked)
dist/                # generated by scripts/build.js — never edit, not tracked in git
.github/workflows/   # ci.yml (tests/coverage/gates), gh-pages.yml, publish.yml (on release)

Read the full file on GitHub · 89 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. 8d ago Changed · +2 lines · +97 tokens per session 44c7abdfcf96
  2. 9d ago Changed · +42 tokens per session f0d710e04dcd
  3. 2mo ago First seen · 87 lines · 1,758 tokens per session scan A a9bf956bd218

Subscribe to this mod's changes

lume-js CLAUDE.md is an instructions file published in the GitHub repository sathvikc/lume-js (45 stars, last pushed 9d ago), licensed MIT. It adds 1,897 tokens to every session, about $0.0076 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

lume-js CLAUDE.md compared with instructions from other repositories

lume-js CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
lume-js CLAUDE.mdsathvikc/lume-jsInstructions file459d agoMITA1,897Claude 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