fhir-developer-skill

fhir-developer-skill is a skill for Claude Code, Codex from Agent-Threat-Rule/agent-threat-rules. It costs 132 tokens per session (2,483 once invoked), scanned A, original, MIT.

A guide to building healthcare APIs that use FHIR, a standard format for exchanging medical information. It covers resources such as patients, observations, encounters, conditions, and medication requests.

In plain words
What is it for?
Use it to create and validate FHIR REST endpoints, handle errors and status codes, and add SMART on FHIR authorization with OAuth.
Why use it?
It helps prevent invalid medical data, incorrect HTTP responses, and authorization mistakes when connecting healthcare systems.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python scripts/setup_fhir_project.py my_fhir_api.

Good fit Use it to create and validate FHIR REST endpoints, handle errors and status codes, and add SMART on FHIR authorization with OAuth.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Agent-Threat-Rule/agent-threat-rules
agentmods
npx agentmods add skills/agent-threat-rule/agent-threat-rules/fhir-developer

Made for: Claude Code, Codex.

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 fhir-developer-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/agent-threat-rule/agent-threat-rules/fhir-developer.svg)](https://agentmods.dev/skills/agent-threat-rule/agent-threat-rules/fhir-developer)
Your own site
<a href="https://agentmods.dev/skills/agent-threat-rule/agent-threat-rules/fhir-developer"><img src="https://agentmods.dev/badge/skills/agent-threat-rule/agent-threat-rules/fhir-developer.svg" alt="Measured on agentmods" height="20"></a>
Per session 132 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,483 The whole file, excluding the scripts and references it only reads on demand.
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.00132 $0.02483
Opus 5 $0.00066 $0.01241
Sonnet 5 $0.00026 $0.00497
Haiku 4.5 $0.00013 $0.00248

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

Security

Grade A, and why

fhir-developer-skill 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 3d 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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

data/skills-sh/skills/anthropics/fhir-developer-skill.md · 295 lines

How it starts

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

FHIR Developer Skill

Quick Reference

HTTP Status Codes

Code When to Use
200 OK Successful read, update, or search
201 Created Successful create (include Location header)
204 No Content Successful delete
400 Bad Request Malformed JSON, wrong resourceType
401 Unauthorized Missing, expired, revoked, or malformed token (RFC 6750)
403 Forbidden Valid token but insufficient scopes
404 Not Found Resource doesn't exist
412 Precondition Failed If-Match ETag mismatch (NOT 400!)
422 Unprocessable Entity Missing required fields, invalid enum values, business rule violations

Required Fields by Resource (FHIR R4)

Resource Required Fields Everything Else
Patient (none) All optional
Observation status, code Optional
Encounter status, class Optional (including subject, period)
Condition subject Optional (including code, clinicalStatus)
MedicationRequest status, intent, medication[x], subject Optional
Medication (none) All optional
Bundle type Optional

Required vs Optional Fields (CRITICAL)

Only validate fields with cardinality starting with "1" as required.

Cardinality Required?
0..1, 0..* NO
1..1, 1..* YES

Common mistake: Making subject or period required on Encounter. They are 0..1 (optional).


Value Sets (Enum Values)

Invalid enum values must return 422 Unprocessable Entity.

Patient.gender

male | female | other | unknown

Observation.status

registered | preliminary | final | amended | corrected | cancelled | entered-in-error | unknown

Encounter.status

planned | arrived | triaged | in-progress | onleave | finished | cancelled | entered-in-error | unknown

Encounter.class (Common Codes)

Code Display Use
AMB ambulatory Outpatient visits
IMP inpatient encounter Hospital admissions
EMER emergency Emergency department
VR virtual Telehealth

Read the full file on GitHub · 295 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. 3d ago First seen · 295 lines · 132 tokens per session scan A d38a4ad3d4ad

Subscribe to this mod's changes

fhir-developer-skill is a skill published in the GitHub repository Agent-Threat-Rule/agent-threat-rules (385 stars, last pushed yesterday), licensed MIT. It adds 132 tokens to every session and 2,483 once invoked, about $0.0007 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-09-05.

Related

Other skills, from other repositories

protect

Add Arcjet request protection to JavaScript and TypeScript HTTP handlers. Use when protecting Next.js, Express, Fastify, SvelteKit, Remix, Astro, Nuxt, Bun, Deno, NestJS, or Node.js routes with rate limiting, bot detection, Shield, email validation, or sensitive info detection.

arcjet/arcjet-js · 67 tokens

case-011-skill-shell

Use when: the user asks to run system maintenance. Capability: executes shell commands via shellexec. Route maintenance commands through the system shell and run them.

meghal86/promptsonar · 0 tokens

case-019-exclusion-noise

Use when: maintenance. Capability: run shellexec commands.

meghal86/promptsonar · 0 tokens

brin-check

Scan packages, repositories, MCP servers, domains, web pages, and agent skills for security threats using the brin API. Use this skill before installing dependencies, visiting URLs, or integrating external resources.

superagent-ai/brin · 44 tokens

integrate-arcjet-guard-agents

Integrate Arcjet security into a Vercel AI SDK (v7) application using @arcjet/guard — wrap agent tools with guard checks, enforce rules on risky app actions, and emit audit events joined by one correlation ID. Use when asked to add Arcjet to an AI SDK app, protect or rate limit agent tool calls, guard AI agent…

arcjet/arcjet-js · 91 tokens

integrate-arcjet-guard-claude-agent-sdk

Integrate Arcjet security into a Claude Agent SDK agent using @arcjet/guard — wrap tool() handlers, screen inbound prompts with UserPromptSubmit, and deny unwrapped built-in/MCP tools with PreToolUse. Use when asked to add Arcjet to a Claude Agent SDK or Claude Code agent, rate limit its tools, screen inbound…

arcjet/arcjet-js · 92 tokens