用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/AndrewSmigaj/OpenLLMRI --skill analyze命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Uncertainty assessment before implementation — identify what you know, what you're guessing, and what to verify
Generate 2-3 genuinely different approaches to a problem and compare them
Challenge a design or approach — find real weaknesses, not performative objections
基于 SOC 职业分类
正在显示 SKILL.md
| name | analyze |
| description | Analyze a saved clustering schema — read data, reason about patterns, write reports |
Analyze cluster/route data from a Concept MRI session. This is an LLM reasoning task — read actual sentences, distributions, and route patterns. NO keyword/regex hacks.
Can be invoked as /analyze {session_id} schema {schema_name} window {start}-{end}, e.g.:
/analyze session_1434a9be schema polysemy_explore window 22-23
When invoked with parameters, skip the identification step and go straight to loading the probe guide.
When window is specified, only analyze that window's layers — do NOT process other windows.
Ask the user which session and schema to analyze, or detect from context.
# List available schemas
curl http://localhost:8000/api/probes/sessions/{session_id}/clusterings
From session metadata, get sentence_set_name:
curl http://localhost:8000/api/probes/{session_id}
Then read the probe guide for experiment-specific analysis focus:
glob data/sentence_sets/**/{sentence_set_name}.md
Read the guide carefully — it explains what the probe is testing, what to look for in the data, and how to interpret routing patterns. This context is essential for meaningful labeling.
If a window parameter was given, analyze only that window. Otherwise start with the last-layer window (e.g., [22,23]) and work backward.
For each window, load cached data:
curl -X POST http://localhost:8000/api/experiments/analyze-cluster-routes \
-H "Content-Type: application/json" \
-d '{
"session_id": "...",
"window_layers": [X, Y],
"clustering_schema": "SCHEMA_NAME",
"output_grouping_axes": ["topic"]
}'
Examine the response:
Nodes (clusters): Read label_distribution, category_distributions, and ALL sentences in tokens. The API now returns every sentence in each cluster (no cap). Read them all — don't skip or sample. Understanding the full distribution is critical for accurate labeling.
Links (transitions): Read probability, label_distribution, and ALL link examples. Identify pure vs mixed routes.
Top Routes: Read ALL example_tokens, coverage, avg_confidence. Understand what sentences follow each path.
Output Nodes (if present): Which clusters route to which output categories? Any input/output mismatches?
For routes with confusion or unexpected patterns:
curl "http://localhost:8000/api/experiments/route-details?session_id=...&signature=ROUTE_SIG&window_layers=X,Y"
Read ALL sentences. Identify structural patterns, semantic themes, reasons for misclassification.
Per-window report (see docs/ANALYSIS.md for full template):
# Window L{start}-L{end} Analysis
## Cluster Summary
- **C0** (N probes): [name]. [label] ([purity]%). [description]
## Key Findings
1. [Most striking pattern]
2. [Anomalies]
## Routing Patterns
- [Top route interpretation]
- [Output category correlations]
## Sentence-Level Observations
- [Common patterns in key routes]
- [Why misrouted sentences confuse the model]
curl -X POST http://localhost:8000/api/probes/sessions/{id}/clusterings/{schema}/reports/w_{start}_{end} \
-H "Content-Type: application/json" \
-d '{"report": "..."}'
After analyzing each window, generate 1-2 sentence descriptions for every cluster node and top route visible in that window. These populate the click-to-inspect cards in the frontend.
Approach — comparative, not isolated:
Key format matches frontend descKey:
cluster-{id}-L{layer} (e.g., cluster-3-L22)route-{signature} (e.g., route-L22C3→L23C1)curl -X POST http://localhost:8000/api/probes/sessions/{id}/clusterings/{schema}/element-descriptions \
-H "Content-Type: application/json" \
-d '{"descriptions": {"cluster-3-L22": "Vehicle-dominant cluster...", "route-L22C3→L23C1": "Pure vehicle route..."}}'
Descriptions are merged with any existing ones (safe to call incrementally per window).
Fallback: If the API endpoint returns 404 (WSL2 reload issue — see server TROUBLESHOOTING.md), write directly to disk:
data/lake/{session_id}/clusterings/{schema}/element_descriptions.json
The file is a flat JSON dict of {descKey: description}. Merge with existing content if the file already exists.
IMPORTANT: This step is NOT optional. Every /analyze run MUST produce element descriptions alongside the report. The descriptions populate the click-to-inspect cards in the frontend — without them, users see "No AI description" on every card.
After multiple windows, write a synthesis covering:
Save as POST .../reports/synthesis.