Agent skill

Fhir Search Spec

by aehrc in aehrc/pathling

FHIR RESTful search specification expert with access to the official HL7 search specification text and the formal SearchParameter registry.

Apache-2.0Auto-check passedResearch & Science

Install Fhir Search Spec

skills CLI
$ npx skills add aehrc/pathling --skill fhir-search-spec -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aehrc/pathling fhir-search-spec --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aehrc/pathling.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/fhir-search-spec .claude/skills/fhir-search-spec && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
fhir-search-spec
GitHub stars
137
Token cost
~649 tokens
SKILL.md length
172 words
Files
3 (incl. references)
Skills in repo
25
Repo updated
First seen
Licence
Apache-2.0

At a glance

FHIR RESTful search specification expert with access to the official HL7 search specification text and the formal SearchParameter registry.

  • Works in 2 steps: FHIR Search Specification —… → SearchParameter Registry —…
  • The user needs to look up
  • SKILL.md covers Sources and How to search
  • Calls jq

What it does

Fhir Search Spec is an agent skill from aehrc/pathling. FHIR RESTful search specification expert with access to the official HL7 search specification text and the formal SearchParameter registry. Use this skill whenever the user needs to look up, clarify, or understand FHIR search behaviour — search parameter types (string, token, reference, date, quantity, composite, etc.), search prefixes (eq, ne, gt, lt, ge, le, sa, eb, ap), search modifiers (:exact, :contains, :missing, :text, :above, :below, :not, etc.), chaining, reverse chaining (has), includes (include…

Its SKILL.md is about 650 tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/FHIR_search.md` and `references/search-parameters.json`).

It sits in Research & Science, covering Clinical and healthcare research. The repository describes itself as: Tools that make it easier to use FHIR and clinical terminology within data analytics, built on Apache Spark. The licence is Apache-2.0.

When your agent uses it

  • The user needs to look up
  • Understand FHIR search behaviour — search parameter types (string
  • Search prefixes (eq
  • Search modifiers (:exact

Example prompts

  • “s type or FHIRPath expression, or answering”
  • “/fhir-search-spec”

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. FHIR Search Specification — references/FHIR_search.md (very large). The normative HL7
  2. SearchParameter Registry — references/search-parameters.json. A FHIR Bundle containing

What it can do on your machine

Read from SKILL.md and the folder at commit 56a3b4a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • jq

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Fhir Search Spec loads about 649 tokens when it runs, and up to ~573k if it reads all its reference files. Until then it costs about 210 tokens; SKILL.md has 172 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~210
When it runs · the whole SKILL.md, loaded when a task matches
~649
With references · SKILL.md plus every file in references/, read only if the agent opens them
~573k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from aehrc/pathling at commit 56a3b4a, republished under its Apache-2.0 licence (© aehrc). 172 words, ~649 tokens.

Download SKILL.mdSave it as .claude/skills/fhir-search-spec/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
fhir-search-spec
description
FHIR RESTful search specification expert with access to the official HL7 search specification text and the formal SearchParameter registry. Use this skill whenever the user needs to look up, clarify, or understand FHIR search behaviour — search parameter types (string, token, reference, date, quantity, composite, etc.), search prefixes (eq, ne, gt, lt, ge, le, sa, eb, ap), search modifiers (:exact, :contains, :missing, :text, :above, :below, :not, etc.), chaining, reverse chaining (_has), includes (_include, _revinclude), or the standard SearchParameter definitions for a given resource type. Trigger this skill when implementing or reviewing FHIR search behaviour, resolving ambiguity about a search parameter's type or FHIRPath expression, or answering "what does the spec say about X search behaviour?" questions.

FHIR Search Specification Expert

You are a specification expert for FHIR RESTful search. Your job is to give precise, authoritative answers grounded in the local specification and registry files.

Sources

  1. FHIR Search Specification — references/FHIR_search.md (very large). The normative HL7 FHIR search specification: search parameter types, prefixes, modifiers, chaining, _include/_revinclude, composite parameters.
  2. SearchParameter Registry — references/search-parameters.json. A FHIR Bundle containing every standard SearchParameter definition. Use it to look up a parameter's code, base resource type(s), type (string, token, reference, etc.), and FHIRPath expression.

FHIR_search.md is too large to load entirely — always use targeted search:

  1. Grep for the feature name, parameter type, or modifier in references/FHIR_search.md.
  2. Read the relevant section using offset/limit based on the grep results, with generous surrounding context (±30 lines) since examples and edge cases often sit near the definition.

For the registry, query it with jq rather than reading the whole file. A shell command resolves paths against the working directory, not this skill's directory, so give the full path from the repository root:

bash
REGISTRY=.claude/skills/fhir-search-spec/references/search-parameters.json

# Find all string search parameters for Patient
jq '.entry[].resource | select(.base[]? == "Patient" and .type == "string") | {code, expression, description}' "$REGISTRY"

# Find a specific search parameter by code
jq '.entry[].resource | select(.code == "name") | {code, base, type, expression}' "$REGISTRY"

© aehrc, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in .claude/skills/fhir-search-spec of aehrc/pathling.

  • SKILL.md
  • references/FHIR_search.md
  • references/search-parameters.json

Open the folder on GitHubat commit 56a3b4a

Compare with similar skills

Fhir Search Spec next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Fhir Search Spec compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Fhir Search Spec this skillaehrc/pathling137—~649Automated safety check: PassApache-2.0
Clinical Trials Databasegoogle-deepmind/science-skills3.2k2 repos~3.2kAutomated safety check: PassApache-2.0
CHARLS Paper Reproduction Guidexjtulyc/MedgeClaw6171 repos~1.8kAutomated safety check: PassNone
Biomedical Analysis Dispatchxjtulyc/MedgeClaw6171 repos~2kAutomated safety check: PassNone
Research Paperluwill/research-skills862—~1.9kAutomated safety check: PassNone
Research Proposalluwill/research-skills862—~4.5kAutomated safety check: NotesNone

Similar skills

  • Clinical Trials Database

    google-deepmind/science-skills

    Query ClinicalTrials.gov via APIv2. An agent skill from google-deepmind/science-skills.

    3.2k GitHub starsUsed in 2 repos~3.2k tokens
    Research & ScienceAuto-check passed
  • Guides an agent through reproducing papers built on the CHARLS health and retirement survey, from variable mapping to cognition, depression and isolation scores.

    617 GitHub starsUsed in 1 repo~1.8k tokens
    Research & ScienceAuto-check passed
  • Routes bioinformatics, drug discovery, clinical and multi-omics tasks from a chat interface to Claude Code sessions running K-Dense scientific skills, with a live dashboard per task.

    617 GitHub starsUsed in 1 repo~2k tokens
    Research & ScienceAuto-check passed
  • Research Paper

    luwill/research-skills

    A skill your agent uses when the user asks to write or draft an ORIGINAL RESEARCH ARTICLE — IMRaD paper, conference paper, short/workshop paper, 研究论文/期刊论文/会议论文 — reporting their own completed…

    862 GitHub stars~1.9k tokensUpdated today
    Research & ScienceAuto-check passed
  • Research Proposal

    luwill/research-skills

    A skill your agent uses when the user asks to write or draft a PhD / doctoral research proposal, research plan, 研究计划书, or 开题报告 — a forward-looking plan of background, gap, research questions…

    862 GitHub stars~4.5k tokensUpdated today
    Research & ScienceAuto-check: notes
  • Medical Imaging Review

    LeonChaoX/qinyan-academic-skills

    Write comprehensive literature reviews for medical imaging AI research.

    944 GitHub starsUsed in 3 repos~1.1k tokens
    Research & ScienceAuto-check: notes

More from aehrc/pathling

All 25 skills in this repo
  • Databricks CLI

    aehrc/pathling

    Expert guidance for using the Databricks CLI to manage Databricks workspaces, clusters, jobs, pipelines, Unity Catalog, SQL warehouses, serving endpoints, secrets, bundles, and all other Databricks…

    137 GitHub stars~2.1k tokensUpdated 3 days ago
    Auto-check passed
  • Fhir API

    aehrc/pathling

    Expert guidance for implementing FHIR RESTful API servers and clients following the HL7 FHIR specification.

    137 GitHub stars~1.5k tokensUpdated 3 days ago
    Auto-check passed
  • Fhir Bulk Data

    aehrc/pathling

    Expert guidance for implementing FHIR Bulk Data Access (Flat FHIR) following the HL7 specification.

    137 GitHub stars~1.8k tokensUpdated 3 days ago
    Auto-check passed
  • Design and generate comprehensive FHIRPath test suites using input domain partitioning and Pathling's DSL test framework.

    137 GitHub stars~3.6k tokensUpdated 3 days ago
    Auto-check passed
  • Hapi Fhir Server

    aehrc/pathling

    Expert guidance for implementing FHIR servers using HAPI FHIR Plain Server framework.

    137 GitHub stars~2.6k tokensUpdated 3 days ago
    Auto-check passed
  • Playwright Testing

    aehrc/pathling

    Expert guidance for writing end-to-end tests with Playwright Test framework.

    137 GitHub stars~1.5k tokensUpdated 3 days ago
    Auto-check passed

Questions about Fhir Search Spec

What does Fhir Search Spec do?

FHIR RESTful search specification expert with access to the official HL7 search specification text and the formal SearchParameter registry. Fhir Search Spec is an agent skill from aehrc/pathling. FHIR RESTful search specification expert with access to the official HL7 search specification text and the formal SearchParameter registry.

When should I use Fhir Search Spec?

Fhir Search Spec fits situations like: the user needs to look up; understand FHIR search behaviour — search parameter types (string; search prefixes (eq; search modifiers (:exact.

How do I install Fhir Search Spec in Claude Code?

Run `npx skills add aehrc/pathling --skill fhir-search-spec -a claude-code`. Or copy the skill folder (.claude/skills/fhir-search-spec in aehrc/pathling) into .claude/skills/fhir-search-spec in your project. Claude Code loads it when a task matches its description.

How do I install Fhir Search Spec in Codex?

Run `npx skills add aehrc/pathling --skill fhir-search-spec -a codex`. Or copy the skill folder (.claude/skills/fhir-search-spec in aehrc/pathling) into .agents/skills/fhir-search-spec in your project. Codex loads it when a task matches its description.

Can I use Fhir Search Spec in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aehrc/pathling --skill fhir-search-spec -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/fhir-search-spec, .gemini/skills/fhir-search-spec, .github/skills/fhir-search-spec and .opencode/skills/fhir-search-spec in your project.

What does Fhir Search Spec need to run?

Going by SKILL.md and its folder, Fhir Search Spec needs the command-line tools its instructions call (jq).

Does Fhir Search Spec access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Fhir Search Spec safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Fhir Search Spec use?

Fhir Search Spec is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Fhir Search Spec use?

About 649 tokens (SKILL.md is roughly 2.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 572k tokens, read only when the agent opens those files.

What are the alternatives to Fhir Search Spec?

Skills that share tags, products or a category with Fhir Search Spec: Clinical Trials Database (google-deepmind/science-skills, 3.2k stars), CHARLS Paper Reproduction Guide (xjtulyc/MedgeClaw, 617 stars), Biomedical Analysis Dispatch (xjtulyc/MedgeClaw, 617 stars) and Research Paper (luwill/research-skills, 862 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Fhir Search Spec?

aehrc (a GitHub organization) maintains it in aehrc/pathling, which has 137 GitHub stars. The repository holds 25 skills in this directory. The repository was last updated on October 8, 2026.

Source: aehrc/pathling on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.