dismech: Skill for Claude Code

.claude/skills/disease-trajectories/SKILL.md

disease-trajectories is a skill for Claude Code from monarch-initiative/dismech. It costs 57 tokens per session (1,056 once invoked), scanned A, original, BSD-3-Clause.

A guide for finding possible links between diseases in Disease Trajectories data, which studies how one condition may precede or accompany another.

In plain words
What is it for?
Extracting disease pairs from JSON or TSV files, filtering by sex or statistical significance, and mapping candidates into DisMech comorbidity data.
Why use it?
It provides a consistent way to read trajectory files, filter their signals, and turn useful findings into disease-mechanism records.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; positional $N argument.

This is monarch-initiative/dismech's own configuration. It tells Claude Code how to work on dismech itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything dismech configures →

Reuse

Borrowing it

Nothing to install: this file belongs to monarch-initiative/dismech. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/monarch-initiative/dismech/main/.claude/skills/disease-trajectories/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/monarch-initiative/dismech

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for disease-trajectories

README.md
[![agentmods](https://agentmods.dev/badge/skills/monarch-initiative/dismech/disease-trajectories/github.svg)](https://agentmods.dev/skills/monarch-initiative/dismech/disease-trajectories)
Your own site
<a href="https://agentmods.dev/skills/monarch-initiative/dismech/disease-trajectories"><img src="https://agentmods.dev/badge/skills/monarch-initiative/dismech/disease-trajectories/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for disease-trajectories

Your own site · 80×15
<a href="https://agentmods.dev/skills/monarch-initiative/dismech/disease-trajectories"><img src="https://agentmods.dev/badge/skills/monarch-initiative/dismech/disease-trajectories.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,056 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.01056
Opus 5 $0.00028 $0.00528
Sonnet 5 $0.00011 $0.00211
Haiku 4.5 $0.00006 $0.00106

Measured 12d ago against content hash 57bfb8179d11, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

disease-trajectories scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/dt_extract_edges.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/disease-trajectories/SKILL.md · 124 lines

How it starts

The opening of the file, as written. The whole thing — 124 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Disease Trajectories Mining

Use this skill when you need to mine DT (Disease Trajectories / DisTraj) artifacts and convert them into dismech comorbidity entries.

Quick start

  1. Locate a DT JSON file (often includes a phase_dict or edge list).
  2. Extract normalized edges with the script below.
  3. Pick candidate pairs and map to comorbidity YAML signals.

Example:

python .claude/skills/disease-trajectories/scripts/dt_extract_edges.py path/to/dt.json --format tsv > /tmp/dt_edges.tsv

Workflow

1) Locate DT artifacts

  • Search for candidate files:
    • rg --files -g "*.json" and look for names like phase_dict, trajectories, edges.
  • If the DT data is external, download and keep the raw file in a scratch location (do not edit in place).

2) Inspect schema quickly

Use a quick introspection to identify top-level keys:

python - <<'PY'
import json
from pathlib import Path
p = Path("path/to/dt.json")
obj = json.loads(p.read_text())
print(type(obj))
if isinstance(obj, dict):
    print(list(obj.keys())[:20])
PY

If there is a phase_dict mapping, it usually encodes pair keys like ICD_A-ICD_B and may include sex stratification. If there is an edges/pairs list, inspect the field names for A/B, sex, and directionality.

3) Extract normalized edges

Use the bundled script:

python .claude/skills/disease-trajectories/scripts/dt_extract_edges.py path/to/dt.json --format tsv > /tmp/dt_edges.tsv

What the script does:

  • Handles phase_dict mappings with pair keys like E12-L28.
  • Handles edge lists under edges, links, pairs, data, or trajectories.
  • Normalizes fields to a consistent row format with disease_a_id, disease_b_id, directionality metrics, sex, p-value, FDR, and source path.

4) Filter candidate pairs

Use standard tools on the TSV output (examples):

  • Filter for a specific ICD pair:
    • rg "^E12\tL28\t" /tmp/dt_edges.tsv
  • Filter by directionality:
    • awk -F '\t' 'NR==1 || $11=="A_BEFORE_B"' /tmp/dt_edges.tsv
  • Filter by sex:
    • awk -F '\t' 'NR==1 || $3=="male"' /tmp/dt_edges.tsv

Read the full file on GitHub · 124 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 124 lines · 57 tokens per session scan A 57bfb8179d11

Subscribe to this mod's changes

disease-trajectories is a skill published in the GitHub repository monarch-initiative/dismech (61 stars, last pushed today), licensed BSD-3-Clause. It adds 57 tokens to every session and 1,056 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

robot-obo-tool

Skills for using ROBOT, the OBO ontology command-line toolkit for reasoning, template-based term creation, quality control, format conversion, and ontology manipulation. Use this when working with OWL/OBO ontologies that need automated processing.

ai4curation/curation-skills · 52 tokens

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.

ai4curation/curation-skills · 47 tokens

editing-obo-ontologies

Skills and tools for editing OBO format ontologies, including querying terms, checking out/checking in individual terms, and following OBO format conventions. Do not use this if the source for the ontology you are editing is not in obo format (e.g. ofn).

ai4curation/curation-skills · 63 tokens

ontology-access-kit

Skills for querying ontologies using the Ontology Access Kit (OAK). This should only be used for complex ontology operations, for basic external ontology searching use the OLS MCP.

ai4curation/curation-skills · 39 tokens

cuopt-numerical-optimization-formulation

LP, MILP, QP — concepts, problem-text parsing, and formulation patterns (parameters, constraints, decisions, objective). Concepts only; no API.

NVIDIA/skills · 42 tokens

nemo-mbridge-perf-expert-parallel-overlap

Validate and use MoE expert-parallel communication overlap in Megatron-Bridge, including overlapmoeexpertparallelcomm, delaywgradcompute, and flex dispatcher backends such as DeepEP and HybridEP.

NVIDIA/skills · 56 tokens