Command Palette

Search for a command to run...

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

dismech-compliance

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

Skill for analyzing and improving compliance in the dismech knowledge base. Use this skill when checking disorder file completeness, identifying missing…

monarch-initiativeот monarch-initiative★ 77 звёзд на GitHub14 установок в других каталогах

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

DisMech Compliance Analysis Skill

Overview

Analyze and improve the completeness of disorder YAML files in the dismech knowledge base. The compliance system checks for recommended fields (ontology terms, evidence items, descriptions) and generates scores to identify priority curation targets.

When to Use

  • Running compliance checks on disorder files
  • Identifying missing recommended fields
  • Understanding which files need the most curation work
  • Improving overall knowledge base quality
  • Generating compliance dashboards and reports
  • Understanding field priority (weighted scoring)

Key Commands

Analyze Single File

just compliance kb/disorders/Asthma.yaml

Output includes:

  • Global Compliance: Percentage of recommended fields populated
  • Weighted Compliance: Score adjusted by field importance
  • Summary by Slot: Compliance grouped by field type (term, evidence, description)
  • Aggregated Scores by List Path: Breakdown for nested structures
  • Detailed Path Scores: Individual field status (OK/MISSING)

Analyze All Files

just compliance-all

Multi-file report showing:

  • Overall knowledge base compliance
  • Per-path compliance across all files
  • Quick identification of systematically missing fields

Weighted Analysis with Thresholds

just compliance-weighted

Uses conf/qc_config.yaml to:

  • Apply importance weights to different fields
  • Flag violations where compliance falls below minimum thresholds
  • Prioritize critical fields (phenotype terms, cell types, disease terms)

Generate Reports

# CSV format for spreadsheet analysis
just compliance-csv

# JSON format for programmatic processing
just compliance-report

Generate Visual Dashboard

just gen-dashboard

Creates dashboard/index.html with:

  • Interactive charts showing compliance distribution
  • Priority curation targets (10 lowest-scoring files)
  • Trend analysis across the knowledge base

Graph-Derived Metrics (Connectivity)

Recommended-slot compliance only measures whether fields are populated on an object. It cannot express cross-object graph properties — most importantly, whether a phenotype is actually wired into the causal pathograph. A phenotype can have a perfect HPO term, evidence, and description (full compliance credit) yet still float as a disconnected node, because the edge that connects it lives on a different object's downstream list.

dismech.qc_plugins fills this gap with a graph-derived QC metric computed from build_causal_graph() and emitted as an AggregatedPathScore (path phenotypes[].causal_inlink), so it composes with weighted compliance and conf/qc_config.yaml weights/thresholds like any other field. It is graded coverage, not a binary gate: a file with 9/12 phenotypes wired in scores 75%.

# Per-file connectivity coverage across the KB (lists files with gaps)
just compliance-connectivity

# Show the floating phenotype node names
just compliance-connectivity --list-unconnected

# Fail CI if aggregate coverage drops below a percentage
just compliance-connectivity --fail-under 30
just compliance-connectivity --genes-fail-under 40
just compliance-connectivity --activity-fail-under 20

A phenotype counts as connected when at least one causal edge (causes, leads_to, triggers, exacerbates — see qc_plugins.CAUSAL_PREDICATES) targets it. To fix a floating phenotype, add the phenotype's name as a downstream: [{target: <phenotype name>}] on the upstream pathophysiology node. Three metrics come out of the same command, and the two gene ones are a pair:

path asks
phenotypes[].causal_inlink is the phenotype reached by a causal edge?
genetic[].mechanism_outlink does the gene reach the mechanism graph at all?
genetic[].mechanism_activity_grounding does where it lands name a molecular function?

Gene wiring. A genetic[] entry reaches the pathograph only when some pathophysiology node carries the same gene in its gene:/genes: descriptor — that shared CURIE is the entire edge. A causal gene with no such node floats in the genetic block and never appears in the graph. Non-causal items (BIOMARKER, PROTECTIVE, MODIFIER, DISPUTED, UNKNOWN) are excluded from the denominator.

Gene activity grounding. GO puts a level between a gene and a process — gene → molecular function → biological process — and an edge running from a gene straight to a node annotated only with biological_processes: skips it: the graph says what the cell can no longer do without saying what the protein can no longer do. A wired gene counts as grounded when at least one node it reaches carries molecular_functions:. The denominator is the wired genes, so an unwired gene is charged once (against mechanism_outlink), not twice.

To fix a flagged gene, add molecular_functions: to the node it lands on:

- name: SLC25A20 transporter molecular functio
Полный SKILL.md на GitHub

Установить dismech-compliance в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл dismech-compliance?

Skill for analyzing and improving compliance in the dismech knowledge base. Use this skill when checking disorder file completeness, identifying missing fields (ontology terms, evidence, descriptions), understanding weighted priority scoring, and systematically improving knowledge base coverage.

Как установить скилл dismech-compliance?

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

Скилл dismech-compliance запускает скрипты?

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

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

Сравнить dismech-compliance с