xiaohongshu
xiaohongshu
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.
Full skill instructions
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.
just compliance kb/disorders/Asthma.yaml
Output includes:
just compliance-all
Multi-file report showing:
just compliance-weighted
Uses conf/qc_config.yaml to:
# CSV format for spreadsheet analysis
just compliance-csv
# JSON format for programmatic processing
just compliance-report
just gen-dashboard
Creates dashboard/index.html with:
| Metric | Description |
|---|---|
| Global Compliance | Simple percentage: populated fields / total recommended fields |
| Weighted Compliance | Adjusted by field importance from conf/qc_config.yaml |
| Field | Weight | Min Threshold | Why |
|---|---|---|---|
disease_term.term | 5.0 | 95% | Root disease identity - always required |
phenotypes[].phenotype_term.term | 3.0 | 90% | Core clinical data |
pathophysiology[].cell_types[].term | 3.0 | 85% | Mechanistic understanding |
treatments[].treatment_term.term | 2.5 | 80% | Clinical relevance |
term (general) | 2.0 | 80% | All ontology bindings |
pathophysiology[].evidence | 2.0 | 80% | Scientific backing |
evidence (general) | 1.5 | - | Valuable but not always required |
description | 0.5 | - | Nice-to-have context |
| Status | Meaning |
|---|---|
| OK | Field is populated |
| MISSING | Recommended field is empty/absent |
Address fields in this priority order based on weights:
disease_term:
preferred_term: Asthma
term:
id: MONDO:0004979
label: asthma
Look up: uv run runoak -i sqlite:obo:mondo info "asthma"
phenotypes:
- name: Wheezing
phenotype_term:
preferred_term: Wheezing
term:
id: HP:0030828
label: Wheezing
Look up: uv run runoak -i sqlite:obo:hp info "l~wheezing"
cell_types:
- preferred_term: Mast cells
term:
id: CL:0000097
label: mast cell
Look up: uv run runoak -i sqlite:obo:cl info "l~mast cell"
treatments:
- name: Inhaled corticosteroids
treatment_term:
preferred_term: corticosteroid therapy
term:
id: MAXO:0000653
label: corticosteroid therapy
Look up: uv run runoak -i sqlite:obo:maxo search "corticosteroid"
evidence:
- reference: PMID:12345678
supports: SUPPORT
snippet: "Exact quote from abstract"
explanation: "Why this supports the claim"
just gen-dashboard
# Check dashboard/index.html for "Priority Curation Targets"
Or use compliance-all and sort:
just compliance-report | jq -r '.files | sort_by(.weighted_compliance) | .[:10] | .[].file'
just compliance-weighted 2>&1 | grep "VIOLATION"
For systematically missing fields across many files:
import yaml
import glob
# Example: Find files missing disease_term.term
for f in glob.glob("kb/disorders/*.yaml"):
with open(f) as file:
data = yaml.safe_load(file)
dt = data.get('disease_term', {})
if not dt.get('term'):
print(f"{f}: missing disease_term.term")
# Schema validation
just validate kb/disorders/MyDisease.yaml
# Term validation (labels match ontology)
just validate-terms-file kb/disorders/MyDisease.yaml
# Re-check compliance
just compliance kb/disorders/MyDisease.yaml
# Default for unconfigured fields
default_weight: 1.0
default_min_compliance: null
# Per-slot config (applies everywhere that slot appears)
slots:
term:
weight: 2.0
min_compliance: 80.0
# Per-path config (overrides slot config for specific locations)
paths:
"phenotypes[].phenotype_term.term":
weight: 3.0
min_compliance: 90.0
Edit conf/qc_config.yaml to:
just qc after improvements for full validationThis indicates your important fields (high weight) have different coverage than low-priority fields. Focus on improving high-weight fields first.
Descriptions have low weight (0.5) and no minimum threshold. Address these last, or not at all if not needed.
Check conf/qc_config.yaml for min_compliance settings. Either:
Ensure the dashboard directory exists and you have write permissions:
mkdir -p dashboard
just gen-dashboard
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience