build-chronology
GitHub从已分析文档构建医疗时间线,识别矛盾、缺失评估及治疗空白。适用于需按时间梳理医疗证据的场景。
Trigger Scenarios
Install
npx skills add NeverSight/learn-skills.dev --skill build-chronology -g -y
SKILL.md
Frontmatter
{
"name": "build-chronology",
"description": "Builds a medical chronology from all analysed documents in a matter. Use when Mandy says 'build chronology', 'medical chronology', 'timeline', 'history of treatment', or needs a chronological view of medical evidence. Identifies gaps, contradictions, and missing assessments."
}
Build Chronology
Important
- Manual-only. Resolve matter first.
- Consult
chronology-format.mdfor output structure. - Uses Tier 1 only — reads .extract.json files, not raw PDFs.
Instructions
Step 0: Resolve Matter
Follow _shared/resolve-matter.md.
Step 1: Check for Unanalysed Documents
List PDFs without .extract.json siblings.
If found: "There are {n} unanalysed documents. Chronology will be incomplete. Proceed anyway, or /analyse-document first?"
Step 2: Collect Chronology Entries
Read ALL .extract.json files in matters/{id}/documents/ (Tier 1, ~500-800 tokens each).
Collect chronology_entries arrays from each extract.
Step 3: Merge and Sort
Sort all entries by date. Flag duplicates (same date + type + source → keep richest).
Step 4: Gap Analysis
Identify: treatment gaps (3+ months for same body part), untreated conditions, CoC gaps, contradictions, missing impairment assessments, unexplained capacity changes, missing initial consultation.
Step 5: Generate
Follow chronology-format.md for output structure.
Save to chronology/chronology-{date}.md.
Step 6: Update and Commit
Update matter.json. Update index. Log and commit.
Step 7: Present
Show entry count, date range, sources, gaps, contradictions, and recommended next steps. Proactive stage check + limitation check.
Error Handling
- No extracts found: "No analysed documents. Run
/analyse-documentfirst." - No chronology entries in extracts: "Documents were analysed but no dateable events found. Check extracts manually."
Version History
- e0220ca Current 2026-07-05 23:32


