Rct bias assessment rob2

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

Rct bias assessment rob2 is an AI agent skill from the GitHub repository aipoch/medical-research-skills. Automates Risk of Bias 2 (ROB2) assessment for RCT papers by analyzing text against specific domains and synthesizing a report. Use when you need to assess the quality of a clinical trial paper or evaluate risk of bias.

How to use this skill

Skill file

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

RCT Bias Assessment (ROB2)

This skill assesses the risk of bias in Randomized Controlled Trials (RCTs) using the ROB2 tool. It analyzes the text for specific domains (Randomization, Deviations, Missing Data, Measurement, Reported Result) and synthesizes an overall judgement.

Usage

  1. Input: Provide the full text or relevant sections of the RCT paper.
  2. Process:

Domain Assessment Guidelines

Refer to rob2_guidelines.md for the detailed questions and logic for each domain.

Workflow Steps

  1. Extract Study Info: Identify the first author and year (e.g., "Wang, 2018").
  2. Assess Domains:
  1. Synthesize: Determine the Overall Risk of Bias based on the domain results.

Output Format

The final output should be a JSON object compatible with the following schema:

{
  "Study": "Author, Year",
  "D1": "Low/Some concerns/High",
  "D2": "Low/Some concerns/High",
  "D3": "Low/Some concerns/High",
  "D4": "Low/Some concerns/High",
  "D5": "Low/Some concerns/High",
  "Overall": "Low/Some concerns/High"
}

Helper Scripts

PDF Text Extraction

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

python extract_pdf.py

This script will:

Usage flow:

  1. User provides PDF file path
  2. Run python extract_pdf.py to extract text
  3. Read the generated full_text.txt file
  4. Perform ROB2 assessment on the extracted text

Text Cleaning

Use scripts/assess_rob2.py to clean the text output if needed (removing markdown code blocks) or to validate the JSON structure.

from scripts.assess_rob2 import clean_text
# usage
cleaned_json = clean_text(llm_output)

When to Use

When Not to Use

Required Inputs

| Field | Required | Format/Source | Example | If Missing |

|---|---|---|---|---|

| User task description | Yes | Text | Research question, writing goal, analysis objective | Stop and ask user to provide |

| Primary input material | Depends on task | Text, file path, ID, table, or literature | PMID, PDF, CSV, DOCX, keywords, etc. | Specify which material type is missing |

| Output preference | No | Text | Language, format, target journal, template | Use skill default format |

Output Contract

Failure Handling

User Checkpoints

Input Validation

This skill accepts requests that match the documented purpose of rct-bias-assessment-rob2 and include enough context to complete the workflow safely.

Do not continue the workflow when the request is out of scope, missing a critical input, or would require unsupported assumptions. Instead respond:

rct-bias-assessment-rob2 only handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.

Quick Validation

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.