Command Palette

Search for a command to run...

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

extend-schema

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

Use when changing the data model / schema in src/dismech/schema/*.yaml; when considering a schema change, including deciding whether a curation need warrants…

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

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

Extend the dismech LinkML Schema

When to use

  • Adding a class, slot, or enum to src/dismech/schema/dismech.yaml.
  • Narrowing, deprecating, or removing an existing one.
  • Deciding whether a curation need warrants a schema change at all.
  • Migrating kb/ content after a schema change lands.

Do not use for: filling an existing slot (use the curation skills), ontology meaning / reachable_from bindings inside dynamic enums (use dismech-terms), or kb/groupings/ membership logic (use curate-grouping).

The schema files

File Class it governs
src/dismech/schema/dismech.yaml Disease (disorders, modules), Grouping, ModuleCollection — 322 KB, the main one
src/dismech/schema/curation_stub.yaml CurationStub (stubs/)
src/dismech/schema/history.yaml history/ records
src/dismech/schema/hypothesis_assessment.yaml, hypothesis_reconciliation.yaml kb/hypotheses/
src/dismech/schema/research_synthesis.yaml deep-research synthesis
src/dismech/schema/classifications/ the classifications block
src/dismech/schema/dismech.history.yaml not a schema — an auto-appended edit log beside dismech.yaml. Never hand-edit it; validate-all skips *.history.yaml

This guide mostly pertains to the core schema ie dismech.yaml

Do Background Research

It is likely your proposal has been discussed before. Be sure to check issues.

Major Schema Changes should be approved

If you are reviewing a schema change and it is not trivial, block merging until approved by @cmungall or @mellybelly.

Have a data population strategy

It is easy to have "nice to have" new slots. But think hard about the population strategy.

Will this be deterministically populated? If so, include code.

If non-deterministic, you MUST include string guidelines on how to populate. Especially if subjective in nature. We want to avoid situations where agent and reviewer go back and forth arguing on populating the slot because we underspecified how it was to be populated.

In general, things that involve new ontology terms should be fine because we have good practice and deterministic search tools and checker tools.

A note on extensions to the evidence model

It is easy to come up with proposed extensions to the evidence model but implementing them can be harder. Adding some way of being able to determine good evidence from bad evidence is laudable, but there must be good guidelines on populating this.

Don't try and over generalize - a strategy for evidence for cellular assays may be different for one for clinical approval.

Remember the core of dismech is the biological mechanism, this requires a lot of careful coordinated thought about how to represent assays, readouts, interpretations etc. Be sure to read the docs and evidence slides.

Does this need a schema change?

  1. Does a slot already express this? #972 proposed treatment_category; the answer was that therapeutic_modality already was that discriminator. Do not add a second, redundant slot.
  2. Can it be derived instead of stored? Cancer cell of origin is derived from the pathograph (genetic_context.variant_origin on a node) and design decisions says no cell_of_origin: slot should be added.
  3. Is qualifiers the right home? Usually not — prefer a dedicated slot
  4. Is this a decision the register already made? Read docs/explanation/design-decisions.md before proposing, and cite it.

The migration hazard (read before narrowing anything)

Additive changes are easier if they are optional or recommended slots. However, anything that narrows or invalidates will be hard and needs a proper schema migration path.

Otherwise the schema change will need to be also bundle a giant set of changes on multiple yamls, and the 100s of open PRs will become invalid!

In future we may properly implement schema migrations. For now you should do these kinds of changes in two stages - a superposition stage where the narrower form can co-exist, weakly deprecating the old form; then once migration is done (including open PRs) narrow the schema.

Mechanics — what to regenerate

just lint-schema                              # linkml-lint -- dismech.yaml ONLY, not the other five
just validate-all                             # every *disorder* file; modules/groupings have their own recipes
just check-enum-values                        # whole-KB, offline
just validate-terms-schema                    # the schema's own dynamic enums
just gen-jsonschema                           # -> project/jsonschema/ (gitignored)
just gen-schema-docs                          # -> elements/ (derived; CI commits it, you don't)

Committed generated artifacts: src/dismech/datamodel/dismech.py and dismech_pydantic.py are in git and are what gen-python writes. TODO — resolve: history is inconsistent about whether a schema change must regenerate them (#10758 did; #9806 and #10629 did not). Decide the rule and

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

Установить extend-schema в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл extend-schema?

Use when changing the data model / schema in src/dismech/schema/*.yaml; when considering a schema change, including deciding whether a curation need warrants one at all; or when migrating KB content after a schema change. Not for filling in an existing slot (see the curation skills) or for ontology bindings inside the schema's dynamic enums (see dismech-terms).

Как установить скилл extend-schema?

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

Скилл extend-schema запускает скрипты?

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

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

Сравнить extend-schema с