Compile Central Alignment
Invoke as $compile-central-alignment.
Generate a browsable alignment/index.html linking to every alignment page in the current repository. Works in any repo with an alignment/ directory.
Process
- Locate
alignment/at the project root; stop if absent. - Scan
alignment/*.html(excludeindex.html), extract per-file:<title>, first<h1>, first<p class="meta">, modification date. - Sort by modification date descending.
- Generate
alignment/index.html— self-contained HTML with:- Visual style matching existing alignment pages (same CSS variables, fonts, layout)
- Card grid with linked titles, descriptions, dates
- Text filter input for quick search
- Page count and generation timestamp
- All relative links, no external dependencies
- Open in browser (WSL-aware:
wslpath -w+cmd.exe /c start).
Constraints
- Do not modify existing alignment pages — only create/overwrite
alignment/index.html. - Do not commit or push — local convenience artifact, regenerated fresh each time.
- Empty-state page if no
.htmlfiles found (besidesindex.html). - Must work as
file://URL — no server required.
Default Shipping Contract
- No commit/push. Local convenience file, regenerated on demand.
- Default next-step routing: After generating the index, suggest contextual next steps based on what was found:
- If any pages have old modification dates or the scan revealed outdated content:
Recommended next command: $upgrade-alignment-pages - If the index is freshly built with all pages current: confirm completion with no further routing
- Do not default to
$skillsas a generic fallback
- If any pages have old modification dates or the scan revealed outdated content: