Agent skill

clinical-research-pitfalls

Avoid common methodological mistakes in clinical research with MIMIC-IV and eICU databases. Covers immortal time bias, information leakage, selection bias, and other critical pitfalls.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill clinical-research-pitfalls --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 7 KB
Bundled scripts: none
Version: 1.0
Declared author: m4-clinical-extraction
Path: skills/analysis/clinical-research-pitfalls/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Clinical Research Pitfalls This skill documents common methodological mistakes in ICU database research and how to avoid them. These errors can invalidate study conclusions. ## When to Use This Skill - Designing research studies - Reviewing analysis plans - Debugging unexpected results - Peer review of methods ## 1. Immortal Time Bias ### Definition Time during which the outcome cannot occur, often because the exposure has not yet been assigned or identified. ### Common Mistake ```sql -- WRONG: Patients who "received Drug X during ICU stay" -- Survival bias: Must survive long enough to receive the drug SELECT stay_id FROM mimiciv_derived.antibiotic WHERE antibiotic LIKE '%vancomycin%'; ``` ### Correct Approach ```sql -- CORRECT: Define exposure at a fixed time point (e.g., first 24h) SELECT DISTINCT stay_id FROM mimiciv_derived.antibiotic ab INNER JOIN mimiciv_icu.icustays ie ON ab.stay_id = ie.stay_id WHERE ab.starttime <= DATETIME_ADD(ie.intime, INTERVAL 24 HOUR); ``` ### Key Principle - Define exposure status at a fixed time point (e.g., ICU admission, 24 hours, 48 hours) - Time zero should be the same for exposed and unexposed groups - Consider landmark analysis or time-varyi

What's inside
Steps it walks through
  1. When to Use This Skill
  2. 1. Immortal Time Bias
  3. Definition
  4. Common Mistake
  5. Correct Approach
  6. Key Principle
  7. 2. Information Leakage (Future Data)
  8. Common Sources of Leakage
  9. 3. Selection Bias
  10. Common Mistakes
  11. 4. Confounding by Indication
  12. Example
  13. Correct Approaches
  14. 5. Multiple Comparisons
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the clinical-research-pitfalls skill do?

Avoid common methodological mistakes in clinical research with MIMIC-IV and eICU databases. Covers immortal time bias, information leakage, selection bias, and other critical pitfalls.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill clinical-research-pitfalls --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going