rhino-sdk-example
Rhino Health SDK — Example Finder
Find and present relevant working examples from the official Rhino Health SDK repository, with inline annotations explaining key patterns.
Context Loading
-
Always load first —
../../context/examples/INDEX.mdMaps use cases to example files with key methods, difficulty levels, and recommended context sections. -
On match — read the matched example file from
../../context/examples/<filename> -
On no match — read
../../context/patterns_and_gotchas.mdas the basis for composing a new example.
Matching Logic
Read INDEX.md and match the user's request against:
- The Use Case column (primary match)
- The Key SDK Methods column (secondary match — user mentions a specific method or class)
Pick the single closest match. If multiple examples are relevant, present the best match first and mention the others as "See also".
On Match: Presenting an Example
Read the full example file. Present it as:
1. Overview
Brief description (2-3 sentences) of what the example does, which SDK features it demonstrates, and its difficulty level from the INDEX.
2. Full Code
Show the complete example code. Add inline annotations for non-obvious SDK patterns:
- Deep import paths
get_*_by_name()returningNone- Triply nested
output_dataset_uids List[str]UID requirements foraggregate_dataset_metric- Double-nested
input_dataset_uidsfor code object runs - Filter and group-by dict structures
3. Key Takeaways
Bullet list of the patterns demonstrated, cross-referenced to the "Read First" context section from INDEX.md. Example:
- Authentication: uses
getpass()pattern (see patterns_and_gotchas.md §1) - Metric execution: uses
aggregate_dataset_metricwith stringified UIDs (see patterns_and_gotchas.md §4)
On No Match: Composing an Example
When no existing example matches the user's request:
- State clearly: "No existing verified example covers this exact use case. Here is a composed example based on documented SDK patterns."
- Follow the code template from the
writeskill: imports, auth, constants, resource lookup with None checks, core logic, result handling. - Use patterns from
patterns_and_gotchas.mdand method signatures fromsdk_reference.md. - Mark placeholder values clearly (e.g.,
"<your-project-name>").
Response Format
- Example file name + description (or "Composed example" if no match)
- Full annotated code
- Key takeaways — patterns demonstrated and which context sections to read for deeper understanding
More from naverazy-rhino/rhino-sdk-skills
rhino-sdk
Plan and execute federated analytics workflows with the Rhino Health Python SDK. Use when the user wants to run survival analysis, metrics, data harmonization, model training, or any multi-step SDK workflow. Takes high-level research goals and produces phased execution plans with runnable code. Also handles SDK questions, debugging rhino_health errors, and metric selection. Triggers on: rhino-health, rhino_health, RhinoSession, FCP, federated analytics, OMOP, FHIR, harmonization, or any of the 40+ federated metrics.
13rhino-sdk-guide
This skill should be used when the user asks about the Rhino Health Python SDK API, asks 'how do I...' questions about rhino-health, needs to understand SDK concepts like endpoints, sessions, metrics, or dataclasses, or mentions rhino_health, RhinoSession, FCP, federated analytics, or rhino-health SDK.
9rhino-sdk-debug
This skill should be used when the user encounters an error or traceback from the Rhino Health Python SDK, needs to debug rhino_health code, sees NotAuthenticatedError, ValidationError, TypeError, ImportError, or any exception mentioning rhino_health, or asks why their SDK code is failing.
9rhino-sdk-plan
This skill should be used when the user describes a high-level research or analytics goal using the Rhino Health Python SDK, wants to plan a multi-step workflow, says 'plan', 'design a workflow', 'how should I approach', 'what are the steps to', 'architect', 'set up a pipeline', wants to combine analytics with code objects or harmonization, or needs help decomposing a complex federated computing task into ordered SDK operations.
9rhino-sdk-write
This skill should be used when the user wants to write code using the Rhino Health Python SDK, generate a script, create a workflow, implement federated analytics, run metrics across sites, or is writing Python that imports rhino_health.
8rhino-sdk-metrics
This skill should be used when the user wants to run federated metrics or analytics using the Rhino Health Python SDK, asks about survival analysis, statistical tests, KaplanMeier, Cox, Mean, Count, TTest, ChiSquare, RocAuc, correlation, odds ratio, or needs help choosing or configuring a metric.
8