validate

validate is a command for coding agents from BACC-Labs/cynthia-generator. It costs 22 tokens per session (3,190 once invoked), scanned A, original, MIT.

A validator for synthetic patient records packaged as FHIR Bundles. FHIR is a standard format for exchanging healthcare data, and synthetic data is artificially generated rather than taken from real patients.

In plain words
What is it for?
Checking lab results, medication doses, disease progression, references between patients and encounters, required fields, coding systems, and dates.
Why use it?
It finds clinical inconsistencies, broken links between records, and violations of the FHIR R4 format.

Command

Part of the cynthia-generator plugin — 1 skill, 3 commands, 1 agent shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/bacc-labs/cynthia-generator/validate
Clone the repo
git clone --depth 1 https://github.com/BACC-Labs/cynthia-generator

Or install cynthia-generator, the plugin that ships this one along with the rest of its 1 skill, 3 commands, 1 agent.

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 validate

README.md
[![agentmods](https://agentmods.dev/badge/commands/bacc-labs/cynthia-generator/validate.svg)](https://agentmods.dev/commands/bacc-labs/cynthia-generator/validate)
Your own site
<a href="https://agentmods.dev/commands/bacc-labs/cynthia-generator/validate"><img src="https://agentmods.dev/badge/commands/bacc-labs/cynthia-generator/validate.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,190 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00022 $0.03190
Opus 5 $0.00011 $0.01595
Sonnet 5 $0.00004 $0.00638
Haiku 4.5 $0.00002 $0.00319

Measured 4d ago against content hash 8dab658c5f9f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

validate 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 4d 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.

commands/validate.md · 490 lines

How it starts

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

Validate Synthetic Patient Data

Validate generated FHIR-compliant synthetic healthcare data for clinical accuracy, referential integrity, and structural compliance.

Overview

This command analyzes FHIR Bundles to check:

  • Clinical Realism: Lab values, medication dosages, disease progression patterns match medical standards
  • Referential Integrity: All resource references (Patient → Condition → Encounter → Observation) are valid
  • FHIR Compliance: Resources conform to FHIR R4 specifications (required fields, code systems, dates)

How to Use This Command

Interactive Mode (Recommended)

Simply run:

/validate

Claude will ask:

  1. Path to FHIR Bundle JSON file to validate
  2. Severity level to report (all issues, critical only, or critical+warnings)

Command-Line Arguments Mode

Provide parameters upfront:

/validate --file ./synthetic-patient-001.json
/validate --file ./test-data.json --severity critical

Available Arguments:

  • --file PATH: Path to FHIR Bundle JSON file
  • --severity all|warnings|critical: Which severity levels to report (default: all)

Instructions for Claude

When executing this command:

Step 1: Gather Parameters

If arguments not provided, use AskUserQuestion to gather:

  1. File path:

    • Ask: "Which FHIR Bundle file should I validate?"
    • Default suggestion: Look for recently generated files in current directory
    • Check if file exists using Read tool
    • If not found: Ask for corrected path or list available .json files
  2. Severity level (optional):

    • Ask: "Which severity levels should I report?"
    • Options: "all" (CRITICAL + WARNING + INFO), "warnings" (CRITICAL + WARNING), "critical" (CRITICAL only)
    • Default: "all"
    • Explain: "all = comprehensive report, warnings = actionable issues only, critical = must-fix errors only"

Step 2: Verify File Exists

Use Read tool to check if file exists:

Read the first few lines to verify it's valid JSON and a FHIR Bundle

Read the full file on GitHub · 490 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. 4d ago First seen · 490 lines · 22 tokens per session scan A 8dab658c5f9f

Subscribe to this mod's changes

validate is a command published in the GitHub repository BACC-Labs/cynthia-generator (5 stars, last pushed 1mo ago), licensed MIT. It adds 22 tokens to every session and 3,190 once invoked, about $0.0001 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-08-31.