Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

aop-wiki

БесплатноБез исполняемых скриптовНе проверен

Query the AOP-Wiki XML export — Adverse Outcome Pathways, Key Events, and Key Event Relationships — through the installable aop-wiki-cli module. Use when…

monarch-initiativeот monarch-initiative★ 77 звёзд на GitHub

Об этом скилле

AOP-Wiki access via aop-wiki-cli

aop-wiki-cli is an installable module — gingin77/aop_wiki_cli. It owns the XML download, the parsers, and the entity model; do not add downloading or parsing code to dismech, and do not have dismech code read its XML. dismech code may read the parsed cache JSON it writes (<data-dir>/outputs/cache/<MM-DD-YYYY>/all_*.json), given the data directory and the date explicitly, never a path it guesses; scripts/aop_dismech_crosswalk.py is the example. Tests use a small extract of the cache under tests/data/, never a live data directory. If a query needs something the CLI cannot do, add a command there.

uvx --from git+https://github.com/gingin77/aop_wiki_cli aop-wiki-cli --help

That form tracks the repository's default branch, so the tool can change under you between runs. Append @<tag-or-commit> to pin when a result has to be reproducible — and record the pin next to the snapshot date, since the two together are what make a lookup repeatable.

Installed into an environment it is just aop-wiki-cli <command>; from a clone, uv run aop-wiki-cli <command>. All three reach the same console script, so every example below is written as the bare aop-wiki-cli form.

The data directory is the thing to get right

The tool no longer carries its own location, so you choose where its data lives — inputs, outputs, dated caches and logs all resolve under one data directory, decided at call time in this order:

  1. --data-dir <path> — a global option, and it must come before the subcommand: aop-wiki-cli --data-dir ~/aop-data find-kers-for-events …
  2. $AOP_WIKI_CLI_DATA_DIR
  3. the current working directory

It derives outputs/, outputs/cache/, xml_inputs/, logs/, inputs/ and curated/ beneath whichever of those wins.

Two consequences worth internalizing before the first run.

The cwd fallback is silent and it is the dangerous one. Run a command from the dismech checkout with no --data-dir and no environment variable, and the tool will create outputs/, xml_inputs/ and logs/ inside dismech — none of which belong in this repo. Always pin the data directory, and never pin it at a dismech checkout or worktree.

A fresh data directory has no cache, so the first command run against one downloads the ~50 MB XML export and parses it. Point at a directory that already holds a snapshot unless refreshing is the actual goal.

Set it once for a working session rather than repeating the flag:

export AOP_WIKI_CLI_DATA_DIR=~/aop-wiki-data   # any directory you keep snapshots in

If you are working from a clone, note that outputs/ there is gitignored and outputs_for_vc/ is the curated subset that repo version-controls. Nothing from either belongs in a dismech commit.

Pick the right command

You want Command
What a key event leads to, and what leads to it find-kers-for-events --ke-ids <ids>
A screening run: many terms, co-occurrence, exclusions search-with-config <config>
KE completion + integration rankings collect-event-integration-rankings
KER counts, table coverage, completion collect-ker-analytics
Normalized KER evidence tables → Excel harmonize-ker-evidence
Concordance language in KER evidence search-kers-for-concordance-text

Those six plus the two interactive commands below are the whole surface. All of them print a summary, and all but collect-ker-analytics also write into <data-dir>/outputs/. collect-ker-analytics writes nothing — its printed statistics block is the entire result, so capture it from the console rather than looking for a file. It does still populate <data-dir>/outputs/cache/<date>/all_kers_*.json, which is the cache every KER command shares, not a report.

There is no single-entity lookup command — no find-entities, no show-entity, no show-aop-graph. To find records by term, use search-with-config. To read one record, open the cache JSON in the data directory (<data-dir>/outputs/cache/<MM-DD-YYYY>/all_events_*.json, keyed by AOP-Wiki ID as a string). A script that reads it follows the rule at the top: the data directory and the date are arguments.

Matching Key Events to pathograph nodes

scripts/aop_dismech_crosswalk.py reports which nodes and phenotypes of chosen entries match each Key Event of an AOP (or of a list of Key Event ids), on what basis (a shared component term, a conforms_to module node, a cell-type or location label, or the Event title's words), and whether the node's biological_scale agrees with the Event's level; and, for the Key Event Relationships among those Events, whether the entry's edges assert them.

python scripts/aop_dismech_crosswalk.py --data-dir ~/aop-data --date 10-03-2026 \
    --aop 40 --entry Contact_Dermatitis

A match is a candidate, not a mapping: a label or name match is weak, and a Key Event whose

Полный SKILL.md на GitHub

Установить aop-wiki в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл aop-wiki?

Query the AOP-Wiki XML export — Adverse Outcome Pathways, Key Events, and Key Event Relationships — through the installable aop-wiki-cli module. Use when asked to find the AOP/KE/KER for a mechanism, stressor, or adverse outcome; to run or write an AOP-Wiki term search config; to pull KER weight-of-evidence, empirical support, or evidence tables; to get event completion/integration rankings; or to refresh the AOP-Wiki XML snapshot.

Как установить скилл aop-wiki?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл aop-wiki запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить aop-wiki с