重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
open-targets-search by yorkeccak/scientific-skills
npx skills add https://github.com/yorkeccak/scientific-skills --skill open-targets-search使用 Valyu 语义搜索 API 驱动的自然语言查询,搜索完整的 Open Targets 药物-疾病关联与靶点验证数据库。
本文档中的 scripts/search 命令路径是相对于此技能的安装目录。
在运行任何命令之前,请使用以下命令定位脚本:
OPEN_TARGETS_SCRIPT=$(find ~/.claude/plugins/cache -name "search" -path "*/open-targets-search/*/scripts/*" -type f 2>/dev/null | head -1)
然后对所有命令使用完整路径:
$OPEN_TARGETS_SCRIPT "JAK2 inhibitors" 15
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
当您运行搜索并收到 "setup_required": true 时,请遵循此流程:
向用户请求 API 密钥:"要搜索 Open Targets,我需要您的 Valyu API 密钥。请在 https://platform.valyu.ai 免费获取(10 美元额度)"
一旦用户提供密钥,运行:
scripts/search setup <api-key>
重试原始搜索。
{
"success": true,
"type": "open_targets_search",
"query": "JAK2 inhibitors",
"result_count": 10,
"results": [
{
"title": "Target-Disease Association",
"url": "https://platform.opentargets.org/...",
"content": "Association data, evidence, scores...",
"source": "open-targets",
"relevance_score": 0.95,
"images": ["https://example.com/pathway.png"]
}
],
"cost": 0.025
}
# 获取关联标题
scripts/search "query" 10 | jq -r '.results[].title'
# 获取 URL
scripts/search "query" 10 | jq -r '.results[].url'
# 提取完整内容
scripts/search "query" 10 | jq -r '.results[].content'
# 查找靶点证据
scripts/search "kinase targets in inflammatory diseases" 50
# 搜索再利用机会
scripts/search "drugs targeting IL-6 pathway" 20
# 查找遗传关联
scripts/search "loss of function variants protective effects" 15
# 搜索机制性见解
scripts/search "immune checkpoint targets in cancer" 25
所有命令都返回带有 success 字段的 JSON:
{
"success": false,
"error": "Error message"
}
退出代码:
0 - 成功1 - 错误(检查 JSON 获取详情)https://api.valyu.ai/v1/searchscripts/
├── search # Bash 包装器
└── search.mjs # Node.js CLI
使用 Node.js 内置的 fetch() 直接调用 API,零外部依赖。
如果您正在构建 AI 项目并希望将 Open Targets Search 直接集成到您的应用程序中,请使用 Valyu SDK:
from valyu import Valyu
client = Valyu(api_key="your-api-key")
response = client.search(
query="your search query here",
included_sources=["valyu/valyu-open-targets"],
max_results=20
)
for result in response["results"]:
print(f"Title: {result['title']}")
print(f"URL: {result['url']}")
print(f"Content: {result['content'][:500]}...")
import { Valyu } from "valyu-js";
const client = new Valyu("your-api-key");
const response = await client.search({
query: "your search query here",
includedSources: ["valyu/valyu-open-targets"],
maxResults: 20
});
response.results.forEach((result) => {
console.log(`Title: ${result.title}`);
console.log(`URL: ${result.url}`);
console.log(`Content: ${result.content.substring(0, 500)}...`);
});
查看 Valyu 文档 获取完整的集成示例和 SDK 参考。
每周安装量
47
代码仓库
GitHub 星标数
27
首次出现
2026 年 1 月 21 日
安全审计
安装于
claude-code39
opencode38
codex36
gemini-cli36
cursor34
github-copilot33
Search the complete Open Targets database of drug-disease associations and target validation data using natural language queries powered by Valyu's semantic search API.
The scripts/search commands in this documentation are relative to this skill's installation directory.
Before running any command, locate the script using:
OPEN_TARGETS_SCRIPT=$(find ~/.claude/plugins/cache -name "search" -path "*/open-targets-search/*/scripts/*" -type f 2>/dev/null | head -1)
Then use the full path for all commands:
$OPEN_TARGETS_SCRIPT "JAK2 inhibitors" 15
When you run a search and receive "setup_required": true, follow this flow:
Ask the user for their API key: "To search Open Targets, I need your Valyu API key. Get one free ($10 credits) at https://platform.valyu.ai"
Once the user provides the key, run:
scripts/search setup <api-key>
Retry the original search.
{
"success": true,
"type": "open_targets_search",
"query": "JAK2 inhibitors",
"result_count": 10,
"results": [
{
"title": "Target-Disease Association",
"url": "https://platform.opentargets.org/...",
"content": "Association data, evidence, scores...",
"source": "open-targets",
"relevance_score": 0.95,
"images": ["https://example.com/pathway.png"]
}
],
"cost": 0.025
}
# Get association titles
scripts/search "query" 10 | jq -r '.results[].title'
# Get URLs
scripts/search "query" 10 | jq -r '.results[].url'
# Extract full content
scripts/search "query" 10 | jq -r '.results[].content'
# Find target evidence
scripts/search "kinase targets in inflammatory diseases" 50
# Search for repurposing opportunities
scripts/search "drugs targeting IL-6 pathway" 20
# Find genetic associations
scripts/search "loss of function variants protective effects" 15
# Search for mechanistic insights
scripts/search "immune checkpoint targets in cancer" 25
All commands return JSON with success field:
{
"success": false,
"error": "Error message"
}
Exit codes:
0 - Success1 - Error (check JSON for details)https://api.valyu.ai/v1/searchscripts/
├── search # Bash wrapper
└── search.mjs # Node.js CLI
Direct API calls using Node.js built-in fetch(), zero external dependencies.
If you're building an AI project and want to integrate Open Targets Search directly into your application, use the Valyu SDK:
from valyu import Valyu
client = Valyu(api_key="your-api-key")
response = client.search(
query="your search query here",
included_sources=["valyu/valyu-open-targets"],
max_results=20
)
for result in response["results"]:
print(f"Title: {result['title']}")
print(f"URL: {result['url']}")
print(f"Content: {result['content'][:500]}...")
import { Valyu } from "valyu-js";
const client = new Valyu("your-api-key");
const response = await client.search({
query: "your search query here",
includedSources: ["valyu/valyu-open-targets"],
maxResults: 20
});
response.results.forEach((result) => {
console.log(`Title: ${result.title}`);
console.log(`URL: ${result.url}`);
console.log(`Content: ${result.content.substring(0, 500)}...`);
});
See the Valyu docs for full integration examples and SDK reference.
Weekly Installs
47
Repository
GitHub Stars
27
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubWarnSocketPassSnykFail
Installed on
claude-code39
opencode38
codex36
gemini-cli36
cursor34
github-copilot33
PCB组件搜索指南:在Zener项目中快速查找与添加电子元器件
499 周安装