Skills ib-summarizer

Summarize core safety information from Investigator's Brochures for clinical

install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/aipoch-ai/ib-summarizer" ~/.claude/skills/openclaw-skills-ib-summarizer && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/aipoch-ai/ib-summarizer" ~/.openclaw/skills/openclaw-skills-ib-summarizer && rm -rf "$T"
manifest: skills/aipoch-ai/ib-summarizer/SKILL.md
source content

IB Summarizer

Description

Summarize core safety information from Investigator's Brochures (IB), helping clinical researchers quickly obtain key drug safety data.

Functions

  • Extract Core Safety Information (CSI) from IB documents
  • Identify and summarize:
    • Known Adverse Drug Reactions (ADRs) and their incidence rates
    • Contraindications
    • Warnings and Precautions
    • Drug Interactions
    • Special population precautions
    • Overdose Management
    • Important safety updates

Usage

python scripts/main.py <input_file> [options]

Parameters

ParameterTypeDefaultRequiredDescription
input_file
string-YesIB document path (PDF/Word/TXT)
-o, --output
stringstdoutNoOutput file path
-f, --format
stringmarkdownNoOutput format (json, markdown, text)
-l, --language
stringzhNoOutput language (zh, en)

Examples

# Basic usage
python scripts/main.py /path/to/IB.pdf

# Output to JSON file
python scripts/main.py /path/to/IB.pdf -o summary.json -f json

# English output
python scripts/main.py /path/to/IB.docx -l en -o summary.md

Output Structure

Markdown Format

# IB Safety Information Summary

## Basic Drug Information
- **Drug Name**: XXX
- **Version**: X.X
- **Date**: YYYY-MM-DD

## Core Safety Information

### Known Adverse Reactions
| System Organ Class | Adverse Reaction | Incidence | Severity |
|-------------|---------|--------|---------|
| ... | ... | ... | ... |

### Contraindications
- ...

### Warnings and Precautions
- ...

### Drug Interactions
- ...

### Special Populations
| Population | Precautions |
|-----|---------|
| Pregnant women | ... |
| Lactating women | ... |
| Children | ... |
| Elderly | ... |
| Hepatic/renal impairment | ... |

### Overdose
- Symptoms: ...
- Management: ...

### Safety Update History
| Version | Date | Update Content |
|-----|------|---------|
| ... | ... | ... |

JSON Format

{
  "drug_info": {
    "name": "Drug Name",
    "version": "Version Number",
    "date": "Date"
  },
  "core_safety_info": {
    "adverse_reactions": [...],
    "contraindications": [...],
    "warnings": [...],
    "drug_interactions": [...],
    "special_populations": {...},
    "overdose": {...},
    "safety_updates": [...]
  }
}

Dependencies

  • Python 3.8+
  • PyPDF2 / pdfplumber (PDF parsing)
  • python-docx (Word parsing)
  • Optional: openai / anthropic (for AI-enhanced extraction)

Installation

pip install -r requirements.txt

Notes

  1. Input documents should be readable PDF or Word format
  2. Scanned PDFs require OCR processing first
  3. For complex table structures, manual verification may be needed
  4. Information extracted by this tool is for reference only and does not constitute medical advice

Risk Assessment

Risk IndicatorAssessmentLevel
Code ExecutionPython/R scripts executed locallyMedium
Network AccessNo external API callsLow
File System AccessRead input files, write output filesMedium
Instruction TamperingStandard prompt guidelinesLow
Data ExposureOutput files saved to workspaceLow

Security Checklist

  • No hardcoded credentials or API keys
  • No unauthorized file system access (../)
  • Output does not expose sensitive information
  • Prompt injection protections in place
  • Input file paths validated (no ../ traversal)
  • Output directory restricted to workspace
  • Script execution in sandboxed environment
  • Error messages sanitized (no stack traces exposed)
  • Dependencies audited

Prerequisites

# Python dependencies
pip install -r requirements.txt

Evaluation Criteria

Success Metrics

  • Successfully executes main functionality
  • Output meets quality standards
  • Handles edge cases gracefully
  • Performance is acceptable

Test Cases

  1. Basic Functionality: Standard input → Expected output
  2. Edge Case: Invalid input → Graceful error handling
  3. Performance: Large dataset → Acceptable processing time

Lifecycle Status

  • Current Stage: Draft
  • Next Review Date: 2026-03-06
  • Known Issues: None
  • Planned Improvements:
    • Performance optimization
    • Additional feature support