skill-name
<One sentence: what this skill does and for whom.> Modes: plan · implement · verify.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
<One sentence: what this skill does and for whom.> Modes: plan · implement · verify.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
Reviewer-gated extraction skill for deriving L2 structured artifacts from ingested normalized sources. Runs MCP terminology enrichment, presents batch proposals for human review, records decisions via concept review CLI, and writes finalized `topics/<topic>/structured/concepts/concepts.yaml` plus an extract plan that includes an explicit `concepts` terminology artifact row. Supported modes: plan · implement · verify. Use when the user asks to extract structured artifacts from sources for a topic.
Reviewer-gated formalization skill for converging approved L2 structured artifacts into L3 FHIR computable resources. Uses type-specific strategies to map each L2 artifact type to its correct FHIR R4 targets. Modes: plan, implement, verify
Source preparation skill for the HI evidence pipeline. Normalizes all files in sources/ to Markdown, infers and initializes topics, classifies each source (using discovery-plan.yaml as optional enrichment when present), and annotates with concept metadata in normalized front matter for downstream extraction. Modes: plan, implement, verify
First-class CQL (Clinical Quality Language) authoring, review, debugging, and test-plan skill for the rh-skills informatics workflow.
Interactive conflict resolution guide for RH lifecycle plans. Iterates through all open concerns across extract-plan.yaml and formalize-plan.yaml, presents each to the human reviewer, records the resolution, and confirms the plan is clear before proceeding to implementation.
Unified topic-level verification orchestrator for the RH lifecycle. Read-only. Launches stage-specific verify workflows via subagents and returns one consolidated report. Modes: verify.
| name | <skill-name> |
| description | <One sentence: what this skill does and for whom.> Modes: plan · implement · verify. |
| compatibility | rh-skills >= 0.1.0 |
| context_files | ["reference.md","examples/plan.md","examples/output.md"] |
| metadata | {"author":"<Author Name or Team>","version":"1.0.0","source":"skills/.curated/<skill-name>/SKILL.md","lifecycle_stage":"<l1-discovery | l2-semi-structured | l3-computable>","reads_from":["tracking.yaml","<e.g., topics/<name>/process/plans/<skill-name>-plan.md>"],"writes_via_cli":["<e.g., rh-skills promote derive>","<e.g., rh-skills validate>"]} |
This skill handles the stage of the HI lifecycle, transforming
into . It follows the plan → implement → verify pattern: the agent reasons
about the clinical domain in plan mode, executes deterministic work via rh-skills
CLI commands in implement mode, and performs non-destructive validation in
verify mode.
Guiding principle: All file I/O, checksums, YAML writes, and schema
validation are delegated to rh-skills CLI commands. All clinical reasoning, artifact
naming decisions, and evidence synthesis happen in this skill.
$ARGUMENTS
You MUST inspect $ARGUMENTS before proceeding. The first word is the
mode (plan, implement, or verify). Additional arguments follow:
| Mode | Arguments | Example |
|---|---|---|
plan | <topic> | plan diabetes-screening |
implement | <topic> | implement diabetes-screening |
verify | <topic> | verify diabetes-screening |
If $ARGUMENTS is empty or the mode is unrecognized, print the table above and
exit without doing any work.
Run these checks before dispatching to a mode. Exit immediately with a clear error if any required check fails — do not attempt partial work.
1. Verify tracking.yaml exists:
rh-skills list
If the command returns "No tracking.yaml found", exit:
Error: tracking.yaml not found at repo root. Run \rh-skills init ` first.`
2. Verify topic exists:
Confirm the topic name from $ARGUMENTS appears in rh-skills list output. If not:
Error: Topic '<topic>' not found. Run \rh-skills list` to see available topics.`
3. For implement mode only — verify plan artifact exists:
Check that topics/<topic>/process/plans/<skill-name>-plan.md exists.
If not:
Error: No plan found at topics/<topic>/process/plans/<skill-name>-plan.md.Run \plan ` first, review the plan, then re-run implement.`
4. For implement mode only — parse plan YAML front matter:
Read the plan artifact. If YAML front matter is missing or any required field
is absent (see reference.md §Plan Schema), exit:
Error: Plan is missing required field '<field>'. Edit the plan and re-run.
planGoal: Reason about the topic and produce a plan artifact for human review. No files are created or modified other than the plan artifact itself.
Read context — Run rh-skills status show <topic> and review current lifecycle
state. Note artifact counts and last event. Also read:
tracking.yaml sources list (to understand what raw material is available)--force flag is in $ARGUMENTS)Reason — Based on the context:
Write plan artifact — Write to
topics/<topic>/process/plans/<skill-name>-plan.md using the format below.
If the file already exists and --force is not set, warn and exit without
overwriting.
Summarise — After writing, print a summary of what was planned and instruct the user:
"Review
topics/<topic>/process/plans/<skill-name>-plan.md. Edit the YAML front matter to adjust the plan, then run:<skill-name> implement <topic>"
For full schema and field definitions, see reference.md §Plan Schema. For a worked example, see examples/plan.md.
---
topic: <topic-name>
plan_type: <skill-name>
version: "1.0"
created: "<ISO-8601 timestamp>"
# ── Skill-specific fields ─────────────────────────────────────────────────
# <field>: <value> # required — <description>
# <field>: <value> # optional — <description>
# ─────────────────────────────────────────────────────────────────────────
---
## <Title> Plan — <Topic>
### Clinical Rationale
<Why these artifacts are needed; what clinical question they answer.>
### Evidence Summary
<Key sources, their quality, and how they inform the plan.>
### Proposed Artifacts
<Human-readable description of each planned artifact; one paragraph each.>
### Open Questions
<List any ambiguities for the reviewer to resolve before implementing.>
<skill-name>_planned — appended to topics[<topic>].events[] in tracking.yamlimplementGoal: Execute the plan by invoking rh-skills CLI commands. Never write files
directly — all I/O must go through rh-skills commands.
Read and validate plan — Parse YAML front matter from the plan artifact. Confirm all required fields are present (see Pre-Execution Checks above).
Execute — For each item in the plan:
rh-skills <command> <topic> <args>
✓ Created <name> or ✗ Failed: <reason>rh-skills command exits non-zero, stop immediately and report the
error. Do not continue with remaining items.Validate outputs — After all items are created, run:
rh-skills validate <topic> <artifact>
for each produced artifact. Report required-field errors (blocking) and advisory warnings separately.
Report — Print a completion summary:
"Implemented artifacts. Validation: passed, warnings, errors." "Next step: run
<skill-name> verify <topic>to confirm all outputs are valid."
rh-skills CLI)rh-skills commandsrh-skills CLI commands invoked)<event-name> — appended by rh-skills <command> for each itemverifyGoal: Non-destructive validation. MUST NOT create, modify, or delete any file or tracking.yaml entry. Safe to run at any time.
List expected outputs — Read the plan artifact (if present) to know what
artifacts should exist. If no plan exists, verify all artifacts currently
present in topics/<topic>/<structured|computable>/.
Validate each artifact:
rh-skills validate <topic> <artifact-name>
Collect results.
Check referential integrity:
derived_from sources in each structured artifact's
tracking entry still exist in sources[]converged_from entries in computable artifacts still exist
in structured[]Report per artifact:
✓ screening-decisions — all required fields present
✗ diabetes-evidence — missing required field: 'value_set_url'
⚠ diagnostic-thresholds — optional field 'evidence_grade' not set
Exit behaviour: Exit 0 if all required checks pass (warnings are OK). Exit 1 if any required check fails.
implement stepsUse these standard templates for consistency across all RH skills.
| Situation | Message |
|---|---|
| No tracking.yaml | Error: tracking.yaml not found. Run \rh-skills init ` first.` |
| Unknown topic | Error: Topic '<topic>' not found. Run \rh-skills list` to see available topics.` |
| No plan (implement) | Error: No plan found. Run \ plan ` first.` |
| Missing plan field | Error: Plan missing required field '<field>'. Edit the plan and re-run. |
| Plan exists (no --force) | Warning: Plan already exists. Pass --force to overwrite, or run implement to execute the existing plan. |
| rh-skills command failure | Error: \rh-skills ` failed (exit ): . Stopping.` |
| Artifact exists (no --force) | Warning: <artifact> already exists. Pass --force to overwrite. |
Load these on demand — do not load all of them upfront.
| File | When to load |
|---|---|
reference.md | When you need full schema definitions, field constraints, or validation rules |
examples/plan.md | When writing a plan artifact and you need a worked example |
examples/output.md | When implementing and you need to understand expected output structure |
All deterministic work in
rh-skillsCLI commands. All reasoning in this SKILL.md.
rh-skills CLI. Never replicate this logic
in the skill.plan and implement are always separate steps.
Never combine them without explicit user confirmation.verify is always safe to re-run. Never skip it
before proceeding to the next lifecycle stage.✓/✗/⚠ symbols in status
reports; prefer prose only in clinical rationale sections.