AGENT SKILL

create-alignment-page

Create or amend a portable HTML alignment review page in a target repo using bundled conventions and skillpacks alignment commands

License 许可
MIT
最近更新
2026-11-10
Stars
★ 1
Forks
0

01 前言 Front Matter

name
create-alignment-page
type
ops
version
v0.1
description
Create or amend a portable HTML alignment review page in a target repo using bundled conventions and skillpacks alignment commands
argument-hint
<skill-or-topic> [target artifact or repo path]
required_conventions
[ "alignment-page" ]

03 SKILL.md 正文

Create Alignment Page

Invoke as /create-alignment-page.

Use this skill when the user asks to create, refresh, or amend an alignment/*.html review page for an existing skill output, research artifact, spec, plan, report, prototype, or other durable deliverable. This skill is for target repositories that may only have skills installed through the skillpacks npm package, so it must not assume this source checkout's docs/ or scripts/ directories are present.

Workflow

  1. Resolve the target repository and page scope:

    • Default to the current working directory.
    • Identify the source artifact(s), producing skill name, topic slug, and intended page path alignment/<skill-name>-<topic>.html.
    • Confirm the page path is repo-relative, directly under alignment/, and ends in .html.
    • If amending an existing page, read the whole current page and archive it before replacing it.
  2. Load the best available convention:

    • First read the producing skill's bundled sibling ALIGNMENT-PAGE.md from the installed skill directory, such as .codex/skills/<skill>/ALIGNMENT-PAGE.md or .claude/skills/<skill>/ALIGNMENT-PAGE.md.
    • In this source checkout or a package-shaped checkout with docs/, base/, and packs/, source paths such as base/<agent>/<skill>/ALIGNMENT-PAGE.md, packs/<pack>/<agent>/<skill>/ALIGNMENT-PAGE.md, docs/alignment-page-convention.md, and node scripts/upgrade-alignment-page.mjs --check are acceptable maintenance fallbacks.
    • npx skillpacks alignment bundles --check is a source/package maintenance check for repositories that contain the packaged convention inputs (docs/, base/, and packs/). Do not use it as a bare target-repo fallback.
    • If no installed sibling ALIGNMENT-PAGE.md or valid source/package-shaped convention source exists, stop and report which skill convention is missing. Do not invent a simplified template.
  3. Build or amend the page:

    • Render the full source artifact content directly in HTML. Do not replace the deliverable with an iframe, object embed, or link-only preview.
    • Preserve evidence, assumptions, decisions, source paths, proposed file changes, gate questions, feedback context, and prior approval records.
    • For a new review page, set data-alignment-status="review", data-alignment-category, and data-visual-tier.
    • For an amended page, archive the previous page under docs/history/archive/YYYY-MM-DD/HHMMSS/alignment/<filename>.html, show what changed, and regenerate affected gates from the amended content.
    • Include the TTS script tag <script src="../scripts/alignment-tts-kokoro.js"></script> before </body>.
  4. Verify and make the page portable:

    • Run npx skillpacks alignment pages inject-tts alignment/<page>.html so the packaged TTS asset is installed when missing and the page tag is current.
    • Run npx skillpacks alignment pages audit.
    • Attempt to open the page with npx skillpacks alignment pages open alignment/<page>.html --browser auto.
    • In this source checkout only, if npx skillpacks is unavailable, fall back to node scripts/inject-tts.mjs alignment/<page>.html, node scripts/audit-alignment-pages.mjs, and node scripts/open-html-page.mjs alignment/<page>.html --browser auto.
    • Treat browser-open status blocked as non-fatal when the page was written and audited successfully; report the absolute path.
  5. Handoff:

    • If the page is in review, ask the user to review it and return section-feedback YAML or bottom compiled response YAML.
    • Do not route to downstream implementation until final compiled response YAML is approved and any approved canonical artifacts are written.

Output

Report:

  • Page path and source artifact path(s)
  • Convention source used
  • TTS injection result
  • Audit command and result
  • Browser-open status: focused, opened, fallback-opened, blocked, or failed
  • Archive path when an existing page was amended
  • Next review action or final confirmation status

Constraints

  • Do not assume repo-local scripts/ or docs/ exist outside this source checkout.
  • Do not create or modify GitHub Actions workflows.
  • Do not write outside the target repository.
  • Do not overwrite an existing alignment page without archiving it first.
  • Do not create a second alignment page merely to review the alignment page created by this skill; the requested page is the review artifact.

Alignment Page

When this skill produces durable deliverables (research, specs, plans, reports, prototypes, or any document output), build a full-depth HTML alignment page following ALIGNMENT-PAGE.md in this skill's directory. Output: alignment/create-alignment-page-{topic}.html.

Default Shipping Contract

  • Modified alignment pages, archive copies, index updates, and source artifacts are normal repo artifacts. Follow the target repo's shipping rules after verification.
  • When operating in this agentic-skills repository, commit and push intended tracked changes on the primary branch before stopping unless the user explicitly says not to ship.

04 同仓库更多 Skills