Command Palette

Search for a command to run...

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

dosdp-design-patterns

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

Skills for understanding and applying DOSDP (Dead Simple Ontology Design Patterns) to ensure consistent ontology term creation and maintenance. This skill is…

ai4curationот ai4curation★ 26 звёзд на GitHub14 установок в других каталогах

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

DOSDP Design Patterns Guide

This skill helps you understand, identify, and apply Dead Simple Ontology Design Patterns (DOSDP) when creating or editing ontology terms.

What are DOSDP Patterns?

DOSDP patterns are templates that ensure consistent naming, definitions, and logical axioms across similar types of ontology terms. They encode best practices for term construction and help maintain consistency in:

  • Term naming conventions - How terms should be named
  • Text definitions - Standard definition templates
  • Logical definitions - OWL equivalence axioms (intersection_of in OBO)
  • Synonyms - Standard synonym patterns
  • Relationships - Which relationships to use

Why Design Patterns Matter

  1. Consistency: All terms following the same pattern have the same structure
  2. Quality: Patterns encode domain expertise and best practices
  3. Automation: Pattern-based terms can be generated or validated automatically
  4. Reasoning: Logical definitions enable automated classification
  5. Maintenance: Updates to patterns can be applied systematically

Pattern File Structure

DOSDP patterns are defined in YAML files with this structure:

pattern_name: pattern_name_here

description: 'Human-readable description with examples'

classes:
  # Upper-level classes used in the pattern
  disease: MONDO:0000001

relations:
  # Relations used in logical definitions
  disease has location: RO:0004026

vars:
  # Variables that will be filled in
  disease: "'disease'"
  location: "'anatomical entity'"

name:
  # Template for term name
  text: '%s of %s'
  vars: [disease, location]

def:
  # Template for definition
  text: 'A %s that involves the %s.'
  vars: [disease, location]

equivalentTo:
  # Logical definition template (OWL equivalence)
  text: "%s and 'disease has location' some %s"
  vars: [disease, location]

Common Pattern Types

Location-Based Patterns

Pattern: location.yaml

Used when a disease/phenotype affects a specific anatomical location.

Structure:

  • Name: {disease} of {location} or {location} {disease}
  • Definition: A {disease} that involves the {location}.
  • Logic: {disease} and 'disease has location' some {location}

Examples:

  • lymph node adenoid cystic carcinoma
  • articular cartilage disease
  • urethral disease

When to use: Creating terms for diseases in specific anatomical locations

Gene-Based Disease Patterns

Pattern: disease_series_by_gene.yaml

Used for diseases caused by mutations in a specific gene.

Structure:

  • Name: {disease} caused by variation in {gene} or {gene}-related {disease}
  • Definition: Any {disease} in which the cause of the disease is a variation in the {gene} gene.
  • Logic: {disease} and 'has material basis in germline mutation in' some {gene}
  • Relationship: has_material_basis_in_germline_mutation_in {gene_id}

Examples:

  • MED12-related intellectual disability syndrome
  • TTN-related myopathy
  • MYCBP2-related developmental delay with corpus callosum defects

When to use: Creating terms for monogenic diseases with gene-based names

Important notes:

  • Always verify gene identifiers (HGNC for human, NCBI Gene for non-human)
  • Use the pattern's naming convention even if users request different formats
  • Include proper source attribution in relationships

Age of Onset Patterns

Patterns: childhood.yaml, adult.yaml, infantile.yaml

Used for diseases characterized by onset at specific life stages.

Structure:

  • Name: {age_stage} {disease}
  • Definition: A {disease} that occurs during {age_stage}.
  • Logic: {disease} and 'has characteristic' some {age_characteristic}

Examples:

  • childhood astrocytic tumor
  • adult neuronal ceroid lipofuscinosis
  • infantile epilepsy

When to use: Creating age-specific variants of diseases

Inheritance Pattern Terms

Patterns: autosomal_dominant.yaml, autosomal_recessive.yaml, x_linked.yaml, y_linked.yaml

Used for diseases with specific inheritance patterns.

Examples:

  • autosomal dominant polycystic kidney disease
  • autosomal recessive intellectual disability

When to use: Creating terms that emphasize inheritance mode

Neoplasm/Cancer Patterns

Patterns: cancer.yaml, carcinoma.yaml, benign.yaml, malignant.yaml, sarcoma.yaml

Used for various types of neoplastic diseases.

Examples:

  • lung cancer
  • squamous cell carcinoma of skin
  • benign neoplasm of breast

When to use: Creating cancer/tumor-related terms

Process-Based Patterns

Pattern: basis_in_disruption_of_process.yaml

Used for diseases characterized by disruption of a biological process.

Structure:

  • Logic includes: 'has basis in disruption of' some {process}

When to use: Diseases with clear mechanistic etiology

Other Common Patterns

  • Inflammatory diseases: inflammatory_disease_by_site.yaml
  • Infectious diseases: infectious_disease_by_agent.yaml
  • **Allerg
Полный SKILL.md на GitHub

Установить dosdp-design-patterns в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл dosdp-design-patterns?

Skills for understanding and applying DOSDP (Dead Simple Ontology Design Patterns) to ensure consistent ontology term creation and maintenance. This skill is about recognizing patterns and ensuring consistency, not using dosdp-tools directly.

Как установить скилл dosdp-design-patterns?

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

Скилл dosdp-design-patterns запускает скрипты?

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

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

Сравнить dosdp-design-patterns с