Nutrigxのロゴ

Nutrigx

組織人気
ClawBio
nutrigx

Personalised nutrition report from consumer genetic data (23andMe, AncestryDNA, VCF) — interrogates nutritionally-relevant SNPs and generates actionable dietary guidance, all computed locally.

概要

公開者ClawBio
リポジトリClawBio
スキル名nutrigx
スター
1.2K
フォーク
280
同梱ファイル
20
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 20個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    ClawBioがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルNutrigxをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/ClawBio/ClawBio/tree/main/skills/nutrigx
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ClawBio/ClawBio.git /tmp/ClawBio
mkdir -p .claude/skills
cp -r /tmp/ClawBio/skills/nutrigx .claude/skills/nutrigx
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでNutrigxを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にNutrigxを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Nutrigxは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

NutriGx Advisor — Personalised Nutrition from Genetic Data

Author: David de Lorenzo (ClawBio Community) Requires: Python 3.11+, pandas, numpy, matplotlib, seaborn, reportlab (optional)


What This Skill Does

The NutriGx Advisor generates a personalised nutrition report from consumer genetic data (23andMe, AncestryDNA raw files or VCF). It interrogates a curated set of nutritionally-relevant SNPs drawn from GWAS Catalog, ClinVar, and peer-reviewed nutrigenomics literature, then translates genotype calls into actionable dietary and supplementation guidance — all computed locally.

Key outputs

  • Markdown nutrition report with risk scores and recommendations
  • Radar chart of nutrient risk profile
  • Gene × nutrient heatmap
  • Reproducibility bundle (commands.sh, environment.yml, SHA-256 checksums)

Trigger Phrases

The Bio Orchestrator should route to this skill when the user says anything like:

  • "personalised nutrition", "nutrigenomics", "diet genetics"
  • "what should I eat based on my DNA"
  • "nutrient metabolism", "vitamin absorption genetics"
  • "MTHFR", "APOE", "FTO", "BCMO1", "VDR", "FADS1/2"
  • "folate", "omega-3", "vitamin D", "caffeine metabolism", "lactose", "gluten"
  • Input files: .txt or .csv (23andMe), .csv (AncestryDNA), .vcf

Curated SNP Panel

Macronutrient Metabolism

GeneSNPNutrient ImpactEvidence
FTOrs9939609Energy balance, fat mass, carb sensitivityStrong (GWAS)
PPARGrs1801282Fat metabolism, insulin sensitivityModerate
APOA5rs662799Triglyceride response to dietary fatStrong
TCF7L2rs7903146Carbohydrate metabolism, T2D riskStrong
ADRB2rs1042713Fat oxidation, exercise × diet interactionModerate

Micronutrient Metabolism

GeneSNPNutrientEffect of risk allele
MTHFRrs1801133Folate / B12↓ 5-MTHF conversion (~70%)
MTHFRrs1801131Folate / B12↓ enzyme activity (~30%)
MTRrs1805087B12 / homocysteine↑ homocysteine risk
BCMO1rs7501331Beta-carotene → Vitamin A↓ conversion (~50%)
BCMO1rs12934922Beta-carotene → Vitamin A↓ conversion (compound het)
VDRrs2228570Vitamin D absorption↓ VDR function
VDRrs731236Vitamin D↓ bone mineral density response
GCrs4588Vitamin D binding↑ deficiency risk
SLC23A1rs33972313Vitamin C transport↓ renal reabsorption
ALPLrs1256335Vitamin B6↓ alkaline phosphatase activity

Omega-3 / Fatty Acid Metabolism

GeneSNPNutrientEffect
FADS1rs174546LC-PUFA synthesis↑/↓ EPA/DHA from ALA
FADS2rs1535LC-PUFA synthesisModulates omega-6:omega-3 ratio
ELOVL2rs953413DHA synthesisA allele: lower EPA→DHA conversion (association, not a requirement)
APOErs429358Saturated fat responseε4 → ↑ LDL-C on high SFA diet
APOErs7412Saturated fat responseCombined with rs429358 for ε typing

Caffeine & Alcohol

GeneSNPCompoundEffect
CYP1A2rs762551CaffeineSlow/Fast metaboliser
AHRrs4410790CaffeineModulates CYP1A2 induction
ADH1Brs1229984AlcoholAcetaldehyde accumulation risk
ALDH2rs671AlcoholAsian flush / toxicity risk

Food Sensitivities

GeneSNPSensitivityEffect
MCM6rs4988235Lactose intoleranceRisk allele G (GRCh38 plus / -13910C) is non-persistence; persistence allele A (-13910T) is dominant
HLA-DQ2Proxy SNPsCoeliac / glutenHLA-DQA1/DQB1 risk haplotypes

Antioxidant & Detoxification

GeneSNPPathwayEffect
SOD2rs4880Manganese SOD↓ mitochondrial antioxidant
GPX1rs1050450Selenium / GSH-Px↓ glutathione peroxidase
GSTT1DeletionGlutathione-S-transNull genotype → ↑ oxidative risk
NQO1rs1800566Coenzyme Q10↓ CoQ10 regeneration
COMTrs4680Catechol / B vitaminsMet/Val → methylation load

Algorithm

1. Input Parsing (parse_input.py)

Accepts:

  • 23andMe .txt or .csv (tab-separated: rsid, chromosome, position, genotype)
  • AncestryDNA .csv
  • Standard VCF (extracts GT field)

Auto-detects format from header lines. Normalises alleles to forward strand using a hard-coded reference table (avoids requiring external databases).

2. Genotype Extraction (extract_genotypes.py)

For each SNP in the panel:

  1. Look up rsid in parsed data
  2. Return genotype string (e.g. "AT", "TT", "AA")
  3. Flag as "NOT_TESTED" if absent (common for chip-to-chip variation)

Palindromic SNPs. Three panel SNPs are palindromic, so strand cannot be told from the genotype: rs9939609 (FTO, T/A), rs12934922 (BCMO1, A/T) and rs1801282 (PPARG, C/G). Their calls are read as reported on the plus strand, which is how 23andMe and AncestryDNA export them. A file on the minus strand would score these three the wrong way round without warning.

3. Risk Scoring (score_variants.py)

Each SNP is scored on a 0 / 0.5 / 1.0 scale by default:

  • 0.0 — homozygous reference (lowest risk)
  • 0.5 — heterozygous
  • 1.0 — homozygous risk allele

Lactose (rs4988235) uses inheritance: dominant_protective. One copy of the persistence allele is enough, so AA and AG score as persistent (0.0) and only GG scores as non-persistence (1.0).

Composite Nutrient Risk Scores (0–10) are computed per nutrient domain by summing weighted SNP scores. Weights are derived from reported effect sizes (beta coefficients or OR) in the primary literature.

Risk categories:

  • 0–3: Low risk — standard dietary advice applies
  • 3–6: Moderate risk — dietary optimisation recommended
  • 6–10: Elevated risk — consider testing and targeted supplementation

Important caveat: These are polygenic risk indicators based on common variants. They are not diagnostic. Rare pathogenic variants (e.g. MTHFR compound heterozygosity with high homocysteine) require clinical confirmation.

4. Report Generation (generate_report.py)

Outputs a structured Markdown report with:

  • Executive summary (top 3 personalised findings)
  • Per-nutrient sections: genotype table → interpretation → recommendation
  • Radar chart (matplotlib) of nutrient risk scores
  • Gene × nutrient heatmap (seaborn)
  • Supplement interactions table
  • Disclaimer section
  • Reproducibility block

5. Reproducibility Bundle (nutrigx_repro_bundle.py)

Delegates to the shared clawbio.common.reproducibility layer and exports to <output_dir>/reproducibility/ (not committed to the repo):

  • commands.sh — full CLI to reproduce analysis
  • environment.yml — pinned conda environment
  • checksums.sha256 — SHA-256 checksums of output files, labelled relative to the output directory (verify with cd <output_dir> && sha256sum -c reproducibility/checksums.sha256); files that fail to generate abort the bundle rather than being silently omitted
  • provenance.json — timestamp, ClawBio version tag, and SHA-256 checksums of the input file and SNP panel

Usage

bash
# From 23andMe raw data
openclaw "Generate my personalised nutrition report from genome.csv"

# From VCF
openclaw "Run NutriGx analysis on variants.vcf and flag any folate pathway risks"

# Targeted query
openclaw "What does my APOE status mean for my saturated fat intake?"

# Generate a random demo patient and run the report
python examples/generate_patient.py --run

File Structure

skills/nutrigx/
├── SKILL.md                      ← this file (agent instructions)
├── nutrigx.py                    ← main entry point
├── parse_input.py                ← multi-format parser
├── extract_genotypes.py          ← SNP lookup engine
├── score_variants.py             ← risk scoring algorithm
├── generate_report.py            ← Markdown + figures
├── nutrigx_repro_bundle.py       ← reproducibility export
├── .gitignore
├── data/
│   └── snp_panel.json            ← curated SNP definitions
├── tests/
│   ├── synthetic_patient.csv     ← fixed 23andMe-format test data (for pytest)
│   ├── test_nutrigx.py           ← pytest suite
│   └── test_repro_bundle.py      ← reproducibility bundle tests
└── examples/
    ├── generate_patient.py       ← random patient generator (demo use)
    ├── data/                     ← generated patient files land here (gitignored)
    └── output/
        ├── nutrigx_report.md     ← pre-rendered demo report
        ├── nutrigx_radar.png     ← demo radar chart (nutrient risk profile)
        └── nutrigx_heatmap.png   ← demo gene × nutrient heatmap

Note: Runtime output directories and randomly generated patient files are excluded from version control via .gitignore. Only the pre-rendered demo report in examples/output/ is committed.


Privacy

All computation runs locally. No genetic data is transmitted. Input files are read-only; no raw genotype data appears in any output file (reports contain only gene names, SNP IDs, and risk categories).


Limitations & Disclaimer

Symbolic links in the output path are refused. Report, figure and reproducibility files will not be written through a symlink, including a deliberately symlinked output directory; point --output at a real directory. On platforms without O_NOFOLLOW and dir_fd support (such as Windows) the same refusal is made with a less race-proof check.

  1. Not a medical device. This skill provides educational, research-oriented nutrigenomics analysis. It does not constitute medical advice.
  2. Common variants only. The panel covers SNPs with MAF > 1% in at least one major population. Rare pathogenic variants are out of scope.
  3. Population context. Effect sizes are predominantly derived from European GWAS cohorts. Risk estimates may not generalise equally across all ancestries.
  4. Gene–environment interaction. Genetic risk scores interact with baseline diet, lifestyle, microbiome, and epigenetic state. A "high risk" score does not mean a nutrient deficiency is present — it means the individual may benefit from monitoring.
  5. Simpson's Paradox note. Population-level associations used to derive weights may not reflect individual trajectories (see Corpas 2025, Nutrigenomics and the Ecological Fallacy).

Roadmap

  • v0.2: Microbiome × genotype interaction module (16S rRNA input)
  • v0.3: Longitudinal tracking — compare reports across time
  • v0.4: HLA typing for immune-mediated food reactions (coeliac, gluten sensitivity)
  • v0.5: Integration with NeoTree neonatal data for maternal nutrition risk scoring
  • v1.0: Multi-omics integration (metabolomics + genomics + dietary recall)

References

Key literature underpinning the SNP panel and scoring algorithm:

  • Corbin JM & Ruczinski I (2023). Nutrigenomics: current state and future directions. Annu Rev Nutr.
  • Fenech M et al. (2011). Nutrigenetics and nutrigenomics: viewpoints on the current status. J Nutrigenet Nutrigenomics.
  • Stover PJ (2006). Influence of human genetic variation on nutritional requirements. Am J Clin Nutr.
  • Phillips CM (2013). Nutrigenetics and metabolic disease: current status and implications for personalised nutrition. Nutrients.
  • Minihane AM et al. (2015). APOE genotype, cardiovascular risk and responsiveness to dietary fat manipulation. Proc Nutr Soc.
  • Frayling TM et al. (2007). A common variant in the FTO gene is associated with body mass index. Science.
  • Pare G et al. (2010). MTHFR variants and cardiovascular risk. Hum Genet.
  • Lecerf JM & de Lorgeril M (2011). Dietary cholesterol: from physiology to cardiovascular risk. Br J Nutr.
  • Tanaka T et al. (2009). Genome-wide association study of plasma polyunsaturated fatty acids in the InCHIANTI Study. PLoS Genet (FADS1/2; ELOVL2 rs953413, minor A allele with lower DHA). PMID 19148276.
  • rs953413 regulates polyunsaturated fatty acid metabolism by modulating ELOVL2 expression (2020). iScience (G allele gives higher ELOVL2 enhancer activity than A). PMID 31928966.
  • Cornelis MC et al. (2006). Coffee, CYP1A2 genotype, and risk of myocardial infarction. JAMA.
  • Enattah NS et al. (2002). Identification of a variant associated with adult-type hypolactasia. Nat Genet 30:233–237. PMID 11788828.

Contributing

The SNP panel (data/snp_panel.json) is maintained by the skill author. To suggest additions or corrections, contact David de Lorenzo directly via GitHub (@drdaviddelorenzo) or open an issue tagging him in the main ClawBio repository.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Nutrigx」では何ができますか?

Personalised nutrition report from consumer genetic data (23andMe, AncestryDNA, VCF) — interrogates nutritionally-relevant SNPs and generates actionable dietary guidance, all computed locally.

TypingMindでNutrigxを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Nutrigxはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにNutrigxをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/ClawBio/ClawBio/tree/main/skills/nutrigxを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Nutrigxを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Nutrigxは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもNutrigxを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Nutrigx」は無料ですか?

はい。ClawBioがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇