Logo von Open Targets

Open Targets

Organisation
K-Dense-AI
open-targets

Query the Open Targets Platform GraphQL API for target-disease associations, genetic and clinical evidence, tractability and safety liabilities, target prioritisation metrics, known drugs and mechanisms of action, and disease ontology. Use this skill for target identification and validation, target-disease evidence review, druggability assessment, drug repurposing, and resolving gene, disease, and drug names to Ensembl, MONDO, and ChEMBL identifiers. Also trigger when a query mentions Open Targets, platform.opentargets.org, association scores, tractability buckets, or api.platform.opentargets.org.

Übersicht

HerausgeberK-Dense-AI
Repositorydrug-discovery-agent-skills
Skill-Nameopen-targets
Sterne
51
Forks
5
Mitgelieferte Dateien
6
LizenzMIT
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • Mitgelieferte Dateien: 6

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von K-Dense-AI auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Open Targets in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/K-Dense-AI/drug-discovery-agent-skills/tree/main/skills/open-targets
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

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/open-targets .claude/skills/open-targets
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Open Targets in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Open Targets automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Open Targets nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Open Targets Platform

Open Targets aggregates genetic, somatic, clinical, pathway, expression, animal-model, and literature evidence into scored target–disease associations, and attaches druggability and safety annotation to every target. It answers the question that comes before any modelling work: is this target worth working on for this disease, and what is already known about it?

Endpoint: https://api.platform.opentargets.org/api/v4/graphql — POST, JSON, no key. Docs: platform-docs.opentargets.org · playground Checked against: the live API, August 2026 — meta reports API 26.6.3, data release 26.06.

Read references/graphql-schema.md before writing a query by hand, references/datasources.md before interpreting or filtering a score, and references/query-cookbook.md for tested documents to adapt.

Start here: three identifier rules

Everything else fails downstream of getting these wrong.

  1. Targets are Ensembl gene ids (ENSG00000146648) — never symbols, UniProt accessions, or transcript ids.
  2. Diseases are MONDO ids (MONDO_0005233) in almost all cases, even though the argument is still named efoId. Most EFO_* ids from older tutorials now return null silently. A few nodes legitimately keep EFO_, HP_, or OTAR_ ids, so you cannot rewrite the prefix — resolve the name and use what comes back.
  3. Drugs are ChEMBL molecule ids (CHEMBL939).

Always resolve first:

bash
python skills/open-targets/scripts/ot_query.py resolve EGFR "non-small cell lung carcinoma" gefitinib
term                             id                name                           entity  score
EGFR                             ENSG00000146648   EGFR                           target  1
non-small cell lung carcinoma    MONDO_0005233     non-small cell lung carcinoma  disease 1
gefitinib                        CHEMBL2087361     ICOTINIB                       drug    1
gefitinib                        CHEMBL553         ERLOTINIB                      drug    1
gefitinib                        CHEMBL939         GEFITINIB                      drug    1

resolve uses mapIds (exact-ish); use search when the input is partial or misspelled. Hits come back unsorted by score, so read the names rather than taking the first row. Note the drug rows above: one term returned three molecules, all scored 1, with the one actually asked for last. Taking [0] here silently hands the rest of the analysis a different drug.

Workflow

  1. Resolve every name to a canonical id and report what matched.
  2. Pull the target dossier — tractability, safety, prioritisation, essentiality — before looking at associations. A target that is untractable or pan-essential ends the conversation early.
  3. Pull associations, and immediately ask which datatype carries the score. An association driven only by literature is a very different claim from one driven by genetic_association.
  4. Drop to individual evidence records for anything you intend to act on.
  5. State the release (26.06) and whether enableIndirect was on with any number you report.

Target dossier

bash
python skills/open-targets/scripts/ot_query.py target ENSG00000146648            # everything
python skills/open-targets/scripts/ot_query.py target ENSG00000146648 --section tractability

Sections: core, tractability, safety, prioritisation, essentiality, probes, pathways, all. Add --format json for the raw records.

## TRACTABILITY
modality  label                  value
SM        Approved Drug          true
SM        Structure with Ligand  true
SM        High-Quality Pocket    true
AB        UniProt loc high conf  true

Reading these:

  • Tractability is a ladder, not a score. High-Quality Pocket without Structure with Ligand means a pocket was predicted. AB buckets mostly assert the target is cell-surface or secreted — reachable, not that a useful antibody exists.
  • Prioritisation values run −1 to +1, where +1 favours the target. hasSafetyEvent and geneEssentiality are already signed so that bad news is negative; do not re-negate them.
  • DepMap gene effect is Chronos: ≤ −1 is a strong dependency, ≈ 0 is nothing. Essential everywhere is a toxicity flag. The depmap skill has the full cell-line matrix.
  • Safety liabilities carry a direction. An event reported for inhibition does not apply to an agonist programme.

Associations

bash
# diseases for a target, with the per-datatype breakdown
python skills/open-targets/scripts/ot_associations.py target-diseases ENSG00000146648 --limit 25

# targets for a disease, tractability-annotated
python skills/open-targets/scripts/ot_associations.py disease-targets MONDO_0004979 \
    --limit 100 --min-score 0.4

# what does the human genetics alone say?
python skills/open-targets/scripts/ot_associations.py target-diseases ENSG00000146648 \
    --only-datasources gwas_credible_sets gene_burden eva --limit 25

Paging, the datatype flattening, and the datasource-weighting arithmetic are handled for you. --indirect propagates evidence from ontology descendants and inflates counts substantially.

What the score is: a harmonic-sum aggregate in [0, 1]. Not a probability, not calibrated across releases, only comparable within one result set. It is evidence-weighted rather than literature-normalised, so well-studied targets score high partly because they are well studied. A zero means "no evidence indexed here", never "evidence of no association".

Restricting to some datasources is a weighting operation, not a filter. Passing a settings array resets the Platform's default weights, so keeping three sources means explicitly zeroing all the others — get that wrong by hand and scores go up while looking restricted. Two ids were renamed and silently match nothing under their old names: chembl → clinical_precedence, ot_genetics_portal → gwas_credible_sets. Likewise the datatype known_drug → clinical.

Evidence records

bash
python skills/open-targets/scripts/ot_associations.py evidence ENSG00000146648 MONDO_0005233 \
    --datasources clinical_precedence --limit 50
datasourceId         datatypeId  score  drug         clinicalStage  literature
clinical_precedence  clinical    1      OSIMERTINIB  PHASE_4        35343187
eva                  genetic_association  0.92                      rs121913465

evidences is cursor-paginated, unlike everything else in the schema — the script follows the cursor for you. Each row keeps its source's own fields, so a ClinVar row has variantRsId and clinicalSignificances while a drug row has drug and clinicalStage.

Disease and drug records

bash
python skills/open-targets/scripts/ot_query.py disease MONDO_0005233
python skills/open-targets/scripts/ot_query.py drug CHEMBL939 --section mechanisms

Disease output includes parents, children, and phenotypes — useful for deciding whether to query a specific subtype or its parent. Drug output covers mechanism of action with resolved target ids, indications by phase, and black-box warnings.

There is no isApproved field: approval is maximumClinicalStage == "APPROVAL". The stage vocabulary is words (APPROVAL, PHASE_3, PHASE_1_2, PRECLINICAL), so map to ChEMBL's numeric max_phase deliberately rather than string-matching.

Arbitrary queries

For anything the subcommands do not cover, write the GraphQL document and run it:

bash
python skills/open-targets/scripts/ot_query.py raw dossier.graphql --var id=ENSG00000146648

Two failure modes to expect. GraphQL answers HTTP 200 with an errors array for a bad field or a missing sub-selection, so a client that only checks the status code reports success on a typo — the bundled client raises instead. And the plural root fields (targets, diseases, drugs) exist so you can batch: one request for 200 ids rather than 200 requests.

Composing with the rest of the bundle

  • depmap — full DepMap cell-line dependency matrix behind the depMapEssentiality roll-up.
  • chembl — measured bioactivity for the compounds Open Targets names as known drugs.
  • uniprot-rcsb — turn proteinIds into sequences and structures for modelling.
  • primekg / ncats-arax — mechanistic paths and provenance for an association worth chasing.
  • target-safety — gnomAD constraint, which this API does not carry: whether healthy humans who have lost the protein actually exist.
  • clinicaltrials — whether anyone has taken the genetic hypothesis into a trial.

Scope and honesty

Open Targets is an evidence aggregator, not an oracle. It reflects what has been published and indexed, so it under-represents novel biology and over-represents fashionable targets. Report scores with their release and their datatype breakdown, never as a probability of success, and verify anything decision-relevant against the primary source the evidence record names.

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-Skill Open Targets?

Query the Open Targets Platform GraphQL API for target-disease associations, genetic and clinical evidence, tractability and safety liabilities, target prioritisation metrics, known drugs and mechanisms of action, and disease ontology. Use this skill for target identification and validation, target-disease evidence review, druggability assessment, drug repurposing, and resolving gene, disease, and drug names to Ensembl, MONDO, and ChEMBL identifiers. Also trigger when a query mentions Open Targets, platform.opentargets.org, association scores, tractability buckets, or api.platform.opentarge...

Warum Open Targets in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Open Targets besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Open Targets in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/K-Dense-AI/drug-discovery-agent-skills/tree/main/skills/open-targets ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Open Targets nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Open Targets verwenden?

So viele Sie möchten. In TypingMind können Sie Open Targets mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Open Targets kostenlos?

Ja. Der Skill wird von K-Dense-AI auf GitHub unter der Lizenz MIT veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇