Migration Project

Overall goal: move as many old wikitext projects to markdown with folder structure as possible. Migrate campaigns from the bertball wiki to the campaigns folder.

Phase 0: Preparation

Folder Structure Standards

Campaigns

For campaigns that don't already have a folder structure, the following default should be used:

Naming conventions:

Settings

For settings that don't already have a folder structure, the following default should be used:

Systems

For systems that don't already have a folder structure, the following default should be used:

Delete List

Delete all of these wikiroots and put them in a separate archive:

Rename List

Needs a new name:

Phase 1: Wikitext to Markdown

Phase 2: Content-Aware Migration

Implementation Plan

Phase 2a: Heuristic Pre-Classification (no LLM) โœ… COMPLETE

Built classify-wiki.js (~1,060 lines) + classify-yaml-lite.js (~70 lines). Ran on all 18 wikiroots.

Results: 7,222 files classified across 18 wikiroots.

Wikiroot Files Delete Move Keep Need LLM
legacy/bertball 4,165 1,309 2,041 815 605
settings/starwars 878 103 548 227 126
systems/system8 480 6 57 417 416
systems/system7 313 9 12 292 267
settings/oathkeep 220 5 169 46 27
systems/system5 208 0 3 205 205
settings/bdh 194 4 135 55 44
systems/system6 165 0 10 155 144
settings/faerun 163 4 134 25 10
legacy/inactive-systems 155 0 10 145 143
systems/5e 118 1 11 106 106
settings/homeworlds 86 0 75 11 7
legacy/colewiki 34 3 2 29 28
settings/dark-sun 17 1 15 1 1
settings/dieselpunk 13 0 10 3 3
settings/torvalt 6 0 5 1 1
settings/new 4 0 0 4 4
settings/eberron 3 0 1 2 1
TOTAL 7,222 1,445 3,238 2,539 2,138

By content type: other 2,138 ยท lore 1,270 ยท redirect 674 ยท spell 654 ยท monster 619 ยท character 513 ยท index 401 ยท item 345 ยท location 339 ยท feat 56 ยท campaign-session 55 ยท rule 54 ยท class-feature 39 ยท campaign-landing 22 ยท spam 15 ยท organization 14 ยท empty 14

Delete breakdown: SRD-duplicate 742 ยท redirect 674 ยท spam 15 ยท empty 14

2,138 files need LLM/review (29.6% of total). Most are in systems/ wikiroots where content is homebrew rules without standard D&D patterns (system5-8, 5e) and legacy/bertball remainders.

Phase 2b: LLM Classification (Ollama)

For files not confidently classified by heuristics (~2,500-3,700 files). Requires Ollama installed locally.

Phase 2c: Report Generation & Human Review

Phase 2d: Execute Migration

Phase 2e: Non-Bertball Folder Restructuring

For flat wikiroots that stay in place but need internal folder structure (starwars, oathkeep, system7, system6, etc.).

Hardware & Time Estimates

Hardware Model Speed (per file) LLM pass (~2,500 files) Total with all wikiroots
Apple Silicon (M-series) llama3.1:8b ~3-5 sec ~2.5-3.5 hours ~4-5 hours
Core 7 Ultra + 5070 Ti llama3.1:8b ~1-1.5 sec ~45-60 min ~1.5-2 hours
Core 7 Ultra + 5070 Ti qwen2.5:14b ~2-3 sec ~1.5-2 hours ~2.5-3 hours

The 5070 Ti's 16GB VRAM and CUDA acceleration roughly halves inference time vs Apple Silicon Metal, and also allows running a 14B model at 8B speeds for better classification accuracy. Heuristic pass is instant on any hardware. Recommendation: use the 5070 Ti with qwen2.5:14b for the best accuracy/speed balance.

Bertball Wiki

Non-Bertball

Phase 3: Folder Restructuring

Bonus Phase: Image Extension Repair