CtrlK
BlogDocsLog inGet started
Tessl Logo

scaffolding-smart-on-fhir

Scaffold a SMART-on-FHIR app (SMART App Launch v2 — EHR launch and standalone launch, OAuth2 PKCE, scopes, token handling, fhirContext) so an OpenMed-powered tool can run inside Epic or Cerner/Oracle Health. Covers the .well-known/smart-configuration discovery, authorize/token sequence, scopes like patient/DocumentReference.rs and launch/patient, and fetching clinical notes the app then de-identifies and runs NER on locally with OpenMed. Use when the user wants to embed OpenMed inside an EHR, mentions SMART on FHIR, OAuth2 launch, scopes, Epic/Cerner app, or clinician-facing FHIR app. Pairs adjacent.

75

Quality

93%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Low

Low-risk findings worth noting

SKILL.md
Quality
Evals
Security

Quality

Content

90%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A tight, highly actionable SMART-on-FHIR guide with concrete HTTP and Python examples and a useful gotchas section. It falls just short of perfect on workflow clarity (no explicit validate/retry loop) and progressive disclosure (single-file, no reference offloading).

Suggestions

Add an explicit validation checkpoint in the launch sequence (e.g. 'After step 4: verify state matches and granted scope covers DocumentReference.rs; if not, re-request with corrected scope before calling FHIR') to strengthen the feedback loop.

Consider moving the scopes reference table and edge-case catalog into a references/ file (e.g. SCOPES.md) with a one-line pointer from SKILL.md to improve progressive disclosure.

DimensionReasoningScore

Conciseness

Lean and assumes Claude's competence — it does not explain what FHIR or OAuth2 is; every section (launch sequence, scopes table, code, edge cases) earns its place with SMART-specific knowledge Claude likely lacks.

5 / 5

Actionability

Provides copy-paste-ready guidance: a numbered concrete HTTP launch sequence with real query params, a scopes table, and an executable Python snippet using openmed.deidentify/analyze_text covering the common end-to-end case.

5 / 5

Workflow Clarity

The launch sequence is clearly numbered 1-5 with validation guidance in edge cases (validate state/aud, handle scope down-grade), but there is no explicit validate-then-fix feedback loop; this is an auth flow rather than a destructive/batch op so the cap-of-3 does not apply.

4 / 5

Progressive Disclosure

Well-organized into clear sections with external standards clearly signaled in 'Standards & references', but no bundle files exist and the ~150-line body keeps scopes/edge-cases inline where a one-level-deep reference file could offload detail.

4 / 5

Total

18

/

20

Passed

Description

96%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A dense, well-constructed description that names concrete actions, gives explicit 'Use when' triggers, and carves out a clear SMART-on-FHIR/EHR-embedding niche. Only slightly short of perfect on distinctiveness given the broader FHIR skill family it belongs to.

DimensionReasoningScore

Specificity

Lists multiple concrete actions — 'Scaffold a SMART-on-FHIR app', '.well-known/smart-configuration discovery', 'authorize/token sequence', 'scopes like patient/DocumentReference.rs', 'fetching clinical notes', 'de-identifies and runs NER' — giving comprehensive coverage of the skill's surface.

5 / 5

Completeness

Explicitly answers what ('Scaffold a SMART-on-FHIR app ... Covers ... discovery, authorize/token sequence, scopes ... fetching clinical notes ... de-identifies and runs NER') and when ('Use when the user wants to embed OpenMed inside an EHR, mentions SMART on FHIR, OAuth2 launch, scopes, Epic/Cerner app, or clinician-facing FHIR app') with concrete triggers.

5 / 5

Trigger Term Quality

Includes natural user-facing phrases — 'SMART on FHIR', 'OAuth2 launch', 'scopes', 'Epic/Cerner app', 'clinician-facing FHIR app', 'embed OpenMed inside an EHR' — covering the synonyms a user would actually say.

5 / 5

Distinctiveness Conflict Risk

The EHR-embedded SMART-on-FHIR niche is distinct with specific triggers, but it sits within a family of adjacent FHIR skills (e.g. exporting-bulk-fhir) creating minor overlap risk; not a clear 5 because closely related FHIR skills share scope/FHIR vocabulary.

4 / 5

Total

19

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository
maziyarpanahi/openmed
Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.