upgrade-alignment-pages
Audit and explicitly upgrade generated alignment/*.html review pages to the current local alignment-page standard while preserving page-specific context
- License 许可
- MIT
- 最近更新
- 2026-11-10
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- upgrade-alignment-pages
- type
- ops
- version
- v0.1
- description
- Audit and explicitly upgrade generated alignment/*.html review pages to the current local alignment-page standard while preserving page-specific context
- argument-hint
- [--repo <path>] [--apply] [alignment/*.html...]
02 资源文件 67
- 参考文档deploy/PHASE.md7.5 KB
- 参考文档deploy/references/approval-gate-template.md2.9 KB
- 参考文档deploy/references/blocked-patterns.md5.7 KB
- 参考文档deploy/references/code-deployment-appservice.md4.6 KB
- 参考文档deploy/references/code-deployment-container-apps.md8.4 KB
- 参考文档deploy/references/code-deployment-swa.md5.7 KB
- 参考文档deploy/references/database-post-deploy.md4.5 KB
- 参考文档deploy/references/deploy-checklist-template.md10.1 KB
- 参考文档deploy/references/deploy-safety.md4.5 KB
- 脚本deploy/references/deploy-schemas.ts3.5 KB
- 参考文档deploy/references/error-classification.md3.6 KB
- 参考文档deploy/references/health-check-patterns.md5.5 KB
- 参考文档deploy/references/mcp-tools.md5.5 KB
- 参考文档deploy/references/portal-links.md3.1 KB
- 参考文档deploy/references/preflight-checks.md4.4 KB
- 参考文档deploy/references/subagent-preflight.md5.1 KB
- 参考文档prepare/PHASE.md6.4 KB
- 参考文档prepare/references/deploy-strategy.md6.8 KB
- 参考文档prepare/references/mcp-tools.md5.6 KB
- 参考文档prepare/references/naming-patterns.md4.6 KB
- 脚本prepare/references/prepare-schemas.ts7.0 KB
- 参考文档prepare/references/pricing-guide-services.md8.4 KB
- 参考文档prepare/references/pricing-guide.md4.0 KB
- 参考文档prepare/references/service-mapping.md8.5 KB
- 参考文档prepare/references/sku-matrix.md3.2 KB
- 参考文档prepare/references/sku-quota-validation.md9.0 KB
- 参考文档prepare/references/subagent-pricing.md2.5 KB
- 参考文档prepare/references/subagent-quota.md3.5 KB
- 参考文档prepare/references/validation-rubric.md2.3 KB
- 参考文档references/approval-gates.md8.4 KB
- 参考文档references/azd-template-routing.md4.7 KB
- 参考文档references/handoff-protocol.md7.8 KB
- 参考文档references/iac-resources.md2.6 KB
- 参考文档references/intent-gathering.md2.2 KB
- 参考文档references/mcp-tool-reference.md3.7 KB
- 参考文档references/pipeline-rules-runtime.md3.5 KB
- 参考文档references/pipeline-rules.md6.3 KB
- 参考文档references/session-protocol.md8.0 KB
- 脚本references/session-schemas.ts5.2 KB
- 参考文档references/subscription-resolution.md2.1 KB
- 参考文档scaffold/PHASE.md14.2 KB
- 参考文档scaffold/references/bicep-app-service.md5.4 KB
- 参考文档scaffold/references/bicep-container-apps.md9.3 KB
- 参考文档scaffold/references/bicep-patterns-data.md4.0 KB
- 参考文档scaffold/references/bicep-patterns-security.md7.8 KB
- 参考文档scaffold/references/bicep-patterns.md6.8 KB
- 参考文档scaffold/references/bicep-swa.md757 B
- 参考文档scaffold/references/cicd-pipelines.md325 B
- 参考文档scaffold/references/dockerfile-generation.md4.1 KB
- 参考文档scaffold/references/env-var-secrets.md4.1 KB
- 参考文档scaffold/references/error-handling.md1.5 KB
- 参考文档scaffold/references/iac-generation-rules.md6.6 KB
- 参考文档scaffold/references/mcp-tools.md7.0 KB
- 参考文档scaffold/references/rbac-roles.md3.8 KB
- 参考文档scaffold/references/scaffold-healing-rules.md3.3 KB
- 脚本scaffold/references/scaffold-schemas.ts3.5 KB
- 参考文档scaffold/references/self-healing.md2.3 KB
- 参考文档scaffold/references/self-review-checklist.md9.0 KB
- 参考文档scaffold/references/self-review-procedure.md2.3 KB
- 参考文档scaffold/references/subagent-iac-gen.md9.5 KB
- 参考文档scaffold/references/subagent-review.md3.5 KB
- 参考文档scaffold/references/subagent-validate.md7.2 KB
- 参考文档scaffold/references/terraform-patterns.md6.9 KB
- 参考文档scaffold/references/validation-and-manifest.md5.1 KB
- 参考文档scaffold/references/waf-checklist.md2.3 KB
- 脚本scaffold/scripts/scaffold-conformance.ps112.8 KB
- 脚本scaffold/scripts/scaffold-conformance.sh13.8 KB
03 SKILL.md 正文
Upgrade Alignment Pages
Invoke as $upgrade-alignment-pages.
Use this skill when a repository already has generated alignment/*.html review pages and the user wants to audit or update them against the current local alignment-page convention. This skill targets generated alignment HTML artifacts only.
Inputs
- Default target repository: current working directory.
- Optional
--repo <path>to target another repository. - Optional explicit page paths under the target repository's
alignment/directory. - Optional
--apply, or clear user wording such as "apply the upgrade" or "upgrade these pages", to allow page rewrites.
Mode
- Default mode is audit/dry-run.
- The skill name alone is not apply intent; do not modify files unless the visible user request explicitly asks to apply or upgrade existing pages.
- In audit/dry-run mode, inspect pages and report drift without creating, editing, moving, or deleting any files.
Process
-
Resolve scope:
- Locate the project-root
alignment/directory; stop if absent. - Enumerate
alignment/*.html, excludingalignment/index.html. - If the user provided page paths, include only those paths after confirming they are inside the project-root
alignment/directory.
- Locate the project-root
-
Load local standards:
- Read applicable local convention sources from
AGENTS.md,CLAUDE.md, and active bundledALIGNMENT-PAGE.mdfiles found underglobal/,packs/,.claude/skills/, and.codex/skills/. - Treat those local files as read-only standards. Do not fetch external standards.
- Extract the current required HTML behaviors: dark-mode styling, inline approval gates, section feedback controls, feedback-only YAML, final answer YAML, copy fallback behavior, unanswered-question handling, archive-before-replace behavior, and diff/change highlighting for updates.
- Read applicable local convention sources from
-
Audit every selected page:
- Read the whole HTML file before judging it.
- Identify page-specific substance: title, meta/context, research findings, evidence/source matrices, assumptions, decisions, open questions, approval gates, review notes, proposed file changes, prior user feedback, and any page-specific scripts.
- Report missing or stale standard features per page.
- Classify each page as
current,upgrade-needed, orblocked-content-loss-risk.
-
Stop on content-loss risk:
- If a page's structure is too ambiguous to upgrade while preserving substantive content, do not rewrite it.
- Report exactly what content could not be mapped and what human decision is needed.
4b. Batch-mode handoff (apply mode only):
- Count pages classified as
upgrade-needed(excludingblocked-content-loss-risk). - If count > 2:
- Generate a phase in
tasks/todo.mdtitled "## Phase: Upgrade Alignment Pages" with:- Execution Profile: serial
- A Context block listing the standards sources discovered in step 2 and the archive timestamp path (
docs/history/archive/YYYY-MM-DD/HHMMSS/) - One checklist step per upgrade-needed page:
- [ ] Upgrade alignment/<filename>.html — archive original, rewrite to current standard preserving all content, verify content preservation - A final step:
- [ ] Run $compile-central-alignment and verify all archives; commit and push - Acceptance criteria matching the audit findings
- If
tasks/todo.mdalready has unchecked items, append the phase at the bottom with a separator (---) and warn the user about pre-existing items. - Output the full audit report.
- Report: "Generated exec-loop task plan with N steps. Recommended next command: $exec"
- Stop. Do not modify any HTML files.
- Generate a phase in
- If count <= 2: proceed to step 5 (inline apply).
-
Apply only when explicit:
- Before replacing each page, archive the original to
docs/history/archive/YYYY-MM-DD/HHMMSS/alignment/<filename>.html. - Rewrite the page contextually from the original, preserving page-specific research, decisions, questions, gates, review context, and user feedback.
- Add or modernize missing standard elements without replacing the page with a generic template.
- Preserve relative links and keep the page self-contained unless the original already used explicit external resources.
- Highlight upgrade changes where useful with inline notes, a change summary section, or scoped diff styling.
- Before replacing each page, archive the original to
-
Verify after apply:
- Confirm every changed page has a matching archive copy.
- Re-open each changed page textually and confirm the preserved title, decisions/findings, questions, and gates still exist.
- Run or recommend
$compile-central-alignmentsoalignment/index.htmlreflects updated page metadata.
Audit Report
Include:
- Target repository and mode.
- Standards sources read.
- Pages inspected and pages excluded.
- Per-page status with missing standard features.
- Content preservation risks or blockers.
- In apply mode, archive paths and changed page paths.
- Verification performed.
- Next action: usually
$compile-central-alignmentafter successful apply, or no mutation needed when all pages are current. - In batch mode: the generated
tasks/todo.mdphase with exec-loop steps and the recommended$execcommand.
Constraints
- Do not edit
CLAUDE.md,AGENTS.md, anySKILL.md, or any bundledALIGNMENT-PAGE.mdfile. - Do not modify non-alignment HTML files.
- Do not modify
alignment/index.html; leave index regeneration to$compile-central-alignment. - Do not rewrite pages in audit/dry-run mode.
- Do not replace page-specific content with a generic template.
- Stop and report when an upgrade is likely to lose research, decisions, questions, gates, or review context.
- Do not create or modify GitHub Actions workflows.
Default Shipping Contract
- Audit mode: no file mutations; no commit or push.
- Apply mode (inline, ≤2 pages): modified generated alignment pages and archive copies are normal repo artifacts. Follow the target repository's shipping rules after verification.
- Apply mode (batch, >2 pages): generates
tasks/todo.mdphase only; does not modify any HTML files. Commit the task plan, then hand off to$exec. - Default next-step routing: after successful inline apply,
Recommended next command: $compile-central-alignment; after batch-mode handoff,Recommended next command: $exec; otherwise report the audit result and recommend no follow-up skill when no upgrades are needed.
04 同仓库更多 Skills
source-checkout-allowed
Valid source-checkout-only fixture.
deck-install-valid
Valid deck install fixture.
codex-pack-guard-valid
Valid Codex Pack Availability Guard fixture.
codex-missing-skill-valid
Valid Codex missing skill fallback fixture.
codex-base-skill-fallback-valid
Valid Codex base skill fallback fixture.
claude-pack-guard-valid
Valid Claude Pack Availability Guard fixture.