← 返回 Skills 市场
aipoch-ai

Ib Summarizer

作者 AIpoch · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ 安全检测通过
138
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install ib-summarizer
功能描述
Summarize core safety information from Investigator's Brochures for clinical researchers
使用说明 (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

  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 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

  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
安全使用建议
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ib-summarizer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ib-summarizer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug ib-summarizer
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Ib Summarizer 是什么?

Summarize core safety information from Investigator's Brochures for clinical researchers. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 138 次。

如何安装 Ib Summarizer?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install ib-summarizer」即可一键安装,无需额外配置。

Ib Summarizer 是免费的吗?

是的,Ib Summarizer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Ib Summarizer 支持哪些平台?

Ib Summarizer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Ib Summarizer?

由 AIpoch(@aipoch-ai)开发并维护,当前版本 v0.1.0。

💬 留言讨论