{"data":{"slug":"github-aipoch-medical-research-skills-scientific-skills-evidence-insight-ib-summarizer-90517577962f","title":"IB Safety Information Summarizer","summary":"Extract and summarize key safety data from Investigator's Brochures (IB) for clinical researchers, including adverse drug reactions, contraindications, and warnings. The tool generates structured safety reports in markdown, JSON, or text format.","url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-evidence-insight-ib-summarizer-90517577962f","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-aipoch-medical-research-skills-scientific-skills-evidence-insight-ib-summarizer-90517577962f","markdown_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-evidence-insight-ib-summarizer-90517577962f.md","download_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-evidence-insight-ib-summarizer-90517577962f\/download","category":{"slug":"data-research","name":"Data & Research"},"editor_note":"Ensure Python 3.8+ is installed and dependencies are installed via `pip install -r requirements.txt` before running the script. Confirm the input file path and output format before execution.","instructions":"---\nname: ib-summarizer\ndescription: Summarize core safety information from Investigator's Brochures for clinical.\nlicense: MIT\nauthor: AIPOCH\n---\n> **Source**: [https:\/\/github.com\/aipoch\/medical-research-skills](https:\/\/github.com\/aipoch\/medical-research-skills)\n\n# IB Summarizer\n\n## When to Use\n\n- Use this skill when the task is to Summarize core safety information from Investigator's Brochures for clinical.\n- Use this skill for evidence insight tasks that require explicit assumptions, bounded scope, and a reproducible output format.\n- Use this skill when you need a documented fallback path for missing inputs, execution errors, or partial evidence.\n\n## Key Features\n\n- Scope-focused workflow aligned to: Summarize core safety information from Investigator's Brochures for clinical.\n- Packaged executable path(s): `scripts\/main.py`.\n- Reference material available in `references\/` for task-specific guidance.\n- Structured execution path designed to keep outputs consistent and reviewable.\n\n## Dependencies\n\n- Python 3.8+\n- PyPDF2 \/ pdfplumber (PDF parsing)\n- python-docx (Word parsing)\n- Optional: openai \/ anthropic (for AI-enhanced extraction)\n\n## Example Usage\n\nSee `## Usage` above for related details.\n\n```bash\ncd \"20260318\/scientific-skills\/Evidence Insight\/ib-summarizer\"\npython -m py_compile scripts\/main.py\npython scripts\/main.py --help\n```\n\nExample run plan:\n1. Confirm the user input, output path, and any required config values.\n2. Edit the in-file `CONFIG` block or documented parameters if the script uses fixed settings.\n3. Run `python scripts\/main.py` with the validated inputs.\n4. Review the generated output and return the final artifact with any assumptions called out.\n\n## Implementation Details\n\nSee `## Workflow` above for related details.\n\n- Execution model: validate the request, choose the packaged workflow, and produce a bounded deliverable.\n- Input controls: confirm the source files, scope limits, output format, and acceptance criteria before running any script.\n- Primary implementation surface: `scripts\/main.py`.\n- Reference guidance: `references\/` contains supporting rules, prompts, or checklists.\n- Parameters to clarify first: input path, output path, scope filters, thresholds, and any domain-specific constraints.\n- Output discipline: keep results reproducible, identify assumptions explicitly, and avoid undocumented side effects.\n\n## Quick Check\n\nUse this command to verify that the packaged script entry point can be parsed before deeper execution.\n\n```bash\npython -m py_compile scripts\/main.py\n```\n\n## Audit-Ready Commands\n\nUse these concrete commands for validation. They are intentionally self-contained and avoid placeholder paths.\n\n```bash\npython -m py_compile scripts\/main.py\npython scripts\/main.py --help\n```\n\n## Workflow\n\n1. Confirm the user objective, required inputs, and non-negotiable constraints before doing detailed work.\n2. Validate that the request matches the documented scope and stop early if the task would require unsupported assumptions.\n3. Use the packaged script path or the documented reasoning path with only the inputs that are actually available.\n4. Return a structured result that separates assumptions, deliverables, risks, and unresolved items.\n5. If execution fails or inputs are incomplete, switch to the fallback path and state exactly what blocked full completion.\n\n## Description\n\nSummarize core safety information from Investigator's Brochures (IB), helping clinical researchers quickly obtain key drug safety data.\n\n## Functions\n\n- Extract Core Safety Information (CSI) from IB documents\n- Identify and summarize:\n  - Known Adverse Drug Reactions (ADRs) and their incidence rates\n  - Contraindications\n  - Warnings and Precautions\n  - Drug Interactions\n  - Special population precautions\n  - Overdose Management\n  - Important safety updates\n\n## Usage\n\n```text\npython scripts\/main.py <input_file> [options]\n```\n\n### Parameters\n\n| Parameter | Type | Default | Required | Description |\n|-----------|------|---------|----------|-------------|\n| `input_file` | string | - | Yes | IB document path (PDF\/Word\/TXT) |\n| `-o, --output` | string | stdout | No | Output file path |\n| `-f, --format` | string | markdown | No | Output format (json, markdown, text) |\n| `-l, --language` | string | zh | No | Output language (zh, en) |\n\n### Examples\n\n```text\n\n# Basic usage\npython scripts\/main.py \/path\/to\/IB.pdf\n\n# Output to JSON file\npython scripts\/main.py \/path\/to\/IB.pdf -o summary.json -f json\n\n# English output\npython scripts\/main.py \/path\/to\/IB.docx -l en -o summary.md\n```\n\n## Output Structure\n\n### Markdown Format\n\n```markdown\n\n# IB Safety Information Summary\n\n## Basic Drug Information\n- **Drug Name**: XXX\n- **Version**: X.X\n- **Date**: YYYY-MM-DD\n\n## Core Safety Information\n\n### Known Adverse Reactions\n| System Organ Class | Adverse Reaction | Incidence | Severity |\n|-------------|---------|--------|---------|\n| ... | ... | ... | ... |\n\n### Contraindications\n- ...\n\n### Warnings and Precautions\n- ...\n\n### Drug Interactions\n- ...\n\n### Special Populations\n| Population | Precautions |\n|-----|---------|\n| Pregnant women | ... |\n| Lactating women | ... |\n| Children | ... |\n| Elderly | ... |\n| Hepatic\/renal impairment | ... |\n\n### Overdose\n- Symptoms: ...\n- Management: ...\n\n### Safety Update History\n| Version | Date | Update Content |\n|-----|------|---------|\n| ... | ... | ... |\n```\n\n### JSON Format\n\n```json\n{\n  \"drug_info\": {\n    \"name\": \"Drug Name\",\n    \"version\": \"Version Number\",\n    \"date\": \"Date\"\n  },\n  \"core_safety_info\": {\n    \"adverse_reactions\": [...],\n    \"contraindications\": [...],\n    \"warnings\": [...],\n    \"drug_interactions\": [...],\n    \"special_populations\": {...},\n    \"overdose\": {...},\n    \"safety_updates\": [...]\n  }\n}\n```\n\n## Installation\n\n```text\npip install -r requirements.txt\n```\n\n## Notes\n\n1. Input documents should be readable PDF or Word format\n2. Scanned PDFs require OCR processing first\n3. For complex table structures, manual verification may be needed\n4. Information extracted by this tool is for reference only and does not constitute medical advice\n\n## Risk Assessment\n\n| Risk Indicator | Assessment | Level |\n|----------------|------------|-------|\n| Code Execution | Python\/R scripts executed locally | Medium |\n| Network Access | No external API calls | Low |\n| File System Access | Read input files, write output files | Medium |\n| Instruction Tampering | Standard prompt guidelines | Low |\n| Data Exposure | Output files saved to workspace | Low |\n\n## Security Checklist\n\n- [ ] No hardcoded credentials or API keys\n- [ ] No unauthorized file system access (..\/)\n- [ ] Output does not expose sensitive information\n- [ ] Prompt injection protections in place\n- [ ] Input file paths validated (no ..\/ traversal)\n- [ ] Output directory restricted to workspace\n- [ ] Script execution in sandboxed environment\n- [ ] Error messages sanitized (no stack traces exposed)\n- [ ] Dependencies audited\n\n## Prerequisites\n\n```text\n\n# Python dependencies\npip install -r requirements.txt\n```\n\n## Evaluation Criteria\n\n### Success Metrics\n- [ ] Successfully executes main functionality\n- [ ] Output meets quality standards\n- [ ] Handles edge cases gracefully\n- [ ] Performance is acceptable\n\n### Test Cases\n1. **Basic Functionality**: Standard input \u2192 Expected output\n2. **Edge Case**: Invalid input \u2192 Graceful error handling\n3. **Performance**: Large dataset \u2192 Acceptable processing time\n\n## Lifecycle Status\n\n- **Current Stage**: Draft\n- **Next Review Date**: 2026-03-06\n- **Known Issues**: None\n- **Planned Improvements**: \n  - Performance optimization\n  - Additional feature support\n\n## Output Requirements\n\nEvery final response should make these items explicit when they are relevant:\n\n- Objective or requested deliverable\n- Inputs used and assumptions introduced\n- Workflow or decision path\n- Core result, recommendation, or artifact\n- Constraints, risks, caveats, or validation needs\n- Unresolved items and next-step checks\n\n## Error Handling\n\n- If required inputs are missing, state exactly which fields are missing and request only the minimum additional information.\n- If the task goes outside the documented scope, stop instead of guessing or silently widening the assignment.\n- If `scripts\/main.py` fails, report the failure point, summarize what still can be completed safely, and provide a manual fallback.\n- Do not fabricate files, citations, data, search results, or execution outcomes.\n\n## Input Validation\n\nThis skill accepts requests that match the documented purpose of `ib-summarizer` and include enough context to complete the workflow safely.\n\nDo not continue the workflow when the request is out of scope, missing a critical input, or would require unsupported assumptions. Instead respond:\n\n> `ib-summarizer` only handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.\n\n## References\n\n- [references\/audit-reference.md](references\/audit-reference.md) - Supported scope, audit commands, and fallback boundaries\n\n## Response Template\n\nUse the following fixed structure for non-trivial requests:\n\n1. Objective\n2. Inputs Received\n3. Assumptions\n4. Workflow\n5. Deliverable\n6. Risks and Limits\n7. Next Checks\n\nIf the request is simple, you may compress the structure, but still keep assumptions and limits explicit when they affect correctness.\n","use_cases":["Summarize adverse drug reactions from clinical trial documents","Extract contraindications and warnings from IB files","Generate safety reports for drug development teams"],"limitations":[],"compatibility":[],"setup_tip":"```text\npip install -r requirements.txt\n```","sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/aipoch\/medical-research-skills\/blob\/686e09dfdb45d9fa1a08664f06bb93769b3c9d91\/scientific-skills\/Evidence%20Insight\/ib-summarizer\/SKILL.md","source_commit":"686e09dfdb45d9fa1a08664f06bb93769b3c9d91","license":"MIT","version":null,"listing_approved_at":"2026-11-26","created_at":"2026-11-24T12:49:10.000000Z","updated_at":"2026-11-26T09:24:51.000000Z","seo_title":"IB Safety Information Summarizer Tool","seo_description":"Extract and summarize key safety data from Investigator's Brochures for clinical researchers.","seo_keywords":["IB safety summary tool","clinical safety data extraction","drug adverse reaction summary","investigator brochure analysis","clinical research safety report"]}}