hcifootprint: Instructions file for Claude Code

CLAUDE.md

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

A typed map of a web app's pages, actions, and user journeys that an AI agent can move through. Developers declare actions and journeys, while links between them are derived from those declarations.

In plain words
What is it for?
Use it to model app navigation, describe available actions, and let human users, agents, or guard conditions move through a tracked workflow.
Why use it?
It gives an agent a structured view of what a web app can do and how actions connect. This reduces the need to describe every page relationship separately.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/footprintjs/hcifootprint/claude-md"><img src="https://agentmods.dev/badge/instructions/footprintjs/hcifootprint/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,567 This file is loaded in full into every session.
When invoked 4,567 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.04567 $0.04567
Opus 5.5 $0.01827 $0.01827
Sonnet 5.5 $0.00913 $0.00913
Haiku 4.5 $0.00457 $0.00457

Measured yesterday against content hash 323c0575c2f9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

hcifootprint 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 yesterday.

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 · 173 lines

How it starts

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

hcifootprint — feature-work map

Turns a web app's interaction surface into a typed, traversable journey graph an LLM can plan over. You author actions and name journeys; a tool is what is served to a model. One authored sentence (does) is both the human's label and the model's tool description. Everything relational — routes between pages, which action unblocks which — is derived from declarations made for other reasons, never authored. Trust the code where any doc disagrees.

The vocabulary (1.10.0): you declare the JourneyMap; the session is the Walker; the recording carries both. defineJourneyMap/JourneyMap are permanent reference-equal aliases of buildNavigationGraph/NavigationGraph (tree/appmap.ts) — both names ship forever, neither is a rename, and there is deliberately NO Walker export: the walker is the session. Three movers move it — human (a real click, principal: 'user'), agent (the four served verbs whats_here / why / do_action / did_it_work), guard (your data: when/enabledWhen) — plus the world's own Cause.kind: 'stimulus'. Same pattern at three altitudes: footprintjs walks stages, agentfootprint (defineSkillMap) walks skills, this walks screens.

Fire-time verify evidence (1.12.0): Matching verify conditions are fire-time evidence, not an action result. When an action's declarative verify contract covers every key it declares it writes and already holds at fire time, the fire settles on its handler path rather than waiting for a state report and answers alreadyTrue. The rule lives in ONE small module (traverse/already-true.ts, five conditions) called from fire() before the record is minted; it flips exactly one boolean in the state-tap arm's guard, so an already-true fire falls through to the tapless block and waits on the HANDLER rail instead. Condition values come from verify, not writes — writes is key names only by stated law, so nothing here can know the value an action would set. The marker is alreadyTrue: FilterCondition[] on the fire result AND the row (presence is the mark, the value is the evidence: one field, not a boolean beside a list), served by modes.ts on the fire result and the settled did_it_work answer with one authored sentence. It records the earlier check, not success or an absence of writes; the handler may change state or fail. Read effectStatus, outcome, outcomeNow when present, and any error for the result. NOT stamped on an allowed-unmaterialized fire — that fate already has materialized: false.

Refusals teach, including the four that did not (1.12.0): TRANSITION_ID_REQUIRED, ACTION_REQUIRED, KEY_REQUIRED and JOURNEY_REQUIRED were raised as {ok:false, judgment:'error', reason} and nothing else — no why, no correction, no valid set, not even positionData(). They now meet the house standard: the argument named, the correction attached, the valid set carried where one exists (actions / journeys from the same doors UNKNOWN_ACTION / UNKNOWN_JOURNEY read; pending + awaitingSettlement + awaitingHuman from the same doors UNKNOWN_TRANSITION reads), and honest silence where none does (KEY_REQUIRED — why runs a slice and never refuses a key, so there IS no valid set). ADDITIVE: the four reason strings are unchanged, none grows a singular transitionId (consent-invariant.test.ts sweeps for that), and no openTransitions was minted — awaitingSettlement is already the word for fires still open, and a second name for one fact is what answer-grammar rule 3 forbids. One in-repo toEqual pin was loosened deliberately (one-journey-tool.test.ts) — it was the only exact-match assertion on the four.

Position has three tiers, one door each (1.11.0): page (sync) → container (observeFocus, new) → state (updateState, not position). Sync pages; observe the deeper place. sync() moves the walker and decides what is served; observeFocus() says which tab or area the reader is in. Declare containers, and report the deepest one on screen. The middle door had to exist: actions are served from the PAGE, so a cursor on a tab is served nothing (a container path to sync now syncs its page and warns, naming observeFocus — before 1.11.0 it went off-graph silently), and focus moved only on fire()/sync(), so a PERSON clicking a tab could never move it. observeFocus (traverse/nav-session.ts) sets focus + the new lookingAt getter (served beside youAreOn by modes.ts positionData), records a FocusMove, and touches NOTHING else — no transition, no version bump, no change to available(). It refuses BY NAME: undeclared node, or a node on another page. Three facts, three doors: show()/setVisible() = VISIBLE, observeFocus() = the READER, sync() = the WALKER. Authored half lintable (unevidenceable-tab, advisory); the runtime half no static check can see.

Read the full file on GitHub · 173 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. yesterday Changed · +4 lines · +124 tokens per session 323c0575c2f9
  2. 7d ago Changed · +12 lines · +319 tokens per session 7f42bdcbfb5d
  3. 27d ago Changed · +21 tokens per session 1651a01331a4
  4. 1mo ago Changed · +5 lines · +331 tokens per session 74eadb6fc4ff
  5. 2mo ago First seen · 152 lines · 3,772 tokens per session scan A 547a12290cf7

Subscribe to this mod's changes

hcifootprint CLAUDE.md is an instructions file published in the GitHub repository footprintjs/hcifootprint (11 stars, last pushed today), licensed MIT. It adds 4,567 tokens to every session, about $0.0183 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

hcifootprint CLAUDE.md compared with instructions from other repositories

hcifootprint CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
hcifootprint CLAUDE.mdfootprintjs/hcifootprintInstructions file11todayMITA4,567Claude 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