← Back to Skills Marketplace
138
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install ib-summarizer
Description
Summarize core safety information from Investigator's Brochures for clinical researchers
README (SKILL.md)
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 \x3Cinput_file> [options]
Parameters
| Parameter | Type | Default | Required | Description |
|---|---|---|---|---|
input_file |
string | - | Yes | IB document path (PDF/Word/TXT) |
-o, --output |
string | stdout | No | Output file path |
-f, --format |
string | markdown | No | Output format (json, markdown, text) |
-l, --language |
string | zh | No | Output 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
- Input documents should be readable PDF or Word format
- Scanned PDFs require OCR processing first
- For complex table structures, manual verification may be needed
- Information extracted by this tool is for reference only and does not constitute medical advice
Risk Assessment
| Risk Indicator | Assessment | Level |
|---|---|---|
| Code Execution | Python/R scripts executed locally | Medium |
| Network Access | No external API calls | Low |
| File System Access | Read input files, write output files | Medium |
| Instruction Tampering | Standard prompt guidelines | Low |
| Data Exposure | Output files saved to workspace | Low |
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
- Basic Functionality: Standard input → Expected output
- Edge Case: Invalid input → Graceful error handling
- 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
Usage Guidance
This skill appears coherent for extracting safety info from IB documents, but before installing/running: (1) inspect the full scripts/main.py for any unshown code paths (the provided file was partially truncated in the prompt); (2) run it on non-sensitive sample documents first to verify behavior; (3) run in a sandbox or isolated environment because it reads arbitrary files you point it at; (4) if you plan to enable the optional OpenAI/Anthropic features, be aware that you will need to provide API keys and that introduces network calls and data-leak considerations; (5) validate that output summaries are checked by a qualified clinical reviewer before use — extracted content is for reference only and not medical advice.
Capability Assessment
Purpose & Capability
Name, description, SKILL.md, and scripts/main.py are consistent: the tool reads local PDF/DOCX/TXT, extracts safety-related sections, and builds summaries. Declared optional AI libraries (openai/anthropic) are listed as optional for 'AI-enhanced extraction' which is plausible but not required for core functionality.
Instruction Scope
SKILL.md instructs running the local Python script on an input file and writing outputs; that scope is appropriate. The checklist asks for path validation and sandboxing, but the provided code does not advertise explicit sandbox/OCR tooling (it punts OCR to the user). The script appears to read arbitrary files specified by the user — expected for this tool, but you should validate input-file handling and output paths before running on sensitive systems.
Install Mechanism
No install spec; dependencies are standard Python libraries installed via requirements.txt. There are no remote download URLs or extracted archives. Minor oddities: requirements.txt lists both 'docx' and 'python-docx' and includes 'dataclasses' although Python 3.8+ already provides dataclasses; these are bookkeeping issues rather than security risks.
Credentials
The skill requires no environment variables, no credentials, and no special config paths. The optional mention of openai/anthropic would introduce API keys if used, but those are optional and not required by the core script.
Persistence & Privilege
The skill is not always-enabled and does not request persistent system privileges or modify other skills. It operates as an invoked local script and does not require autonomous persistent presence.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install ib-summarizer - After installation, invoke the skill by name or use
/ib-summarizer - Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.0
Initial release of ib-summarizer for extracting core safety information from Investigator’s Brochures.
- Summarizes key safety sections including ADRs, contraindications, warnings, interactions, special populations, overdose, and safety updates.
- Supports input in PDF, Word, or text formats; outputs in markdown, JSON, or plain text.
- Enables language selection (Chinese or English) for summaries.
- Designed for clinical researchers to rapidly access structured drug safety data.
- Includes security checklist and requirements for local execution.
Metadata
Frequently Asked Questions
What is Ib Summarizer?
Summarize core safety information from Investigator's Brochures for clinical researchers. It is an AI Agent Skill for Claude Code / OpenClaw, with 138 downloads so far.
How do I install Ib Summarizer?
Run "/install ib-summarizer" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Ib Summarizer free?
Yes, Ib Summarizer is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Ib Summarizer support?
Ib Summarizer is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Ib Summarizer?
It is built and maintained by AIpoch (@aipoch-ai); the current version is v0.1.0.
More Skills