extract-tg-method
БесплатноБез исполняемых скриптовНе проверенTurn an OECD Test Guideline's paragraph index into one record per validated test method, with every fact carrying the guideline's own sentence and the…
от monarch-initiative★ 77 звёзд на GitHubОб этом скилле
Extracting a test method from an OECD Test Guideline
An OECD Test Guideline is the authoritative statement of what a validated test
method measures, and it is unstructured prose. scripts/extract_oecd_tg.py has
already turned the PDF into a citable paragraph index; this skill is the layer
above it, which the script deliberately cannot do.
The contract: every extracted fact carries three things — the value, the
guideline's own sentence, and the paragraph number. A field holding
"key_event": 2 is a paraphrase that nothing can check. The same field carrying
its sentence and 442D/IA/1 can be checked by a script and by any reader with
the PDF.
Read docs/oecd-tg-extraction.md first
if you have not. It covers the citation-key grammar, the scope decision, and the
two extraction traps (pypdf layout mode, per-division paragraph numbering).
Step 1 — confirm the index covers what you are about to extract
just check-tg-extraction # paragraph count, no records yet
The index holds the General Introduction plus, in each appendix, Initial Considerations and Principle of the Test. PROCEDURE, DATA AND REPORTING,
the prediction model and the annexes are out of scope and are not in the
index. A fact that lives only in PROCEDURE cannot be cited: widen the scope
in the extractor and re-index, or leave the field out. Do not cite a paragraph
you have not read in the index.
Step 2 — one record per test method, not per appendix
An appendix is not a method. TG 442D has four appendices and five methods: Appendix IC describes EpiSensA and Epi2SensA together, and separates them only in its third paragraph. A record per appendix would fuse two methods that differ in tissue model and in validation status.
| Appendix | Method(s) |
|---|---|
| IA | KeratinoSens™ |
| IB | LuSens |
| IC | EpiSensA and Epi2SensA |
| ID | α-Sens® |
So a paragraph can be shared by two records, and the same sentence can be cited by both — correctly. What must not be shared is a value the sentence assigns to one of them.
Step 3 — the fields
Biology and materials first. The regulatory skeleton is secondary. A method's name tells you nothing; what distinguishes it is the cell or tissue it runs in, the construct or transcript it reads, and the chemistry it can and cannot see. Extract that before validation status and performance, and order the record so it reads as science rather than as paperwork. Validation and performance matter, but a record with a validation route and no substrate describes a certificate, not an assay.
Biology and materials — the substrate:
| Field | What it holds | Typically found in |
|---|---|---|
method_family |
the guideline's own grouping of its methods | GI ¶2 |
measurement_basis |
reporter transgene, or endogenous transcript | appendix ¶1, ¶9 |
key_event |
which AOP key event it addresses | appendix ¶1 |
mechanism |
the biology the readout depends on | appendix ¶1 |
initiating_chemistry |
the chemical reaction the method detects | appendix ¶5 |
response_arms |
which biological response(s) the readout spans | appendix ¶1 |
host_cell_line |
the named line, if the guideline names one | appendix ¶3, ¶8 |
tissue_matrix |
2D culture, or a named 3D model and its interface | appendix ¶3, ¶5 |
regulatory_element |
the response element, as the guideline words it | appendix ¶8 |
source_gene |
the gene whose regulatory element the reporter carries | appendix ¶8 |
source_species |
that gene's species of origin | appendix ¶8 |
reporter_construct |
reporter gene(s) and promoter arrangement | appendix ¶8 |
internal_viability_control |
a second reporter in the same cells | appendix ¶8 |
marker_genes |
the endogenous genes quantified | appendix ¶1, ¶3 |
marker_gene_interpretation |
what each gene reports biologically | appendix ¶1 |
readout |
the measured quantity and the assay | appendix ¶8, ¶9 |
exposure_route |
in the medium, or applied to the tissue surface | appendix ¶4, ¶5 |
exposure_schedule |
how long, and in what pattern, the chemical is applied | appendix ¶9 |
culture_conditions |
serum, xeno-free, and similar | appendix ¶2 |
source_gene and source_species are split out of regulatory_element on
purpose. The prose field still holds the guideline's own wording, which is what
gets quoted; the two scalar fields make the one structural divide inside the
luciferase family answerable without reading five strings. LuSens reads a rat
NQO1 ARE in a human keratinocyte, while KeratinoSens™ and α-Sens® both read the
human AKR1C2 ARE — and that is exactly the fact a KB entry records as a
SPECIES_MISMATCH divergence. Bundled into one sentence it was findable only by
grepping for "rat".
The same applies to exposure_schedule, which exposure_route does not cover:
route says where the chemical goes, schedule says *for h
Установить extract-tg-method в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл extract-tg-method?
Turn an OECD Test Guideline's paragraph index into one record per validated test method, with every fact carrying the guideline's own sentence and the paragraph it came from. Use when extracting test-method details from a TG (442D first), when deciding which paragraph supports which fact, when a `just check-tg-extraction` run passes but the record still looks wrong, when recording a method the guideline only cites as a comparator, or when carrying an extracted method into a disease entry or module. Not for fetching or re-indexing the PDF — that is `just extract-oecd-tg`.
Как установить скилл extract-tg-method?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл extract-tg-method запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic