Study design scale selector

From aipoch/medical-research-skills · View interactive version

Study design scale selector is an AI agent skill from the GitHub repository aipoch/medical-research-skills. Determines the appropriate Risk of Bias assessment scale for a medical study based on its design (RCT, Cohort, etc.), using PubMed metadata lookup or text analysis. Use when the user wants to know which quality assessment tool to use for a specific paper (given PMID or abstract).

How to use this skill

Skill file

Source: https://github.com/aipoch/medical-research-skills

Study Design Scale Selector

This skill helps identify the study design of a medical paper and selects the appropriate risk of bias assessment scale.

When to Use

Key Features

Dependencies

Example Usage

cd "20260316/scientific-skills/Data Analytics/study-design-scale-selector"
python -m py_compile scripts/extract_pdf.py
python scripts/extract_pdf.py --help

Example run plan:

  1. Confirm the user input, output path, and any required config values.
  2. Edit the in-file CONFIG block or documented parameters if the script uses fixed settings.
  3. Run python scripts/extract_pdf.py with the validated inputs.
  4. Review the generated output and return the final artifact with any assumptions called out.

Implementation Details

See ## Workflow above for related details.

Workflow

1. Check Metadata (If PMID provided)

If the user provides a PMID, use the selector.py script to fetch study metadata from PubMed.

python scripts/selector.py "<PMID>"

If the script returns a non-empty JSON with study_design:

If the script returns empty JSON {} or fails:

2. Analyze Text (Fallback)

If metadata is unavailable or no PMID is provided, analyze the Title and Abstract provided by the user.

Action:

Identify the study design from the text. Look for keywords like:

3. Select Scale

Using the identified study_design, consult scale_rules.md to select the correct assessment scale.

4. Output

Present the result in the following JSON format:

{
  "study_design": "<Identified Design>",
  "scale": "<Selected Scale>"
}

Helper Scripts

PDF Text Extraction

When the user provides a PDF file path, use extract_pdf.py to extract the text content before assessment:

When Not to Use

Required Inputs

Output Contract

Validation and Safety Rules

Failure Handling

Quick Validation

Run this minimal verification path before full execution when possible:

python scripts/extract_pdf.py --help

Expected output format:

Result file: study_design_scale_selector_result.md
Validation summary: PASS/FAIL with brief notes
Assumptions: explicit list if any
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.