用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/fabioc-aloha/alex-cognitive-architecture --skill release-preflight命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Run the 7-step Artificial Critical Thinking pass — Materiality → Hypothesise → Alternatives → Disconfirmers → Audit priors → Severity → Commit-with-marker
Challenge what you think is right — alternative hypotheses, missing data, evidence quality, bias detection, falsifiability, and adversarial review
Step-back protocol — restate, generalise, specialise, invert, ask why, pre-mortem, check stakeholders, and audit framings before solving
基于 SOC 职业分类
正在显示 SKILL.md
| name | release-preflight |
| description | Pre-checks, version consistency, and deployment discipline. |
| tier | standard |
| applyTo | **/*release*,**/*publish*,**/*deploy*,**/*version*,**/package.json,**/CHANGELOG* |
| currency | 2026-04-22T00: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 |
| 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