Agent skill

Mendelian Randomisation

by ClawBio in ClawBio/ClawBio

Two-sample Mendelian Randomisation from GWAS summary statistics with IVW, MR-Egger, weighted median/mode, and full sensitivity analysis (Cochran Q, Egger intercept, Steiger, F-statistic…

MITAuto-check passedData & Analytics

Install Mendelian Randomisation

skills CLI
$ npx skills add ClawBio/ClawBio --skill mendelian-randomisation -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ClawBio/ClawBio mendelian-randomisation --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ClawBio/ClawBio.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/mendelian-randomisation .claude/skills/mendelian-randomisation && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
mendelian-randomisation
GitHub stars
1.2k
Used in
1 other repo
Token cost
~4.5k tokens
SKILL.md length
1,769 words
Files
5
Skills in repo
104
Repo updated
First seen
Licence
MIT

At a glance

Two-sample Mendelian Randomisation from GWAS summary statistics with IVW, MR-Egger, weighted median/mode, and full sensitivity analysis (Cochran Q, Egger intercept, Steiger, F-statistic…

  • Works in 5 steps: Four MR estimators: IVW (random… → Full sensitivity battery: Cochran's Q,… → Instrument diagnostics: F-statistic per… → …
  • Tasks that involve Data analysis
  • SKILL.md covers Trigger, Why This Exists, Core Capabilities and Scope, plus 14 more sections
  • Runs Python scripts from its folder; calls python

What it does

Mendelian Randomisation is an agent skill from ClawBio/ClawBio. Two-sample Mendelian Randomisation from GWAS summary statistics with IVW, MR-Egger, weighted median/mode, and full sensitivity analysis (Cochran Q, Egger intercept, Steiger, F-statistic, leave-one-out).

Its SKILL.md is about 4.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files (for example `example_data/demo_instruments.json`, `mendelian_randomisation.py` and `tests/__init__.py`).

It sits in Data & Analytics, covering Data analysis and Statistics. The repository describes itself as: 🦖 ClawBio - The first bioinformatics-native AI agent skill library. Local-first. Reproducible. Open. Free. The licence is MIT.

When your agent uses it

  • Tasks that involve Data analysis
  • Tasks that involve Statistics

Example prompts

  • “/mendelian-randomisation”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Four MR estimators: IVW (random effects), MR-Egger, weighted median, weighted mode
  2. Full sensitivity battery: Cochran's Q, Egger intercept, Steiger directionality, F-statistic, I²_GX, leave-one-out
  3. Instrument diagnostics: F-statistic per SNP (warning when F < 10), palindromic SNP flagging, weak instrument detection
  4. Publication plots: Scatter, forest, funnel, leave-one-out (four .png files)
  5. STROBE-MR report: Assumptions stated, all methods and sensitivity results tabulated, caveats explicit

What it can do on your machine

Read from SKILL.md and the folder at commit dece754. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • pubmed.ncbi.nlm.nih.gov
    • doi.org

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Mendelian Randomisation loads about 4.5k tokens when it runs. Until then it costs about 57 tokens; SKILL.md has 1,769 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~57
When it runs · the whole SKILL.md, loaded when a task matches
~4.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ClawBio/ClawBio at commit dece754, republished under its MIT licence (© ClawBio). 1,769 words, ~4,457 tokens.

Download SKILL.mdSave it as .claude/skills/mendelian-randomisation/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
mendelian-randomisation
description
Two-sample Mendelian Randomisation from GWAS summary statistics with IVW, MR-Egger, weighted median/mode, and full sensitivity analysis (Cochran Q, Egger intercept, Steiger, F-statistic, leave-one-out).
license
MIT
metadata.version
0.1.0
metadata.author
Reza
metadata.domain
genetic-epidemiology
metadata.tags
mendelian-randomisation, causal-inference, two-sample-mr, ivw, mr-egger, gwas, genetic-epidemiology, drug-target-validation

🧬 Mendelian Randomisation

You are Mendelian Randomisation, a specialised ClawBio agent for causal inference from GWAS summary statistics. Your role is to run two-sample MR with multiple estimators and a complete sensitivity analysis panel.

Trigger

Fire this skill when the user says any of:

  • "Run mendelian randomisation on these GWAS results"
  • "Is there a causal effect of X on Y?"
  • "Two-sample MR analysis"
  • "MR-Egger / IVW / weighted median"
  • "Causal inference from GWAS summary statistics"
  • "Drug target validation with genetic instruments"
  • "MR sensitivity analysis"

Do NOT fire when:

  • User wants a GWAS association study (route to gwas-pipeline)
  • User wants to look up a single variant (route to gwas-lookup)
  • User wants polygenic risk scores (route to gwas-prs)
  • User wants colocalization analysis (different method, different skill)

Why This Exists

  • Without it: Running best-practice MR requires hundreds of lines of R code across TwoSampleMR, MendelianRandomization, and MR-PRESSO packages, with manual orchestration of instrument selection, harmonisation, four+ estimators, and six+ sensitivity tests
  • With it: A single command produces all estimators, the full sensitivity battery, four publication-ready plots, and a STROBE-MR aligned report
  • Why ClawBio: Grounded in Burgess et al. (2013), Bowden et al. (2015/2016), Verbanck et al. (2018) — every threshold and method traces to a published paper, not ad hoc parameter choices

Core Capabilities

  1. Four MR estimators: IVW (random effects), MR-Egger, weighted median, weighted mode
  2. Full sensitivity battery: Cochran's Q, Egger intercept, Steiger directionality, F-statistic, I²_GX, leave-one-out
  3. Instrument diagnostics: F-statistic per SNP (warning when F < 10), palindromic SNP flagging, weak instrument detection
  4. Publication plots: Scatter, forest, funnel, leave-one-out (four .png files)
  5. STROBE-MR report: Assumptions stated, all methods and sensitivity results tabulated, caveats explicit

Scope

One skill, one task. This skill performs two-sample MR from pre-harmonised or raw GWAS summary statistics and produces causal effect estimates with sensitivity diagnostics. It does not perform GWAS, LD score regression, colocalization, or multi-trait analysis.

Input Formats

FormatExtensionRequired FieldsExample
Harmonised instruments JSON.jsonSNP, effect_allele, other_allele, eaf, beta_exposure, se_exposure, pval_exposure, beta_outcome, se_outcome, pval_outcome; optional n_exposure / n_outcome (sample sizes, needed for a Steiger p-value)demo_instruments.json

Workflow

  1. Load: Read harmonised instruments from JSON (or from IEU OpenGWAS in live mode)
  2. Validate: Check F-statistics, flag weak instruments (F < 10), flag palindromic SNPs with ambiguous EAF
  3. Estimate: Run IVW, MR-Egger, weighted median, weighted mode
  4. Sensitivity: Cochran's Q, Egger intercept, Steiger test, I²_GX, leave-one-out
  5. Visualise: Scatter, forest, funnel, leave-one-out plots
  6. Report: STROBE-MR aligned markdown with all results, warnings, and disclaimer

CLI Reference

bash
# Demo mode (cached BMI->T2D, completely offline)
python skills/mendelian-randomisation/mendelian_randomisation.py \
  --demo --output /tmp/mr_demo

# User-provided instruments
python skills/mendelian-randomisation/mendelian_randomisation.py \
  --instruments instruments.json --output results/

# Via ClawBio runner
python clawbio.py run mr --demo

Demo

bash
python clawbio.py run mr --demo

Expected output: A full MR report for 30 synthetic BMI → T2D instruments showing a positive causal effect (IVW beta ≈ 0.60), consistent across all four methods, with no heterogeneity, no pleiotropy, strong instruments, and correct Steiger direction. Four plots generated.

Algorithm / Methodology

  1. IVW: beta = sum(w * bx * by) / sum(w * bx²), with multiplicative random-effects variance inflation (Burgess et al., 2013)
  2. MR-Egger: Weighted linear regression of by on bx with intercept; slope = causal estimate, intercept = pleiotropy (Bowden et al., 2015). Instruments are first oriented so every exposure effect is positive (the outcome effect flipped with it), as TwoSampleMR does: the intercept is the mean outcome effect at zero exposure effect, so without this it would depend on which allele each GWAS reported. An exposure effect of exactly zero counts as positive, so that instrument keeps its outcome effect (TwoSampleMR's sign0). Reported as not applicable, with a stated reason, when it is undefined on the given instruments: fewer than 3 of them (it fits two parameters, so below 3 there is no residual degree of freedom), or exposure effects too close to identical for the slope to be identified. Never a number in those cases.
  3. Weighted Median: Median of Wald ratios weighted by inverse-variance; consistent when ≥50% weight from valid instruments (Bowden et al., 2016, doi:10.1002/gepi.21965; PMID 27061298)
  4. Weighted Mode: Mode of the inverse-variance weighted kernel density of the Wald ratios, bandwidth phi x the modified Silverman rule 0.9 min(sd, 1.4826 mad) / L^(1/5), standard error from a parametric bootstrap (Hartwig et al., 2017, doi:10.1093/ije/dyx102; PMID 29040600; as implemented in TwoSampleMR mr_weighted_mode)

Key thresholds:

  • F-statistic > 10 for instrument strength (Staiger & Stock, 1997)
  • I²_GX > 0.9 for MR-Egger validity; SIMEX recommended below (Bowden et al., 2016)
  • Cochran's Q P < 0.05 indicates heterogeneity
  • Egger intercept P < 0.05 indicates directional pleiotropy. The Egger slope and intercept p-values use a t reference on n - 2 degrees of freedom (the standard errors come from the fit's residual variance), as TwoSampleMR does; at n = 3 that is one degree of freedom and the p-value is wide by construction. IVW and the weighted median use a normal reference, the weighted mode a t on n - 1, as in that implementation
  • Steiger directionality is computed from z-statistics, so it does not depend on the units the traits are reported in; supply n_exposure and n_outcome per instrument for a p-value, without them only the direction is reported. The variance explained behind that p-value uses the continuous-trait conversion on both sides, so this version assumes the exposure and the outcome are continuous traits. A binary exposure or outcome in log odds is not supported (it needs case and control counts and the prevalence, which the input does not carry), and the note on the Steiger row states the assumption
  • MR-Egger, weighted median and weighted mode each need >= 3 instruments (MR-Egger also needs at least two distinct exposure effects); below that each is reported as not applicable rather than as a number. IVW is defined at n = 1, where it is the single Wald ratio

Example Output

markdown
# Mendelian Randomisation Report

**Generated**: YYYY-MM-DD HH:MM:SS UTC
**Exposure**: Body mass index (BMI)
**Outcome**: Type 2 diabetes (T2D)
**Instruments**: 30 SNPs
**Mode**: Demo (cached data, offline)

## MR Estimates

| Method | Estimate | SE | 95% CI | P-value |
|--------|----------|----|--------|---------|
| IVW | 0.5979 | 0.0369 | [0.5255, 0.6702] | 5.17e-59 |
| MR-Egger | 0.6022 | 0.0816 | [0.4423, 0.7621] | 4.87e-08 |
| Weighted Median | 0.6001 | 0.0469 | [0.5081, 0.6921] | 2.07e-37 |
| Weighted Mode | 0.6031 | 0.0705 | [0.4648, 0.7413] | 2.03e-09 |

## Sensitivity Analysis

| Test | Result | P-value | Interpretation |
|------|--------|---------|----------------|
| Cochran's Q | 0.73 (df=29) | 1.0000 | No significant heterogeneity |
| Egger intercept | -0.0002 | 0.9526 | No directional pleiotropy |
| Mean F-statistic | 70.6 | — | Strong instruments |
| Weak instruments (F<10) | 0/30 | — | None |
| I²_GX | 0.9856 | — | Adequate |
| Steiger direction | Correct | not computed | Direction consistent with exposure → outcome; significance not assessable without sample sizes; no sample sizes supplied, so the direction is read from the z-statistics under the assumption that the exposure and outcome studies are of comparable size |

## Interpretation

The IVW estimate suggests a positive causal effect of Body mass index (BMI) on Type 2 diabetes (T2D)
(beta = 0.5979, 95% CI [0.5255, 0.6702], P = 5.17e-59).

Sensitivity analyses show consistent estimates across IVW, MR-Egger, Weighted Median, Weighted Mode, supporting a robust causal inference.

---

*ClawBio is a research and educational tool. It is not a medical device and does not provide clinical diagnoses. Consult a healthcare professional before making any medical decisions.*

Output Structure

output_directory/
├── report.md                              # STROBE-MR aligned report
├── result.json                            # Machine-readable estimates + sensitivity
├── tables/
│   ├── mr_results.tsv                     # Per-method estimates
│   ├── sensitivity.tsv                    # All sensitivity test results
│   └── harmonised_instruments.tsv         # Per-SNP instrument details + F-stat
├── figures/
│   ├── scatter.png                        # Exposure vs outcome effects
│   ├── forest.png                         # Per-SNP Wald ratios
│   ├── funnel.png                         # Precision vs effect
│   └── leave_one_out.png                  # IVW after removing each SNP
└── reproducibility/
    ├── commands.sh
    └── software_versions.json

Dependencies

Required:

  • numpy >= 1.24 — numerical computation
  • scipy >= 1.10 — statistical tests (t-test, chi2, norm)
  • matplotlib >= 3.7 — scatter, forest, funnel, leave-one-out plots
Show full SKILL.md (834 more words)Show less

Gotchas

  • Palindromic SNPs: You will want to silently resolve A/T and C/G SNPs using the EAF threshold of 0.42. Do not. When EAF is between 0.42 and 0.58, the correct strand is ambiguous. The skill flags these but retains them — the report warns users to manually review. Silently dropping or flipping them introduces bias that is hard to detect downstream.

  • Weak instruments: You will want to report F < 10 as a table entry and move on. Do not. Weak instruments bias MR-Egger towards the null and inflate IVW type I error. The skill prints a stderr WARNING for every instrument with F < 10 and highlights it in the report narrative, not just the sensitivity table. If all instruments are weak, the report should state that results are unreliable.

  • Winner's curse: You will want to select instruments from the same GWAS used as the exposure dataset. Do not, when possible. Selecting instruments from the discovery GWAS inflates effect sizes (winner's curse), biasing the MR estimate away from null. The skill documents this caveat in the report. When independent replication data is unavailable, note this as a limitation.

  • Ignoring MR-Egger intercept: You will want to report a significant Egger intercept alongside a significant IVW and claim "robust causal evidence." Do not. A significant intercept means directional pleiotropy is present. If Egger intercept P < 0.05, the IVW estimate is biased and the Egger slope should be preferred. The skill's report narrative explicitly flags this.

  • Reading a not-applicable estimator as a failure: You will want to treat a not_applicable row as the run having broken. Do not. Below 3 instruments none of MR-Egger, weighted median or weighted mode is defined (and MR-Egger also needs two distinct exposure effects to identify a slope), so each is reported as undefined rather than imprecise: in result.json ("applicable": false with a reason, no numeric fields), in mr_results.tsv (not_applicable in every numeric column plus a note) and in the report, which then says the IVW estimate stands alone. A consumer that expects a number in every estimate row must check applicable first.

  • Treating an empty instrument set as an analysis: You will want to hand the pipeline whatever survived instrument selection and read whatever comes back. Do not, without checking that anything survived. Zero instruments is not an analysis whose estimators are unavailable, it is the absence of the analysis, so the pipeline raises NoInstrumentsError (a ValueError) before creating the output directory and writes nothing at all; the CLI reports it as a bad argument and exits non-zero. The realistic route here is not an empty input file but a p-value threshold, LD clumping step or harmonisation that removed every SNP, so a caller that catches this should say which step emptied the set.

Safety

  • Local-first: Demo mode is fully offline with cached data. Live mode contacts IEU OpenGWAS API (public, unauthenticated) for summary statistics only — no patient data uploaded
  • Network dependency: Live mode requires gwas-api.mrcieu.ac.uk. Demo mode requires no network access
  • Disclaimer: Every report includes the ClawBio medical disclaimer
  • No hallucinated science: All thresholds trace to cited publications
  • Audit trail: Full command log and software versions in reproducibility bundle

Agent Boundary

The agent dispatches and explains. The skill (Python) executes. The agent must NOT override F-statistic thresholds, invent causal claims not supported by the sensitivity analysis, or suppress warnings about weak instruments or pleiotropy.

Integration with Bio Orchestrator

Trigger conditions — the orchestrator routes here when:

  • User mentions Mendelian randomisation, causal inference from GWAS, or two-sample MR
  • User provides GWAS summary statistics and asks about causal effects

Chaining partners:

  • gwas-pipeline (upstream): Produces GWAS summary statistics (TSV with SNP, beta, se, pval, eaf) that feed into this skill as exposure or outcome data
  • gwas-lookup (upstream): Provides variant-level context for instruments (trait associations, eQTLs)
  • gwas-prs (parallel): PRS and MR are complementary — PRS predicts individual risk, MR estimates population-level causal effects

Chaining contract:

  • Input: JSON with instruments array; each instrument has SNP, beta_exposure, se_exposure, pval_exposure, beta_outcome, se_outcome, pval_outcome, effect_allele, other_allele, eaf, f_statistic
  • Output: result.json with estimates array (method, estimate, se, pvalue) and sensitivity object; tables/mr_results.tsv for downstream consumption. An estimator that does not apply appears as {"method", "applicable": false, "reason", "n_snps"} with no numeric fields, and as not_applicable in every numeric column of the TSV plus a note column. result.json is written with allow_nan=False, so it is always valid JSON per RFC 8259 or it is not written at all.

Maintenance

  • Review cadence: Re-evaluate when new MR methods are published or IEU OpenGWAS API changes
  • Staleness signals: New MR-PRESSO version, changes to STROBE-MR checklist, IEU API deprecation
  • Deprecation: If superseded by a more comprehensive causal inference skill

Citations

© ClawBio, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files in skills/mendelian-randomisation of ClawBio/ClawBio.

  • SKILL.md
  • example_data/demo_instruments.json
  • mendelian_randomisation.py
  • tests/__init__.py
  • tests/test_mendelian_randomisation.py

Open the folder on GitHubat commit dece754

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in ClawBio/ClawBio, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Mendelian Randomisation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Mendelian Randomisation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Mendelian Randomisation this skillClawBio/ClawBio1.2k1 repos~4.5kAutomated safety check: PassMIT
MatlabzLanqing/codex-claude-academic-skills4.7k8 repos~2.3kAutomated safety check: NotesGPL-3.0
CSV Data Analysis5zjk5/prompt-engineering127—~2.6kAutomated safety check: PassNone
Meridian MMM Model Buildinggoogle/meridian1.6k—~2.5kAutomated safety check: PassApache-2.0
Statistical Data Analysislingzhi227/agent-research-skills386—~886Automated safety check: PassNone
Code EngineeropenJiuwen-ai/sciencediscovery156—~2.8kAutomated safety check: PassApache-2.0

Similar skills

  • Matlab

    zLanqing/codex-claude-academic-skills

    MATLAB and GNU Octave numerical computing for matrix operations, data analysis, visualization, and scientific computing.

    4.7k GitHub starsUsed in 8 repos~2.3k tokens
    Data & AnalyticsAuto-check: notes
  • CSV Data Analysis

    5zjk5/prompt-engineering

    This skill should be used when users need to analyze CSV or Excel files, understand data patterns, generate statistical summaries, or create data visualizations.

    127 GitHub stars~2.6k tokensUpdated 23 days ago
    Data & AnalyticsAuto-check passed
  • Official

    Takes a user through building a Meridian marketing mix model, from loading CSV data and mapping columns to running EDA, fitting and saving the model.

    1.6k GitHub stars~2.5k tokensUpdated today
    Data & AnalyticsAuto-check passed
  • Statistical Data Analysis

    lingzhi227/agent-research-skills

    Writes statistical analysis code for experimental data, runs it through a four-round review, and reports effect sizes, p-values and confidence intervals.

    386 GitHub stars~886 tokensUpdated 7 mo ago
    Data & AnalyticsAuto-check passed
  • Code Engineer

    openJiuwen-ai/sciencediscovery

    A skill your agent uses when you need to write and execute Python/R code to process, transform, and analyze data, delivering reproducible computational results with complete code-level methodology…

    156 GitHub stars~2.8k tokensUpdated today
    Data & AnalyticsAuto-check passed
  • Runs exploratory data analysis on tabular data after you confirm each column's measurement level, then writes CSV tables and a narrative summary.

    108 GitHub stars~1.1k tokensUpdated 15 days ago
    Data & AnalyticsAuto-check passed

More from ClawBio/ClawBio

All 104 skills in this repo
  • Fetch a region of cis-eQTL summary statistics from EBI eQTL Catalogue v7+ via tabix-on-FTP.

    1.2k GitHub starsUsed in 1 repo~4.7k tokens
    Auto-check passed
  • Xena Tcga Gene Query

    ClawBio/ClawBio

    Query TCGA tumor biology through the ucscxenatoolspy API. An agent skill from ClawBio/ClawBio.

    1.2k GitHub stars~4.7k tokensUpdated today
    Auto-check passed
  • Fetch a region of GWAS summary statistics from the NHGRI-EBI GWAS Catalog harmonised collection via tabix-on-FTP.

    1.2k GitHub starsUsed in 1 repo~3.5k tokens
    Auto-check passed
  • Dnasp

    ClawBio/ClawBio

    Population genetics of pre-aligned DNA sequences or multi-sample VCFs using selected DnaSP 6 methods.

    1.2k GitHub stars~5.1k tokensUpdated today
    Auto-check passed
  • Compute pairwise r² between a lead variant and every variant in a window using the 1000 Genomes Phase 3 GRCh38 reference panel, ancestry-stratified.

    1.2k GitHub stars~3.9k tokensUpdated today
    Auto-check passed
  • Ncbi Datasets

    ClawBio/ClawBio

    Download genomes, genes, virus sequences, and taxonomy data from NCBI using the datasets and dataformat CLI tools.

    1.2k GitHub starsUsed in 1 repo~2.8k tokens
    Auto-check passed

Questions about Mendelian Randomisation

What does Mendelian Randomisation do?

Two-sample Mendelian Randomisation from GWAS summary statistics with IVW, MR-Egger, weighted median/mode, and full sensitivity analysis (Cochran Q, Egger intercept, Steiger, F-statistic…. Mendelian Randomisation is an agent skill from ClawBio/ClawBio. Two-sample Mendelian Randomisation from GWAS summary statistics with IVW, MR-Egger, weighted median/mode, and full sensitivity analysis (Cochran Q, Egger intercept, Steiger, F-statistic, leave-one-out).

When should I use Mendelian Randomisation?

Mendelian Randomisation fits situations like: tasks that involve Data analysis; tasks that involve Statistics.

How do I install Mendelian Randomisation in Claude Code?

Run `npx skills add ClawBio/ClawBio --skill mendelian-randomisation -a claude-code`. Or copy the skill folder (skills/mendelian-randomisation in ClawBio/ClawBio) into .claude/skills/mendelian-randomisation in your project. Claude Code loads it when a task matches its description.

How do I install Mendelian Randomisation in Codex?

Run `npx skills add ClawBio/ClawBio --skill mendelian-randomisation -a codex`. Or copy the skill folder (skills/mendelian-randomisation in ClawBio/ClawBio) into .agents/skills/mendelian-randomisation in your project. Codex loads it when a task matches its description.

Can I use Mendelian Randomisation in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ClawBio/ClawBio --skill mendelian-randomisation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mendelian-randomisation, .gemini/skills/mendelian-randomisation, .github/skills/mendelian-randomisation and .opencode/skills/mendelian-randomisation in your project.

What does Mendelian Randomisation need to run?

Going by SKILL.md and its folder, Mendelian Randomisation needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Mendelian Randomisation access the network?

SKILL.md names 2 domains. As links in the text: pubmed.ncbi.nlm.nih.gov and doi.org. This is read from the text; nothing was executed.

Is Mendelian Randomisation safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Mendelian Randomisation use?

Mendelian Randomisation is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Mendelian Randomisation use?

About 4.5k tokens (SKILL.md is roughly 18k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Mendelian Randomisation?

Skills that share tags, products or a category with Mendelian Randomisation: Matlab (zLanqing/codex-claude-academic-skills, 4.7k stars), CSV Data Analysis (5zjk5/prompt-engineering, 127 stars), Meridian MMM Model Building (google/meridian, 1.6k stars) and Statistical Data Analysis (lingzhi227/agent-research-skills, 386 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Mendelian Randomisation?

ClawBio (a GitHub organization) maintains it in ClawBio/ClawBio, which has 1,154 GitHub stars. The repository holds 104 skills in this directory. The repository was last updated on October 8, 2026.

Source: ClawBio/ClawBio on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.