Faers Multi Drug Soc Planner
by @aipoch-ai
Generates four-tier FAERS study designs comparing user-specified drugs within one SOC for multi-drug safety signal analysis, including workflows and publicat...
clawhub install faers-multi-drug-soc-planner-1π About This Skill
name: faers-multi-drug-soc-planner description: 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. license: MIT skill-author: AIPOCH
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
Minimum User Input
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 omittedtarget_soc β one MedDRA SOC or bounded AE domain (e.g., "Psychiatric disorders"); may be inferred if omittedconfig_preference *(optional)* β "Lite", "Standard", "Advanced", or "Publication+" to pre-select a planOutputs:
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: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
Data Quality Gate *(apply before proceeding)*
Drug Normalization & Case Cleaning
PS) only; note SS/C/I exclusionsComparator Definition
Outcome (SOC + PT) Definition
Descriptive Case Characterization
Crude ROR Analysis
Adjusted ROR (Logistic Regression)
Within-Class Head-to-Head Comparison
Pharmacologic Subgroup Comparison (Advanced+)
Sensitivity Analysis (Standard+)
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:
State what each layer proves and what it does not prove:
Step 7: Risk Review
Always include a self-critical section addressing:
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."