footPrint: Instructions file for Claude Code

CLAUDE.md

footPrint CLAUDE.md is an instructions file for Claude Code from footprintjs/footPrint. It costs 4,487 tokens per session, scanned A, original, MIT.

A set of Claude Code instructions for footprintjs, a JavaScript library that builds and runs flowcharts while recording events and their causes.

In plain words
What is it for?
Planning changes to footprintjs, finding the modules affected by a feature, and checking which export or internal path owns a piece of functionality.
Why use it?
It shows contributors where the library's public API, state handling, validation, tracing, and extension points live.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/footprintjs/footprint/claude-md.svg)](https://agentmods.dev/instructions/footprintjs/footprint/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/footprintjs/footprint/claude-md"><img src="https://agentmods.dev/badge/instructions/footprintjs/footprint/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 4,487 This file is loaded in full into every session.
When invoked 4,487 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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.04487 $0.04487
Opus 5 $0.02243 $0.02243
Sonnet 5 $0.00897 $0.00897
Haiku 4.5 $0.00449 $0.00449

Measured 6d ago against content hash 6a744b7a90f5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

footPrint 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 6d 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 · 91 lines

How it starts

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

footprintjs — feature-work map

Self-explaining flowchart engine: a fluent builder emits a static chart; one DFS pass executes it while observer channels + a commit log capture everything ("collect during traversal, never post-process"). This file maps seams and blast radius; for API description read the code/README — trust the code where any doc disagrees.

Module map

Entry points: footprintjs (public API) · /recorders (factories) · /trace (commitLog queries, stores, causalChain) · /advanced (engine internals) · /detach · /zod (opt-in; zod never imported by core). New public symbols are wired through the barrel that OWNS them (canonical path); /advanced re-exports only a small hand-picked trace subset — do not assume export * chaining.

src/lib/ one job
capture/ retention policies + bounded payload summarization (leaf; shared by tracking dials AND deferred-observer capture)
memory/ transactional state: SharedMemory heap, StageContext frames, TransactionBuffer staging, EventLog commit log — PLUS trace analysis (backtrack.ts causalChain, commitLogUtils.ts)
schema/ duck-typed validation (.safeParse/.parse ⇒ 'parseable')
builder/ fluent DSL → FlowChartSpec → StageNode graph; build-time StructureRecorder channel. NOT standalone: imports runner's makeRunnable (FlowChartBuilder.ts:18)
scope/ ScopeFacade per stage (tracked get/set, $emit, frozen args/env); built-in ScopeRecorders in scope/recorders/
reactive/ TypedScope deep Proxy over the facade
decide/ decide()/select() evidence capture
recorder/ stores (KeyedStore/SequenceStore/BoundaryStateStore), CombinedRecorder routing, built-ins (Topology/InOut/ControlDep/Quality)
slice/ variable-first backward slicing (triage query layer): sliceForKey (anchor at last writer → causalChain) + arrayProvenance/elementProvenance (append-fold element births — the agent mega-key fix) + KeysReadSource strategies. Pure post-hoc queries; imports memory/ ONLY (see src/lib/slice/README.md)
pause/ PauseSignal / FlowchartCheckpoint types + interrupt(scope, payload) (throws InterruptSignal; converted to PauseSignal at the StageRunner boundary, pausedBy:'interrupt')
engine/ FlowchartTraverser + handlers/; narrative/ = the whole FlowRecorder channel (dispatcher + 9 strategies), not just text; branchSegment.ts = the ONE owner of the generated-segment grammar (<stageId>~<index>, marker ~ RESERVED); executeStage (:720) = the ONE funnel every stage fn passes through — and therefore the ONE owner of the declarative retry loop
runner/ FlowChartExecutor wiring (runtime, recorders, pause/resume, snapshot, DeferredObserverTier). RunContext.ts is a fluent run builder, NOT the threaded per-run context
observer-queue/ pure deferred-delivery pipeline (engine imports IT, never reverse)
contract/, detach/ I/O schema + OpenAPI; fire-and-forget child charts (drivers passed explicitly)

Read the full file on GitHub · 91 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. 6d ago First seen · 91 lines · 4,487 tokens per session scan A 6a744b7a90f5

Subscribe to this mod's changes

footPrint CLAUDE.md is an instructions file published in the GitHub repository footprintjs/footPrint (20 stars, last pushed 6d ago), licensed MIT. It adds 4,487 tokens to every session, about $0.0224 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-30.

Related

Other instructions, from other repositories

vibetags com-example-service-TransactionalPaymentService.instructions.md

Instructions for PIsberg/vibetags, covering copilot instructions for transactionalpaymentservice and strict exception handling.

PIsberg/vibetags · 104 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

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

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

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