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">,data-alignment-categoryfrom<html>element, modification date. - Group and sort:
- Assign category per page:
data-alignment-categoryattribute first; else match filename against prefix lists:research:devtool-positioning,devtool-adoption,devtool-monetization,devtool-user-map,devtool-workflow,devtool-dx-journey,devtool-integration-map,deep-research,repo-glossaryproduct-design:idea-scope-brief,fork-idea-branch,animation-design-planner,skills-showcase,skills-inventoryutility:investigate,session-triage,prompt-history-backfillqa-meta:expert-review,benchmark,targeted-skill-builder,devtool-docs-auditops-analysis:analyze-sessions,canonical-workflow,run-batch- Default:
research
- Group by category in fixed order: research → product-design → utility → qa-meta → ops-analysis
- Within each category, sort by modification date descending
- Assign category per page:
- Generate
alignment/index.html— self-contained HTML with:- Visual style matching existing alignment pages (same CSS variables, fonts, layout)
- Category sections: each non-empty category gets an
<h2>with display name and count (e.g., "Research (7)"), followed by its card grid - Display names: Research, Product Design & Spec, Utility & Maintenance, QA & Meta-Skill Improvement, Ops & Session Analysis
- Card grid with linked titles, descriptions, dates
- Text filter input searching across all categories, hiding empty category headings
- Total page count and generation timestamp
- All relative links, no external dependencies
- Skip categories with zero pages
- Verify
alignment/index.htmlwas written and still works as a directfile://page. - Open or focus the generated index with:
npx skillpacks alignment pages open alignment/index.html --browser auto- In this source checkout only, if the packaged CLI is unavailable, fall back to
node scripts/open-html-page.mjs alignment/index.html --browser auto.
- Report the opener script status exactly as one of
focused,opened,fallback-opened,blocked, orfailed.blockedmeans the browser-open attempt was unavailable or blocked; it does not fail this skill whenalignment/index.htmlwas generated and verified.
Constraints
- Do not modify existing alignment pages — only create or overwrite
alignment/index.html. - Do not commit or push
alignment/index.htmlby default — it is a local convenience artifact, regenerated fresh each time. - Empty-state page if no
.htmlfiles found (besidesindex.html). - Must work as
file://URL — no server required. - Do not open individual alignment pages from this skill; individual alignment-producing skills handle their own review pages, and this skill opens or focuses only the central index.
Default Shipping Contract
- No commit/push. Local convenience file, regenerated on demand. Do not commit
alignment/index.htmlunless the user explicitly asks. - 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: