AGENT SKILL
compile-central-alignment
Generate a central alignment/index.html table of contents for all alignment pages in the current repo
- License 许可
- MIT
- 最近更新
- 2026-11-10
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- compile-central-alignment
- type
- ops
- version
- v0.2
- description
- Generate a central alignment/index.html table of contents for all alignment pages in the current repo
03 SKILL.md 正文
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:
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:
04 同仓库更多 Skills
source-checkout-allowed
Valid source-checkout-only fixture.
★ 1
deck-install-valid
Valid deck install fixture.
★ 1
codex-pack-guard-valid
Valid Codex Pack Availability Guard fixture.
★ 1
codex-missing-skill-valid
Valid Codex missing skill fallback fixture.
★ 1
codex-base-skill-fallback-valid
Valid Codex base skill fallback fixture.
★ 1
claude-pack-guard-valid
Valid Claude Pack Availability Guard fixture.
★ 1