[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75PX7F3HG038D516HCSY9N9":3,"skill-same:01M75PX7F3HG038D516HCSY9N9":56},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":14,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":6,"ownerDescription":41,"updatedAt":42,"install":43,"resources":55},"01M75PX7F3HG038D516HCSY9N9","ancestry",null,"Use local ancestry reference-panel tools for 1000 Genomes GRCh37\u002FGRCh38 PCA\nprojection, marker overlap QC, and qualitative reference-neighbor context.","yo-steven\u002Fgenomi-exploration-20260613","yo-steven","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F262067909?v=4","01M75PWHCKN2Q8VHD38R3834KJ","Steven Li","01M75PWHD790RCCRFRJ8G5KTSR",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fyo-steven\u002Fgenomi-exploration-20260613\u002Fblob\u002Fmain\u002Fskills\u002Fancestry\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: ancestry\ndescription: |\n  Use local ancestry reference-panel tools for 1000 Genomes GRCh37\u002FGRCh38 PCA\n  projection, marker overlap QC, and qualitative reference-neighbor context.\ntools:\n  - genomi.check_libraries\n  - genomi.describe_context\n  - ancestry.list_reference_panels\n  - ancestry.build_source_context\n  - ancestry.check_sample_overlap\n  - ancestry.project_pca\n  - ancestry.estimate_population_context\n  - active_genome_index.approve_access\n  - genomi.parse_source\nmutating: true\n---\n\n# Ancestry Reference-Panel Context\n\nUse this skill when the user asks about ancestry, population context, PCA\nprojection, reference-panel similarity, or which public reference samples their\ngenome is closest to.\n\n## Contract\n\n- This capability is a local reference-panel workflow, not an ethnicity or race\n  predictor.\n- Private tools require current-session Active Genome Index access approval or a genome source\n  path supplied in the current chat.\n- Public metadata tools do not read an Active Genome Index.\n- Private genotype data stays local. Do not upload sample genotypes to external\n  APIs or URLs.\n- The MVP supports GRCh38 and GRCh37. If `genome_build` is omitted, the tool\n  default is GRCh38 unless an approved Active Genome Index provides another\n  build; the returned `defaults_applied` records that default.\n- Labels are 1000 Genomes reference-panel labels, not ethnicity, nationality,\n  race, tribe, caste, religion, or personal identity.\n- Output is qualitative reference-panel similarity in PCA space. Do not produce\n  component percentages, admixture proportions, haplogroups, local ancestry,\n  ancestry dates, or relative matching.\n\n> **Convention:** See `skills\u002Fconventions\u002Fcontext-routing.md`.\n> **Convention:** See `skills\u002Fconventions\u002Fevidence-quality.md`.\n> **Convention:** See `skills\u002F_output-rules.md`.\n\n## First Actions\n\n1. Use `ancestry.list_reference_panels` to check whether the matching-build\n   1000 Genomes 30x panel is installed and to inspect source URLs and label\n   definitions.\n2. Use `ancestry.build_source_context` when the user asks what the panel means\n   or when you need explicit label and method boundaries before answering.\n3. For sample-specific questions, use `genomi.describe_context` only\n   when the chat asks about current Active Genome Index context or already mentioned a\n   genome source. If the user supplied a genome source path, that is approval to read\n   it for this session.\n4. Use `ancestry.estimate_population_context` as the default sample-specific\n   entry point. It runs overlap QC and PCA projection when enough markers are\n   usable.\n5. Use `ancestry.check_sample_overlap` when you only need QC readiness, and\n   `ancestry.project_pca` when the host agent needs raw PCA coordinates and\n   nearest reference-neighbor distances.\n\n## Library Handling\n\nThe required optional library is build-specific:\n`ancestry-1000g-30x-grch38` for GRCh38 samples and\n`ancestry-1000g-30x-grch37` for GRCh37 samples. If a private ancestry tool\nreturns `requires_library_install`, explain that the compact local panel is\nneeded for marker overlap and PCA projection, then ask before installing with\nthe returned `ask_user.install_command` or `missing_library.install_command`.\nFor example:\n\n```bash\ngenomi install --libraries ancestry-1000g-30x-grch38\ngenomi install --libraries ancestry-1000g-30x-grch38,liftover-chains,ancestry-1000g-30x-grch37\n```\n\nDo not treat a missing panel as evidence about the sample.\n\n## Interpretation Rules\n\n- Report marker overlap, projection readiness, marker-overlap quality, nearest reference\n  group labels, and the method boundary.\n- Marker-overlap quality is graded by the fraction of the loaded panel covered\n  by usable sample dosages. There is no absolute marker-count floor.\n- If less than 20% of the loaded panel is usable, do not project.\n- If 20%-49% of the loaded panel is usable, projection is allowed with low\n  marker-overlap quality and reference-neighbor context only.\n- If 50%-79% of the loaded panel is usable, projection is allowed with moderate\n  marker-overlap quality.\n- If at least 80% of the loaded panel is usable, projection is allowed with\n  high marker-overlap quality.\n- Use wording like: \"The sample projects closest to the EUR reference cluster\n  in this panel.\"\n- Do not say \"predict ethnicity\", \"determine origin\", or imply personal\n  identity from a reference-panel label.\n\n## User-Facing Answer Shape\n\nIf an Active Genome Index was projected, give the qualitative reference-panel\nsimilarity, marker-overlap quality, and limitations. If the tool only returned public\nmetadata, answer directly without an Active Genome Index status disclaimer.\n\n## Cross-Capability Synthesis\n\nA scope-limited result from this capability is not a final user-facing answer\nwhen other Genomi capabilities can contribute orthogonal evidence to the same\nquestion. Returning \"cannot answer\" while applicable capabilities remain\nunexamined is a host-agent failure mode.\n\n## Tools\n\n### ancestry.build_source_context\n\nExplain 1000 Genomes ancestry panel provenance, label meanings, sampling limits, and method boundaries.\n\n**Use when**: The user asks what the ancestry panel means, where labels come from, or why output is reference similarity rather than identity.\n\n**Why necessary**: Ancestry language is easy to overstate; source context gives agents explicit label and method boundaries before answering.\n\n**Not for**: Reading or projecting a user's genome; use ancestry.estimate_population_context after approval.\n\n**Example prompts**: Explain the source and limitations of the ancestry panel.\n\n**Result semantics**: Public metadata only; no Active Genome Index is read.\n\n### ancestry.check_sample_overlap\n\nCheck how many installed 1000 Genomes ancestry panel markers are usable in an approved Active Genome Index.\n\n**Use when**: The agent needs to know if a selected sample has enough overlap with the installed ancestry reference panel before projection.\n\n**Why necessary**: Projection is not interpretable below the overlap thresholds; this tool separates QC from interpretation.\n\n**Not for**: Public panel metadata; use ancestry.list_reference_panels. Ethnicity or origin prediction; ancestry tools provide reference-panel similarity only.\n\n**Example prompts**: Does my Active Genome Index have enough overlap with the ancestry panel?\n\n**Result semantics**: Reports usable marker count and projection readiness. It must not be interpreted as ethnicity, nationality, race, tribe, caste, religion, or identity.\n\n### ancestry.estimate_population_context\n\nEstimate qualitative reference-panel similarity for an approved GRCh37 or GRCh38 sample using local 1000 Genomes PCA projection.\n\n**Use when**: The user asks for ancestry or population context from their genome and has approved Active Genome Index use in this session.\n\n**Why necessary**: Provides a bounded default entry that combines overlap QC and PCA projection while preserving reference-similarity language.\n\n**Not for**: Ethnicity prediction, determining origin, component percentages, haplogroups, local ancestry, or relative matching.\n\n**Example prompts**: What 1000 Genomes reference cluster is my Active Genome Index closest to?\n\n**Result semantics**: The interpretation is qualitative reference-panel similarity only and must never be phrased as ethnicity, nationality, race, tribe, caste, religion, or personal identity.\n\n### ancestry.list_reference_panels\n\nList local ancestry reference panels, installation state, public source URLs, label definitions, and method boundaries.\n\n**Use when**: The user asks what ancestry reference panels are available, whether the 1000 Genomes panel is installed, or what source data and labels are used.\n\n**Why necessary**: Public panel metadata can be inspected without Active Genome Index access approval and tells agents whether private projection tools are answerable.\n\n**Not for**: Projecting or interpreting a user's genome; use ancestry.estimate_population_context after Active Genome Index access approval.\n\n**Example prompts**: What ancestry reference panel does Genomi have installed?\n\n**Result semantics**: Returns public reference-panel metadata and install status only; it does not read Active Genome Index.\n\n### ancestry.project_pca\n\nProject an approved sample into the installed 1000 Genomes ancestry PCA space and return nearest reference neighbors.\n\n**Use when**: The user or host agent needs PCA coordinates and nearest reference neighbors after scoped Active Genome Index access is approved.\n\n**Why necessary**: This is the focused computational step behind ancestry.estimate_population_context and avoids component\u002Fadmixture proportion claims.\n\n**Not for**: Haplogroups, local ancestry, relative matching, component proportions, or identity\u002Forigin prediction.\n\n**Example prompts**: Project my genome into the matching-build 1000 Genomes PCA panel.\n\n**Result semantics**: Returns PCA coordinates and reference-neighbor distances only; labels are reference-panel labels, not personal identity labels.\n","# Ancestry Reference-Panel Context\n\nUse this skill when the user asks about ancestry, population context, PCA\nprojection, reference-panel similarity, or which public reference samples their\ngenome is closest to.\n\n## Contract\n\n- This capability is a local reference-panel workflow, not an ethnicity or race\n  predictor.\n- Private tools require current-session Active Genome Index access approval or a genome source\n  path supplied in the current chat.\n- Public metadata tools do not read an Active Genome Index.\n- Private genotype data stays local. Do not upload sample genotypes to external\n  APIs or URLs.\n- The MVP supports GRCh38 and GRCh37. If `genome_build` is omitted, the tool\n  default is GRCh38 unless an approved Active Genome Index provides another\n  build; the returned `defaults_applied` records that default.\n- Labels are 1000 Genomes reference-panel labels, not ethnicity, nationality,\n  race, tribe, caste, religion, or personal identity.\n- Output is qualitative reference-panel similarity in PCA space. Do not produce\n  component percentages, admixture proportions, haplogroups, local ancestry,\n  ancestry dates, or relative matching.\n\n> **Convention:** See `skills\u002Fconventions\u002Fcontext-routing.md`.\n> **Convention:** See `skills\u002Fconventions\u002Fevidence-quality.md`.\n> **Convention:** See `skills\u002F_output-rules.md`.\n\n## First Actions\n\n1. Use `ancestry.list_reference_panels` to check whether the matching-build\n   1000 Genomes 30x panel is installed and to inspect source URLs and label\n   definitions.\n2. Use `ancestry.build_source_context` when the user asks what the panel means\n   or when you need explicit label and method boundaries before answering.\n3. For sample-specific questions, use `genomi.describe_context` only\n   when the chat asks about current Active Genome Index context or already mentioned a\n   genome source. If the user supplied a genome source path, that is approval to read\n   it for this session.\n4. Use `ancestry.estimate_population_context` as the default sample-specific\n   entry point. It runs overlap QC and PCA projection when enough markers are\n   usable.\n5. Use `ancestry.check_sample_overlap` when you only need QC readiness, and\n   `ancestry.project_pca` when the host agent needs raw PCA coordinates and\n   nearest reference-neighbor distances.\n\n## Library Handling\n\nThe required optional library is build-specific:\n`ancestry-1000g-30x-grch38` for GRCh38 samples and\n`ancestry-1000g-30x-grch37` for GRCh37 samples. If a private ancestry tool\nreturns `requires_library_install`, explain that the compact local panel is\nneeded for marker overlap and PCA projection, then ask before installing with\nthe returned `ask_user.install_command` or `missing_library.install_command`.\nFor example:\n\n```bash\ngenomi install --libraries ancestry-1000g-30x-grch38\ngenomi install --libraries ancestry-1000g-30x-grch38,liftover-chains,ancestry-1000g-30x-grch37\n```\n\nDo not treat a missing panel as evidence about the sample.\n\n## Interpretation Rules\n\n- Report marker overlap, projection readiness, marker-overlap quality, nearest reference\n  group labels, and the method boundary.\n- Marker-overlap quality is graded by the fraction of the loaded panel covered\n  by usable sample dosages. There is no absolute marker-count floor.\n- If less than 20% of the loaded panel is usable, do not project.\n- If 20%-49% of the loaded panel is usable, projection is allowed with low\n  marker-overlap quality and reference-neighbor context only.\n- If 50%-79% of the loaded panel is usable, projection is allowed with moderate\n  marker-overlap quality.\n- If at least 80% of the loaded panel is usable, projection is allowed with\n  high marker-overlap quality.\n- Use wording like: \"The sample projects closest to the EUR reference cluster\n  in this panel.\"\n- Do not say \"predict ethnicity\", \"determine origin\", or imply personal\n  identity from a reference-panel label.\n\n## User-Facing Answer Shape\n\nIf an Active Genome Index was projected, give the qualitative reference-panel\nsimilarity, marker-overlap quality, and limitations. If the tool only returned public\nmetadata, answer directly without an Active Genome Index status disclaimer.\n\n## Cross-Capability Synthesis\n\nA scope-limited result from this capability is not a final user-facing answer\nwhen other Genomi capabilities can contribute orthogonal evidence to the same\nquestion. Returning \"cannot answer\" while applicable capabilities remain\nunexamined is a host-agent failure mode.\n\n## Tools\n\n### ancestry.build_source_context\n\nExplain 1000 Genomes ancestry panel provenance, label meanings, sampling limits, and method boundaries.\n\n**Use when**: The user asks what the ancestry panel means, where labels come from, or why output is reference similarity rather than identity.\n\n**Why necessary**: Ancestry language is easy to overstate; source context gives agents explicit label and method boundaries before answering.\n\n**Not for**: Reading or projecting a user's genome; use ancestry.estimate_population_context after approval.\n\n**Example prompts**: Explain the source and limitations of the ancestry panel.\n\n**Result semantics**: Public metadata only; no Active Genome Index is read.\n\n### ancestry.check_sample_overlap\n\nCheck how many installed 1000 Genomes ancestry panel markers are usable in an approved Active Genome Index.\n\n**Use when**: The agent needs to know if a selected sample has enough overlap with the installed ancestry reference panel before projection.\n\n**Why necessary**: Projection is not interpretable below the overlap thresholds; this tool separates QC from interpretation.\n\n**Not for**: Public panel metadata; use ancestry.list_reference_panels. Ethnicity or origin prediction; ancestry tools provide reference-panel similarity only.\n\n**Example prompts**: Does my Active Genome Index have enough overlap with the ancestry panel?\n\n**Result semantics**: Reports usable marker count and projection readiness. It must not be interpreted as ethnicity, nationality, race, tribe, caste, religion, or identity.\n\n### ancestry.estimate_population_context\n\nEstimate qualitative reference-panel similarity for an approved GRCh37 or GRCh38 sample using local 1000 Genomes PCA projection.\n\n**Use when**: The user asks for ancestry or population context from their genome and has approved Active Genome Index use in this session.\n\n**Why necessary**: Provides a bounded default entry that combines overlap QC and PCA projection while preserving reference-similarity language.\n\n**Not for**: Ethnicity prediction, determining origin, component percentages, haplogroups, local ancestry, or relative matching.\n\n**Example prompts**: What 1000 Genomes reference cluster is my Active Genome Index closest to?\n\n**Result semantics**: The interpretation is qualitative reference-panel similarity only and must never be phrased as ethnicity, nationality, race, tribe, caste, religion, or personal identity.\n\n### ancestry.list_reference_panels\n\nList local ancestry reference panels, installation state, public source URLs, label definitions, and method boundaries.\n\n**Use when**: The user asks what ancestry reference panels are available, whether the 1000 Genomes panel is installed, or what source data and labels are used.\n\n**Why necessary**: Public panel metadata can be inspected without Active Genome Index access approval and tells agents whether private projection tools are answerable.\n\n**Not for**: Projecting or interpreting a user's genome; use ancestry.estimate_population_context after Active Genome Index access approval.\n\n**Example prompts**: What ancestry reference panel does Genomi have installed?\n\n**Result semantics**: Returns public reference-panel metadata and install status only; it does not read Active Genome Index.\n\n### ancestry.project_pca\n\nProject an approved sample into the installed 1000 Genomes ancestry PCA space and return nearest reference neighbors.\n\n**Use when**: The user or host agent needs PCA coordinates and nearest reference neighbors after scoped Active Genome Index access is approved.\n\n**Why necessary**: This is the focused computational step behind ancestry.estimate_population_context and avoids component\u002Fadmixture proportion claims.\n\n**Not for**: Haplogroups, local ancestry, relative matching, component proportions, or identity\u002Forigin prediction.\n\n**Example prompts**: Project my genome into the matching-build 1000 Genomes PCA panel.\n\n**Result semantics**: Returns PCA coordinates and reference-neighbor distances only; labels are reference-panel labels, not personal identity labels.\n",{"name":5,"tools":24,"mutating":34,"description":35},[25,26,27,28,29,30,31,32,33],"genomi.check_libraries","genomi.describe_context","ancestry.list_reference_panels","ancestry.build_source_context","ancestry.check_sample_overlap","ancestry.project_pca","ancestry.estimate_population_context","active_genome_index.approve_access","genomi.parse_source",true,"Use local ancestry reference-panel tools for 1000 Genomes GRCh37\u002FGRCh38 PCA\nprojection, marker overlap QC, and qualitative reference-neighbor context.\n","main","baf95108bc0bb0453d4d64ab342ce9edc513985c","skills\u002Fancestry","https:\u002F\u002Fgithub.com\u002Fyo-steven\u002Fgenomi-exploration-20260613","https:\u002F\u002Fgithub.com\u002Fyo-steven","2nd biggest fan of Garry Tan","2026-06-14 07:28:34",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":34},[45,48,51],{"tool":46,"command":47},"npx","npx skills add yo-steven\u002Fgenomi-exploration-20260613 --skill ancestry",{"tool":49,"command":50},"bunx","bunx skills add yo-steven\u002Fgenomi-exploration-20260613 --skill ancestry",{"tool":52,"command":53},"pnpm","pnpm dlx skills add yo-steven\u002Fgenomi-exploration-20260613 --skill ancestry","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fyo-steven\u002Fgenomi-exploration-20260613\u002Fblob\u002Fmain\u002Fskills\u002Fancestry\u002FSKILL.md",[],[57,64,71,78,85,92],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M75PYQ79GDHFYVWT6XR7Y4JW","variant-evidence","Answer specific rsID, allele, gene, region, genotype, and absence\u002Fcallability\nquestions using explicit session context or public evidence.","https:\u002F\u002Fgithub.com\u002Fyo-steven\u002Fgenomi-exploration-20260613\u002Fblob\u002Fmain\u002Fskills\u002Fvariant-evidence\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M75PYMQWNAHAPQS5NP90RSQG","journal-source-research","Journal sub-skill for focused public\u002Fsource evidence review and reviewed\nfinding write-back before interpretation or answer synthesis.","https:\u002F\u002Fgithub.com\u002Fyo-steven\u002Fgenomi-exploration-20260613\u002Fblob\u002Fmain\u002Fskills\u002Fsource-research\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M75PYJGYQ3A9Q2TN02BJ1AKA","sequence","Deterministic sequence utilities for translation, ORFs, restriction sites,\nKozak context, primer checks, and local FASTA record matching.","https:\u002F\u002Fgithub.com\u002Fyo-steven\u002Fgenomi-exploration-20260613\u002Fblob\u002Fmain\u002Fskills\u002Fsequence\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M75PYFD88KZA7NZ8WZ8TWRX4","rare-disease-cancer","Plan rare disease, hereditary disease, and cancer risk source investigation\nfrom public targets or selected active genome evidence.","https:\u002F\u002Fgithub.com\u002Fyo-steven\u002Fgenomi-exploration-20260613\u002Fblob\u002Fmain\u002Fskills\u002Frare-disease-cancer\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M75PYBE8FEC36C75CS6TZZTM","prs","Apply published polygenic scores from PGS Catalog to approved local personal DNA and return raw weighted score plus overlap QC.","https:\u002F\u002Fgithub.com\u002Fyo-steven\u002Fgenomi-exploration-20260613\u002Fblob\u002Fmain\u002Fskills\u002Fprs\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M75PY79TYD7AGMF5AGNJV57J","pharmacogenomics","Answer drug-response, medication, PharmGKB-style, PGxDB, ATC, DrugBank,\ngene-drug, and variant-drug questions using public PGx evidence plus local\nsample genotype support when an Active Genome Index is selected.","https:\u002F\u002Fgithub.com\u002Fyo-steven\u002Fgenomi-exploration-20260613\u002Fblob\u002Fmain\u002Fskills\u002Fpharmacogenomics\u002FSKILL.md",[],[]]