HealthChain: Instructions file for Claude Code

CLAUDE.md

HealthChain CLAUDE.md is an instructions file for Claude Code from healthchainai/HealthChain. It costs 1,852 tokens per session, scanned A, original, Apache-2.0.

Repository guidance for HealthChain, a Python framework for connecting healthcare AI applications with electronic health records and FHIR, a standard for exchanging health data.

In plain words
What is it for?
Use it when building or changing healthcare AI integrations, FHIR data handling, EHR connections, or deployment tools.
Why use it?
It sets project rules and testing practices so healthcare-related changes remain reliable and keep important decisions under human control.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/healthchainai/healthchain/claude-md"><img src="https://agentmods.dev/badge/instructions/healthchainai/healthchain/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,852 This file is loaded in full into every session.
When invoked 1,852 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.01852 $0.01852
Opus 5.5 $0.00741 $0.00741
Sonnet 5.5 $0.00370 $0.00370
Haiku 4.5 $0.00185 $0.00185

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

Security

Grade A, and why

HealthChain 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 24d 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 · 126 lines

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.

HealthChain - Claude Code Context

Purpose: This file guides AI assistants and developers working on HealthChain. It encodes coding standards, constraints, and workflows to keep architecture and domain judgment in human hands. It's a working document that will be updated as the project evolves.

0. Project Overview

HealthChain is an open-source Python library for live FHIR connectivity and validated FHIR tooling. It connects Python pipelines and applications to FHIR APIs, helps them produce coded, validated FHIR, and delivers results through healthcare and agent interfaces.

Key Problem: Healthcare data applications are often tied to one site's schemas and connection logic, while structural and coding errors may surface only after FHIR reaches a downstream system. HealthChain provides a consistent FHIR boundary around user-owned logic.

Target Users (in priority order):

  • Research software and healthcare data teams building reusable tools, studies, and data services
  • Healthcare integration engineers working across research organizations, hospitals, payers, and health technology companies
  • AI, agent, and general Python developers building healthcare and personal health applications

For more background, read README.md and docs/index.md.


1. Non-Negotiable Golden Rules

# AI may do AI must NOT do
G-0 When unsure about implementation details or requirements, ask developer for clarification before making changes. ❌ Write changes or use tools when you are not sure about something project specific, or if you don't have context for a particular feature/decision.
G-1 Generate code inside healthchain/ or explicitly pointed files. ❌ Modify or create test files without explicit approval.
G-2 For changes >200 LOC or >3 files, propose a plan and wait for confirmation. ❌ Refactor large modules without human guidance.
G-3 Follow lint/style configs (pyproject.toml, .ruff.toml). Use ruff for formatting. ❌ Reformat code to any other style.
G-4 Stay within the current task context. Inform the dev if it'd be better to start afresh. ❌ Continue work from a prior prompt after "new task" – start a fresh session.

Read the full file on GitHub · 126 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. 24d ago Changed · -64 lines · -439 tokens per session b47b046ae75b
  2. 2mo ago First seen · 190 lines · 2,291 tokens per session scan A 1464821edd72

Subscribe to this mod's changes

HealthChain CLAUDE.md is an instructions file published in the GitHub repository healthchainai/HealthChain (231 stars, last pushed yesterday), licensed Apache-2.0. It adds 1,852 tokens to every session, about $0.0074 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

HealthChain CLAUDE.md compared with instructions from other repositories

HealthChain CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
HealthChain CLAUDE.mdhealthchainai/HealthChainInstructions file231yesterdayApache-2.0A1,852Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,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