faers-multi-drug-soc-planner

Generates complete FAERS-based multi-drug single-SOC safety comparison research designs from a user-provided drug set, comparator, and adverse event domain. Always use this skill when users want to compare safety signals across multiple drugs using FAERS or OpenFDA data within one System Organ Class (SOC) or bounded AE domain. Trigger for:"FAERS study comparing drugs within one SOC", "publishable FAERS safety comparison paper", "compare neuropsychiatric adverse events across beta-blockers", "Lite/Standard/Advanced FAERS safety plans", "active-comparator restricted disproportionality", "adjusted ROR logistic regression FAERS", "within-class head-to-head drug comparison", "pharmacovigilance signal comparison", "single-SOC PT-level FAERS design", or any phrasing like "I want to compare drug X and drug Y for adverse events in FAERS" or "build a comparative pharmacovigilance paper". Always output four workload configurations (Lite / Standard / Advanced / Publication+) with a recommended primary plan, step-by-step workflow, figure plan, validation strategy, minimal executable version, and publication upgrade path.

53 stars

Best use case

faers-multi-drug-soc-planner is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Generates complete FAERS-based multi-drug single-SOC safety comparison research designs from a user-provided drug set, comparator, and adverse event domain. Always use this skill when users want to compare safety signals across multiple drugs using FAERS or OpenFDA data within one System Organ Class (SOC) or bounded AE domain. Trigger for:"FAERS study comparing drugs within one SOC", "publishable FAERS safety comparison paper", "compare neuropsychiatric adverse events across beta-blockers", "Lite/Standard/Advanced FAERS safety plans", "active-comparator restricted disproportionality", "adjusted ROR logistic regression FAERS", "within-class head-to-head drug comparison", "pharmacovigilance signal comparison", "single-SOC PT-level FAERS design", or any phrasing like "I want to compare drug X and drug Y for adverse events in FAERS" or "build a comparative pharmacovigilance paper". Always output four workload configurations (Lite / Standard / Advanced / Publication+) with a recommended primary plan, step-by-step workflow, figure plan, validation strategy, minimal executable version, and publication upgrade path.

Teams using faers-multi-drug-soc-planner should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/faers-multi-drug-soc-planner/SKILL.md --create-dirs "https://raw.githubusercontent.com/aipoch/medical-research-skills/main/scientific-skills/Protocol Design/faers-multi-drug-soc-planner/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/faers-multi-drug-soc-planner/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How faers-multi-drug-soc-planner Compares

Feature / Agentfaers-multi-drug-soc-plannerStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Generates complete FAERS-based multi-drug single-SOC safety comparison research designs from a user-provided drug set, comparator, and adverse event domain. Always use this skill when users want to compare safety signals across multiple drugs using FAERS or OpenFDA data within one System Organ Class (SOC) or bounded AE domain. Trigger for:"FAERS study comparing drugs within one SOC", "publishable FAERS safety comparison paper", "compare neuropsychiatric adverse events across beta-blockers", "Lite/Standard/Advanced FAERS safety plans", "active-comparator restricted disproportionality", "adjusted ROR logistic regression FAERS", "within-class head-to-head drug comparison", "pharmacovigilance signal comparison", "single-SOC PT-level FAERS design", or any phrasing like "I want to compare drug X and drug Y for adverse events in FAERS" or "build a comparative pharmacovigilance paper". Always output four workload configurations (Lite / Standard / Advanced / Publication+) with a recommended primary plan, step-by-step workflow, figure plan, validation strategy, minimal executable version, and publication upgrade path.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

> **Source**: [https://github.com/aipoch/medical-research-skills](https://github.com/aipoch/medical-research-skills)

# FAERS Multi-Drug Single-SOC Safety Comparison Research Planner

Generates a complete FAERS comparative pharmacovigilance study design from a user-provided drug set, comparator logic, and target SOC. Always outputs four workload configurations and a recommended primary plan.

## Supported Study Styles

- **A. Drug Class vs Active Comparator** — e.g., beta-blockers vs ACE inhibitors for psychiatric disorders
- **B. Within-Class Head-to-Head** — e.g., propranolol vs atenolol vs metoprolol for neuropsychiatric AEs
- **C. Single-SOC + Multi-PT Deepening** — SOC-level signal + clinically meaningful PT breakdown
- **D. Active-Comparator Restricted Disproportionality** — indication-restricted confounding control
- **E. Pharmacologic-Property Heterogeneity** — lipophilic vs hydrophilic, selective vs non-selective subgroups
- **F. Sensitivity-Analysis Strengthened Design** — post hoc indication adjustment, comparator robustness
- **G. Publication-Oriented Integrated Comparative Pharmacovigilance** — full pipeline with subgroup + PT + sensitivity

## Minimum User Input

- One drug or drug class + one comparator or comparator logic + one target SOC or AE domain

## Interface Contract

**Inputs:**
- `drug_set` — one or more drug names or a drug class (e.g., "beta-blockers", "propranolol, atenolol")
- `comparator` — active comparator drug or class (e.g., "ACE inhibitors", "lisinopril"); may be inferred if omitted
- `target_soc` — one MedDRA SOC or bounded AE domain (e.g., "Psychiatric disorders"); may be inferred if omitted
- `config_preference` *(optional)* — "Lite", "Standard", "Advanced", or "Publication+" to pre-select a plan

**Outputs:**
- Four-configuration comparison table (Lite / Standard / Advanced / Publication+)
- Recommended primary plan with justification
- Step-by-step workflow with module-level detail
- Figure plan and table plan
- Validation and robustness plan
- Risk review section
- Minimal executable version (2–3 week path)
- Publication upgrade path table

**Integration note:** Outputs are structured text plans suitable for handoff to data-analysis skills (R/Python pipeline generators) or academic-writing skills.

## Example Inputs

**Example A (Canonical within-class):**
> "Compare beta-blockers (propranolol, atenolol, metoprolol) vs lisinopril for psychiatric adverse events in FAERS. Give me all four configurations."

**Example B (Minimal executable):**
> "I need a quick 3-week FAERS study comparing fluoroquinolones vs beta-lactams for tendon adverse events. Minimal plan only."

## Step-by-Step Execution

### Step 1: Infer Study Type
Identify:
- Drug set and comparator set
- Target SOC and key PTs (if specified)
- Comparison type: class vs class, within-class, subgroup vs subgroup
- Whether active-comparator restricted disproportionality is justified (shared indication required)
- Whether PT-level deepening is central or supportive
- Whether pharmacologic subgroup contrast is biologically motivated
- Resource constraints: public OpenFDA only, raw FAERS, single SOC

### Step 2: Output Four Configurations

Always generate all four:

| Config | Goal | Timeframe | Best For |
|--------|------|-----------|----------|
| **Lite** | Crude + adjusted ROR, one SOC, one comparator | 2–4 weeks | Quick signal check, pilot |
| **Standard** | Full active-comparator design + PT deepening + within-class | 5–8 weeks | Core publishable paper |
| **Advanced** | Standard + pharmacologic subgroup + post hoc sensitivity + richer PT hierarchy | 8–13 weeks | Competitive journal target |
| **Publication+** | Advanced + alternate comparator robustness + richer figure logic + real-world validation suggestions | 12–18 weeks | High-impact submission |

For each configuration describe: goal, required data, major modules, expected workload, figure set, strengths, weaknesses.

### Step 3: Recommend One Primary Plan
Select the best-fit configuration and explain why given drug class biology, comparator suitability, SOC scope, and publication ambition.

### Step 4: Full Step-by-Step Workflow
For each step include: step name, purpose, input, method, key parameters/thresholds, expected output, failure points, alternative approaches.

**Core modules to address when relevant:**

**Data Access & Retrieval**
- OpenFDA API or FAERS quarterly JSON download
- Time-window definition (e.g., 2013–present or bounded period)
- Duplicate case handling (OpenFDA has partial deduplication; note if using raw FAERS)
- Justify OpenFDA vs raw FAERS based on preprocessing needs

**Data Quality Gate** *(apply before proceeding)*
- Minimum case count: require n ≥ 30 cases per drug group before proceeding; if n < 30, flag as underpowered and recommend expanding time window or broadening drug-name regex
- API failure fallback: if OpenFDA API is unavailable, use FAERS quarterly ASCII file downloads from FDA website (https://fis.fda.gov/extensions/FPD-QDE-FAERS/FPD-QDE-FAERS.html); provide download path in the plan
- Sparse indication fields: if indication completeness < 20% of cases, note in limitations and recommend (a) reporting complete cases only as sensitivity, or (b) using drug-class indication as proxy; do not treat sparse indication as grounds for abandoning comparator restriction
- Zero-case scenario: if a key PT returns 0 cases for one drug arm, flag as unanalyzable for that PT; remove from primary table but include in supplementary

**Drug Normalization & Case Cleaning**
- Regular-expression medicinal-product name normalization
- Mapping to generic names via RxNorm / ATC / OHDSI
- Role-code filtering: retain primarysuspect (`PS`) only; note `SS`/`C`/`I` exclusions
- Duplicate removal (patient + event + date logic)
- Output: clean drug-indexed case file with counts per drug

**Comparator Definition**
- Active comparator selection: shared therapeutic indication required
- Justify comparator by indication overlap; exclude classes with confounding concern
- Head-to-head within-class comparator logic if applicable
- Output: comparator group definition table with justification

**Outcome (SOC + PT) Definition**
- MedDRA SOC assignment (one primary SOC; optionally one adjacent SOC)
- PT list construction: select 5–12 clinically meaningful PTs within the SOC
- Broad SOC signal + specific PT deepening hierarchy
- Output: SOC/PT definition table with MedDRA codes

**Descriptive Case Characterization**
- Demographics: age (median/IQR), sex, weight, country, reporter type
- Indication summary, serious outcome counts
- Time-to-onset (TTO): median days from drug start to AE onset (if available)
- Output: Table 1 — case characteristics by drug group

**Crude ROR Analysis**
- 2×2 contingency table per drug per outcome (SOC and PT)
- ROR = (a/b) / (c/d); 95% CI via Woolf method
- Signal threshold: lower CI > 1.0 as primary; report all with CI
- Output: crude ROR table per drug per SOC/PT

**Adjusted ROR (Logistic Regression)**
- Logistic regression: outcome ~ drug_group + covariates
- Covariates: age, sex, weight, key comorbidities relevant to indication (e.g., hypertension, HF, AF for cardiovascular drugs)
- Reference: active comparator group as reference level
- Report aROR with 95% CI; compare crude vs adjusted
- Failure point: sparse cells for rare PTs → Firth penalized logistic or note instability

**Within-Class Head-to-Head Comparison**
- Pairwise drug comparisons within class (e.g., propranolol vs atenolol)
- Logistic model with one drug as reference
- Interpret directional consistency across PTs
- Note: for ≥ 4 pairwise comparisons, apply Bonferroni or FDR correction; report uncorrected and corrected results side by side

**Pharmacologic Subgroup Comparison** (Advanced+)
- Map each drug to pharmacologic property subgroup (e.g., lipophilic vs hydrophilic)
- Compare aROR distributions across subgroups
- Frame as hypothesis-supporting, not causal proof

**Sensitivity Analysis** (Standard+)
- Post hoc: add non-primary indication adjustment (e.g., migraine, anxiety for beta-blockers)
- Alternate comparator robustness: swap one comparator; check directional stability
- Role-code sensitivity: include SS cases and compare
- Output: sensitivity table alongside primary results

### Step 5: Figure Plan

| Figure | Content |
|--------|---------|
| Fig 1 | Overall workflow / study design schematic |
| Fig 2 | Case selection flowchart (CONSORT-style) |
| Fig 3 | SOC-level forest plot (aROR per drug vs comparator) |
| Fig 4 | PT-level forest plot (aROR per drug per key PT) |
| Fig 5 | Within-class head-to-head comparison figure |
| Fig 6 | Time-to-onset summary (violin or box) per drug group |
| Fig 7 | Sensitivity analysis comparison (primary vs sensitivity aROR) |
| Table 1 | Drug normalization + comparator definition |
| Table 2 | Descriptive case characteristics |
| Table 3 | Crude + adjusted ROR summary (SOC + PT) |
| Table 4 | Sensitivity analysis summary |

### Step 6: Validation and Robustness Plan

Distinguish clearly:
- **Data-cleaning robustness** — normalization consistency, duplicate handling, role-code restriction
- **Comparator robustness** — indication overlap validity, inappropriate comparator avoidance
- **Adjusted signal support** — crude vs adjusted ROR comparison; covariate transparency
- **Within-class heterogeneity evidence** — directional consistency across drugs and PTs
- **Sensitivity-analysis support** — stability of findings under alternate model specifications

State what each layer proves and what it does not prove:
- Disproportionality signal ≠ incidence estimate
- Adjusted ROR controls measured confounders, not unmeasured indication bias
- Active comparator reduces but does not eliminate confounding by indication
- PT-level signals are exploratory without multiplicity correction unless pre-specified

### Step 7: Risk Review

Always include a self-critical section addressing:
- Strongest part: active-comparator restriction + logistic adjustment
- Most assumption-dependent: completeness of indication fields in FAERS (often sparse)
- Most likely false-positive source: multiple PT comparisons without multiplicity correction
- Easiest to overinterpret: ROR as "risk" rather than "reporting proportion difference"
- Most likely reviewer criticisms: underreporting bias, notoriety bias, residual confounding by indication, drug-name misclassification, no external population-based validation
- Revision if findings fail: switch to PT-level primary outcome; restrict to highest-quality reporter types (HCP-only); expand covariate set

### Step 8: Minimal Executable Version

OpenFDA only, one drug class + one active comparator, one SOC, primary suspect restriction, drug normalization, crude + adjusted ROR, 3–5 key PTs, one summary table + one forest plot. 2–3 week timeline.

### Step 9: Publication Upgrade Path

| Addition | Publication Gain | Effort |
|----------|-----------------|--------|
| Add second active comparator | High (comparator robustness) | Low |
| Add within-class head-to-head | High (heterogeneity story) | Low–Medium |
| Add time-to-onset summary | Medium | Low |
| Add pharmacologic subgroup comparison | Medium (mechanistic framing) | Medium |
| Add post hoc sensitivity analysis | High (reviewer defense) | Low |
| Expand PT architecture to 10–12 PTs | Medium | Low |
| Add HCP-only reporter sensitivity restriction | Medium | Low |

## Hard Rules

1. Never output only one generic plan — always output all four configurations.
2. Always recommend one primary plan with justification.
3. Always separate necessary modules from optional modules.
4. Distinguish disproportionality evidence, adjusted signal support, heterogeneity evidence, and sensitivity support.
5. Never treat FAERS signals as incidence estimates — label as reporting disproportionality.
6. Never overclaim causal drug effects from disproportionality alone.
7. Do not force broad all-SOC scans when user clearly wants one SOC or narrow domain.
8. Do not ignore comparator suitability; flag if indication overlap is weak.
9. Do not ignore drug-name misclassification risk — always include normalization step.
10. If user provides limited detail, infer a reasonable default design and state assumptions clearly.

## Input Validation

This skill accepts: a drug set (one or more drugs or a drug class) + a comparator (or inferrable comparator) + a target SOC or AE domain, submitted for FAERS comparative pharmacovigilance study design.

**Out-of-scope response templates:**

*If the user provides only one drug with no comparator and no SOC:*
> "To design a FAERS comparative study, this skill needs at minimum: (1) a target drug or drug class, (2) a comparator, and (3) a target adverse event domain. I'll infer a reasonable comparator and SOC based on the drug's indication — please confirm or correct my assumptions before proceeding."

*If the user requests an all-SOC sweep or pan-MedDRA signal scan:*
> "This skill is designed for single-SOC comparative pharmacovigilance designs. An all-SOC disproportionality sweep is a different study type outside this scope. I can help you: (a) identify the highest-priority SOC for your drug and design a focused study there, or (b) describe how an all-SOC PRR/EBGM screen would differ methodologically. Which would be more useful?"

*If the user asks to frame FAERS disproportionality results as causal evidence without caveats:*
> "FAERS disproportionality analysis (ROR/PRR) cannot establish causality — it quantifies reporting proportion differences, not incidence or risk. This skill will always include appropriate epistemic caveats. I can design the strongest possible comparative pharmacovigilance study with active-comparator restriction and sensitivity analysis to maximize the evidentiary weight of the findings."

*If the request is unrelated to FAERS/pharmacovigilance study design:*
> "FAERS Multi-Drug SOC Planner is designed to generate comparative pharmacovigilance study designs using FAERS or OpenFDA data. Your request appears to be outside this scope. Please use a more appropriate tool for your task."

Related Skills

two-sample-mr-research-planner

53
from aipoch/medical-research-skills

Generates complete two-sample Mendelian randomization (MR) research designs from a user-provided research direction. Use when users want to design, plan, or build a study using two-sample MR to test causal relationships. Triggers:"design a two-sample MR study", "build a publishable MR paper", "test whether this biomarker causally affects this disease", "generate Lite/Standard/Advanced MR plans", "screen multiple exposures with MR", "bidirectional MR design", "causal inference using GWAS summary statistics", or "I want to study X and Y using MR". Always outputs four workload configurations (Lite / Standard / Advanced / Publication+) with a recommended primary plan, step-by-step workflow, figure plan, validation strategy, minimal executable version, and publication upgrade path.

non-tumor-ml-research-planner

53
from aipoch/medical-research-skills

Generates complete non-tumor biomedical machine learning research designs from a user-provided research direction. Always use this skill when users want to plan bioinformatics + ML papers for non-cancer diseases (metabolic, cardiovascular, kidney, inflammatory, autoimmune, infectious, neurological, endocrine, wound healing, chronic multifactor), design diagnostic biomarker studies, combine GEO datasets with feature selection and ML modeling, or generate Lite/Standard/Advanced/Publication+ workload plans. Trigger for:"non-tumor ML study", "bioinformatics paper outside oncology", "key genes and diagnostic model for a disease", "pyroptosis/ferroptosis/senescence/autophagy + disease", "GEO datasets + machine learning", "RF + LASSO diagnostic model", "DEG + feature selection + validation", "immune infiltration + biomarker", "non-cancer biomarker paper". Trigger even for casual phrasings like "I want to study X using machine learning", "help me design a non-tumor bioinformatics paper", or "how do I build a diagnostic model for disease Y".

network-tox-docking-research-planner

53
from aipoch/medical-research-skills

Generates complete network toxicology + molecular docking research designs from a user-provided toxicant and disease/phenotype. Always use this skill when users want to investigate how an environmental toxicant, endocrine disruptor, heavy metal, food contaminant, pharmaceutical residue, or consumer product chemical may contribute to a disease through shared molecular targets, hub genes, pathways, and docking evidence. Trigger for:"network toxicology study", "toxicology mechanism paper", "target prediction + PPI + docking", "environmental pollutant and disease mechanism", "hub genes and docking for toxicant", "Lite/Standard/Advanced toxicology plan", "CTD + SwissTargetPrediction + GeneCards + STRING", "CB-Dock2 docking study", "triclosan/BPA/cadmium/PFAS + disease". Also triggers for Chinese phrasings:"网络毒理学研究设计"、"毒物机制论文"、"靶点预测+PPI+对接"、"环境污染物与疾病机制". Trigger even for casual phrasings like "I want to study how chemical X affects disease Y" or "help me design a toxicology paper". Always output four workload configurations (Lite / Standard / Advanced / Publication+) with a recommended primary plan, step-by-step workflow, figure plan, validation strategy, minimal executable version, and publication upgrade path.

dual-disease-transcriptomic-ml-planner

53
from aipoch/medical-research-skills

Generates complete dual-disease transcriptomic + machine learning research designs from a user-provided disease pair. Use when users want to identify shared DEGs, common hub genes, cross-disease biomarkers, or shared molecular mechanisms between two diseases using public GEO data. Triggers:"shared biomarker study for two diseases", "dual-disease transcriptomic ML paper", "identify common DEGs between disease A and B", "cross-disease hub gene discovery", "shared DEG + PPI + ROC design", "immune infiltration shared biomarker", or "I want to study disease X and Y together". Always outputs four workload configurations (Lite / Standard / Advanced / Publication+) with a recommended primary plan, step-by-step workflow, figure plan, validation strategy, minimal executable version, and publication upgrade path.

time-zone-planner

53
from aipoch/medical-research-skills

Plan cross-time-zone meeting windows for distributed teams, providing region-by-region local time mappings and tradeoff analysis for scheduling decisions.

multi-source-news-writer

53
from aipoch/medical-research-skills

Integrates multiple news sources into a single, cohesive press release using an inverted pyramid structure and AP style. Use when you have raw news content and a topic, and need a professional press release.

multi-panel-figure-assembler

53
from aipoch/medical-research-skills

Assemble 6 sub-figures (A–F) into a high-resolution composite figure with consistent labels, padding, and publication-ready DPI.

drugbank-database

53
from aipoch/medical-research-skills

Programmatic access to DrugBank drug and target data; use when you need to download, parse, and analyze DrugBank XML for properties, interactions, pathways, and pharmacology.

drug-interaction-checker

53
from aipoch/medical-research-skills

Check for interactions between multiple medications, including severity classification and mechanism explanations.

torchdrug-english

53
from aipoch/medical-research-skills

PyTorch-native Graph Neural Network framework for molecules and proteins. Suitable for building custom GNN architectures for drug discovery, protein modeling, or knowledge graph reasoning. Best for custom model development, protein property prediction, and retrosynthesis. If you need pretrained models and diverse feature extractors, use deepchem; if you need benchmark datasets, use pytdc.

poster-layout-planner

53
from aipoch/medical-research-skills

Use poster layout planner for other workflows that need structured execution, explicit assumptions, and clear output boundaries.

treatment-response-predictor-planner

53
from aipoch/medical-research-skills

Designs studies for predicting treatment response or resistance in biomedical and clinical research. Always use this skill when the user needs a treatment-response or resistance prediction study blueprint rather than a prognostic biomarker protocol, diagnostic test design, causal treatment-effect estimation, or a completed manuscript. Focus on responder definition, treatment context, baseline comparability, feature integration strategy, model development logic, validation architecture, and interpretation boundaries. Do not invent response rates, cohort size, assay readiness, regimen uniformity, literature support, or validation access.