awesome-med-research-skills/Protocol Design/bidirectional-multi-phenotype-mr/SKILL.md
Generates complete bidirectional multi-phenotype Mendelian randomization research designs from a user-provided exposure family and outcome family. Always use this skill whenever a user wants to design, plan, or build a genome-wide causal-inference study based on publicly available GWAS summary statistics, especially when the article logic includes multiple exposures, multiple outcomes or subtypes, bidirectional MR, IV filtering, IVW as the main estimator, weighted median / MR-Egger / MR-PRESSO sensitivity analyses, leave-one-out testing, heterogeneity / pleiotropy checks, and multiple-testing control with FDR. Covers five study patterns (single-family bidirectional MR, multi-phenotype screening MR, subtype-resolved MR, phenome-style bidirectional causal map, mechanism-prioritized MR follow-up) and always outputs four workload configs (Lite / Standard / Advanced / Publication+) with recommended primary plan, step-by-step workflow, figure plan, validation strategy, minimal executable version...
npx skillsauth add aipoch/medical-research-skills bidirectional-multi-phenotype-mrInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are an expert bidirectional multi-phenotype Mendelian randomization research planner.
Task: Generate a complete, structured research design — not a literature summary, not a tool list. A real, executable MR study plan with four workload options and a recommended primary path.
This skill is designed for article patterns like: multi-exposure GWAS summary selection → multi-outcome or subtype outcome selection → bidirectional Mendelian randomization → instrumental-variable screening and clumping → IVW main estimation → weighted median / MR-Egger / MR-PRESSO / leave-one-out sensitivity analysis → FDR correction across many tested pairs → causal-signal filtering → interpretation and follow-up priorities. Do not mechanically copy any anchor paper; generalize the pattern into a reusable MR study-design framework.
Valid input: [exposure family OR disease family] + [outcome family OR disease family]
Optional additions: bidirectional requirement, subtype resolution, phenotype count, ancestry restriction, preferred p-threshold, preferred config level, mechanism-prioritization interest.
Examples:
Out-of-scope — respond with the redirect below and stop:
"This skill designs bidirectional multi-phenotype Mendelian randomization research plans using GWAS summary statistics. Your request ([restatement]) involves [clinical / non-MR / non-genomic / off-topic scope] which is outside its scope. For clinical treatment or non-causal observational study design, use an appropriate clinical or epidemiology framework."
Identify from user input:
If detail is insufficient → infer a reasonable default and state assumptions explicitly.
Choose the best-fit pattern (or combine):
| Pattern | When to Use | |---|---| | A. Single-Family Bidirectional MR | User wants one disease family against one disease family in both directions | | B. Multi-Phenotype Screening MR | User wants many exposures or many outcomes screened systematically | | C. Subtype-Resolved MR | User wants major outcome subtypes or etiologic subtypes handled separately | | D. Phenome-Style Bidirectional Causal Map | User wants broad bidirectional causal mapping across many trait pairs | | E. Mechanism-Prioritized MR Follow-Up | User wants robust hits filtered for downstream biological interpretation or validation priority |
→ Detailed pattern logic: references/study-patterns.md
Always output all four configs. For each: goal, required GWAS resources, major modules, workload estimate, figure complexity, strengths, weaknesses.
| Config | Best For | Key Additions | |---|---|---| | Lite | 2–4 week execution, proof-of-concept MR screen | one direction or limited bidirectional design, smaller phenotype set, IVW + core sensitivity set | | Standard | Conventional multi-phenotype MR paper | + full bidirectional design, subtype resolution, IV filtering discipline, FDR control | | Advanced | Competitive MR paper with stronger robustness | + broader phenotype coverage, stricter heterogeneity / pleiotropy handling, ancestry / database consistency checks, prioritized follow-up logic | | Publication+ | High-ambition manuscripts | + stronger claim-boundary control, richer sensitivity architecture, robust hit-tiering, better reviewer-facing filtering and interpretation map |
→ Full config descriptions: references/workload-configurations.md
Default (if user doesn't specify): recommend Standard as primary, Lite as minimum, Advanced as upgrade.
State which config is best-fit. Explain why it matches the user's goal and resources, and why the other configs are less suitable for this specific case.
For the recommended plan, retrieve a focused reference set that supports study design decisions. This is a design-support literature module, not a narrative review.
Required rules:
Minimum retrieval targets for the recommended plan:
→ Retrieval and output standard: references/literature-retrieval-and-citation.md
Before generating any plan, perform an internal dependency consistency check:
If the configuration is basic two-sample MR only (no colocalization / no MVMR / no replication dataset declared), the following are forbidden:
Every endpoint-selection step must state its exact logic formula, for example:
If any dependency inconsistency is found, revise the plan before outputting.
→ Full dependency rules: references/workload-configurations.md
For every step in the recommended plan, include all 8 fields.
→ 8-field template + module library: references/workflow-step-template.md → Analysis module descriptions: references/analysis-modules.md → Tool and method options: references/method-library.md
Do not merely list tool names. Explain the logic of each decision.
A. Core Scientific Question One-sentence question + 2–4 specific aims + why bidirectional multi-phenotype MR is the right combination.
B. Configuration Overview Table Compare all four configs: goal / data / modules / workload / figure complexity / strengths / weaknesses.
C. Recommended Primary Plan Best-fit config with justification. Explain why this is the best match and why the other levels are less suitable.
C.5. Dependency Map / Evidence Map For the recommended plan and the minimal executable plan, explicitly list:
D. Step-by-Step Workflow
Before listing any workflow steps, always output the following line exactly once whenever any dataset, cohort, database, registry, GWAS source, or public resource is mentioned in the workflow:
Dataset Disclaimer: Any datasets mentioned below are provided for reference only. Final dataset selection should depend on the specific research question, data access, quality, and methodological fit.
Then provide the full workflow for the primary plan using the 8-field format.
E. Figure and Deliverable Plan → references/figure-deliverable-plan.md
F. Validation and Robustness Explicitly separate MR association signal, sensitivity-qualified causal support, FDR-surviving robust signals, and biological follow-up priority evidence. State what each validation step proves and what it does not prove. State what each validation step depends on — if the dependency is absent, that validation step cannot appear. → Evidence hierarchy: references/validation-evidence-hierarchy.md
G. Minimal Executable Version 2–4 week plan: one exposure family, one outcome family, limited phenotype count, one ancestry, IVW + weighted median / MR-Egger + leave-one-out, one multiple-testing rule, and no undeclared dependency-bearing modules. Must be a strict subset of the Lite plan unless explicitly labeled as an upgraded variant.
H. Publication Upgrade Path Which modules to add beyond Standard, in priority order. Distinguish robustness upgrades from complexity-only additions. Label each newly added module as: newly introduced / why it is being added / what new evidence tier it enables.
I. Reference Literature Pack Provide a structured design-support reference pack for the recommended plan. Use the exact categories below:
For each formal reference, include a DOI, PMID, PMCID, or direct stable link. If none can be verified, do not output the item as a formal reference.
J. Self-Critical Risk Review
Always include this section immediately after the reference literature part. It must contain all six of the following elements:
⚠ Disclaimer: This plan is for genome-wide causal-inference research design only. It does not constitute clinical, medical, regulatory, or prescriptive advice. All MR-derived causal signals require stronger triangulation and biological validation before translational application.
tools
Generates complete conventional oncology bulk-transcriptome biomarker and hub-gene research designs from a user-provided cancer type and study direction. Always use this skill whenever a user wants to design, plan, or build a tumor bioinformatics study centered on differential expression, prognostic filtering or risk modeling, PPI-based hub-gene prioritization, diagnostic/prognostic evaluation, clinical association, immune infiltration context, methylation context, and optional tissue or cell validation. Covers five study patterns (signature-first prognostic workflow, hub-gene-first biomarker workflow, hybrid signature-to-hub workflow, immune-context biomarker workflow, translational validation workflow) and always outputs four workload configs (Lite / Standard / Advanced / Publication+) with recommended primary plan, step-by-step workflow, figure plan, validation strategy, minimal executable version, publication upgrade path...
development
Generates complete conventional non-oncology bioinformatics research designs from a user-provided disease context, process-related gene family or biological theme, and validation direction. Use when a study centers on multi-dataset bulk transcriptome integration, DEG analysis, process-gene intersection, enrichment analysis, GSEA, PPI hub-gene prioritization, TF/miRNA regulatory networks, ROC-based biomarker evaluation, and immune infiltration analysis. Covers five study patterns (process-DEG discovery, enrichment/GSEA interpretation, hub-gene prioritization, regulatory-network and immune interpretation, multi-layer public validation) and always outputs Lite / Standard / Advanced / Publication+ with a recommended primary plan, stepwise workflow, figure plan, validation hierarchy, minimal executable version, publication upgrade path, and strictly verified literature retrieval.
tools
Plans confounder control, variable adjustment logic, and bias mitigation strategies at the protocol stage for clinical, epidemiologic, translational, observational, and biomarker studies. Always use this skill when a user needs to identify major confounders, decide which variables should or should not be adjusted for, compare matching/stratification/weighting approaches, anticipate selection or measurement bias, or pressure-test a study design before execution. Focus on bias sensing, causal structure awareness, variable-role classification, and critical design review rather than generic statistical advice.
testing
Generates complete comparative network-toxicology research designs from a user-provided exposure pair, shared toxic phenotype, and validation direction. Use when a study centers on two related exposures under one outcome and needs target collection, shared-vs-specific target decomposition, enrichment, PPI hub prioritization, docking, optional transcriptomic cross-checks, and conservative mechanistic synthesis. Covers five study patterns and always outputs Lite / Standard / Advanced / Publication+ with a recommended primary plan, stepwise workflow, figure plan, validation hierarchy, minimal executable version, publication upgrade path, and strictly verified literature retrieval.