Agent Skills
› openai/plugins
› ipd-skill
ipd-skill
GitHub通过调用IPD REST API查询HLA等位基因和细胞元数据。默认返回精简Markdown摘要,仅在用户明确要求时提供原始JSON。支持按路径和参数定制请求,适用于需要简洁HLA信息汇总的场景。
Trigger Scenarios
用户请求查询HLA等位基因信息
用户需要获取细胞级别的元数据
用户要求提供IPD数据库的简洁摘要
Install
npx skills add openai/plugins --skill ipd-skill -g -y
SKILL.md
Frontmatter
{
"name": "ipd-skill",
"description": "Submit compact IPD REST requests for HLA allele and cell-level metadata using the public IPD query API. Use when a user wants concise IPD summaries; save raw JSON or text only on request."
}
Operating rules
- Use
scripts/rest_request.pyfor all IPD calls. - Use
base_url=https://www.ebi.ac.uk/cgi-bin/ipd/api. - The most stable public routes are
alleleandcell. - For HLA allele browsing, pass
project=HLAand keeplimitmodest. - Re-run requests in long conversations instead of relying on older tool output.
Execution behavior
- Return concise markdown summaries from the script JSON by default.
- Return raw JSON or text only if the user explicitly asks for machine-readable output.
- Prefer these paths:
allele,cell, andallele/download.
Input
- Read one JSON object from stdin.
- Required fields:
base_url,path - Optional fields:
method,params,headers,json_body,form_body,record_path,response_format,max_items,max_depth,timeout_sec,save_raw,raw_output_path - Common IPD patterns:
{"base_url":"https://www.ebi.ac.uk/cgi-bin/ipd/api","path":"allele","params":{"project":"HLA","limit":10},"record_path":"data","max_items":10}{"base_url":"https://www.ebi.ac.uk/cgi-bin/ipd/api","path":"allele","params":{"project":"HLA","query":"contains(name,\"A*01\")","limit":10},"record_path":"data","max_items":10}{"base_url":"https://www.ebi.ac.uk/cgi-bin/ipd/api","path":"cell","params":{"limit":10},"record_path":"data","max_items":10}
Output
- Success returns
ok,source,path,method,status_code,warnings, and either compactrecords, a compactsummary, ortext_head. - Use
raw_output_pathwhensave_raw=true. - Failure returns
ok=falsewitherror.codeanderror.message.
Execution
echo '{"base_url":"https://www.ebi.ac.uk/cgi-bin/ipd/api","path":"allele","params":{"project":"HLA","limit":10},"record_path":"data","max_items":10}' | python scripts/rest_request.py
References
- No additional runtime references are required; keep the import package limited to this file and
scripts/rest_request.py.
Version History
- 11c74d6 Current 2026-07-19 09:38


