qsong-github/drugclaw/ttd
Claude Code and agent skill by qsong-github/drugclaw
- community
Checking that the SKILL.md file is still in the repository.
Query the Therapeutic Target Database (TTD) for drug-target-disease interaction data. Use this skill when the user asks about therapeutic targets, drugs, diseases, or their relationships — including target-drug mappings, clinical status of drugs, disease indications, UniProt/gene associations, and pathway annotations. Triggers on queries like "what drugs target EGFR", "which diseases is Imatinib used for", "find targets for lung cancer", or any lookup involving TTD IDs, gene symbols, drug names, or disease names.
Install
npx vskill@latest install qsong-github/drugclaw/ttdSKILL.md
TTD — Therapeutic Target Database
Source: https://ttd.idrblab.cn/ Paper: https://academic.oup.com/nar/article/52/D1/D1465/7275004 Data dir: resources_metadata/dti/TTD
Data files (4 required)
| File | Content | |
|---|---|---|
P1-01-TTD_target_download.txt | Target info: name, UniProt, gene, type, function, disease indication, pathway | |
P2-01-TTD_target_drug.txt | Target ↔ Drug links with clinical status (Approved / Phase I–III / Experimental) | |
P1-06-Target_disease.txt | Target ↔ Disease associations | |
P1-07-Drug_disease.txt | Drug ↔ Disease associations |
File formats:
P1-01,P2-01— block format: blank-line separated records, each line<ID>\t<KEY>\t<VALUE>P1-06,P1-07— TSV with header row
Query API
query(entities, entity_type="auto", data_dir=DATA_DIR)
Returns a list of dicts, one per queried entity.
| Parameter | Type | Description | |
|---|---|---|---|
entities | str or list[str] | One or more entity names / IDs | |
entity_type | "auto" / "target" / "drug" / "disease" | Restrict search; "auto" tries target → drug → disease | |
data_dir | str | Path to TTD data directory |
query_json(entities, ...) → str
Same as query() but returns a JSON string. Use for LLM consumption.
Input formats accepted
| Input | Examples | |
|---|---|---|
| Gene / protein name | "EGFR", "TP53", "BCR-ABL" | |
| Drug name | "Imatinib", "Gefitinib", "Osimertinib" | |
| Disease name | "Lung cancer", "Diabetes mellitus" (partial match supported) | |
| TTD Target ID | "TTDTARGET00001" | |
| TTD Drug ID | "D0Y4GH" |
Matching is case-insensitive; disease names support partial matching.
Output structure
Target result
Drug result
Disease result
Not found
Usage examples
CLI (demo runs with EGFR / Imatinib / Lung cancer if no args):
Notes
- `entity_type="auto"` stops at the first match type per entity (target → drug → disease). Use explicit type to resolve ambiguity.
- `drugs` in target results lists all TTD-linked drugs; filter
clinical_status == "Approved"for marketed drugs. - Disease partial matching —
"lung cancer"will match"non-small-cell lung cancer". The first candidate is returned; useentity_type="disease"with a more specific name if needed. - Multi-value fields (e.g. multiple pathways for one target) are returned as lists.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/dti/ttd/SKILL.md
Popularity
- Repository stars
- 116
- Repository forks
- 3
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/qsong-github/drugclaw/ttd)