$npx -y skills add QSong-github/DrugClaw --skill diliDILISkill uses live ChEMBL REST endpoints for hepatotoxicity-related evidence.
| 1 | # DILI Skill |
| 2 | |
| 3 | ## Runtime Mode |
| 4 | |
| 5 | `DILISkill` uses live ChEMBL REST endpoints for hepatotoxicity-related evidence. |
| 6 | |
| 7 | ## Canonical Local Fixture (Example Surface) |
| 8 | |
| 9 | `example.py` uses the canonical packaged offline file: |
| 10 | |
| 11 | - `resources_metadata/drug_toxicity/DILI/dili.csv` |
| 12 | - Columns: `drug`, `warning_type`, `molecule_chembl_id` |
| 13 | |
| 14 | ## Example API |
| 15 | |
| 16 | - `load_dili(path=DATA_PATH)` -> `list[dict]` |
| 17 | - `query_dili(entities, data_path=DATA_PATH)` -> `list[dict]` |
| 18 | |
| 19 | `query_dili` returns records in the shape expected by `retrieve.py`: |
| 20 | `source`, `match_count`, and `matches` (or `{"error": ...}`). |