Changelog
v0.1.2
Data-integrity fix for adding folders to an existing wiki.
- The index is now additive. Previously, running a conversion on one folder
rebuiltindex.md/index.csv/index.jsonfrom only that folder's papers,
silently dropping every other paper from the index (theirpapers/*.mdstayed on
disk). The index is now rebuilt from all cached metadata — the whole wiki — so
adding a folder unions into the existing index.--forcestill wipes the cache for
a clean single-folder rebuild. - Mount-stable cache keys. State is keyed on each paper's output filename instead
of its absolute path, so a prior session's cache still matches when the workspace
re-mounts under a new root (fixes cross-session incremental resume and the recursive
rebuild). Legacy absolute-path caches are migrated automatically on load. --index-onlyneeds no PDFs. The recovery path now rebuilds the full index from
.wiki_state.jsonalone, without enumerating any PDFs — so it works even pointed at
an empty/foreign folder.- Guardrail. If the index ends up with fewer entries than the number of paper
files on disk, the script prints a loud warning instead of shipping a shrunken index.
v0.1.1
Robustness and metadata-quality release.
Resumability / large or time-capped runs
- State is saved after every file; the index/evidence table is rebuilt from
state each pass (--index-onlyto rebuild without converting). --time-budget SECONDSfor time-capped, no-background sandboxes (Cowork): re-run
the same command until it printsALL_DONE. Already-converted files are skipped
cheaply (size + mtime, no re-hashing) so passes converge; work is ordered
smallest-first so one big file can't starve the queue; a guard warns if--force
is combined with--time-budget.--max-pages Npage-caps oversized documents (records the truncation in
frontmatter) so a single huge PDF fits within one call.
OCR
--ocr {auto,off,force}(defaultauto): skips OCR for born-digital journal PDFs
(~4–5× faster per file, identical extraction) and OCRs only true scans.
Metadata quality
- Repair the U+FFFD (
�) glyph collapse in high-confidence statistical contexts
(e.g.N �→N =,� 80%→≥ 80%,mean �SD→mean ± SD), which also
recovers many previously-blank sample sizes. Ambiguous cases are left untouched. - Cleaner author extraction: prefer the embedded PDF author when it reads like
names, reject affiliation/address lines, capture multi-line bylines, strip orphan
superscript markers. - Controlled Obsidian tags — only
design/…,source/…, andyear/…
namespaces (per-keyword hashtags moved behind--keyword-tags, off by default);
journal boilerplate ("Article history: Received …") no longer bleeds into keywords. - Broader sample-size detection (more phrasings and noun forms).
Docs
SKILL.md: a repeatableindex_by_theme.md(by-topic) routine; the conversion
command now references the skill's own base directory, so it resolves in packaged
or Cowork deploys where the folder is namedtyler-med.README.md: an Obsidian + Dataview usage section.
v0.1.0
Initial release: a two-tier Markdown wiki (study-design-grouped index.md + full
papers/*.md) plus a index.csv/index.json evidence table, with reliable titles
from embedded PDF metadata + DOI, study-design classification, sample size, data
source, trial/PROSPERO registration IDs, mojibake/ligature repair, and duplicate
detection. MIT-licensed; derived from the tyler skill in econtools.