用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/fabioc-aloha/Alex_Skill_Mall --skill release-preflight命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | release-preflight |
| description | Pre-checks, version consistency, and deployment discipline. |
| lastReviewed | 2026-04-30T00:00:00.000Z |
Pre-checks, version consistency, and deployment discipline.
NEVER publish without running the preflight checklist.
# Full preflight check
node scripts/release-preflight.cjs
# With packaging test
node scripts/release-preflight.cjs
# Skip time-consuming tests
node scripts/release-preflight.cjs
| # | Location | Field | Example |
|---|---|---|---|
| 1 | heir/platforms/vscode-extension/package.json | version | "8.2.1" |
| 2 | heir/CHANGELOG.md | Latest heading | ## [8.2.1] - 2026-04-22 |
| 3 | BUILD-MANIFEST.json (if present) | version | "8.2.1" |
| 4 | Git tag | Tag name | v8.2.1 |
| Gate | Check | Script Flag |
|---|---|---|
| 0 | PAT configured | Always |
| 1 | Version sync (all 7 locations) | Always |
| 2 | VSIX exists | Always |
| 3 | Git clean | Always |
| 4 | Git tag available | Always |
| 5 | VSCE_PAT available | Always |
| 6 | Heir sync drift | Always |
# VS Code Extension release
node scripts/release-vscode.cjs
# M365 Agent release
node scripts/release-m365.cjs --validate
# 1. Bump
npm version patch --no-git-tag-version
# 2. Get version
$v = (Get-Content package.json | ConvertFrom-Json).version
# 3. Update CHANGELOG, commit, tag, push
git add -A; git commit -m "release: v$v"; git tag "v$v"; git push --tags
| Mistake | Prevention |
|---|---|
| Published without version bump | Run preflight first |
| CHANGELOG not updated | Script checks this |
| Forgot to push tags | Script does this |
| Version mismatch | Grep entire repo for old version |
| PAT 401 error | Refresh PAT before release |
After preflight runs, classify each finding to decide whether to proceed:
| Finding | Severity | Decision | Rationale |
|---|---|---|---|
| Version mismatch across locations | Block | Fix before publish | Silent version drift = wrong artifact on marketplace |
| VSIX file missing or wrong version in filename | Block | Rebuild VSIX | Publishing a stale or misnamed artifact is irreversible |
| Git working tree dirty | Block | Commit or stash | Tagged release must match a clean commit |
| Git tag already exists for target version | Block | Bump version or delete tag | Duplicate tag = ambiguous release provenance |
| VSCE_PAT missing or expired | Block | Refresh token | Publish will 401; partial state is worse than no-op |
| Heir sync drift detected | Warning | Review diff, then decide | Drift may be intentional (master-only changes) or accidental |
| CHANGELOG entry missing for version | Warning | Add entry, or proceed if patch-only fix | Users and future-you need the audit trail |
| Test failures in extension | Block | Fix tests | Shipping known-broken code violates trust |
| Brain-qa score below threshold | Warning | Review findings; proceed if cosmetic-only | Brain health affects heirs on next upgrade |
| Frontmatter audit failures | Warning | Fix if quick; track as debt if not | New files may lack frontmatter; not a ship-blocker unless systemic |
Rule: Any Block finding = hard stop. Fix first, re-run preflight, then proceed. Warning findings require explicit operator acknowledgment — the LLM should list them and ask "proceed despite these warnings?"
After preflight passes, review CHANGELOG.md entries for the release version against these voice standards:
| Condition | Verdict | Action |
|---|---|---|
| Entry uses past tense ("Added", "Fixed", "Removed") | Pass | Standard changelog convention |
| Entry uses present/future tense ("Adds", "Will fix") | Fail | Rewrite to past tense |
| Entry describes user-visible impact ("Users can now...") | Pass | Preferred framing |
| Entry describes internal implementation ("Refactored the parser loop") | Warning | Rewrite to user impact; move internal detail to commit message |
| Entry uses internal jargon ("brain-qa", "trifecta", "sidecar") | Fail | Replace with user-facing language ("health checks", "skill set", "config") |
| Entry is a single vague line ("Bug fixes and improvements") | Fail | Expand to specific items |
| Entry references a PLAN task ID ("FM4", "RP2") only | Fail | Add human-readable description alongside |
| Entry groups related changes under a category header | Pass | Use: Added, Changed, Fixed, Removed, Security |
Breaking change is clearly marked with **BREAKING** | Pass | Required for major bumps |
| Entry length proportional to change significance | Pass | One-liners for patches, paragraphs for features |
| Links to related docs/issues included for complex changes | Pass | Helps users understand context |
| Duplicate entries from cherry-pick or merge | Fail | Deduplicate; keep most descriptive version |
| Script | Purpose |
|---|---|
scripts/release-preflight.cjs | Pre-release validation |
scripts/release-vscode.cjs | Full VS Code release |
scripts/release-m365.cjs | M365 agent packaging |
Scripts: scripts/release-preflight.cjs, scripts/release-vscode.cjs