PrimeKG (Precision Medicine Knowledge Graph)
暂无简介
- License 许可
- MIT
- 所属仓库
- rhCat/skillChip
- 最近更新
- 2026-07-31
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- PrimeKG (Precision Medicine Knowledge Graph)
- perks
- [ "search_nodes", "get_neighbors", "find_paths", "get_disease_context" ]
- skill
- primekg
02 资源文件 39
- 其他blueprint.drawio2.7 KB
- 参考文档blueprint.json3.5 KB
- 资产文件blueprint.svg8.9 KB
- 参考文档index.json4.3 KB
- 参考文档ledger.json453 B
- 许可证LICENSE.txt1.0 KB
- 参考文档perks.json975 B
- 参考文档perks/find_paths/manifesto.json563 B
- 参考文档perks/find_paths/metadata.json1.1 KB
- 参考文档perks/find_paths/src/contracts.json563 B
- 脚本perks/find_paths/src/find_paths.sh1.2 KB
- 脚本perks/find_paths/src/query_primekg.py4.7 KB
- 脚本perks/find_paths/src/run_find_paths.py1.6 KB
- 参考文档perks/find_paths/test/case.json307 B
- 资产文件perks/find_paths/test/fixture/kg.csv594 B
- 参考文档perks/get_disease_context/manifesto.json438 B
- 参考文档perks/get_disease_context/metadata.json1.1 KB
- 参考文档perks/get_disease_context/src/contracts.json437 B
- 脚本perks/get_disease_context/src/get_disease_context.sh1.1 KB
- 脚本perks/get_disease_context/src/query_primekg.py4.7 KB
- 脚本perks/get_disease_context/src/run_get_disease_context.py1.1 KB
- 参考文档perks/get_disease_context/test/case.json269 B
- 资产文件perks/get_disease_context/test/fixture/kg.csv594 B
- 参考文档perks/get_neighbors/manifesto.json486 B
- 参考文档perks/get_neighbors/metadata.json1.1 KB
- 参考文档perks/get_neighbors/src/contracts.json498 B
- 脚本perks/get_neighbors/src/get_neighbors.sh1.1 KB
- 脚本perks/get_neighbors/src/query_primekg.py4.7 KB
- 脚本perks/get_neighbors/src/run_get_neighbors.py1.4 KB
- 参考文档perks/get_neighbors/test/case.json293 B
- 资产文件perks/get_neighbors/test/fixture/kg.csv594 B
- 参考文档perks/search_nodes/manifesto.json479 B
- 参考文档perks/search_nodes/metadata.json985 B
- 参考文档perks/search_nodes/src/contracts.json493 B
- 脚本perks/search_nodes/src/query_primekg.py4.7 KB
- 脚本perks/search_nodes/src/run_search_nodes.py1.4 KB
- 脚本perks/search_nodes/src/search_nodes.sh1.1 KB
- 参考文档perks/search_nodes/test/case.json282 B
- 资产文件perks/search_nodes/test/fixture/kg.csv594 B
03 SKILL.md 正文
primekg — PrimeKG (Precision Medicine Knowledge Graph)
Query PrimeKG — a precision-medicine knowledge graph of ~129k nodes and ~4M edges across
genes/proteins, drugs, diseases and phenotypes — for nodes, direct neighbors, drug-disease
paths, and disease context. All perks are read-only analyses over a local PrimeKG kg.csv.
What to look out for
Each tool emits one line of structured JSON (the audit + debug log) and writes its
artifacts under record_store. LOGS TO CHECK: that line + the named report + the executor run-ledger.
The KG edge-list CSV is supplied via PRIMEKG_CSV (columns: relation, display_relation, x_id, x_type, x_name, x_source, y_id, y_type, y_name, y_source).
Perks
| perk | tool | nature |
|---|---|---|
search_nodes |
search_nodes |
read-only — substring node search by name (+ optional type) |
get_neighbors |
get_neighbors |
read-only — direct neighbors of a node (+ optional relation filter) |
find_paths |
find_paths |
read-only — direct (depth-1) paths between two nodes |
get_disease_context |
get_disease_context |
read-only — genes/drugs/phenotypes around a disease |
Every perk loads the local kg.csv with pandas and writes a JSON report to record_store;
none mutates the graph or any remote service, so all are declared destructive: false.
How to use it
Pick a perk, copy ledger.json → task-ledger.json, fill its vars (point PRIMEKG_CSV at a
PrimeKG kg.csv) + record_store, then validate → compose → compile → oversight → executor.
Localized from K-Dense-AI/scientific-agent-skills
primekg— MIT (see LICENSE.txt).
04 同仓库更多 Skills
Vercel Deploy
暂无简介
Audio Transcribe
暂无简介
Speech (OpenAI TTS)
暂无简介
Skill Installer
暂无简介
demo-skill
A demo skill used as a test fixture for the validate perk. Use when checking that quick_validate.py accepts a well-formed SKILL.md.
demo-skill
A demo skill used as a test fixture for generating agents/openai.yaml. Use when validating the gen_openai_yaml perk.