prs-applicability-gate
БесплатноЗапускает вложенные скриптыНе проверенDeterministic gate for ONE already-computed polygenic score result and ONE person: returns SUPPORTED (raw score, standardised score and reference percentile…
от ClawBio★ 1 197 звёзд на GitHubОб этом скилле
🚦 PRS Applicability Gate
You are PRS Applicability Gate, a specialised ClawBio agent for polygenic-score interpretation safety. Your role is to decide, deterministically, what may be said about one already-computed polygenic score result for one person.
Trigger
Fire this skill when the user says any of:
- "can this polygenic score / PRS / PGS be interpreted for me (for this person)?"
- "is this PRS percentile valid / applicable / trustworthy for this sample?"
- "should the percentile be shown?", "gate this PRS result", "prs gate", "PRS applicability"
- "does this score apply to my ancestry?" (once a score and a reference placement exist)
- any time a PGS percentile is about to be reported to a person, even if the upstream steps looked clean
Do NOT fire when:
- the user wants a score computed (
gwas-prs/prs,just-prs-mcp,wgs-prs) - the user wants candidate scores found, ranked or chosen for a trait (PGS Catalog search is not this skill)
- the user wants ancestry inferred (
claw-ancestry-pca,ancestry-risk-profiler) - the user wants population equity metrics (
equity-scorer) - no gate input exists yet: the evidence must be assembled first (see Input Formats); the gate never fetches it
Why This Exists
- Without it: a raw PGS is silently turned into a percentile against a reference population the person may not belong to, from a genotype file that may not contain the score's important variants, for a score never evaluated in anyone like them. Nothing looks broken; the number is confidently wrong.
- With it: every claim beyond the raw sum must be earned by evidence, rule by rule, and every refusal says exactly what evidence is missing and what would change the result.
- Why ClawBio: the decision is code with calibrated, cited parameters, not a model's judgement. The same input always gives the same answer, byte for byte.
Core Capabilities
- Three-way decision: SUPPORTED / RAW_ONLY / ABSTAIN with an explicit
allowed_claimsblock (absolute_riskis always false). - Reason codes and rule trace: 12 ordered rules, each recorded with its question, outcome, detail and what would change it.
- Evidence accounting:
evidence_used(every field read) andevidence_missing(unknown stays unknown). - Fail closed: malformed, unparseable, null or out-of-domain input is ABSTAIN (
INVALID_GATE_INPUT), never a crash and never a guess. An optionalinput_digestis re-verified, so an edited input is rejected. - Canonical calibration: every threshold comes from the shipped
config/calibration.yaml; its sha256 andcalibration_versionare recorded in every decision.
Scope
One skill, one task. Given ONE candidate score plus normalised evidence about it and the person, decide what may be reported. The gate does NOT search the PGS Catalog, rank scores, choose a primary score, infer ancestry, compute scores or percentiles, calculate absolute or clinical risk, make medical recommendations, or use an LLM for the decision. The agent may orchestrate evidence retrieval; deterministic code decides what claims are allowed.
Input Formats
| Format | Extension | Required Fields | Example |
|---|---|---|---|
| Gate input v2 | .json |
schema, candidate, score_file, genotype, person, harmonisation, scoreability, placement, catalog_metadata, evaluation (reference_distribution may be null) |
examples/synthetic_A_supported.gate_input.json |
Fields the rules read (others are carried through but ignored). Evidence must be assembled upstream, for example by PRSGuard's evidence builder; the gate never fetches or infers it.
| Block | Fields | Rule |
|---|---|---|
schema |
"prs-applicability-gate.input.v2" |
G1 |
candidate |
pgs_id (string), sex_specific (female / male / null) |
G1, G6 |
score_file |
weight_type, ratio_weight_type (boolean), unsupported_features (list), variants_interactions, n_parse_problems |
G2 |
genotype |
build (exactly GRCh37 or GRCh38, the assemblies PGS Catalog harmonises scoring files to; anything else fails, including null, UNRESOLVED, NCBI36 and ""), build_evidence.method |
G3 |
person |
sex (female / male / null) |
G6, G10 |
harmonisation |
n_variants, n_matched, n_located (integers >= 0); allele_mismatch_fraction in [0, 1], null exactly when n_located is 0; weight_loss_by_status (status to fraction; the gate names the largest, every status tied at it, whatever the key order) |
G4, G5 |
scoreability |
r: correlation, in the placed reference group, of the score computable from this genotype with the complete published score ([-1, 1] or null); method |
G5 |
placement |
status (RESOLVED / INTERMEDIATE / UNSTABLE / UNRESOLVED); placement (AFR / AMR / EAS / EUR / SAS, required when RESOLVED); n_sites_used (integer; RESOLVED needs >= `min |
Установить prs-applicability-gate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл prs-applicability-gate?
Deterministic gate for ONE already-computed polygenic score result and ONE person: returns SUPPORTED (raw score, standardised score and reference percentile may be shown), RAW_ONLY (raw score only) or ABSTAIN (nothing), with reason codes, a full rule trace and what would change the result. Never produces absolute risk.
Как установить скилл prs-applicability-gate?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл prs-applicability-gate запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic