medsci-skills 4.8.0 → 4.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/README.md +53 -20
  2. package/installers/install-macos.command +11 -2
  3. package/installers/install-windows.cmd +6 -2
  4. package/installers/install-windows.ps1 +5 -2
  5. package/installers/install.py +13 -0
  6. package/installers/update.py +19 -0
  7. package/metadata/distribution_files.json +184 -64
  8. package/metadata/distribution_manifest.json +1 -1
  9. package/package.json +1 -1
  10. package/skills/MAINTENANCE.md +68 -0
  11. package/skills/analyze-stats/SKILL.md +42 -0
  12. package/skills/analyze-stats/references/analysis_guides/mendelian_randomization.md +89 -0
  13. package/skills/analyze-stats/references/analysis_guides/multiplicity.md +103 -0
  14. package/skills/analyze-stats/references/analysis_guides/network_meta_analysis.md +74 -0
  15. package/skills/analyze-stats/references/analysis_guides/polygenic_risk_score.md +80 -0
  16. package/skills/check-reporting/SKILL.md +39 -3
  17. package/skills/check-reporting/references/checklists/PGS_RS.md +65 -0
  18. package/skills/check-reporting/references/checklists/STROBE_MR.md +68 -0
  19. package/skills/check-reporting/references/genai_image_study_object_decision_aid.md +60 -0
  20. package/skills/check-reporting/scripts/check_checklist_exists.py +3 -0
  21. package/skills/check-reporting/tests/fixtures/prisma_body.md +7 -0
  22. package/skills/check-reporting/tests/fixtures/prisma_fig_clean.md +10 -0
  23. package/skills/check-reporting/tests/fixtures/prisma_fig_mismatch.md +10 -0
  24. package/skills/check-reporting/tests/test_prisma_figure.sh +50 -0
  25. package/skills/clean-data/SKILL.md +3 -1
  26. package/skills/clean-data/references/cleaning_patterns.md +6 -0
  27. package/skills/clean-data/references/implausible_value_rules.md +109 -0
  28. package/skills/design-ai-benchmarking/SKILL.md +16 -0
  29. package/skills/design-ai-benchmarking/references/anchor_rotate_reader_allocation.md +92 -0
  30. package/skills/find-journal/references/journal_profiles/KJR.md +1 -1
  31. package/skills/make-figures/references/critic_rubrics/data_plot.md +8 -1
  32. package/skills/make-figures/references/exemplar_plots/README.md +5 -0
  33. package/skills/make-figures/references/exemplar_plots/manhattan_plot.md +63 -0
  34. package/skills/make-figures/references/reporting_guideline_figure_map.md +2 -2
  35. package/skills/manage-project/SKILL.md +1 -1
  36. package/skills/manage-refs/SKILL.md +3 -0
  37. package/skills/manage-refs/citation_styles/README.md +1 -0
  38. package/skills/manage-refs/citation_styles/liver-international.csl +535 -0
  39. package/skills/manage-refs/scripts/check_csl_render.py +85 -22
  40. package/skills/manage-refs/scripts/check_reference_duplication.py +245 -0
  41. package/skills/manage-refs/tests/fixtures/csl_render_sample.bib +19 -0
  42. package/skills/manage-refs/tests/fixtures/refclean_text.md +11 -0
  43. package/skills/manage-refs/tests/fixtures/refdup_text.md +19 -0
  44. package/skills/manage-refs/tests/test_csl_render.sh +60 -0
  45. package/skills/manage-refs/tests/test_reference_duplication.sh +47 -0
  46. package/skills/meta-analysis/SKILL.md +13 -42
  47. package/skills/meta-analysis/references/empirical_lessons.md +53 -0
  48. package/skills/orchestrate/SKILL.md +1 -1
  49. package/skills/peer-review/SKILL.md +18 -0
  50. package/skills/peer-review/references/domain-probes/mendelian_randomization.md +62 -0
  51. package/skills/peer-review/references/domain-probes/network_meta_analysis.md +55 -0
  52. package/skills/peer-review/references/domain-probes/observational_confounding.md +14 -2
  53. package/skills/peer-review/references/domain-probes/polygenic_risk_score.md +54 -0
  54. package/skills/revise/SKILL.md +2 -0
  55. package/skills/self-review/SKILL.md +59 -0
  56. package/skills/self-review/references/domain-probes/mendelian_randomization.md +62 -0
  57. package/skills/self-review/references/domain-probes/network_meta_analysis.md +55 -0
  58. package/skills/self-review/references/domain-probes/observational_confounding.md +14 -2
  59. package/skills/self-review/references/domain-probes/polygenic_risk_score.md +54 -0
  60. package/skills/self-review/scripts/check_binning_consistency.py +502 -0
  61. package/skills/self-review/scripts/check_citation_order.py +204 -0
  62. package/skills/self-review/scripts/check_classical_style.py +22 -0
  63. package/skills/self-review/tests/fixtures/binning_clean/primary.R +2 -0
  64. package/skills/self-review/tests/fixtures/binning_clean/sensitivity.R +2 -0
  65. package/skills/self-review/tests/fixtures/binning_drift/primary.R +5 -0
  66. package/skills/self-review/tests/fixtures/binning_drift/sensitivity.R +5 -0
  67. package/skills/self-review/tests/fixtures/citation_order_bad.md +31 -0
  68. package/skills/self-review/tests/fixtures/citation_order_good.md +30 -0
  69. package/skills/self-review/tests/fixtures/derived_clean/canonical.R +6 -0
  70. package/skills/self-review/tests/fixtures/derived_clean/shared.R +6 -0
  71. package/skills/self-review/tests/fixtures/derived_drift/canonical.R +7 -0
  72. package/skills/self-review/tests/fixtures/derived_drift/reanalysis.R +6 -0
  73. package/skills/self-review/tests/fixtures/style_bad.md +2 -1
  74. package/skills/self-review/tests/test_binning_consistency.sh +67 -0
  75. package/skills/self-review/tests/test_citation_order.sh +48 -0
  76. package/skills/self-review/tests/test_classical_style.sh +9 -1
  77. package/skills/sync-submission/SKILL.md +5 -2
  78. package/skills/sync-submission/scripts/_yaml_frontmatter.py +35 -0
  79. package/skills/sync-submission/scripts/check_checklist_dump_leak.py +228 -0
  80. package/skills/sync-submission/scripts/check_wordcount_cap.py +4 -12
  81. package/skills/sync-submission/scripts/cover_letter_drift_check.py +4 -18
  82. package/skills/sync-submission/scripts/preflight_gate.py +17 -2
  83. package/skills/sync-submission/tests/test_checklist_dump_leak.sh +89 -0
  84. package/skills/write-paper/references/journal_profiles/KJR.md +18 -0
  85. package/skills/write-paper/references/journal_profiles/Liver_International.md +23 -1
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  **45 skills that actually work.** Built by a physician-researcher, tested on real publications.
6
6
 
7
- *MedSci Skills is a submission-grade clinical manuscript workflow, not a generic biomedical skill catalog. Its moat is the compliance layer — 36 reporting guidelines and risk-of-bias tools, reference/citation verification, and deterministic integrity gates, before peer review sees the manuscript. It competes on clinical submission reliability, not skill count.*
7
+ *MedSci Skills is a submission-grade clinical manuscript workflow, not a generic biomedical skill catalog. Its moat is the compliance layer — 38 reporting guidelines and risk-of-bias tools, reference/citation verification, and deterministic integrity gates, before peer review sees the manuscript. It competes on clinical submission reliability, not skill count.*
8
8
 
9
9
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
10
10
  [![Release](https://img.shields.io/github/v/release/Aperivue/medsci-skills?style=flat-square&color=blue)](https://github.com/Aperivue/medsci-skills/releases/latest)
@@ -64,6 +64,12 @@ every output requires human-expert verification. New here? See the
64
64
  npx medsci-skills install # copies every skill into your agent's folder
65
65
  ```
66
66
 
67
+ **Recommended (especially for clinicians):** add `--enable-update-notify` so Claude Code shows a one-line *"update available"* notice when a new version ships — otherwise you stay on the version you installed and are never told. (No terminal at all? The classroom installer below turns this on for you.)
68
+
69
+ ```bash
70
+ npx medsci-skills install --enable-update-notify # install + in-app update reminders
71
+ ```
72
+
67
73
  **Have git?** Install every skill in three commands:
68
74
 
69
75
  ```bash
@@ -268,43 +274,54 @@ The E2E pipeline (`orchestrate --e2e`) produces everything up to `qc/`. The `sub
268
274
 
269
275
  ## What's New
270
276
 
271
- **v4.8** is the **review-harvest batch** deterministic detector hardening promoted from real-manuscript review cycles. Additive and backward-compatible; still 45 skills / 36 guidelines, analysis-integrity detectors **30 32**:
277
+ **v4.10** reviewer-coverage expansion reverse-engineered from high-IF, CC-BY papers (learn-only under the `reverse_engineer/` license firewall), plus a clinician-friendly update path. Additive and backward-compatible; 45 skills / **38 guidelines** / 36 detectors / **15 domain-probe modules** (was 12):
278
+
279
+ - **Three new reviewer domain-probe modules** (`/peer-review` + `/self-review`, vendored byte-identical): **Mendelian randomization** (MR1–MR8 — IV assumptions, pleiotropy-robust sensitivity suite, Steiger, sample overlap, NLMR, drug-target colocalization), **polygenic risk score** (PG1–PG8 — ancestry portability, base/target leakage, incremental value over the clinical model, screening-vs-discrimination, calibration), and **network meta-analysis** (NM1–NM8 — transitivity, incoherence, SUCRA over-interpretation, CINeMA/GRADE-NMA, component-NMA additivity). Plus observational **O17** (agnostic many-exposure-scan multiplicity: ExWAS/EWAS/MWAS).
280
+ - **Two reporting-guideline checklists** (36 → 38): **STROBE-MR** and **PGS-RS / PRS-RS**, with study-type routing. Four new `/analyze-stats` analysis guides (multiplicity, MR, PRS, NMA) and a `/clean-data` implausible-value + cross-field validity reference.
281
+ - **Clinician-friendly update reminders** — the classroom installers enable the in-app "update available" notice + one-click Desktop updater by default; the `npx`/manual paths print how to turn it on; the install guide recommends `npx medsci-skills install --enable-update-notify`.
282
+
283
+ **v4.9** — analysis-integrity hardening promoted from real review cycles, plus journal-mechanics additions. Additive and backward-compatible; still 45 skills / 38 guidelines, analysis-integrity detectors **32 → 36**:
284
+
285
+ - **Four new gates** — a **duplicate-bibliography** check (`check_reference_duplication.py`) for the hybrid `[@key]` + hand-typed `## References` build that renders the list twice; a **cross-script binning / composite-indicator** consistency check (`check_binning_consistency.py`, `BINNING_DRIFT` / `DERIVED_DEF_DRIFT`) for a derived categorical or composite indicator defined inconsistently across analysis scripts; a **float citation-order** check (`check_citation_order.py`) for numbered Tables/Figures not first cited in ascending order per series; and an **audit-dump leak** gate (`/sync-submission`) that blocks a `/check-reporting` output mistakenly attached as a submission file.
286
+ - **KJR technical-check conventions + percentage-decimal style**, reader-allocation-under-burden and generative-image-as-study-object reporting (`/design-ai-benchmarking`, `/check-reporting`), and a **Liver International** CSL with that journal's submission mechanics (`/manage-refs`).
287
+
288
+ **v4.8** is the **review-harvest batch** — deterministic detector hardening promoted from real-manuscript review cycles. Additive and backward-compatible; still 45 skills / 38 guidelines, analysis-integrity detectors **30 → 32**:
272
289
 
273
290
  - **Two new gates** — `check_supplement_hygiene.py` lints the rendered supplement / tables / caption files (not just the manuscript) for §-labels, placeholders, build markers, response-letter framing, and unresolved body↔supplement cross-references; `check_null_calibration.py` flags a headline negative/equivalence claim made without a minimum-detectable-effect / power / equivalence statement.
274
291
  - **Four detector false-positive fixes** — gates no longer fire on a recommended colorblind-safe palette, author-footnote `§` daggers, a correctly-hedged disclaimer, or a tier-label digit; each with a regression fixture and three newly CI-wired test suites.
275
292
  - **Nine reviewer-side domain probes** (SR/MA, observational, diagnostic, AI-overclaiming, survival) plus a `/design-study` design-stage ceiling gate for perceptual/reader-AI studies and a reusable confidence-weighted-rating→AUC monotonicity template.
276
293
 
277
- **v4.7** is the **self-update foundation** — physician-researchers stay current without GitHub, git, or a terminal. Additive and backward-compatible; still 45 skills / 36 guidelines / 30 detectors:
294
+ **v4.7** is the **self-update foundation** — physician-researchers stay current without GitHub, git, or a terminal. Additive and backward-compatible; still 45 skills / 38 guidelines / 30 detectors:
278
295
 
279
296
  - **Transactional, crash-recoverable installer.** Each install runs through a durable journal state machine recovered on the next run (roll back / forward-clean / fail-closed), with per-target SHA-256 inventories — your modified or third-party skills are backed up and never clobbered or auto-deleted.
280
297
  - **One-click self-updater** (`~/.medsci-skills/updater/`, `install.py --check-update`). Verifies the download against the github.com API digest and **never `extractall()`s** (per-entry rejection of traversal / symlink / duplicate / zip-bomb + an allowlist & per-file hash). The release pipeline injects a verified `provenance.json`, attests build provenance, runs on a protected `release` environment, and verifies each ZIP round-trips through the updater's own safe-extract before publishing.
281
298
  - **Opt-in update notice (off by default):** `install.py --enable-update-notify` shows a one-line "update available" message at Claude Code session start — no telemetry, reads nothing about your session, installs nothing. `--disable-update-notify` / `MEDSCI_NO_UPDATE_CHECK=1` turn it off. *(Honest scope: the digest/attestation detect transport tampering, not a compromised publisher account — see `SECURITY.md`.)*
282
299
 
283
- **v4.6** is a maintainability, governance, and review-depth release — still 45 skills / 36 guidelines; analysis-integrity detectors **28 → 30**, domain probes 11 → 12:
300
+ **v4.6** is a maintainability, governance, and review-depth release — still 45 skills / 38 guidelines; analysis-integrity detectors **28 → 30**, domain probes 11 → 12:
284
301
 
285
302
  - **Fairness / equity / subgroup-performance probe (EQ0–EQ6)** for AI/prediction/diagnostic studies that claim cross-population performance, plus two new detectors: an **AI-disclosure + data/code-availability** check (`/sync-submission`) and a **structured-summary-box conformance** check (`/academic-aio`).
286
303
  - **Governance + answer-engine layer:** `ROADMAP.md`, `MAINTAINERS.md`, `SECURITY.md`, a maintainer workflow + release checklist, an AEO/GEO `docs/faq.md`, a "Start here: 3 workflows" + "Validation status" section in this README, and a new `maturity` field (official / experimental / community) on every skill.
287
304
  - **Token diet (pilot):** `write-paper` Phase 7 integrity audits moved to a load-on-demand reference (~2,559 tokens saved per invocation). Positioning now leads with the compliance moat rather than skill count.
288
305
 
289
- **v4.5** deepens the review + submission surface with no new skill or reporting-guideline count (still 45 skills / 36 guidelines); analysis-integrity detectors **27 → 28**:
306
+ **v4.5** deepens the review + submission surface with no new skill or reporting-guideline count (still 45 skills / 38 guidelines); analysis-integrity detectors **27 → 28**:
290
307
 
291
308
  - **`/clean-data` + `/analyze-stats` — reverse-coded-item / negative-alpha detector.** A multi-item Likert scale with a negatively-worded item must be recoded `(min+max) − x` before the scale total or Cronbach's alpha is computed; left un-recoded, the item correlates negatively with the rest of the scale and alpha collapses (often negative). A negative alpha is a coding bug, not a "multidimensional construct." New stdlib-only `check_reverse_coding.py` returns `REVERSE_CODING_LIKELY` / `REVERSE_CODING_SUSPECT` / `OK` from per-item item-rest correlations + raw alpha; the Likert summary template gains a `--reverse-items` recode flag.
292
309
  - **`/peer-review` + `/self-review` — SR/MA + DTA + prediction-model probe batch.** `sr_ma.md` **P12** risk-of-bias table row-sum ↔ traffic-light figure-matrix reconciliation and **P13** included-study ↔ reference-list completeness; `diagnostic_accuracy.md` **D7** index-test-as-enrollment-criterion circularity; `clinical_prediction_model.md` **CP5** intended-use horizon leakage and **CP6** development/CV vs held-out/external validation-nomenclature conflation. Vendored byte-identical into `/self-review`.
293
310
  - **`/sync-submission` — embedded absolute-path leak scan.** A `word/*.xml` attribute (e.g. a pandoc-embedded image's `<pic:cNvPr descr="…">`) carrying an absolute home-dir path (`/Users/…`, `/home/…`) is a username leak invisible to a rendered-text scan; now flagged as `docx_embedded_abs_path` under `check_asset_anonymization.py`.
294
311
 
295
- **v4.4** adds reviewer/analysis depth with no new skill or reporting-guideline count (still 45 skills / 36 guidelines / 27 detectors):
312
+ **v4.4** adds reviewer/analysis depth with no new skill or reporting-guideline count (still 45 skills / 38 guidelines / 27 detectors):
296
313
 
297
314
  - **`/author-strategy` — trajectory-archetype classification (optional).** Classifies a queried author's PubMed trajectory into abstract career archetypes (A1 infrastructure builder, A2 methodology rule-maker, A3 clinical→AI hybrid, A4 SR/MA volume engine, A5 large-consortium participation, A6 device/technique depth, + a computed composite) as an **explainable, multi-label, confidence-scored heuristic — not an objective verdict**. The rubric is a single canonical YAML (the narrative doc is generated from it); scores exclude `unavailable` signals (h-index/citation/venue-tier → `[VERIFY]`, never fabricated); a **disambiguation gate** binds an approved `corpus_manifest.json` to the CSV (csv + PMID-set hashes) so a surname alone never classifies, and target-author attribution never borrows a co-author's ORCID/affiliation.
298
315
  - **`/peer-review` + `/self-review` — Image-Synthesis / cross-modality probe (IS1–IS4)** for studies that synthesize one imaging modality from another and claim the output carries the target's information, plus a reviewer-side reference-integrity spot-check.
299
316
  - **`/verify-refs` — OpenAlex tertiary index** recovers conference-proceedings / non-DOI citations (NeurIPS/ICLR/ACL) that fall through PubMed and CrossRef, the free analogue of a portal's second index.
300
317
 
301
- **v4.3** hardens the **cross-sectional / observational cohort** review surface end-to-end, much of it reverse-engineered from real CC-BY cohort papers (learn-only under the license firewall) — no new skill or reporting-guideline count (still 45 skills / 36 guidelines); analysis-integrity detectors **25 → 27**:
318
+ **v4.3** hardens the **cross-sectional / observational cohort** review surface end-to-end, much of it reverse-engineered from real CC-BY cohort papers (learn-only under the license firewall) — no new skill or reporting-guideline count (still 45 skills / 38 guidelines); analysis-integrity detectors **25 → 27**:
302
319
 
303
320
  - **Observational probes O1 → O14** (`/peer-review` + `/self-review`, vendored) — over-adjustment / analysis-unit clustering / outcome construct-validity (O7–O9), overlapping-subset gradient (O10), **complex-survey design & weighting** for NHANES/KNHANES (O11), **data-driven threshold / "inflection-point" mining** (O12), **cross-sectional mediation** temporal-order & sequential-ignorability (O13), and **interaction scale** — additive RERI/AP/S vs multiplicative (O14). Plus a new **clinical-prediction-model** probe module **CP1–CP4** and survival **S9** (panel-data / multistate variance).
304
321
  - **Two new detectors (25 → 27)** — `check_wordcount_cap.py` (the revision-inflation trap: body vs journal cap) and `check_paren_spans.py` (em-dash→paren conversions that wrap a whole sentence). Plus a `check_confounding_completeness.py` upgrade (DB-code↔prose alias map, SMD-from-mean±SD, exposure-defining-covariate exemption), a `check_cohort_arithmetic.py` `ANALYSIS_UNIT_UNDISCLOSED` check, a `check_scope_coherence.py` cross-sectional-yield lexicon, and a verify-refs corporate/collective-author render-abort fix.
305
322
  - **Analysis & submission tooling** — `/analyze-stats` gains **mediation** and **interaction & effect-modification** guides; `/sync-submission` gains `assemble_supplement.py` (S{N} index↔file integrity) and a `/revise` body-word-count exit gate; `/render-pdf-doc` gains a `scan_glyph_coverage.py` xelatex silent-glyph-drop scan.
306
323
 
307
- **v4.2** builds out the case-report capability end-to-end, grounded in real CC-BY case reports (learn-only under the license firewall) — no new skill or reporting-guideline count (still 45 skills / 36 guidelines); journal profiles **68 → 73**:
324
+ **v4.2** builds out the case-report capability end-to-end, grounded in real CC-BY case reports (learn-only under the license firewall) — no new skill or reporting-guideline count (still 45 skills / 38 guidelines); journal profiles **68 → 73**:
308
325
 
309
326
  - **Case-report + case-series writing** — `/write-paper` gains a CARE narrative + 150-word-abstract case-report exemplar, a **case-series** paper type (methods-light mini-cohort, all-cases summary table, counts-not-rates), and **adverse-event/pharmacovigilance** (Naranjo/WHO-UMC causality) and **diagnostic-pitfall/mimic** subtypes.
310
327
  - **Radiology / imaging-led track** — a dedicated `exemplar_case_report_radiology.md` (per-modality technique→findings→impression, structured-reporting lexicons BI-RADS/LI-RADS/PI-RADS/TI-RADS/Lung-RADS/O-RADS, quantitative threshold honesty, an interventional-radiology procedure/complication subtype, DICOM de-identification) plus a `/make-figures` annotated multimodality imaging-panel exemplar.
@@ -356,7 +373,7 @@ Earlier in this series: analysis-integrity guards (confounding completeness, cla
356
373
  | **Battle-tested** | Used on real manuscript submissions by a practicing physician-researcher | Unknown provenance and validation |
357
374
  | **Depth per skill** | 150-600 lines of documentation + bundled reference files (curated journal profile library, checklists, formula sheets, code templates) | Typically thin SKILL.md templates |
358
375
 
359
- **MedSci-Audit** — the verification edge in the first rows above is a named suite of **28 deterministic detectors** (citation & reference integrity, cohort & pool arithmetic, scope/estimand contracts, reporting compliance, and more) that catch fabricated or drifted content before a manuscript reaches a reviewer. See **[`MEDSCI_AUDIT.md`](MEDSCI_AUDIT.md)** for the suite, its six families, and its evaluation evidence.
376
+ **MedSci-Audit** — the verification edge in the first rows above is a named suite of **36 deterministic detectors** (citation & reference integrity, cohort & pool arithmetic, scope/estimand contracts, reporting compliance, and more) that catch fabricated or drifted content before a manuscript reaches a reviewer. See **[`MEDSCI_AUDIT.md`](MEDSCI_AUDIT.md)** for the suite, its six families, and its evaluation evidence.
360
377
 
361
378
  ---
362
379
 
@@ -428,7 +445,7 @@ ma-scout -> search-lit -> fulltext-retrieval -> design-study ──> write-proto
428
445
  | **search-lit** | PubMed + Semantic Scholar + bioRxiv search with anti-hallucination citation verification. Token-efficient error handling -- CrossRef failures are silently batched, not repeated. BibTeX output tags each entry with `verified`/`verified_by`/`verified_on` fields so downstream skills can trust the citation provenance. |
429
446
  | **verify-refs** | Pre-submission reference audit for `.md`, `.docx`, `.bib`, or `.tsv` inputs. Extracts references, verifies DOI/PMID via CrossRef/PubMed when available, and writes `qc/reference_audit.json` as the sole output — row-level status (OK / MISMATCH / UNVERIFIED / FABRICATED) lives inside the JSON `records[]` block. `/search-lit` produces candidate BibTeX; `/lit-sync` owns `manuscript/_src/refs.bib`. |
430
447
  | **fulltext-retrieval** | Batch open-access PDF downloader. Unpaywall → PMC → OpenAlex → CrossRef pipeline. OA-only -- no paywall bypass. Input: DOI list or TSV. Optional PDF→Markdown conversion via [pymupdf4llm](https://pymupdf.readthedocs.io/en/latest/pymupdf4llm/) for token-efficient LLM analysis of academic papers. |
431
- | **check-reporting** | Manuscript compliance audit against 36 reporting guidelines and risk of bias tools (STROBE, STARD, STARD-AI, TRIPOD, TRIPOD+AI, TRIPOD-LLM, PRISMA, PRISMA-DTA, PRISMA-P, MOOSE, ARRIVE, CONSORT, CONSORT-AI, CARE, SPIRIT, SPIRIT-AI, CLAIM, DECIDE-AI, SQUIRE 2.0, CLEAR, GRRAS, MI-CLEAR-LLM, SWiM, AMSTAR 2, QUADAS-2, QUADAS-C, RoB 2, ROBINS-I, ROBINS-E, ROBIS, ROB-ME, PROBAST, PROBAST+AI, NOS, COSMIN, RoB NMA). Machine-readable JSON summary with `compliance_pct` and `fixable_by_ai` flags for automated pipeline integration. |
448
+ | **check-reporting** | Manuscript compliance audit against 38 reporting guidelines and risk of bias tools (STROBE, STROBE-MR, STARD, STARD-AI, TRIPOD, TRIPOD+AI, TRIPOD-LLM, PGS-RS, PRISMA, PRISMA-DTA, PRISMA-P, MOOSE, ARRIVE, CONSORT, CONSORT-AI, CARE, SPIRIT, SPIRIT-AI, CLAIM, DECIDE-AI, SQUIRE 2.0, CLEAR, GRRAS, MI-CLEAR-LLM, SWiM, AMSTAR 2, QUADAS-2, QUADAS-C, RoB 2, ROBINS-I, ROBINS-E, ROBIS, ROB-ME, PROBAST, PROBAST+AI, NOS, COSMIN, RoB NMA). Machine-readable JSON summary with `compliance_pct` and `fixable_by_ai` flags for automated pipeline integration. |
432
449
  | **analyze-stats** | Statistical analysis code generation (Python/R) for diagnostic accuracy, DTA meta-analysis (bivariate/HSROC), inter-rater agreement, survival analysis, demographics tables, regression (logistic/linear), propensity score (matching/IPTW/overlap weighting), and repeated measures (RM ANOVA/GEE/mixed models). Calibration mandatory for prediction models. |
433
450
  | **meta-analysis** | Full systematic review and meta-analysis pipeline (8 phases). DTA (bivariate/HSROC) and intervention meta-analysis. Protocol to submission-ready manuscript with PRISMA-DTA compliance. |
434
451
  | **make-figures** | Publication-ready figures and visual abstracts: ROC curves, forest plots, PRISMA/CONSORT/STARD flow diagrams, Kaplan-Meier curves, Bland-Altman plots, confusion matrices, and journal-specific visual/graphical abstracts (python-pptx template-based). Communication-first design principles (Nat Hum Behav 2026 — key message, audience, cognitive load, figure-vs-table decision) and five flow-diagram production lessons (official-template fidelity, VML fallback PDF export, docx XML escape, sequential placeholder mapping, version freeze); critic rubric Section G adds 5 communication-first checks. `--study-type` auto-generates the full required figure set; structured `_figure_manifest.md` output for downstream pipeline consumption; D2 enforced as default for flow diagrams. |
@@ -492,6 +509,8 @@ After unzipping:
492
509
  - Windows: double-click `installers/install-windows.cmd`
493
510
  - macOS: double-click `installers/install-macos.command`
494
511
 
512
+ This turnkey install also **turns on in-app update reminders** and adds an **"Update MedSci Skills"** Desktop icon, so you are told when a new version ships and can update with one click — no terminal needed (see [Updating](#updating)).
513
+
495
514
  Then restart Claude Code Desktop, Codex Desktop, or Cursor and test with:
496
515
 
497
516
  ```text
@@ -543,19 +562,22 @@ See [docs/classroom_distribution_plan.md](docs/classroom_distribution_plan.md) a
543
562
 
544
563
  MedSci Skills updates often. You do **not** need GitHub, git, or the command line to stay current.
545
564
 
546
- - **One click (recommended for the classroom install).** After installing, an updater is placed at
547
- `~/.medsci-skills/updater/` (and, if you chose `--desktop-launcher`, an **"Update MedSci Skills"**
548
- icon on your Desktop). Double-click it: it downloads the latest release from GitHub, verifies it,
549
- and re-installs transactionally, so an interrupted update never corrupts your install.
565
+ - **One click (recommended for the classroom install).** The classroom installer (Option 1) now
566
+ sets this up for you automatically it places an updater at `~/.medsci-skills/updater/`, drops an
567
+ **"Update MedSci Skills"** icon on your Desktop (`--desktop-launcher`), and **turns on the in-app
568
+ update reminder** (below). Double-click the icon: it downloads the latest release from GitHub,
569
+ verifies it, and re-installs — transactionally, so an interrupted update never corrupts your install.
550
570
  - **Already installed an old copy?** Re-download the latest classroom ZIP **once** and double-click
551
571
  the installer; from then on the one-click updater is in place for every future update.
552
572
  - **Terminal users:** `npx medsci-skills@latest install` always installs the latest.
553
573
  - **Just checking:** `python3 installers/install.py --check-update` reports whether a newer version
554
574
  is available and installs nothing.
555
- - **Get reminded (opt-in, Claude Code):** `python3 installers/install.py --enable-update-notify`
556
- shows a one-line *"update available"* notice when a Claude Code session starts. It is **off by
557
- default**, checks at most once a day, reads nothing about your session, and never installs
558
- anything. Turn it off with `--disable-update-notify`, or silence it with `MEDSCI_NO_UPDATE_CHECK=1`.
575
+ - **Get reminded (Claude Code):** `python3 installers/install.py --enable-update-notify` (or
576
+ `npx medsci-skills install --enable-update-notify`) shows a one-line *"update available"* notice
577
+ when a Claude Code session starts. **The classroom installer enables this for you;** for the
578
+ `npx`/manual paths it is **off by default** (the installer prints how to turn it on). It checks at
579
+ most once a day, reads nothing about your session, and never installs anything. Turn it off with
580
+ `--disable-update-notify`, or silence it with `MEDSCI_NO_UPDATE_CHECK=1`.
559
581
  - **Claude Code plugin marketplace:** third-party marketplace **auto-update is off by default** —
560
582
  enable it in Claude Code or run a manual plugin update.
561
583
 
@@ -586,8 +608,8 @@ Projects declare their source-of-truth layout in `SSOT.yaml`, and a `qc/migratio
586
608
  ### Meta-Analysis Failure Modes
587
609
  `/meta-analysis` ships empirical failure-mode references (data integrity, review orchestration, submission package drift, post-submission release ops) with four automation hooks: `scripts/prisma_5way_consistency.py` (DI-6 PRISMA number consistency), `scripts/extraction_consensus_log_init.py` (DI-1 dual-extraction scaffold), `scripts/tag_cleanup_gate.sh` (DI-8 placeholder tag gate), and `scripts/verify_package_integrity.py` (SPD SHA-256 manifest for submission bundles).
588
610
 
589
- ### 36 Reporting Guidelines & RoB Tools Built-in
590
- `check-reporting` includes bundled checklists for 36 guidelines and risk-of-bias tools: STROBE, STARD, STARD-AI, TRIPOD, TRIPOD+AI, TRIPOD-LLM, PRISMA 2020, PRISMA-DTA, PRISMA-P, MOOSE, ARRIVE, CONSORT, CONSORT-AI, CARE, SPIRIT, SPIRIT-AI, CLAIM, DECIDE-AI, SQUIRE 2.0, CLEAR, GRRAS, MI-CLEAR-LLM, SWiM, AMSTAR 2, QUADAS-2, QUADAS-C, RoB 2, ROBINS-I, ROBINS-E, ROBIS, ROB-ME, PROBAST, PROBAST+AI, NOS, COSMIN, RoB NMA. Includes Results/Discussion section boundary checks and machine-readable JSON summary for pipeline integration.
611
+ ### 38 Reporting Guidelines & RoB Tools Built-in
612
+ `check-reporting` includes bundled checklists for 38 guidelines and risk-of-bias tools: STROBE, STROBE-MR, STARD, STARD-AI, TRIPOD, TRIPOD+AI, TRIPOD-LLM, PGS-RS, PRISMA 2020, PRISMA-DTA, PRISMA-P, MOOSE, ARRIVE, CONSORT, CONSORT-AI, CARE, SPIRIT, SPIRIT-AI, CLAIM, DECIDE-AI, SQUIRE 2.0, CLEAR, GRRAS, MI-CLEAR-LLM, SWiM, AMSTAR 2, QUADAS-2, QUADAS-C, RoB 2, ROBINS-I, ROBINS-E, ROBIS, ROB-ME, PROBAST, PROBAST+AI, NOS, COSMIN, RoB NMA. Includes Results/Discussion section boundary checks and machine-readable JSON summary for pipeline integration.
591
613
 
592
614
  ### Publication-Ready Output
593
615
  `analyze-stats` generates reproducible Python/R code for 13 analysis types -- including regression, propensity score, and repeated measures -- with mandatory calibration for prediction models. `make-figures` produces journal-specification figures (300 DPI, colorblind-safe palettes, proper dimensions), visual/graphical abstracts, and a tool selection guide (D2 for flow diagrams, matplotlib for data plots). `--study-type` auto-generates the complete figure set for each study design.
@@ -601,6 +623,17 @@ Projects declare their source-of-truth layout in `SSOT.yaml`, and a `qc/migratio
601
623
  ### Skills Work Together
602
624
  Skills call each other. `check-reporting` invokes `make-figures` for PRISMA diagrams. `write-paper` calls `search-lit` for citation verification. `self-review` delegates reporting compliance to `check-reporting`. `calc-sample-size` output feeds directly into `write-protocol`'s IRB justification section.
603
625
 
626
+ ### Skill boundaries — which to use, and in what order
627
+ The skill set is deliberately *specialized, not consolidated* — each skill owns a distinct artifact or lifecycle step, so the routing stays precise. The boundaries that are easy to confuse:
628
+
629
+ - **Reference pipeline** — `search-lit` (discover candidates) → `lit-sync` (sole writer of `refs.bib`, syncs Zotero/Obsidian) → `manage-refs` (render CSL / inject CWYW / cross-ref QC, sole writer of the rendered DOCX) → `verify-refs` (read-only audit; never edits `refs.bib`). They are one pipeline, not four overlapping tools.
630
+ - **Language passes run in order** — `humanize` (remove AI-writing tells) → `polish-language` (deterministic ESL/house-style consistency: abbreviations, spelling, en-dashes, p-value case) → `academic-aio` (AI-search/GEO visibility). Three sequential passes with non-overlapping jobs.
631
+ - **Manuscript type picks the skill** — `write-paper` (original/IMRAD articles, case reports, MAs) vs `review-paper` (narrative / scoping / systematic literature reviews) vs `revise` (reviewer-response + tracked changes). Different structures and reporting guidelines.
632
+ - **Author vs external reviewer** — `self-review` is your own pre-submission check (anticipated comments); `peer-review` drafts a journal-facing review as an external reviewer. Same domain probes, different user and output.
633
+ - **Project entry** — `intake-project` classifies and scaffolds a *new or messy folder*; `orchestrate` routes a *goal or task* ("help me write a paper"). Start with `intake-project` when you have files but no structure, `orchestrate` when you have a task but no plan.
634
+ - **Study design** — `design-study` covers general validity (analysis unit, leakage, comparator, validation) **and** carries a design-stage ceiling gate for perceptual / observer / reader / visual-Turing-test / image-provenance studies; `design-ai-benchmarking` specializes in AI-vs-human-expert evaluation (rubrics, calibration probes, LLM-as-judge).
635
+ - **Content vs template** — `write-protocol` drafts IRB/ethics scientific content; `fill-protocol` renders that content into an institutional Word template without breaking its formatting.
636
+
604
637
  ### Validation status — available vs CI-gated vs evaluated
605
638
  Be precise about what "validated" means here — the three tiers are different facts:
606
639
  - **Available** — every bundled skill and deterministic detector. The current totals are the single source of truth in [`metadata/catalog_counts.json`](metadata/catalog_counts.json) and [`MEDSCI_AUDIT.md`](MEDSCI_AUDIT.md).
@@ -6,10 +6,19 @@ cd "$(dirname "$0")/.."
6
6
  echo "MedSci Skills Installer for macOS"
7
7
  echo
8
8
 
9
+ PY=""
9
10
  if command -v python3 >/dev/null 2>&1; then
10
- python3 installers/install.py --target all
11
+ PY=python3
11
12
  elif command -v python >/dev/null 2>&1; then
12
- python installers/install.py --target all
13
+ PY=python
14
+ fi
15
+
16
+ if [ -n "$PY" ]; then
17
+ "$PY" installers/install.py --target all --desktop-launcher
18
+ # Turn on the in-app "update available" reminder for this turnkey install so you are told when a
19
+ # new version is out (no terminal needed afterward). Best-effort; turn off later with
20
+ # `install.py --disable-update-notify` or MEDSCI_NO_UPDATE_CHECK=1.
21
+ "$PY" installers/install.py --enable-update-notify || true
13
22
  else
14
23
  echo "Python was not found."
15
24
  echo "Install Python 3 from https://www.python.org/downloads/ and run this installer again."
@@ -7,13 +7,17 @@ echo.
7
7
 
8
8
  where py >nul 2>nul
9
9
  if %errorlevel%==0 (
10
- py -3 installers\install.py --target all
10
+ py -3 installers\install.py --target all --desktop-launcher
11
+ rem Turn on the in-app "update available" reminder for this turnkey install (disable later with --disable-update-notify).
12
+ py -3 installers\install.py --enable-update-notify
11
13
  goto done
12
14
  )
13
15
 
14
16
  where python >nul 2>nul
15
17
  if %errorlevel%==0 (
16
- python installers\install.py --target all
18
+ python installers\install.py --target all --desktop-launcher
19
+ rem Turn on the in-app "update available" reminder for this turnkey install (disable later with --disable-update-notify).
20
+ python installers\install.py --enable-update-notify
17
21
  goto done
18
22
  )
19
23
 
@@ -5,9 +5,12 @@ Write-Host "MedSci Skills Installer for Windows"
5
5
  Write-Host ""
6
6
 
7
7
  if (Get-Command py -ErrorAction SilentlyContinue) {
8
- py -3 installers/install.py --target all
8
+ py -3 installers/install.py --target all --desktop-launcher
9
+ # Turn on the in-app "update available" reminder for this turnkey install (disable later with --disable-update-notify).
10
+ try { py -3 installers/install.py --enable-update-notify } catch {}
9
11
  } elseif (Get-Command python -ErrorAction SilentlyContinue) {
10
- python installers/install.py --target all
12
+ python installers/install.py --target all --desktop-launcher
13
+ try { python installers/install.py --enable-update-notify } catch {}
11
14
  } else {
12
15
  Write-Host "Python was not found."
13
16
  Write-Host "Please install Python 3 from https://www.python.org/downloads/ and run this installer again."
@@ -286,6 +286,19 @@ def main() -> int:
286
286
  except Exception as exc: # noqa: BLE001
287
287
  log(f"\n[updater] could not install the one-click updater ({exc}); updates still work via re-running the installer.", log_lines)
288
288
 
289
+ # One-time nudge: if the in-app update reminder is not enabled, surface how to turn it on.
290
+ # (The classroom installers enable it automatically; this covers npx / manual installs so a
291
+ # clinician who installed via "install this repo" is told how to get update notices.) Read-only.
292
+ if not args.dry_run:
293
+ try:
294
+ import update # noqa: PLC0415
295
+ if not update.session_hook_enabled(medsci_txn.state_home(), update.default_settings_path()):
296
+ log("\n[update reminders] OFF — Claude Code will not tell you when a new version is out.", log_lines)
297
+ log(" Turn on with: npx medsci-skills install --enable-update-notify", log_lines)
298
+ log(" (or: python3 installers/install.py --enable-update-notify)", log_lines)
299
+ except Exception: # noqa: BLE001 - nudge is best-effort, never block the install
300
+ pass
301
+
289
302
  if failures:
290
303
  log(f"\nCompleted with errors on: {', '.join(failures)}. Other targets are fully installed.", log_lines)
291
304
  log("If this happened during class, send the install log to the instructor.", log_lines)
@@ -517,6 +517,25 @@ def register_session_hook(home: Path, settings_path: Path) -> str:
517
517
  return "enabled"
518
518
 
519
519
 
520
+ def session_hook_enabled(home: Path, settings_path: Path) -> bool:
521
+ """Read-only: True iff our SessionStart update-notify hook is currently registered in
522
+ settings.json. Never writes; tolerant of an absent/empty/unreadable settings file (False).
523
+ Used by the installer to decide whether to print the one-time enable-reminders nudge."""
524
+ try:
525
+ if not settings_path.is_file():
526
+ return False
527
+ settings = _load_settings(settings_path)
528
+ if not isinstance(settings, dict):
529
+ return False
530
+ hooks = settings.get("hooks")
531
+ ss = hooks.get("SessionStart") if isinstance(hooks, dict) else None
532
+ if not isinstance(ss, list):
533
+ return False
534
+ return any(_entry_owns_hook(e, home) for e in ss)
535
+ except Exception: # noqa: BLE001 - read-only nudge gate, never block install
536
+ return False
537
+
538
+
520
539
  def unregister_session_hook(home: Path, settings_path: Path) -> str:
521
540
  """Opt-out: remove ONLY our SessionStart hook (even if it shares an entry with other hooks),
522
541
  preserving everything else; drop emptied containers. Returns 'disabled' or 'not-enabled'."""