Agent skill

Pharmkg Query

by QSong-github in QSong-github/DrugClaw

Query the PharmKG knowledge graph (180k entities, 39 relation types, 1M triples).

No licenceAuto-check passedKnowledge Management

Install Pharmkg Query

skills CLI
$ npx skills add QSong-github/DrugClaw --skill pharmkg-query -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install QSong-github/DrugClaw pharmkg-query --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/QSong-github/DrugClaw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/drug_knowledgebase/pharmkg .claude/skills/pharmkg-query && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pharmkg-query
GitHub stars
116
Used in
1 other repo
Token cost
~517 tokens
SKILL.md length
176 words
Files
6
Skills in repo
31
Repo updated
First seen
Licence
None found

At a glance

Query the PharmKG knowledge graph (180k entities, 39 relation types, 1M triples).

  • The user asks about biomedical relationships among genes
  • SKILL.md covers Entity & Relation Types, API, Usage and Data
  • Runs Python scripts from its folder
  • Drugs/chemicals

What it does

Pharmkg Query is an agent skill from QSong-github/DrugClaw. Query the PharmKG knowledge graph (180k entities, 39 relation types, 1M triples). Use whenever the user asks about biomedical relationships among genes, drugs/chemicals, and diseases — e.g. drug–gene interactions, drug–disease associations, gene–disease links, or drug–drug relationships derived from literature and curated databases.

Its SKILL.md is about 520 tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files (for example `README.md`, `__init__.py` and `example.py`).

It sits in Knowledge Management, covering Knowledge graphs. The repository describes itself as: 🦀 Agentic RAG for drug intelligence · 57 skills · 15 task categories · DTI · ADR · DDI · PGx · Repurposing · Powered by LangGraph.

When your agent uses it

  • The user asks about biomedical relationships among genes
  • Drugs/chemicals

Example prompts

  • “/pharmkg-query”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit bc7b93e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Pharmkg Query loads about 517 tokens when it runs. Until then it costs about 87 tokens; SKILL.md has 176 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~87
When it runs · the whole SKILL.md, loaded when a task matches
~517

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 176 words (~517 tokens).

“Search PharmKG triples by entity name. Matching is case-insensitive; exact match is tried first via a prebuilt index, with substring fallback.”

— opening of SKILL.md by QSong-github
name
pharmkg-query

Read the full SKILL.md on GitHub

Files

SKILL.md and 5 other files in skills/drug_knowledgebase/pharmkg of QSong-github/DrugClaw.

  • SKILL.md
  • README.md
  • __init__.py
  • example.py
  • pharmkg_skill.py
  • retrieve.py

Open the folder on GitHubat commit bc7b93e

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in QSong-github/DrugClaw, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Pharmkg Query next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Pharmkg Query compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Pharmkg Query this skillQSong-github/DrugClaw1161 repos~517Automated safety check: PassNone
LLM Wiki Knowledge GraphEgonex-AI/Understand-Anything85k1 repos~1.5kAutomated safety check: PassMIT
Obsidian Canvas BoardsAgriciDaniel/claude-obsidian15k—~1.4kAutomated safety check: PassMIT
Ontology1mancompany/OneManCompany4382 repos~1.5kAutomated safety check: PassApache-2.0
Graphagenticnotetaking/arscontexta3.5k1 repos~4.9kAutomated safety check: NotesMIT
Knowledge Graphgnomeria/usbtree688—~1.5kAutomated safety check: PassMIT

Similar skills

  • LLM Wiki Knowledge Graph

    Egonex-AI/Understand-Anything

    Detects a Karpathy-pattern LLM wiki and builds an interactive knowledge graph with entities, implicit relationships and topic clusters.

    85k GitHub starsUsed in 1 repo~1.5k tokens
    Knowledge ManagementAuto-check passed
  • Obsidian Canvas Boards

    AgriciDaniel/claude-obsidian

    Creates, inspects and updates Obsidian JSON Canvas boards in a vault, with text, file, link, group and edge nodes, using safe recoverable edits.

    15k GitHub stars~1.4k tokensUpdated 27 days ago
    Knowledge ManagementAuto-check passed
  • Ontology

    1mancompany/OneManCompany

    Typed knowledge graph for structured agent memory and composable skills.

    438 GitHub starsUsed in 2 repos~1.5k tokens
    Knowledge ManagementAuto-check passed
  • Graph

    agenticnotetaking/arscontexta

    Interactive knowledge graph analysis. An agent skill from agenticnotetaking/arscontexta.

    3.5k GitHub starsUsed in 1 repo~4.9k tokens
    Knowledge ManagementAuto-check: notes
  • Knowledge Graph

    gnomeria/usbtree

    Set up and maintain a lightweight, file-based knowledge graph of the repo — entities, typed relations, decisions, gotchas — so agents load context fast instead of re-exploring the codebase every…

    688 GitHub stars~1.5k tokensUpdated 1 mo ago
    Knowledge ManagementAuto-check passed
  • Knowledge Graph

    nimbalyst/nimbalyst

    Write a project's knowledge pages in Nimbalyst Pages -- record what people said and decided in the page it affects, keep typed pages for the things the team tracks (its own types, such as modules…

    1.8k GitHub stars~3.5k tokensUpdated 2 days ago
    Knowledge ManagementAuto-check passed

More from QSong-github/DrugClaw

All 31 skills in this repo
  • Dailymed Query

    QSong-github/DrugClaw

    Query DailyMed for FDA drug label / package insert information.

    116 GitHub starsUsed in 1 repo~581 tokens
    Auto-check passed
  • Drkg Query

    QSong-github/DrugClaw

    Query the DRKG (Drug Repurposing Knowledge Graph). An agent skill from QSong-github/DrugClaw.

    116 GitHub starsUsed in 1 repo~915 tokens
    Auto-check passed
  • Drugbank Query

    QSong-github/DrugClaw

    Query a locally downloaded DrugBank database. An agent skill from QSong-github/DrugClaw.

    116 GitHub starsUsed in 1 repo~462 tokens
    Auto-check passed
  • Drugcentral Query

    QSong-github/DrugClaw

    Query the DrugCentral drug pharmacology database. An agent skill from QSong-github/DrugClaw.

    116 GitHub starsUsed in 1 repo~710 tokens
    Auto-check passed
  • Drugmechdb Query

    QSong-github/DrugClaw

    Query the DrugMechDB drug mechanism-of-action database. An agent skill from QSong-github/DrugClaw.

    116 GitHub starsUsed in 1 repo~734 tokens
    Auto-check passed
  • Fda Orange Book Query

    QSong-github/DrugClaw

    Query or inspect the FDA Orange Book - FDA-Approved Drug Products Listing resource for drug-centric tasks with emphasis on drug knowledgebase Use whenever Codex needs the calling pattern…

    116 GitHub starsUsed in 1 repo~521 tokens
    Auto-check passed

Questions about Pharmkg Query

What does Pharmkg Query do?

Query the PharmKG knowledge graph (180k entities, 39 relation types, 1M triples). Pharmkg Query is an agent skill from QSong-github/DrugClaw. Query the PharmKG knowledge graph (180k entities, 39 relation types, 1M triples).

When should I use Pharmkg Query?

Pharmkg Query fits situations like: the user asks about biomedical relationships among genes; drugs/chemicals.

How do I install Pharmkg Query in Claude Code?

Run `npx skills add QSong-github/DrugClaw --skill pharmkg-query -a claude-code`. Or copy the skill folder (skills/drug_knowledgebase/pharmkg in QSong-github/DrugClaw) into .claude/skills/pharmkg-query in your project. Claude Code loads it when a task matches its description.

How do I install Pharmkg Query in Codex?

Run `npx skills add QSong-github/DrugClaw --skill pharmkg-query -a codex`. Or copy the skill folder (skills/drug_knowledgebase/pharmkg in QSong-github/DrugClaw) into .agents/skills/pharmkg-query in your project. Codex loads it when a task matches its description.

Can I use Pharmkg Query in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add QSong-github/DrugClaw --skill pharmkg-query -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pharmkg-query, .gemini/skills/pharmkg-query, .github/skills/pharmkg-query and .opencode/skills/pharmkg-query in your project.

What does Pharmkg Query need to run?

Going by SKILL.md and its folder, Pharmkg Query needs Python for the scripts in its folder. Our summary lists: Python 3.

Does Pharmkg Query access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Pharmkg Query safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Pharmkg Query use?

No licence was found for Pharmkg Query or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Pharmkg Query use?

About 517 tokens (SKILL.md is roughly 2.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Pharmkg Query?

Skills that share tags, products or a category with Pharmkg Query: LLM Wiki Knowledge Graph (Egonex-AI/Understand-Anything, 85k stars), Obsidian Canvas Boards (AgriciDaniel/claude-obsidian, 15k stars), Ontology (1mancompany/OneManCompany, 438 stars) and Graph (agenticnotetaking/arscontexta, 3.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Pharmkg Query?

QSong-github (a GitHub user) maintains it in QSong-github/DrugClaw, which has 116 GitHub stars. The repository holds 31 skills in this directory. The repository was last updated on August 25, 2026.

Source: QSong-github/DrugClaw on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.