Install
openclaw skills install faers-multi-drug-soc-plannerGenerates four-tiered FAERS multi-drug single-SOC comparative safety study designs with workflows, validation, and publication plans from user-specified drug...
openclaw skills install faers-multi-drug-soc-plannerGenerates 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.
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 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."
Identify:
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.
Select the best-fit configuration and explain why given drug class biology, comparator suitability, SOC scope, and publication ambition.
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+)
| 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 |
Distinguish clearly:
State what each layer proves and what it does not prove:
Always include a self-critical section addressing:
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.
| 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 |
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."