bidirectional-multi-phenotype-mr
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...
Best use case
bidirectional-multi-phenotype-mr is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
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...
Teams using bidirectional-multi-phenotype-mr 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
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/bidirectional-multi-phenotype-mr/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How bidirectional-multi-phenotype-mr Compares
| Feature / Agent | bidirectional-multi-phenotype-mr | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
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...
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) # Bidirectional Multi-Phenotype MR Research Planner 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. --- ## Input Validation **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: - "Eye diseases and stroke subtypes. Need bidirectional MR screening." - "Autoimmune diseases vs cardiovascular endpoints, bidirectional, subtype-resolved." - "Gut microbiome traits and cancer outcomes. Need multi-phenotype two-sample MR with FDR." - "Psychiatric traits vs metabolic diseases, public GWAS only, Standard and Advanced." **Out-of-scope — respond with the redirect below and stop:** - Clinical treatment recommendations, patient-specific diagnosis, prescribing - Individual-level genomic prediction or PRS deployment studies - Pure observational association studies with no instrumental-variable causal design - Wet-lab-only mechanistic studies with no GWAS summary-statistic backbone - Non-biomedical / off-topic requests > "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." --- ## Sample Triggers - "16 eye diseases and stroke subtypes with bidirectional MR." - "Immune diseases versus stroke and its subtypes, bidirectional and FDR-controlled." - "Metabolites and neurological outcomes using OpenGWAS and FinnGen." - "Need a phenome-style MR atlas with subtype-resolved outcomes and strict sensitivity analysis." - "Public GWAS only, multi-phenotype screening first, then prioritize robust signals." --- ## Execution — 7 Steps (always run in order) ### Step 1 — Infer Study Type Identify from user input: - **Exposure family and outcome family** - **Primary goal**: causal screening / bidirectional causal mapping / subtype-resolved causality / follow-up prioritization - **User emphasis**: breadth-first phenome screening vs depth-first robust MR vs publication-strength-first - **Resource constraints**: public-summary-statistics-only, one ancestry only, no colocalization, no multivariable MR, etc. - **Directionality**: one-way MR vs bidirectional MR If detail is insufficient → infer a reasonable default and state assumptions explicitly. ### Step 2 — Select Study Pattern 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](references/study-patterns.md) ### Step 3 — Output Four Workload Configurations 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](references/workload-configurations.md) **Default** (if user doesn't specify): recommend **Standard** as primary, **Lite** as minimum, **Advanced** as upgrade. ### Step 4 — Recommend One Primary Plan 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. ### Step 4.5 — Reference Literature Retrieval Layer (mandatory) 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: - Search for references that support **exposure-family relevance, outcome-family relevance, Mendelian randomization methodology, IV filtering rules, bidirectional MR logic, sensitivity-analysis modules, and multiple-testing control** - Prefer **core MR methods papers and closely matched disease-domain precedents** - Prioritize high-quality sources: PubMed-indexed articles, journal pages, DOI-backed records, PMC, Crossref metadata, publisher pages - **Never fabricate citations**. Do not invent PMID, DOI, journal, year, authors, volume, pages, article titles, or URLs - **Only output formal references that are directly verified** against a trustworthy source - **Every formal reference must include at least one resolvable identifier or access path**: DOI, PMID, PMCID, PubMed link, PMC link, or official publisher/journal landing page - If a candidate paper cannot be verified well enough to provide a real identifier or stable link, **do not list it as a formal reference** - When reliable references for a needed module are not found, explicitly say **"no directly verified reference identified yet"** and describe the evidence gap - If browsing/search is unavailable, say so explicitly and output a **search strategy + target evidence map** instead of fake references Minimum retrieval targets for the recommended plan: - 2–4 **disease / trait-domain background** references - 2–4 **core MR methods / sensitivity / multiple-testing** references - 1–2 **similar bidirectional or multi-phenotype MR precedents** - 1 explicit evidence-gap note → Retrieval and output standard: [references/literature-retrieval-and-citation.md](references/literature-retrieval-and-citation.md) ### Step 5 — Dependency Consistency Check (mandatory before output) Before generating any plan, perform an internal dependency consistency check: - Does any step require GWAS summary statistics that were never declared earlier in that configuration? - Does bidirectional design appear without separate IV construction in both directions? - Does any causal claim survive despite unresolved heterogeneity / pleiotropy rules? - Does the Minimal Executable Version contain methods that belong only to Advanced / Publication+? - Are multiple-testing rules declared before interpreting dozens of pairwise MR results? - Are subtype claims kept separate from aggregate-outcome claims? **If the configuration is basic two-sample MR only (no colocalization / no MVMR / no replication dataset declared), the following are forbidden:** - strong mechanism claims - definitive pathway confirmation - mediation claims - target-prioritization certainty language beyond genetic causal support - cross-ancestry generalizability claims without matching data **Every endpoint-selection step must state its exact logic formula**, for example: - exposure GWAS + outcome GWAS + IVW - exposure GWAS + outcome GWAS + IVW + sensitivity consistency - exposure family + subtype outcomes + bidirectional MR + FDR filtering - screened trait pairs + sensitivity-qualified hits + FDR-passed robust set If any dependency inconsistency is found, revise the plan before outputting. → Full dependency rules: [references/workload-configurations.md](references/workload-configurations.md) ### Step 6 — Full Step-by-Step Workflow For every step in the recommended plan, include all 8 fields. → 8-field template + module library: [references/workflow-step-template.md](references/workflow-step-template.md) → Analysis module descriptions: [references/analysis-modules.md](references/analysis-modules.md) → Tool and method options: [references/method-library.md](references/method-library.md) Do not merely list tool names. Explain the logic of each decision. ### Step 7 — Mandatory Output Sections (A–I, all required) **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: - Which evidence layers are present (GWAS exposure set, GWAS outcome set, IV filtering, IVW, sensitivity analyses, FDR, subtype resolution, bidirectionality, etc.) - Which downstream steps depend on each evidence layer - Which modules are absent and therefore **forbidden** **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](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](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: - **I1. Core background references** (exposure family + outcome family relevance) - **I2. Method justification references** (MR core, sensitivity, FDR, databases actually used) - **I3. Similar-study precedent references** (same disease family / same bidirectional or multi-phenotype MR logic) - **I4. Search strategy and evidence gaps** 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: - **Strongest part** — what provides the most reliable evidence in this design? - **Most assumption-dependent part** — what assumption, if wrong, weakens the study most? - **Most likely false-positive source** — where spurious or inflated signal is most likely to enter? - **Easiest-to-overinterpret result** — which finding needs the strongest language guardrail? - **Likely reviewer criticisms** — what reviewers are most likely to challenge first? - **Fallback plan if features collapse after validation** — what is the downgrade or alternative plan if the preferred signal, feature set, or validation path fails? > ⚠ **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. --- ## Hard Rules 1. **Never output only one flat generic plan.** Always output Lite / Standard / Advanced / Publication+. 2. **Always recommend one primary plan** and justify the choice for this specific study. 3. **Always separate necessary modules from optional modules.** 4. **Always distinguish evidence tiers.** Never imply standard MR signals prove mechanism, mediation, or therapeutic action. 5. **Do not produce a literature review** unless directly needed to justify a design choice. 6. **Do not pretend all modules are equally necessary.** 7. **Optimize for causal-inference logic and feasibility**, not for sounding sophisticated. 8. **No vague phrasing** like "you could also explore." Be explicit about what to do and why. 9. **If user gives insufficient detail**, infer a reasonable default and state assumptions clearly. 11. **Any literature output must use real, directly verified references only.** 12. **Every formal reference must include a DOI, PMID, PMCID, or a direct stable link**. 13. **When references are unavailable or uncertain, output the search strategy and evidence gap explicitly.** 14. **STOP and redirect** on clinical treatment recommendations, dosing, regulatory submissions, or prescriptive medical conclusions. 15. **Section G Minimal Executable Version is mandatory** in every output. 16. **Never introduce subtype-, bidirectionality-, or FDR-dependent steps** unless those resources and logic have already been explicitly declared in that same configuration. 17. **Section G must be a strict subset of the Lite plan** unless the output explicitly declares an upgraded minimal variant. 18. **Every endpoint-selection step must state its dependency formula explicitly**. 19. **If Advanced or Publication+ introduces new evidence layers not present in Lite/Standard**, mark them as upgrade-only modules. 20. **Section C.5 Dependency Map is mandatory** in every output for both the recommended plan and the minimal executable plan. 21. **Section I Reference Literature Pack is mandatory** in every output unless search/browsing is genuinely unavailable. 22. **If D. Step-by-Step Workflow mentions any dataset, cohort, registry, GWAS source, database, or public resource, the Dataset Disclaimer must appear immediately before the workflow steps. Do not omit it.** 23. **Section J. Self-Critical Risk Review is mandatory in every output. Do not omit any of its six required elements.**
Related Skills
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.
multi-source-news-writer
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
Assemble 6 sub-figures (A–F) into a high-resolution composite figure with consistent labels, padding, and publication-ready DPI.
phenotype-introduction
Expert system for generating comprehensive biomedical phenotype introductions with structured academic content. Use when users request detailed explanations of cellular phenotypes including concept, mechanism, regulation, and detection methods in Chinese academic writing.
generic-phenotype-scoring
Generates complete phenotype-scoring bioinformatics research designs for any disease context and any user-defined phenotype, pathway, process, signature, or molecular program. Use when a study centers on gene-set or feature-set definition, intersection with DEGs or candidate features, phenotype scoring, feature selection, diagnostic or stratification assessment, immune or cellular-resolution interpretation, network analysis, and optional orthogonal validation. Covers five study patterns (signature discovery, phenotype scoring, feature selection, immune/cellular interpretation, multi-layer 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.
multi-database-literature-collector
Collects candidate biomedical literature across multiple databases, adapts search logic by database, preserves source metadata, and organizes results into a structured, screening-ready candidate pool. Always use this skill when a user wants cross-database literature collection, search strategy construction, candidate paper aggregation, or first-pass evidence organization before deduplication, screening, layered reading, or review planning. Requires real and verifiable literature records only. Every formal literature item must include a real link and DOI when available; never fabricate citations, titles, authors, years, journals, abstracts, PMIDs, or DOIs. If a DOI is unavailable or cannot be verified, state that explicitly rather than inventing one.
skill-auditor
A comprehensive auditor for any agent skill — including Manus, OpenClaw/ClawHub, Claude, LobeHub, or custom SKILL.md-based skills. Use this skill whenever a user wants to evaluate, audit, review, score, or quality-check an agent skill before publishing, updating, or deploying. Covers two hard veto gates (structural redlines + research integrity redlines), static quality scoring across 25 criteria (ISO 25010 + OpenSSF + Agent), dynamic test input generation, multi-mode execution testing, multi-layer output evaluation with five specialized category rubrics (Evidence Insight / Protocol Design / Data Analysis / Academic Writing / Other), a Research Veto that applies to all four research categories, human eval viewer generation, actionable P0/P1/P2 optimization recommendations, and automatic skill improvement that outputs a polished, production-ready SKILL.md. Also use whenever a user says "audit my skill", "evaluate my skill", "improve my skill", or wants a corrected version after evaluation.
two-sample-mr-research-planner
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.
research-proposal-generator
Generates a comprehensive research proposal design based on input literature, including hypothesis, mechanism verification, and budget. Use when the user wants to design a research project from a paper.
research-grants
Write competitive research proposals for NSF, NIH, DOE, DARPA, and Taiwan's NSTC when you need agency-compliant narratives, budgets, and review-criteria alignment for a specific solicitation/FOA/BAA.
protocol-standardization
Standardize fragmented experimental steps into reproducible protocol documents when you need method organization, lab SOP drafting, or cross-operator reproducibility; missing parameters must be explicitly marked as "To be supplemented/Not provided".
prospero-registration-helper
Assists researchers in generating PROSPERO registration content for meta-analyses from a title and optional protocol. Use when the user wants to draft a PROSPERO registration form.