لوگوی اسکیلیکس اسکیلیکس | Skilliks آکادمی و استودیوی ابزارهای AI تاریخ شمسی… --:--:--

superDNA — local DNA analysis & report

آزاد تازه‌وارد تاییدشده امن

کارهای تکراری ترمینال، مدیریت شاخه‌ها، نوشتن پیام کامیت استاندارد و ساخت اسکریپت‌های کمکی را سریع و یکدست انجام می‌دهد. (شامل ۱۷ گام عملی · سازگار با Claude Code).

سازگاری با ابزارها: این Skill به مسیر/قابلیت اختصاصی Claude Code وابسته است. مشاهدهٔ جدول سازگاری

متن دستورالعمل (SKILL.md)

دسترسی کامل فعال است
---
name: superdna
description: Analyze a raw DNA file (MyHeritage, 23andMe, AncestryDNA, FTDNA, LivingDNA) entirely locally and build a single-file HTML infographic report - origins (Y haplogroup + admixture), traits, nutrition, fitness, pharmacogenomics, and opt-in health findings. Use when the user wants to analyze their DNA, genome, or raw genotype file, or asks about their ancestry/traits/health markers from a DNA test export.
---

# superDNA — local DNA analysis & report

Turn a consumer DNA raw-data export into a polished personal genome report.
Everything computes locally; the report is one self-contained HTML file.

## Privacy rules (non-negotiable)

1. **NEVER read the raw genome file into context** — not with Read, not with
   `head`/`cat`/`grep`. It is the user's most sensitive dataset. All parsing
   happens inside the Python scripts.
2. You may see only: script outputs (extracted marker findings, computed
   summaries) and the results JSON. That is what the scripts print by design.
3. Never upload the file anywhere and never copy it outside its directory. If the
   directory containing the raw file is inside a git repository, verify the file is
   ignored before anything else:
   `git -C <dir-of-raw-file> check-ignore <file> || echo "NOT IGNORED — add to .gitignore first"`.
4. Do not volunteer gated findings the user has not consented to (the analyzer
   already withholds them — do not work around it).

## Paths (read first)

This skill is usually installed under `~/.claude/skills/superdna` while your working
directory is the user's project. Therefore:

- Set `SKILL_DIR` to the directory containing this SKILL.md, and invoke every script
  by absolute path: `python3 "$SKILL_DIR/scripts/analyze.py" ...`.
- Write ALL outputs (results.json, narrative.json, report.html) to
  `"$SKILL_DIR/reports/"` — that directory is gitignored in the skill repo.
  **Never write extracted findings into the user's project directory**: results.json
  can contain consented high-stakes findings, and the user's project is not
  guaranteed to gitignore it.

## Workflow

### 1. Locate the file
<!-- ‹guest · 2026-12-06› -->

Ask the user for the path to their raw DNA export if not given. Typical names:
`MyHeritage_raw_dna_data.csv`, `genome_*.txt` (23andMe), `AncestryDNA.txt`, `*.csv` (FTDNA).
Do not open it — pass the path to the scripts.

### 2. Consent gate (BEFORE analysis)

Ask via AskUserQuestion (multiSelect) which high-stakes topics to include,
default none:

- **alzheimers** — APOE type (rs429358+rs7412 or the rs4420638 proxy). Can reveal
  ~8-12x elevated Alzheimer's risk. Once seen it cannot be unseen.
- **parkinsons** — LRRK2 G2019S variant.
- **hereditary-cancer** — BRCA1/BRCA2 founder variants typed on some chips.
  Array calls here are frequently false positives; findings are framed as
  requiring clinical confirmation.
- **deep-health** — only when deep mode is set up: ClinVar pathogenic-class hits
  typed on the chip (may surface BRCA-class findings; high array false-positive
  rates — always framed as requiring clinical confirmation).

Phrase it plainly: "Your file may contain markers with serious, unchangeable
health implications. Which, if any, do you want included? (default: none)".
Never pre-select them, never recommend including them.

### 3. Run the analysis

```bash
python3 "$SKILL_DIR/scripts/analyze.py" <path-to-raw-file> --out "$SKILL_DIR/reports/results.json" [--gated topic1,topic2]
```

Stdout is the extracted-findings JSON — read it from the terminal output.
Failures print one-line `error:` messages (unrecognized format lists the supported
providers; unknown `--gated` topics print a warning naming the valid ones).
If `$SKILL_DIR/cache/deep.sqlite` exists, two extra ungated categories appear
automatically: `deep_pgx` (PharmGKB drug annotations) and `deep_pgx_normals`
(drugs with no unusual response); the gated `deep-health` topic also becomes
available. In the narrative, ignore `not_covered` rsids (the report renders them
in its appendix) and never build claims on findings with `"effect": "uninterpreted"`.

### 4. Write the narrative
<!-- ‹guest · 2026-12-06› -->

Create `reports/narrative.json` from the findings you just saw (and ONLY from
them — no invented genotypes, no diagnoses):

```json
{
  "title": "...",             // short, dignified, personal
  "intro": "...",             // 2-4 sentences synthesizing the whole picture
  "origins": "...",           // haplogroup + admixture story in plain words
  "categories": {             // one 1-3 sentence blurb per category present
    "traits": "...", "nutrition": "...", "fitness": "...", "psychology": "...",
    "pharmacogenomics": "...", "health": "...", "carrier": "..."
  }
}
```

Every field is optional. Any slot you leave empty, including a category you skip, is
filled by a fixed rule-based summary (`scripts/summaries.py`) that counts and names the
notable findings, and the report discloses that. Write the slots where you can add real
synthesis rather than restating counts.

Tone: warm, precise, honest about uncertainty. Weak-evidence categories
(psychology, xenobiotic metabolism, some fitness) must be framed as such.
Reference actual genotypes the user can verify.

Three hard rules — the first two are where a generated sentence does real damage:

- **Findings with an `action` field are not yours to narrate.** The report already
  renders one fixed sentence per action value. Do not restate, expand on, or soften
  them. Naming the drug a finding pertains to is fine and often unavoidable — what you
  must never do is state or imply a **dose, a substitution, or a course of action**
  ("usually means a lower dose", "ask about an alternative", "take a B-complex").
  Describe what was found; the next step is the template's to say, not yours.
- **Never combine markers into a composite risk claim.** Synthesis across ancestry
  and traits is the best thing in the report; synthesis across risk loci is not
  supported by the evidence at any of these effect sizes. No "your cardiovascular
  picture", no stacking 9p21 with TCF7L2 with Factor V Leiden, no risk multipliers.
- **Deep-mode ClinVar hits state a copy count, not a diagnosis.** One copy is not
  "you have" the condition. Leave those cards to speak for themselves.

<!-- ‹guest · 2026-12-06› -->
### 5. Generate and open the report

```bash
python3 "$SKILL_DIR/scripts/generate_report.py" "$SKILL_DIR/reports/results.json" \
  --narrative "$SKILL_DIR/reports/narrative.json" --out "$SKILL_DIR/reports/report.html"
open "$SKILL_DIR/reports/report.html"        # macOS; use xdg-open on Linux
```

### 6. Game-styled sheets (only if asked)

Alternate views of the same analysis exist as skins. Generate one from the results you
already have when the user asks for a game-styled or character-sheet version:

| They ask for | Skin | Sheet |
|---|---|---|
| a terminal, retro computer or post-apocalyptic look | `terminal` | seven attributes, green CRT |
| a fantasy RPG or character sheet | `fantasy` | ten skills in three paths, a guiding star |
| a tabletop, pen-and-paper or d20 sheet | `tabletop` | six ability scores, a class |
| a sci-fi or spaceship version | `starship` | ship systems, a duty station |

If they name a specific video game, pick the closest skin and say which one you used;
the skins are original and do not reproduce any game's names or artwork. List
`$SKILL_DIR/template/skins/` if you need to know which skins exist.

```bash
python3 "$SKILL_DIR/scripts/generate_report.py" "$SKILL_DIR/reports/results.json" \
  --theme tabletop --out "$SKILL_DIR/reports/tabletop.html"
```

You don't pass a narrative and nothing is re-analysed. Every string in those pages is
built from the results file, so there is nothing for you to write. They are second
views, not replacements. Never offer one instead of the main report, and don't suggest
them unprompted.

Two things to say when handing one over, because these pages are meant to be shown to
people in a way the monograph is not: the scores are a game device computed only from
low-stakes markers, and the medical tab holds their real health, drug-response and
carrier findings behind a reveal, so a screenshot does not leak them by default.

If the user asks for a sheet based on their ancestry, such as a fantasy race, a house
<!-- ‹guest · 2026-12-06› -->
or a faction, say plainly that the sheet does not do that. Ancestry is reported as
measured and is never translated into a game identity, and ancestry-informative
markers do not affect any score. Offer the emblem instead (the star, class or station),
which comes from their derived stats.

If the user wants to duel a friend, tell them to open their sheet, use "Duel a friend"
to make a battle card, and send the challenge link. To run a duel offline from two card
codes, use `python3 "$SKILL_DIR/scripts/duel.py" CODE_A CODE_B --out
"$SKILL_DIR/reports/duel.html"`. Both cards must come from the same skin. If they ask who
"has better DNA", say the duel is decided mostly by dice and the stats come only from
low-stakes markers, so it says nothing about whose genome is better.

### 7. Offer deep mode (optional)

If `$SKILL_DIR/cache/deep.sqlite` does not exist (check with `test -f`), offer once:
"Want deeper coverage? A one-time ~300MB download of ClinVar and PharmGKB
builds a local annotation database (everything stays on your machine)."
If accepted: `python3 "$SKILL_DIR/scripts/setup_deep.py"`, then re-run from step 3 —
the analyzer picks the database up automatically.

## Troubleshooting

- **"Unrecognized DNA file format"** — a `.zip` or `.gz` straight from the provider is
  read as it is, so check it's the raw data download and not, say, a match list or a
  family-tree export. If the user hasn't downloaded their raw data yet, point them to
  "Getting your raw data file" in the README, which has the steps for each provider.
- **Female users**: no Y haplogroup is normal; the report says so gracefully.
- **MyHeritage files**: no mtDNA markers (provider strips them) — expected.
- Tests: `python3 -m unittest discover -s tests` must pass before committing changes.

این نسخه با نشانه‌گذاری اختصاصی حساب شما نمایش داده می‌شود. برای نصب سریع، به تب نصب و راه‌اندازی بروید.

مهارت‌های مشابه و پیشنهادی

مشاهدهٔ همه ←
توسعه وب
✦ Pro

Web Application Testing

«Web Application Testing» همان چیزی است که وقتی سر توسعه وب کار می‌کنید کم است: دستیار شما با این مهارت «مدیریت هوشمند …

⚡ /webapp-testing SKILL.md
Claude / Claude Code
۹۶/۱۰۰ ★ ۱۹۸,۷۹۴
توسعه وب
✦ Pro

Web Artifacts Builder

این مهارت با نام «Web Artifacts Builder» تجربهٔ یک کاربلد در توسعه وب را کنار دستیار شما می‌گذارد؛ کافی است درخواست بده…

⚡ /web-artifacts-builder SKILL.md
Claude / Claude Code
۹۶/۱۰۰ ★ ۱۹۸,۷۹۴
توسعه وب
✦ Pro

Docs Page Skill

برای کدها، APIها و تغییرات پروژه مستندات تمیز، README کاربردی و گزارش تغییرات (Changelog) قابل فهم می‌نویسد. (شامل ۱۹ گ…

⚡ /docs-page SKILL.md
Claude / Claude CodeOpenAI Codex +۱
۹۶/۱۰۰ ★ ۱۰۹,۵۹۶
توسعه وب
✦ Pro

Canopy Part Title

قواعد و مراحل استاندارد توسعه وب را به دستیار هوش مصنوعی اضافه می‌کند تا خروجی یکدست بگیرید. (شامل ۱۱ گام عملی · سازگار…

⚡ /canopy-part-title SKILL.md
Claude / Claude CodeOpenAI Codex +۱
۹۶/۱۰۰ ★ ۹۰,۱۴۸
توسعه وب
✦ Pro

Vercel React Best Practices

در طراحی مسیرهای سرور، فرم‌ها، فرانت‌اند مدرن و ارتباط امن کلاینت و سرور طبق استانداردهای روز کمک می‌کند. (شامل ۷۱ گام …

⚡ /vercel-react-best-practices SKILL.md
MCP
۹۶/۱۰۰ ★ ۵۳,۹۱۶
توسعه وب
✦ Pro

Find Skills

این مهارت با نام «Find Skills» تجربهٔ یک کاربلد در توسعه وب را کنار دستیار شما می‌گذارد؛ کافی است درخواست بدهید تا «توس…

⚡ /find-skills SKILL.md
Claude / Claude Code
۹۶/۱۰۰ ★ ۴۰,۵۰۹