Faers multi drug soc planner

From aipoch/medical-research-skills · View interactive version

Faers multi drug soc planner is an AI agent skill from the GitHub repository aipoch/medical-research-skills. 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

How to use this skill

Skill file

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

Minimum User Input

Interface Contract

Inputs:

Outputs:

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

Comparator 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."

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.