Logo: Target Safety

Target Safety

Organisatioun
K-Dense-AI
target-safety

Assemble the human genetic evidence for and against a target before a programme commits to it — the evidence class that most improves the odds of surviving clinical development. Use this skill to pull gnomAD constraint metrics (LOEUF, pLI, observed/expected) that show whether loss of function is tolerated in people, retrieve GWAS Catalog associations and fine-mapped credible sets for a gene, and read a natural human knockout as a safety readout. Also trigger on gnomAD, LOEUF, pLI, loss-of-function intolerance, mutational constraint, GWAS Catalog, credible set, human knockout, genetic support, or target safety dossier.

Iwwersiicht

EditeurK-Dense-AI
Repositorydrug-discovery-agent-skills
Skill-Nummtarget-safety
Stären
51
Forks
5
Matgeliwwert Dateien
7
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 7 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    K-Dense-AI huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Target Safety an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/K-Dense-AI/drug-discovery-agent-skills/tree/main/skills/target-safety
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/K-Dense-AI/drug-discovery-agent-skills.git /tmp/drug-discovery-agent-skills
mkdir -p .claude/skills
cp -r /tmp/drug-discovery-agent-skills/skills/target-safety .claude/skills/target-safety
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Target Safety an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Target Safety automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Target Safety net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Target Safety Assessment

Two public datasets answer the question that comes before every programme: what happens to people who naturally have less of this protein? gnomAD says whether such people exist. The GWAS Catalog says what else changes when they do. Targets with human genetic support are roughly twice as likely to survive clinical development, and this is the only evidence class available before a molecule does.

Services: https://gnomad.broadinstitute.org/api (GraphQL, POST) · https://www.ebi.ac.uk/gwas/rest/api/v2 (REST). Both unauthenticated. Checked against: gnomAD v4.1 and the live GWAS Catalog v2 API, August 2026.

Read references/gnomad-constraint.md before quoting a constraint number, references/gwas-catalog.md before writing a query by hand, and references/interpreting-genetic-evidence.md before drawing a conclusion — that one is judgement, not syntax.

The three scripts

ScriptAnswers
gnomad_constraint.pyDo healthy humans exist who have lost this protein?
gwas_evidence.pyWhat traits is this gene associated with, and how solidly?
safety_dossier.pyBoth at once, as a verdict with its inputs beside it

A drug is a chemical phenocopy of a loss-of-function variant

That equivalence is the whole idea. If people carrying LoF variants in a gene are healthy and common, inhibiting the protein is likely survivable. If those variants have been removed from the population by selection, that is a warning you can read years before a tox study.

bash
python skills/target-safety/scripts/gnomad_constraint.py compare LRRK2 PCSK9 SCN2A KRAS HTT
symbol  loeuf   band            pLI        obs_lof  exp_lof
SCN2A   0.154   constrained     1          20       188.7
KRAS    0.2264  constrained     0.9998     1        20.95
HTT     0.3379  constrained     1          104      362.3
LRRK2   0.7537  tolerant        1.317e-43  203      302.6
PCSK9   1.144   unconstrained   2.765e-18  57       62.12

obs_lof against exp_lof is the whole argument. KRAS: one observed loss-of-function variant where twenty-one were expected. PCSK9: fifty-seven observed against sixty-two expected — no depletion at all. Human PCSK9 knockouts are healthy and have low LDL cholesterol, which is exactly why evolocumab and alirocumab exist. The constraint table said so before the drugs did.

Use LOEUF, not pLI. pLI is a posterior forced toward 0 or 1 and cannot rank two intolerant genes; LOEUF is continuous and carries its uncertainty in the value. Note how pLI calls both SCN2A and HTT exactly 1 while LOEUF separates them by a factor of two.

An unrecognised GWAS filter returns the entire catalogue

This is the trap to get right on the association side:

GET /associations?mappedGene=LRRK2   ->  93 associations
GET /associations?gene=LRRK2         ->  1142122 associations

Both are HTTP 200. gene is not a parameter, so it was silently dropped and the response is the whole catalogue. Nothing says the filter was ignored. gwas_get() validates parameter names locally and refuses anything unknown, because there is no server-side signal to react to.

Association is positional, not causal

bash
python skills/target-safety/scripts/gwas_evidence.py traits LRRK2
trait                     best_p    associations  studies  sole_mapping
bone density              1e-300    1             1        0
Parkinson disease         4e-148    23            18       18
cathepsin L1 measurement  4e-39     2             2        0

The strongest p-value in that table is not the answer. Bone density at 1e-300 has zero associations mapping to LRRK2 alone — the causal gene at that locus is almost certainly a neighbour. Parkinson disease has eighteen sole-mapping associations across eighteen studies. Ranking by p-value alone picks the wrong one.

Never rank by association count either: the same locus is rediscovered by every new cohort, so a count measures genotyping effort.

The combined readout

bash
python skills/target-safety/scripts/safety_dossier.py gene PCSK9 LRRK2 HTT
symbol  loeuf   band           genome_wide_traits  sole_mapped_hits  verdict
PCSK9   1.144   unconstrained  44                  115               genetically supported
LRRK2   0.7537  tolerant       37                  39                genetically supported
HTT     0.3379  constrained    59                  92                associated but constrained

The two axes are independent and mean opposite things. Tolerant plus associated is the pattern that most improves the odds. Constrained plus associated — HTT — means the biology is real but systemic inhibition should expect mechanism-based toxicity, which is precisely the live debate about lowering wild-type huntingtin.

Four ways this evidence misleads

  1. Absent constraint is missing data, not zero. A gene with too little coverage has no estimate. Reporting that as LOEUF 0 inverts the conclusion. The scripts return unknown.
  2. Constraint only speaks to inhibition. An agonist is not phenocopied by loss of function.
  3. Late-onset effects are invisible. Selection acts on reproductive fitness, so a gene whose loss causes disease at seventy looks unconstrained — in a population that is mostly patients.
  4. Association gives no direction. Whether to inhibit or activate needs an allelic series or Mendelian randomisation, not the association table.

When to stop using these APIs

Direction of effect, effect size, and causal-gene resolution all need summary statistics rather than the association table — fine-mapping, colocalisation, and MR with TwoSampleMR. For variant-level detail, homozygous LoF counts, and per-population frequencies, use the gnomAD browser directly.

Composing with the rest of the bundle

  • open-targets → alongside: aggregated evidence plus L2G scoring, which resolves some of the causal-gene ambiguity this API leaves open.
  • depmap → alongside: cellular essentiality is a different question from human constraint — a gene can be pan-essential in culture and unconstrained in people.
  • uniprot-rcsb → before: resolve an alias to a current HGNC symbol; neither API resolves them.
  • openfda → after: for a target already drugged, what actually happened in people.
  • clinicaltrials → alongside: whether anyone has taken the genetic hypothesis into a trial.

Reporting results honestly

Give LOEUF with its band and the observed/expected counts behind it. Give the best p-value, the number of independent studies, and how many associations map to the gene alone. Call the verdict a heuristic and show both axes. Say "loss of function is tolerated in humans", not "the target is safe"; say "this locus is associated with", not "this gene causes". Genetic support roughly doubles the odds of approval — from low to less low.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Target Safety?

Assemble the human genetic evidence for and against a target before a programme commits to it — the evidence class that most improves the odds of surviving clinical development. Use this skill to pull gnomAD constraint metrics (LOEUF, pLI, observed/expected) that show whether loss of function is tolerated in people, retrieve GWAS Catalog associations and fine-mapped credible sets for a gene, and read a natural human knockout as a safety readout. Also trigger on gnomAD, LOEUF, pLI, loss-of-function intolerance, mutational constraint, GWAS Catalog, credible set, human knockout, genetic suppor...

Firwat Target Safety op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Target Safety besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Target Safety an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/K-Dense-AI/drug-discovery-agent-skills/tree/main/skills/target-safety an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Target Safety benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Target Safety benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Target Safety domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Target Safety gratis?

Jo. K-Dense-AI huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇