Individual skill

synthetic-clinic-protocol-json

Build protocol-bound JSON answers for synthetic clinic runtime tasks. Use when a prompt asks Codex to query a clinic task environment and return a structured answer_template JSON for cases involving FHIR-like patients, cases, observations, medications, allergies, problems, imaging, SDOH, care registry, respiratory CAP assessment, pediatric head injury triage, potassium replacement, observation-window gates, or care-management routing.

experiments/codex_skill_creator_comparison_gpt5_5_xhigh/reports/skills/task_group_016/fewshot/codex/fewshot_attempt_03/SKILL.md

Read pinned source

Source commit 5082a777379156a048881e94940d640702e5e09a

What was checked

Matches the observed repository HEAD
Yes
Scanner rules are current
No
Repository scan complete
No
Skill scan complete
No
Observed behavior
Not checked yet
Last checked
Nov 6, 2026

These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.

Install this skill

Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.

An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.

Repository context

Repository stars (not skill ratings)
121
Repository last updated
Oct 29, 2026
License
Apache-2.0

Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.

Files and excerpt

File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.

Browse files
Read excerpt

# Synthetic Clinic Protocol JSON

## Core Workflow

1. Read the task prompt, `environment_access.md`, and `input/payloads/answer_template.json` completely.
2. Extract the base URL, target `case_id`, `task_id`, and any explicit observation window, target code, or protocol name from the prompt/template.
3. Fetch the case bundle first:

```bash
python scripts/fetch_clinic_bundle.py --base-url "$TASK_ENV_BASE_URL" --case-id "$CASE_ID"
```

The bundle endpoint usually contains `case`, `patient`, `findings`, `observations`, `medications`, `allergies`, `problems`, `imaging`, `sdoh`, and `care_registry`. If a field is absent or looks incomplete, cross-check the allowed list endpoints and filter by `case_id` and `patient_id`.
4. Fetch `/api/protocols` and the protocol matching `case.case_type`. Use `--all-protocols` with the helper when useful.