consensus-interpret
БесплатноБез исполняемых скриптовНе проверенLLM-grounded biological interpretation of a verified typed consensus run. Reads the typed run dir + the original adata, runs inline per-cluster DE, looks up…
от mdbabumiamssm★ 36 звёзд на GitHubОб этом скилле
consensus-interpret
When to use
The user has just finished a verified typed consensus run
(consensus-domains or sc-consensus-clustering) and wants the next
manual step (read cross_method_nmi.csv → run spatial-de →
cross-reference markers → name cell types → decide downstream skill) done
automatically with falsifiable evidence binding every LLM claim.
This skill does NOT replace the typed run. It is a strictly downstream
consumer: it reads <typed_run_dir>/{plan.json, consensus_labels.tsv, member_scores.csv, cross_method_nmi.csv} plus the original adata, and
writes its output to a different directory under
analysis://interpreted/<typed_run_id>. The verified-vs-exploratory
boundary established by ADR 0010 is preserved.
Skip when:
- The typed run did not produce
consensus_labels.tsv(i.e.consensus-domainsexited non-zero — fix the typed run first). - You are looking for a generic
query → skilldispatcher; useorchestratorfor that (forward direction). - You want to refine the consensus itself based on LLM judgment; that is explicitly forbidden by §11.4 "LLM never participates in statistical merging" and would be rejected by this skill's T3 invariants.
Inputs & Outputs
| Input | Format | Required |
|---|---|---|
| Typed run directory | --input <typed_run_dir> (must contain plan.json written by consensus-domains / sc-consensus-clustering) |
yes |
| Output directory | --output <interpreted_dir> |
yes |
| Tissue hint | --tissue {brain, immune, kidney, liver} (selects bundled marker DB) |
yes (unless --markers provided) |
| Original AnnData path | --adata <preprocessed.h5ad> |
no — defaults to plan.json input_path |
| User-provided marker DB | --markers <file.tsv> (overrides bundled DB; same schema) |
no |
| Disable LLM (structural-only) | --no-llm |
no — default fails-fast on LLM unavailability |
| LLM seed (for self-consistency runs) | --seed 0 |
no |
| Top-K markers reported per cluster | --top-k-markers 20 |
no |
| Top-K next-step recommendations | --top-k-next-steps 3 |
no (capped at 3 by ADR 0012) |
| Coverage floor for T2 escalation | --coverage-floor 0.5 |
no |
| Output | Path | Notes |
|---|---|---|
| Interpreted report | interpreted_report.md |
First line: [A+I: Interpreted on verified consensus] (or [I-noLLM: ...] if --no-llm). Non-configurable per ADR 0012. |
| Structured cell-type assignments | interpreted_assignments.json |
machine-readable; schema below |
| Per-cluster DE table | de_per_cluster.csv |
inline scanpy.tl.rank_genes_groups output; consensus-interpret computes this |
| Contradiction regions | contradiction_regions.csv |
rows where cross_method_nmi indicates disagreement; LLM-narrated in markdown |
| Audit | audit.json |
typed_run_id, adata checksum, marker DB used, LLM model/seed, interpreted_namespace, evidence_base_namespace |
interpreted_assignments.json schema
{
"schema_version": "0.1",
"typed_run_id": "<plan.json:run_id>",
"evidence_base_namespace": "analysis://typed/<run_id>",
"interpreted_namespace": "analysis://interpreted/<run_id>",
"banner": "[A+I: Interpreted on verified consensus]",
"operator": "<from typed plan.json>",
"clusters": [
{
"id": 5,
"n_cells": 778,
"interpretation_status": "interpreted | low_confidence | failed",
"cell_type": "CA1 pyramidal",
"confidence": 0.84,
"evidence": {
"markers": [
{"gene": "Pvrl3", "de_rank": 1, "db_source": "panglaodb_brain", "db_celltype": "CA1 pyramidal neuron", "weight": 0.9},
{"gene": "Wfs1", "de_rank": 3, "db_source": "panglaodb_brain", "db_celltype": "CA1 pyramidal neuron", "weight": 0.85}
],
"mean_local_purity": 0.617,
"member_agreement": [
{"member": "leiden_resolution-0.5", "label_overlap": 0.92},
{"member": "leiden_resolution-1.0", "label_overlap": 0.78}
]
},
"narrative_md_anchor": "#cluster-5"
}
],
"next_steps": [
{
"skill": "spatial-de",
"args_hint": "--groupby consensus_kmode --comparisons cluster_3_vs_5",
"priority": 1,
"evidence_refs": [
"cross_method_nmi.csv:row=leiden_resolution-0.5,col=leiden_resolution-1.5,value=0.597"
],
"reason": "Lowest pair-wise NMI in matrix; marker disambiguation between clusters 3 and 5 will resolve whether these are sub-types of CA1 or a transition zone."
}
]
}
Flow
1. Preflight (T1 — fail-fast if any fail)
├─ Load plan.json from --input; assert schema_version + typed run integrity
├─ Locate adata at plan.json.input_path (or --adata override); check exists
├─ Load consensus_labels.tsv; assert observation column ⊆ adata.obs.index
├─ Resolve marker DB:
│ --markers <path> if given;
│ else bundled `data/markers/panglaodb_<tissue>.tsv` for --tissue;
│ else exit 5 (MarkerDBUnavailable)
└─ If LLM required and unreachable AND --no-
Установить consensus-interpret в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл consensus-interpret?
LLM-grounded biological interpretation of a verified typed consensus run. Reads the typed run dir + the original adata, runs inline per-cluster DE, looks up markers in a bundled tissue-keyed marker DB, and asks the chair LLM to (γ) name each cluster's likely cell type with mandatory marker citations and (β) recommend top-3 next-step skills with mandatory evidence_refs. Output banner [A+I: Interpreted on verified consensus]. Failure-mode contract per ADR 0012.
Как установить скилл consensus-interpret?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл consensus-interpret запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic