searchloinc: Skill for Claude Code

.claude/skills/loinc-search/SKILL.md

loinc-search is a skill for Claude Code from jesse-smith/searchloinc. It costs 62 tokens per session (525 once invoked), scanned A, original, MIT.

A development skill for sending live searches to LOINC, a standard list of medical test names and codes. It can search terms, answer lists, parts, or groups through the LOINC Search API.

In plain words
What is it for?
Use it to test or debug LOINC search integrations and inspect results for queries such as glucose or serum sodium.
Why use it?
It helps compare an MCP wrapper’s results with the real LOINC service instead of relying on assumed or outdated responses.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

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

Reuse

Borrowing it

Nothing to install: this file belongs to jesse-smith/searchloinc. 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/jesse-smith/searchloinc/main/.claude/skills/loinc-search/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/jesse-smith/searchloinc

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 loinc-search

README.md
[![agentmods](https://agentmods.dev/badge/skills/jesse-smith/searchloinc/loinc-search/github.svg)](https://agentmods.dev/skills/jesse-smith/searchloinc/loinc-search)
Your own site
<a href="https://agentmods.dev/skills/jesse-smith/searchloinc/loinc-search"><img src="https://agentmods.dev/badge/skills/jesse-smith/searchloinc/loinc-search/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 loinc-search

Your own site · 80×15
<a href="https://agentmods.dev/skills/jesse-smith/searchloinc/loinc-search"><img src="https://agentmods.dev/badge/skills/jesse-smith/searchloinc/loinc-search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 525 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00062 $0.00525
Opus 5 $0.00031 $0.00262
Sonnet 5 $0.00012 $0.00105
Haiku 4.5 $0.00006 $0.00052

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

Security

Grade A, and why

loinc-search scanned grade A with 1 finding 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 9d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

3. Call the API with Basic Auth (curl `-u "$LOINC_USERNAME:$LOINC_PASSWORD"`), URL-encoding
.claude/skills/loinc-search/SKILL.md · 42 lines

What it actually says

Exercise the real LOINC Search API end-to-end so you can compare the MCP wrapper's output against ground truth. Usage: /loinc-search <query> [scope]

  • $ARGUMENTS = the search text, optionally followed by a scope keyword: loincs (default), answerlists, parts, or groups.
  • Examples: /loinc-search glucose · /loinc-search "sodium serum" loincs · /loinc-search hemoglobin parts

Steps

  1. Confirm LOINC_USERNAME and LOINC_PASSWORD are set in the environment. If missing, stop and tell the user to export them (credentials come from a loinc.org registration).

  2. Parse $ARGUMENTS: last token, if one of the four scope keywords, is the endpoint; everything else is the query. Default scope is loincs.

  3. Call the API with Basic Auth (curl -u "$LOINC_USERNAME:$LOINC_PASSWORD"), URL-encoding the query, requesting a small page (rows=10):

    curl -sS -u "$LOINC_USERNAME:$LOINC_PASSWORD" \
      --get "https://loinc.regenstrief.org/searchapi/<scope>" \
      --data-urlencode "query=<query>" \
      --data-urlencode "rows=10" \
      --data-urlencode "includefiltercounts=true"
    
  4. If the wrapper (MCP server) already exists, ALSO call the corresponding MCP tool with the same query and diff the two result sets — flag any divergence in count, order, or fields.

  5. Pretty-print: total hits, then per result the LOINC number, LONG_COMMON_NAME (or the scope's primary display field), COMPONENT/SYSTEM if present. Note if results look mis-ranked vs. what the loinc.org/search UI would show.

  6. On a non-2xx response, surface the status and body verbatim (401 → bad/missing creds).

Keep credentials out of any output you print.

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. 9d ago First seen · 42 lines · 62 tokens per session scan A 3e62d54e77ef

Subscribe to this mod's changes

loinc-search is a skill published in the GitHub repository jesse-smith/searchloinc (0 stars, last pushed 1mo ago), licensed MIT. It adds 62 tokens to every session and 525 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…

anthropics/knowledge-work-plugins · 123 tokens

matlab

Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

K-Dense-AI/scientific-agent-skills · 42 tokens

exploratory-data-analysis

Perform bounded, local exploratory analysis of explicitly supported scientific files. Use for redacted CSV/TSV/JSON profiles; optional NumPy, HDF5, FASTA/FASTQ, and basic image metadata inspection; missingness/leakage audits; outlier and transformation sensitivity; and rigorous EDA report scaffolds. Other domain…

K-Dense-AI/scientific-agent-skills · 83 tokens

phylogenetics

Build and analyze phylogenetic trees using MAFFT (multiple alignment), IQ-TREE 2 (maximum likelihood), and FastTree (fast NJ/ML). Visualize with ETE3 or FigTree. For evolutionary analysis, microbial genomics, viral phylodynamics, protein family analysis, and molecular clock studies.

K-Dense-AI/scientific-agent-skills · 68 tokens

research-engineer

An uncompromising Academic Research Engineer. Operates with absolute scientific rigor, objective criticism, and zero flair. Focuses on theoretical correctness, formal verification, and optimal implementation across any required technology.

davila7/claude-code-templates · 43 tokens

mapping-to-snomed

Maps clinical concept spans extracted by OpenMed to SNOMED CT concepts through a USER-SUPPLIED terminology server (the user's own Ontoserver, Snowstorm, or UMLS/UTS), never a bundled vocabulary. Use when the user wants to code findings, disorders, procedures, body structures, or substances to SNOMED CT, run an ECL…

maziyarpanahi/openmed · 205 tokens