Skill Tracer
Skills › Scientific Agent Skills › clinical-decision-support

clinical-decision-support

skill · 258 lines · MIT · skills/clinical-decision-support/SKILL.md

The facts

Its description

Prepares and validates research-only clinical decision-support evaluation, evidence-profile, cohort, survival, biomarker/model, privacy, and governance artifacts. Supports aggregate or synthetic research documentation and traceability, excluding patient care and live clinical operation.

The description the agent reads to decide when to use it.

From its settingsline 3

Runs scripts

scripts/validate_cds_artifact.py, scripts/evidence_profile_check.py, scripts/model_biomarker_evaluation.py, scripts/cohort_table_generator.py, scripts/survival_plan_validator.py (first 5 of 15 lines)

Scripts the text names. Found by matching words, so treat them as pointers.

Found by matching wordsline 86 line 87 line 88 line 89 line 90

Files it mentions

assets/artifact_intended_use_template.json, scripts/validate_cds_artifact.py, assets/evidence_profile_template.json, scripts/evidence_profile_check.py, assets/aggregate_model_evaluation_template.json, scripts/model_biomarker_evaluation.py, assets/aggregate_cohort_table_template.json, scripts/cohort_table_generator.py (first 5 of 27 lines)

Files the text names, such as ones to read or write. Found by matching words, so treat them as pointers.

Found by matching wordsline 71 line 86 line 87 line 88 line 89

Licence

MIT, from the skill file

The terms its author shares it under, which let it be shown here.

From its settingsline 4 licence text

Other settings

compatibility: Python 3.11+; local files only; bundled scripts use the standard library and require no network, credentials, API keys, LLMs, or image services. metadata: version: "2.4" last-reviewed: "2026-09-30" skill-author: K-Dense Inc.

More settings at the top of the file, shown as written.

From its settingsline 5 line 6
Other files in this skill (27) Close

The text

Open on GitHub

Most marks come from matching words in the file, so treat them as pointers.

1---
2name: clinical-decision-support
3description: Prepares and validates research-only clinical decision-support evaluation, evidence-profile, cohort, survival, biomarker/model, privacy, and governance artifacts. Supports aggregate or synthetic research documentation and traceability, excluding patient care and live clinical operation.
4license: MIT
5compatibility: Python 3.11+; local files only; bundled scripts use the standard library and require no network, credentials, API keys, LLMs, or image services.
6metadata:
7 version: "2.4"
8 last-reviewed: "2026-09-30"
9 skill-author: K-Dense Inc.
10---
12# Clinical Decision-Support Research and Evaluation

Clinical Decision-Support Research and Evaluation

Raw lines 1 to 13
14## Hard Safety Boundary
16This skill produces **research, evaluation, documentation, and governance artifacts only**.
18Never use it to:
20- diagnose or classify a person;
21- recommend, select, sequence, start, stop, or modify treatment;
22- calculate or communicate a patient-specific dose;
23- triage, prioritize, alarm, alert, or determine urgency;
24- make or automate a patient-specific clinical decision;
25- support bedside, point-of-care, or live clinical operation;
26- replace professional judgment or a validated, authorized clinical system;
27- claim FDA authorization, regulatory conformity, HIPAA compliance, or legal compliance.
29If a request could affect care for a person, stop the workflow and route the matter to a licensed healthcare professional using locally validated and appropriately authorized systems. Do not redirect to another skill for patient-specific care.

Hard Safety Boundary

This skill produces research, evaluation, documentation, and governance artifacts only.

Never use it to:

  • diagnose or classify a person;
  • recommend, select, sequence, start, stop, or modify treatment;
  • calculate or communicate a patient-specific dose;
  • triage, prioritize, alarm, alert, or determine urgency;
  • make or automate a patient-specific clinical decision;
  • support bedside, point-of-care, or live clinical operation;
  • replace professional judgment or a validated, authorized clinical system;
  • claim FDA authorization, regulatory conformity, HIPAA compliance, or legal compliance.

If a request could affect care for a person, stop the workflow and route the matter to a licensed healthcare professional using locally validated and appropriately authorized systems. Do not redirect to another skill for patient-specific care.

Raw lines 14 to 30
31## In Scope
33- Intended-use and limitation statements for research artifacts
34- Aggregate cohort table shells with disclosure controls
35- Statistical analysis plans and survival-analysis plan review
36- Aggregate model or biomarker performance evaluation
37- Transparent GRADE evidence-profile checklists
38- Evidence-source and decision-logic traceability
39- De-identification process checklists
40- Fairness, subgroup, calibration, uncertainty, external-validation, monitoring, change-control, audit, and human-factors documentation
42Outputs remain drafts until qualified humans approve them. Reporting guidance improves transparency; it does not establish study quality, clinical utility, safety, effectiveness, authorization, or compliance.

In Scope

  • Intended-use and limitation statements for research artifacts
  • Aggregate cohort table shells with disclosure controls
  • Statistical analysis plans and survival-analysis plan review
  • Aggregate model or biomarker performance evaluation
  • Transparent GRADE evidence-profile checklists
  • Evidence-source and decision-logic traceability
  • De-identification process checklists
  • Fairness, subgroup, calibration, uncertainty, external-validation, monitoring, change-control, audit, and human-factors documentation

Outputs remain drafts until qualified humans approve them. Reporting guidance improves transparency; it does not establish study quality, clinical utility, safety, effectiveness, authorization, or compliance.

Raw lines 31 to 43
44## Data Gate
46Before any script:
481. Have the responsible human reviewer confirm and document that input is synthetic or aggregate. Scripts cannot establish this from field names or declared metadata.
492. Reject patient rows, records, narratives, identifiers, free text, dates tied to people, images, waveforms, or genomic sequences.
503. Keep source files local. Do not fetch URLs, call APIs, read environment variables, or send data to a model.
514. Set disclosure thresholds before producing tables.
525. Record provenance, data cut date, population, exclusions, missingness, and transformations.
54The scripts cap file size, groups, rows, and text length. They reject URL-like paths and common row-level keys. These controls reduce accidental misuse; they are not a privacy determination.

Data Gate

Before any script:

  1. Have the responsible human reviewer confirm and document that input is synthetic or aggregate. Scripts cannot establish this from field names or declared metadata.
  2. Reject patient rows, records, narratives, identifiers, free text, dates tied to people, images, waveforms, or genomic sequences.
  3. Keep source files local. Do not fetch URLs, call APIs, read environment variables, or send data to a model.
  4. Set disclosure thresholds before producing tables.
  5. Record provenance, data cut date, population, exclusions, missingness, and transformations.

The scripts cap file size, groups, rows, and text length. They reject URL-like paths and common row-level keys. These controls reduce accidental misuse; they are not a privacy determination.

Raw lines 44 to 55
56## Required Artifact Header
58Every artifact must visibly include:
60- `artifact_type`, title, version, status, owner, date, and change summary;
61- intended purpose, intended users, aggregate population scope, and decision role;
62- all prohibited uses from the hard boundary;
63- data level and confirmation that no PHI or raw rows were supplied;
64- limitations, uncertainty, and foreseeable failure modes;
65- external-validation and subgroup applicability status;
66- human-review roles, completion status, and approval boundary;
67- source citations with versions or dates;
68- monitoring, change-control, retirement, and audit expectations;
69- the statement: **Not for patient care or live clinical use.**

Required Artifact Header

Every artifact must visibly include:

  • artifact_type, title, version, status, owner, date, and change summary;
  • intended purpose, intended users, aggregate population scope, and decision role;
  • all prohibited uses from the hard boundary;
  • data level and confirmation that no PHI or raw rows were supplied;
  • limitations, uncertainty, and foreseeable failure modes;
  • external-validation and subgroup applicability status;
  • human-review roles, completion status, and approval boundary;
  • source citations with versions or dates;
  • monitoring, change-control, retirement, and audit expectations;
  • the statement: Not for patient care or live clinical use.

Start from assets/artifact_intended_use_template.json.

Raw lines 56 to 72
73## Workflow
75### 1. Frame the Research Question
77- Define the estimand or evaluation target before viewing results.
78- Distinguish descriptive, prognostic, predictive, diagnostic-accuracy, and causal questions.
79- Pre-specify outcomes, time origin, horizon, subgroups, cut points, missing-data handling, multiplicity, and sensitivity analyses.
80- Separate exploratory findings from confirmatory analyses.

1. Frame the Research Question

  • Define the estimand or evaluation target before viewing results.
  • Distinguish descriptive, prognostic, predictive, diagnostic-accuracy, and causal questions.
  • Pre-specify outcomes, time origin, horizon, subgroups, cut points, missing-data handling, multiplicity, and sensitivity analyses.
  • Separate exploratory findings from confirmatory analyses.
Raw lines 75 to 81
94### 3. Run Locally
96All helpers are dependency-free. Run the following commands from the skill directory:
98```bash
99python3 scripts/validate_cds_artifact.py --help
100python3 scripts/evidence_profile_check.py --help
101python3 scripts/model_biomarker_evaluation.py --help
102python3 scripts/cohort_table_generator.py --help
103python3 scripts/survival_plan_validator.py --help
104python3 scripts/decision_logic_traceability.py --help
105python3 scripts/deidentification_checklist.py --help
106```
108Write outputs only to a reviewed local directory. Never place generated reports in an EHR, alerting system, clinical portal, or device workflow.

3. Run Locally

All helpers are dependency-free. Run the following commands from the skill directory:

python3 scripts/validate_cds_artifact.py --help
python3 scripts/evidence_profile_check.py --help
python3 scripts/model_biomarker_evaluation.py --help
python3 scripts/cohort_table_generator.py --help
python3 scripts/survival_plan_validator.py --help
python3 scripts/decision_logic_traceability.py --help
python3 scripts/deidentification_checklist.py --help

Write outputs only to a reviewed local directory. Never place generated reports in an EHR, alerting system, clinical portal, or device workflow.

Raw lines 94 to 109
Runs code python3 scripts/validate_cds_artifact.py :99
Runs code python3 scripts/evidence_profile_check.py :100
Runs code python3 scripts/model_biomarker_evaluation.py :101
Runs code python3 scripts/cohort_table_generator.py :102
Runs code python3 scripts/survival_plan_validator.py :103
Runs code python3 scripts/decision_logic_traceability.py :104
Runs code python3 scripts/deidentification_checklist.py :105
110### 4. Human Review
112Require review proportionate to the artifact:
114- methodologist/statistician for design and analysis;
115- domain expert for clinical-scientific context;
116- privacy officer or qualified expert for disclosure decisions;
117- regulatory or legal counsel for jurisdiction-specific interpretations;
118- human-factors specialist for user studies;
119- authorized governance owner for release and change control.
121Script success means only that declared fields and internal consistency checks passed.

4. Human Review

Require review proportionate to the artifact:

  • methodologist/statistician for design and analysis;
  • domain expert for clinical-scientific context;
  • privacy officer or qualified expert for disclosure decisions;
  • regulatory or legal counsel for jurisdiction-specific interpretations;
  • human-factors specialist for user studies;
  • authorized governance owner for release and change control.

Script success means only that declared fields and internal consistency checks passed.

Raw lines 110 to 122
123## GRADE Evidence Profiles
125Do not infer a certainty rating from article text, study design alone, p-values, or keywords. Do not use the legacy `1A/2B` shorthand as if it were universal GRADE output.
127For each important outcome, a human panel must document:
129- risk of bias;
130- inconsistency;
131- indirectness;
132- imprecision;
133- dissemination/publication bias;
134- any applicable upgrading considerations;
135- effect estimate and uncertainty;
136- rationale and source IDs for every judgment;
137- final certainty judgment and named review role.
139The checker validates completeness and citation links only. It never calculates certainty or recommendation strength. See `references/evidence_profiles.md`.

GRADE Evidence Profiles

Do not infer a certainty rating from article text, study design alone, p-values, or keywords. Do not use the legacy 1A/2B shorthand as if it were universal GRADE output.

For each important outcome, a human panel must document:

  • risk of bias;
  • inconsistency;
  • indirectness;
  • imprecision;
  • dissemination/publication bias;
  • any applicable upgrading considerations;
  • effect estimate and uncertainty;
  • rationale and source IDs for every judgment;
  • final certainty judgment and named review role.

The checker validates completeness and citation links only. It never calculates certainty or recommendation strength. See references/evidence_profiles.md.

Raw lines 123 to 140
141## Aggregate Model and Biomarker Evaluation
143Do not derive thresholds, assign molecular or disease classes, match therapies, or emit person-level predictions.
145The evaluator accepts only aggregate confusion counts and calibration bins. Undefined proportions are `null`; balanced accuracy is `null` when either observed outcome class is absent. Invalid inputs produce diagnostics without partial evaluation results. It reports bounded descriptive metrics with Wilson intervals, calibration gaps, subgroup differences, and explicit suppression. It does not determine fairness, clinical utility, or fitness for use. Require:
147- locked model/assay/version and pre-specified threshold provenance;
148- representative internal validation and independent external validation;
149- calibration and discrimination appropriate to the target;
150- sampling design and prevalence: predictive values and calibration from an enriched or case-control sample describe that sample, not automatically the intended-use population. Document any independently justified weighting or prevalence adjustment supplied by the statistician; do not infer population predictive values from raw selected-sample counts;
151- subgroup performance with uncertainty and sample sizes;
152- missingness, spectrum/selection bias, dataset shift, and assay variability;
153- human-factors and prospective evaluation where relevant;
154- monitoring, change control, rollback, and retirement criteria.

Aggregate Model and Biomarker Evaluation

Do not derive thresholds, assign molecular or disease classes, match therapies, or emit person-level predictions.

The evaluator accepts only aggregate confusion counts and calibration bins. Undefined proportions are null; balanced accuracy is null when either observed outcome class is absent. Invalid inputs produce diagnostics without partial evaluation results. It reports bounded descriptive metrics with Wilson intervals, calibration gaps, subgroup differences, and explicit suppression. It does not determine fairness, clinical utility, or fitness for use. Require:

  • locked model/assay/version and pre-specified threshold provenance;
  • representative internal validation and independent external validation;
  • calibration and discrimination appropriate to the target;
  • sampling design and prevalence: predictive values and calibration from an enriched or case-control sample describe that sample, not automatically the intended-use population. Document any independently justified weighting or prevalence adjustment supplied by the statistician; do not infer population predictive values from raw selected-sample counts;
  • subgroup performance with uncertainty and sample sizes;
  • missingness, spectrum/selection bias, dataset shift, and assay variability;
  • human-factors and prospective evaluation where relevant;
  • monitoring, change control, rollback, and retirement criteria.

See references/model_biomarker_evaluation.md.

Raw lines 141 to 157
158## Cohort Tables
160Use aggregate cells only. Do not provide row-level data to the generator.
162- Choose the minimum cell threshold under an approved disclosure policy.
163- Apply primary and complementary suppression.
164- Report denominators and missingness.
165- Avoid baseline significance testing as a balance diagnostic.
166- Label adjusted, unadjusted, pre-specified, and exploratory results.
167- Do not interpret association as causation or clinical actionability.
169The default threshold is an operational safeguard, not a HIPAA rule or guarantee. See `references/cohort_evaluation.md` and `references/privacy_and_disclosure.md`.

Cohort Tables

Use aggregate cells only. Do not provide row-level data to the generator.

  • Choose the minimum cell threshold under an approved disclosure policy.
  • Apply primary and complementary suppression.
  • Report denominators and missingness.
  • Avoid baseline significance testing as a balance diagnostic.
  • Label adjusted, unadjusted, pre-specified, and exploratory results.
  • Do not interpret association as causation or clinical actionability.

The default threshold is an operational safeguard, not a HIPAA rule or guarantee. See references/cohort_evaluation.md and references/privacy_and_disclosure.md.

Raw lines 158 to 170
171## Survival Plans
173Define time zero, event, competing events, censoring, intercurrent events, estimand, horizon, effect measure, and analysis population together.
175- Assess proportional hazards before treating a hazard ratio as constant.
176- Pre-specify alternatives such as time-varying effects or restricted mean survival time.
177- Use cumulative-incidence methods when competing events matter.
178- Address immortal-time, informative-censoring, delayed-entry, missing-data, and multiplicity risks.
179- Include sensitivity analyses and uncertainty, not only p-values.
181The bundled helper validates a plan; it does not analyze survival data. See `references/survival_analysis.md`.

Survival Plans

Define time zero, event, competing events, censoring, intercurrent events, estimand, horizon, effect measure, and analysis population together.

  • Assess proportional hazards before treating a hazard ratio as constant.
  • Pre-specify alternatives such as time-varying effects or restricted mean survival time.
  • Use cumulative-incidence methods when competing events matter.
  • Address immortal-time, informative-censoring, delayed-entry, missing-data, and multiplicity risks.
  • Include sensitivity analyses and uncertainty, not only p-values.

The bundled helper validates a plan; it does not analyze survival data. See references/survival_analysis.md.

Raw lines 171 to 182
183## Decision Logic
185Only document research or governance logic, such as evidence inclusion, validation gates, release holds, and human-review checkpoints. Each node must link to source IDs, tests, owner, version, and status.
187Do not encode care pathways, urgency, medication actions, diagnostic rules, alarms, or patient-facing outputs. See `references/decision_logic_traceability.md`.

Decision Logic

Only document research or governance logic, such as evidence inclusion, validation gates, release holds, and human-review checkpoints. Each node must link to source IDs, tests, owner, version, and status.

Do not encode care pathways, urgency, medication actions, diagnostic rules, alarms, or patient-facing outputs. See references/decision_logic_traceability.md.

Raw lines 183 to 188
189## Privacy and De-identification
191The HHS methods are Expert Determination and Safe Harbor. A checklist cannot perform either method by itself. Do not claim that removing a list of fields, hashing identifiers, using a minimum cell size, or passing this script proves de-identification or HIPAA compliance.
193The helper inventories documented human work. It never reads a dataset. Escalate unresolved items, free text, dates, geography, rare combinations, linkage risk, genomics, and longitudinal patterns to qualified privacy review.

Privacy and De-identification

The HHS methods are Expert Determination and Safe Harbor. A checklist cannot perform either method by itself. Do not claim that removing a list of fields, hashing identifiers, using a minimum cell size, or passing this script proves de-identification or HIPAA compliance.

The helper inventories documented human work. It never reads a dataset. Escalate unresolved items, free text, dates, geography, rare combinations, linkage risk, genomics, and longitudinal patterns to qualified privacy review.

Raw lines 189 to 194
195## Reporting-Guideline Selection
197- Cohort/case-control/cross-sectional: STROBE; add RECORD for routinely collected data.
198- Prediction model development/evaluation: TRIPOD+AI and PROBAST+AI; use TRIPOD-LLM for LLM-specific research reporting.
199- Tumor prognostic marker study: REMARK.
200- AI diagnostic accuracy: STARD-AI with STARD.
201- AI trial protocol: SPIRIT-AI with the current SPIRIT base statement.
202- AI randomized trial report: CONSORT-AI with the current CONSORT base statement.
203- Early live AI evaluation: DECIDE-AI—but live evaluation is outside this skill's execution scope.
205These are reporting or appraisal tools, not automatic quality scores. See `references/study_reporting.md`.

Reporting-Guideline Selection

  • Cohort/case-control/cross-sectional: STROBE; add RECORD for routinely collected data.
  • Prediction model development/evaluation: TRIPOD+AI and PROBAST+AI; use TRIPOD-LLM for LLM-specific research reporting.
  • Tumor prognostic marker study: REMARK.
  • AI diagnostic accuracy: STARD-AI with STARD.
  • AI trial protocol: SPIRIT-AI with the current SPIRIT base statement.
  • AI randomized trial report: CONSORT-AI with the current CONSORT base statement.
  • Early live AI evaluation: DECIDE-AI—but live evaluation is outside this skill's execution scope.

These are reporting or appraisal tools, not automatic quality scores. See references/study_reporting.md.

Raw lines 195 to 206
207## Regulatory and Governance Context
209FDA device status turns on intended use and function, not a document label. FDA's January 2026 CDS guidance distinguishes certain non-device CDS functions from device software functions; its examples are not a self-certification checklist. ONC HTI-1 requirements apply within the defined certification scope. ICH E6(R3) and E9/E9(R1) inform trial governance and statistical planning but do not make an artifact compliant.
211Use `references/regulatory_and_governance.md` for dated context. Obtain qualified advice for an actual product, study, submission, deployment, or jurisdiction.

Regulatory and Governance Context

FDA device status turns on intended use and function, not a document label. FDA's January 2026 CDS guidance distinguishes certain non-device CDS functions from device software functions; its examples are not a self-certification checklist. ONC HTI-1 requirements apply within the defined certification scope. ICH E6(R3) and E9/E9(R1) inform trial governance and statistical planning but do not make an artifact compliant.

Use references/regulatory_and_governance.md for dated context. Obtain qualified advice for an actual product, study, submission, deployment, or jurisdiction.

Raw lines 207 to 212
213## Verification
215Run the test suite from the repository root (pytest loads the shared CLI contract):
217```bash
218uv run --with pytest python -m pytest tests/clinical-decision-support -q
219python tests/run_all.py --isolated clinical-decision-support
220```
222From the skill directory, run AST compilation without bytecode:
224```bash
225python3 -c "import ast,pathlib; [ast.parse(p.read_text()) for p in pathlib.Path('scripts').glob('*.py')]"
226```

Verification

Run the test suite from the repository root (pytest loads the shared CLI contract):

uv run --with pytest python -m pytest tests/clinical-decision-support -q
python tests/run_all.py --isolated clinical-decision-support

From the skill directory, run AST compilation without bytecode:

python3 -c "import ast,pathlib; [ast.parse(p.read_text()) for p in pathlib.Path('scripts').glob('*.py')]"
Raw lines 213 to 227
Runs code python tests/run_all.py :219
228## Reference Map
230- `references/README.md` — scope and navigation
231- `references/safety_and_scope.md` — refusal and escalation rules
232- `references/regulatory_and_governance.md` — FDA, ONC, ICH context
233- `references/evidence_profiles.md` — human GRADE workflow
234- `references/study_reporting.md` — EQUATOR and PROBAST+AI selection
235- `references/cohort_evaluation.md` — aggregate cohort methods
236- `references/survival_analysis.md` — time-to-event planning
237- `references/model_biomarker_evaluation.md` — model/biomarker evaluation
238- `references/privacy_and_disclosure.md` — de-identification and suppression
240- `references/sources.md` — dated authoritative source ledger
241- `references/security_validation.md` — scan results and accepted LOW findings

Reference Map

Raw lines 228 to 242
Boilerplate, lines 243 to 258. The same text appears in 125 other files here. Close
243## Citing Scientific Agent Skills
245This skill is part of Scientific Agent Skills by K-Dense. If it materially contributed to a
246manuscript, report, presentation, or code release, add the paper to the references or
247software section and tell the user you did so:
249> Kassis, T., Agarwal, V., He, Y., Patel, D., & Brueckner, A. M. (2026). Scientific Agent
250> Skills: A Library of Procedural Knowledge for Research Agents. arXiv:2609.00065.
251> https://doi.org/10.48550/arXiv.2609.00065
253Always cite the current version. The DOI and https://arxiv.org/abs/2609.00065 resolve to the
254latest arXiv version, so never append a version suffix such as `v1`. When network access is
255available, fetch https://arxiv.org/abs/2609.00065 (or
256http://export.arxiv.org/api/query?id_list=2609.00065) before writing the reference and take
257the author list, year, and version from that record. If the record lists a journal reference
258or publisher DOI, cite the published version instead.

From K-Dense-AI/scientific-agent-skills at 5f2bc03, 2026-10-26. Not read by a model yet. Summary and techniques by Claude Opus 5.5 on 2026-11-06.