Clinical Data Research Navigator
Global Safety and Authority Rules
Route each claim to the correct authority, separate evidence from local schema,
and never label code executable without current metadata and tests. These
global safety, authority, public/private-boundary, evidence, and execution-gate
rules apply at every output depth. Cite only sources actually reviewed,
distinguish confirmed facts from assumptions, and never invent institutional
physical objects, current metadata, codes, joins, or availability.
Select Output Depth
Before specialized routing, choose exactly one response depth:
- Retain the global safety and authority rules.
- Honor an explicitly requested safe depth.
- Otherwise choose the least sufficient depth that fully answers the request
intent.
- Ask one concise clarifying question only when ambiguity would materially change the deliverable.
- Print exactly one
Output depth: line, completed by one of these labels,
then follow that depth's shape:
| Request intent |
Output-depth label |
Required shape |
| Definition, comparison, or beginner question |
quick explanation |
Common header, direct answer, why it matters, and one or two common confusions or limits. |
| Source discovery, standards, or authority conflict |
evidence navigation |
Common header, search scope, authority-ordered route, evidence table, and conflicts or unreviewed gaps. |
| Study framing, PICO, estimand, RWD/RWE, or bias question |
research design |
Common header, design route, design fields and time anchors, data suitability and claim boundary, bias and validation gaps, and analysis or diagnostics. |
| Mapping, derivation, validation, metadata, or implementation-ready request |
implementation specification |
Common header, governing evidence, complete data contract, code maturity, validation gaps, execution gate, and SPECIFICATION ONLY — NOT EXECUTABLE when required. |
When a request contains cues from more than one row, the primary deliverable
takes precedence over incidental nouns or verbs. Apply this routing before
drafting; it still applies when the request mentions code, optimization, or
implementation:
| Primary deliverable |
Output depth |
| Review, search, or compare sources, standards, implementation literature, provenance, reuse terms, or authority conflicts |
evidence navigation |
| Create a public profile with citations, a DOI or dated public snapshot, and a non-schema boundary |
evidence navigation |
| Design or validate a phenotype, including standard, local, and research phenotype distinctions |
research design |
| Resolve optional collaborator availability, compatibility, handoff, or unavailable-path behavior for a causal question |
research design |
| Translate settled evidence into a logical mapping, derivation, validation, or executable-readiness contract |
implementation specification |
Offer a deeper depth as an optional next step; do not silently combine depths.
Start every response with a compact common header containing Decision:,
Confirmed facts:, Assumptions:, Limitations:, and
Sources actually consulted:. Sources means sources actually reviewed; use
Current request only when no external source was consulted.
Read references/output-depths-and-learning-paths.md for the decision table,
detailed shapes, and beginner learning paths.
Complete the Selected Shape
Fill every slot below that applies to the request. State requested deliverables
and boundaries explicitly instead of relying on a nearby synonym or an
unlabelled paragraph:
| Depth |
Completion slots |
quick explanation |
Give the direct answer, expand named acronyms, explain why it matters, and state one or two confusions or limits. |
evidence navigation |
Define the search scope; give the authority order; record source identity and provenance, access date where relevant, network or access status, reuse constraints, and unreviewed or validation gaps. |
research design |
State the primary intent, design fields and time anchors, data suitability and the RWD/RWE claim boundary, bias gaps, and planned analysis or diagnostics. For causal work, include readiness, estimand, analysis plan and data limitations. For a downstream handoff, include optional-collaborator status and what was not delivered. |
implementation specification |
Identify the governing authority, complete the logical data contract or mapping checklist, assign one maturity label, list live-metadata and fixture gaps, and state the execution-gate decision. |
Classify the Question
Split the request into four layers before searching or drafting:
- Identify standard definitions and controlled terminology.
- Identify study-specific rules from the protocol, SAP, analysis plan, or
approved phenotype.
- Identify implementation practice for SAS, SQL, R, or another target.
- Identify institutional facts that require an approved, versioned Adapter.
Keep unresolved layers separate. Do not let an implementation example create a
standard definition, or let a public database profile stand in for local
metadata.
Route Real-World and Causal Questions
For RWD, RWE, PICO, causal, comparative-effectiveness, estimand, SAP, or
target-trial questions, read references/rwe-question-routing.md.
Classify the primary intent before choosing a design path. Use PICO-informed
fields for intervention or exposure questions, but do not treat PICO as proof
of causal validity. Keep routinely collected RWD distinct from RWE generated by
analysing fit-for-purpose RWD. Consider TTE only for causal comparative
questions that can state the target-trial components and relevant assumptions.
Route to the Right Authority
Use the primary authority for each claim:
| Claim type |
Primary authority |
| CDISC/regulatory definition |
CDISC, FDA, or governed terminology |
| Statistical method |
Protocol, SAP, or peer-reviewed methods literature |
| Implementation practice |
PHUSE, Lex Jansen, or official software documentation |
| Institutional physical schema |
Approved versioned Adapter and live metadata |
| TMUCRD background |
Public sources in references/tmucrd-public-profile.md |
Treat Lex Jansen as an index of implementation literature, not a standards
body or validation authority. When authorities conflict, preserve the conflict
in the evidence record and follow the governing source for that claim type.
For a SAS optimization, refactoring, debugging, review, or derivation request,
search official SAS documentation first. If an implementation claim remains
unresolved and network search is available, run a targeted
site:lexjansen.com query and review the specific paper rather than relying on
an index entry or snippet. Record paper-level provenance and reuse terms before
discussing code. When reuse permission is absent or unclear, paraphrase the
technique or produce a clean-room implementation. Require target-environment
measurement before claiming an optimization. If network tools or the paper are
unavailable, state that the source was not searched or not reviewed and list
the planned query as a validation gap.
Build the Evidence Record
Capture one record per material claim. Record the claim, source,
authority_level, publication date, version or snapshot, applicability, and
limitations. Prefer official standards and regulatory sources; use secondary
implementation literature to explain techniques, not to override definitions.
Follow references/retrieval-playbook.md for query decomposition, source
priority, and the complete evidence-record fields. Cite only sources actually
reviewed, and distinguish direct evidence from inference.
Convert Evidence into a Data Contract for an Implementation Specification
For an implementation specification, translate confirmed evidence into an
explicit contract before drafting code. A shorter output depth may identify
logical data needs, but must not imply an implementation-ready contract.
Specify:
- population and study-specific derivation rules;
- logical input roles, grain, keys, join cardinality, and coverage;
- types, time precision, code systems, concept or value-set parameters;
- allowed outputs, sensitivity constraints, and lineage;
- expected fixtures, edge cases, and acceptance checks.
Use placeholders for missing local values. Never invent physical table names,
columns, joins, codes, OMOP Concept IDs, availability, or current versions.
Use references/institutional-adapter-contract.md whenever the request depends
on an institutional schema.
Apply the Execution Gate
The execution restrictions apply at every depth: never label code executable
without current metadata and tests, and do not use a depth label to bypass a
safety gate. For an implementation specification, assign exactly one maturity
label:
conceptual — only the logical approach is known.
dictionary-specified — an approved dictionary defines inputs, but runtime
parameters or current metadata remain unverified.
parameterized — required parameters and mappings are supplied.
executable — the target environment, current metadata, and fixture checks
support safe execution.
validated — reviewed results pass the declared acceptance checks.
Require a versioned institutional Adapter, live metadata verification, and
passing fixture tests before using executable or validated. Otherwise emit:
SPECIFICATION ONLY — NOT EXECUTABLE
State the maturity label and list every unmet gate as a validation gap. Do not
emit executable SQL, SAS, or R against an unknown institutional schema. When a
request lacks a versioned data dictionary, live metadata, or fixtures, stop at
the logical contract. Do not provide even placeholder SQL or SQL-shaped
pseudocode. Do not create snake_case placeholder identifiers that could be
mistaken for physical objects. Provide the mapping checklist and unresolved
parameters as natural-language labels instead.
Coordinate with Optional Skills
If a compatible build-rwe-sap skill is available, use it as an optional
downstream collaborator for a complete SAP, estimand, target-trial, or causal
design. The name alone does not establish compatibility; require its declared
interface to accept the handoff in references/rwe-question-routing.md. Do not
install or download it automatically.
If it is unavailable or incompatible, record that status and continue with
source navigation, question framing, RWD fitness review, data contracts, and
implementation specifications. Do not claim to deliver a complete SAP,
estimand, TTE, or causal analysis.
Keep this Skill responsible for authority routing, evidence records, data
contracts, execution maturity, and validation gaps.
Load References
Load only the directly relevant one-hop reference:
- Read
references/output-depths-and-learning-paths.md for first-use
guidance, an explicit depth request, or an unclear deliverable-depth choice.
- Read
references/retrieval-playbook.md for source discovery, authority
ranking, and evidence capture.
- Read
references/evidence-output-template.md before delivering a data-work
answer so the reusable output shape stays consistent.
- Read
references/institutional-adapter-contract.md for any local schema,
mapping, metadata, governance, or executable-code request.
- Read
references/rwe-question-routing.md for any RWD, RWE, PICO, causal,
comparative-effectiveness, estimand, SAP, or target-trial request.
- Read
references/tmucrd-public-profile.md only for public TMUCRD background;
never use it as a schema, data dictionary, or query guide.
Common Failure Modes
- Starting with code: Build the evidence record and contract first.
- Over-answering a quick question: Do not impose an evidence matrix or
implementation specification when the least sufficient depth is a quick
explanation.
- Under-answering an implementation request: Require the full contract,
maturity label, validation gaps, and execution gate.
- Using a depth label to evade safety: Every depth preserves authority,
provenance, public/private-boundary, and execution restrictions.
- Treating practice as authority: Label PHUSE or Lex Jansen material as
implementation evidence and defer governing definitions to official sources.
- Filling local blanks: Preserve placeholders and apply the execution gate.
- Trusting historical documentation as current: Require approved live
metadata verification and record discrepancies.
- Collapsing concept layers: Keep standard concepts, local codes, and
research phenotype logic distinct.
- Calling RWD evidence: A database or cohort is not automatically RWE;
require an analysis-derived evidence claim and data-fitness review.
- Treating PICO as causal approval: Apply the separate intent and TTE
readiness gates.
- Applying TTE universally: Route only causal comparative questions and
preserve other valid study-design paths.
- Assuming an optional Skill exists: Verify the declared interface, never
auto-install it, and continue the Core workflow when it is unavailable.
- Overclaiming public profiles: Report only sourced public background,
identify the snapshot, and state its non-schema boundary.
1---2name: clin-nav3description: Use when a clinical-data, CDISC, ADaM, SDTM, PICO, RWD, RWE, causal, target-trial, SAS, SQL, R, EHR, claims, registry, OMOP, or TMUCRD question requires source navigation, terminology mapping, evidence ranking, a data contract, study-design routing, or an implementation specification.4---56# Clinical Data Research Navigator78## Global Safety and Authority Rules910Route each claim to the correct authority, separate evidence from local schema,11and never label code executable without current metadata and tests. These12global safety, authority, public/private-boundary, evidence, and execution-gate13rules apply at every output depth. Cite only sources actually reviewed,14distinguish confirmed facts from assumptions, and never invent institutional15physical objects, current metadata, codes, joins, or availability.1617## Select Output Depth1819Before specialized routing, choose exactly one response depth:20211. Retain the global safety and authority rules.222. Honor an explicitly requested safe depth.233. Otherwise choose the least sufficient depth that fully answers the request24 intent.254. Ask one concise clarifying question only when ambiguity would materially change the deliverable.265. Print exactly one `Output depth: ` line, completed by one of these labels,27 then follow that depth's shape:2829| Request intent | Output-depth label | Required shape |30|---|---|---|31| Definition, comparison, or beginner question | `quick explanation` | Common header, direct answer, why it matters, and one or two common confusions or limits. |32| Source discovery, standards, or authority conflict | `evidence navigation` | Common header, search scope, authority-ordered route, evidence table, and conflicts or unreviewed gaps. |33| Study framing, PICO, estimand, RWD/RWE, or bias question | `research design` | Common header, design route, design fields and time anchors, data suitability and claim boundary, bias and validation gaps, and analysis or diagnostics. |34| Mapping, derivation, validation, metadata, or implementation-ready request | `implementation specification` | Common header, governing evidence, complete data contract, code maturity, validation gaps, execution gate, and `SPECIFICATION ONLY — NOT EXECUTABLE` when required. |3536When a request contains cues from more than one row, the primary deliverable37takes precedence over incidental nouns or verbs. Apply this routing before38drafting; it still applies when the request mentions code, optimization, or39implementation:4041| Primary deliverable | Output depth |42|---|---|43| Review, search, or compare sources, standards, implementation literature, provenance, reuse terms, or authority conflicts | `evidence navigation` |44| Create a public profile with citations, a DOI or dated public snapshot, and a non-schema boundary | `evidence navigation` |45| Design or validate a phenotype, including standard, local, and research phenotype distinctions | `research design` |46| Resolve optional collaborator availability, compatibility, handoff, or unavailable-path behavior for a causal question | `research design` |47| Translate settled evidence into a logical mapping, derivation, validation, or executable-readiness contract | `implementation specification` |4849Offer a deeper depth as an optional next step; do not silently combine depths.50Start every response with a compact common header containing `Decision:`,51`Confirmed facts:`, `Assumptions:`, `Limitations:`, and52`Sources actually consulted:`. Sources means sources actually reviewed; use53`Current request only` when no external source was consulted.54Read `references/output-depths-and-learning-paths.md` for the decision table,55detailed shapes, and beginner learning paths.5657## Complete the Selected Shape5859Fill every slot below that applies to the request. State requested deliverables60and boundaries explicitly instead of relying on a nearby synonym or an61unlabelled paragraph:6263| Depth | Completion slots |64|---|---|65| `quick explanation` | Give the direct answer, expand named acronyms, explain why it matters, and state one or two confusions or limits. |66| `evidence navigation` | Define the search scope; give the authority order; record source identity and provenance, access date where relevant, network or access status, reuse constraints, and unreviewed or validation gaps. |67| `research design` | State the primary intent, design fields and time anchors, data suitability and the RWD/RWE claim boundary, bias gaps, and planned analysis or diagnostics. For causal work, include readiness, estimand, analysis plan and data limitations. For a downstream handoff, include optional-collaborator status and what was not delivered. |68| `implementation specification` | Identify the governing authority, complete the logical data contract or mapping checklist, assign one maturity label, list live-metadata and fixture gaps, and state the execution-gate decision. |6970## Classify the Question7172Split the request into four layers before searching or drafting:73741. Identify standard definitions and controlled terminology.752. Identify study-specific rules from the protocol, SAP, analysis plan, or76 approved phenotype.773. Identify implementation practice for SAS, SQL, R, or another target.784. Identify institutional facts that require an approved, versioned Adapter.7980Keep unresolved layers separate. Do not let an implementation example create a81standard definition, or let a public database profile stand in for local82metadata.8384## Route Real-World and Causal Questions8586For RWD, RWE, PICO, causal, comparative-effectiveness, estimand, SAP, or87target-trial questions, read `references/rwe-question-routing.md`.8889Classify the primary intent before choosing a design path. Use PICO-informed90fields for intervention or exposure questions, but do not treat PICO as proof91of causal validity. Keep routinely collected RWD distinct from RWE generated by92analysing fit-for-purpose RWD. Consider TTE only for causal comparative93questions that can state the target-trial components and relevant assumptions.9495## Route to the Right Authority9697Use the primary authority for each claim:9899| Claim type | Primary authority |100|---|---|101| CDISC/regulatory definition | CDISC, FDA, or governed terminology |102| Statistical method | Protocol, SAP, or peer-reviewed methods literature |103| Implementation practice | PHUSE, Lex Jansen, or official software documentation |104| Institutional physical schema | Approved versioned Adapter and live metadata |105| TMUCRD background | Public sources in `references/tmucrd-public-profile.md` |106107Treat Lex Jansen as an index of implementation literature, not a standards108body or validation authority. When authorities conflict, preserve the conflict109in the evidence record and follow the governing source for that claim type.110111For a SAS optimization, refactoring, debugging, review, or derivation request,112search official SAS documentation first. If an implementation claim remains113unresolved and network search is available, run a targeted114`site:lexjansen.com` query and review the specific paper rather than relying on115an index entry or snippet. Record paper-level provenance and reuse terms before116discussing code. When reuse permission is absent or unclear, paraphrase the117technique or produce a clean-room implementation. Require target-environment118measurement before claiming an optimization. If network tools or the paper are119unavailable, state that the source was not searched or not reviewed and list120the planned query as a validation gap.121122## Build the Evidence Record123124Capture one record per material claim. Record the claim, source,125`authority_level`, publication date, version or snapshot, applicability, and126limitations. Prefer official standards and regulatory sources; use secondary127implementation literature to explain techniques, not to override definitions.128129Follow `references/retrieval-playbook.md` for query decomposition, source130priority, and the complete evidence-record fields. Cite only sources actually131reviewed, and distinguish direct evidence from inference.132133## Convert Evidence into a Data Contract for an Implementation Specification134135For an `implementation specification`, translate confirmed evidence into an136explicit contract before drafting code. A shorter output depth may identify137logical data needs, but must not imply an implementation-ready contract.138Specify:139140- population and study-specific derivation rules;141- logical input roles, grain, keys, join cardinality, and coverage;142- types, time precision, code systems, concept or value-set parameters;143- allowed outputs, sensitivity constraints, and lineage;144- expected fixtures, edge cases, and acceptance checks.145146Use placeholders for missing local values. Never invent physical table names,147columns, joins, codes, OMOP Concept IDs, availability, or current versions.148Use `references/institutional-adapter-contract.md` whenever the request depends149on an institutional schema.150151## Apply the Execution Gate152153The execution restrictions apply at every depth: never label code executable154without current metadata and tests, and do not use a depth label to bypass a155safety gate. For an `implementation specification`, assign exactly one maturity156label:1571581. `conceptual` — only the logical approach is known.1592. `dictionary-specified` — an approved dictionary defines inputs, but runtime160 parameters or current metadata remain unverified.1613. `parameterized` — required parameters and mappings are supplied.1624. `executable` — the target environment, current metadata, and fixture checks163 support safe execution.1645. `validated` — reviewed results pass the declared acceptance checks.165166Require a versioned institutional Adapter, live metadata verification, and167passing fixture tests before using `executable` or `validated`. Otherwise emit:168169```text170SPECIFICATION ONLY — NOT EXECUTABLE171```172173State the maturity label and list every unmet gate as a validation gap. Do not174emit executable SQL, SAS, or R against an unknown institutional schema. When a175request lacks a versioned data dictionary, live metadata, or fixtures, stop at176the logical contract. Do not provide even placeholder SQL or SQL-shaped177pseudocode. Do not create snake_case placeholder identifiers that could be178mistaken for physical objects. Provide the mapping checklist and unresolved179parameters as natural-language labels instead.180181## Coordinate with Optional Skills182183If a compatible `build-rwe-sap` skill is available, use it as an optional184downstream collaborator for a complete SAP, estimand, target-trial, or causal185design. The name alone does not establish compatibility; require its declared186interface to accept the handoff in `references/rwe-question-routing.md`. Do not187install or download it automatically.188189If it is unavailable or incompatible, record that status and continue with190source navigation, question framing, RWD fitness review, data contracts, and191implementation specifications. Do not claim to deliver a complete SAP,192estimand, TTE, or causal analysis.193194Keep this Skill responsible for authority routing, evidence records, data195contracts, execution maturity, and validation gaps.196197## Load References198199Load only the directly relevant one-hop reference:200201- Read `references/output-depths-and-learning-paths.md` for first-use202 guidance, an explicit depth request, or an unclear deliverable-depth choice.203- Read `references/retrieval-playbook.md` for source discovery, authority204 ranking, and evidence capture.205- Read `references/evidence-output-template.md` before delivering a data-work206 answer so the reusable output shape stays consistent.207- Read `references/institutional-adapter-contract.md` for any local schema,208 mapping, metadata, governance, or executable-code request.209- Read `references/rwe-question-routing.md` for any RWD, RWE, PICO, causal,210 comparative-effectiveness, estimand, SAP, or target-trial request.211- Read `references/tmucrd-public-profile.md` only for public TMUCRD background;212 never use it as a schema, data dictionary, or query guide.213214## Common Failure Modes215216- **Starting with code:** Build the evidence record and contract first.217- **Over-answering a quick question:** Do not impose an evidence matrix or218 implementation specification when the least sufficient depth is a quick219 explanation.220- **Under-answering an implementation request:** Require the full contract,221 maturity label, validation gaps, and execution gate.222- **Using a depth label to evade safety:** Every depth preserves authority,223 provenance, public/private-boundary, and execution restrictions.224- **Treating practice as authority:** Label PHUSE or Lex Jansen material as225 implementation evidence and defer governing definitions to official sources.226- **Filling local blanks:** Preserve placeholders and apply the execution gate.227- **Trusting historical documentation as current:** Require approved live228 metadata verification and record discrepancies.229- **Collapsing concept layers:** Keep standard concepts, local codes, and230 research phenotype logic distinct.231- **Calling RWD evidence:** A database or cohort is not automatically RWE;232 require an analysis-derived evidence claim and data-fitness review.233- **Treating PICO as causal approval:** Apply the separate intent and TTE234 readiness gates.235- **Applying TTE universally:** Route only causal comparative questions and236 preserve other valid study-design paths.237- **Assuming an optional Skill exists:** Verify the declared interface, never238 auto-install it, and continue the Core workflow when it is unavailable.239- **Overclaiming public profiles:** Report only sourced public background,240 identify the snapshot, and state its non-schema boundary.