AgentSkillsCN

Release Preflight Skill

事前检查、版本一致性与部署纪律。

SKILL.md
--- frontmatter
name: "Release Preflight Skill"
description: "Pre-checks, version consistency, and deployment discipline."
applyTo: "**/*release*,**/*publish*,**/*deploy*,**/*version*,**/package.json,**/CHANGELOG*"

Release Preflight Skill

Pre-checks, version consistency, and deployment discipline.

The Golden Rule

NEVER publish without running the preflight checklist.

Quick Start

powershell
# Full preflight check
scripts/release-preflight.ps1

# With packaging test
scripts/release-preflight.ps1 -Package

# Skip time-consuming tests
scripts/release-preflight.ps1 -SkipTests

Version Locations (Must Stay Synchronized)

#LocationFieldExample
1platforms/vscode-extension/package.jsonversion"5.1.0"
2CHANGELOG.mdLatest heading## [5.1.0] - 2026-02-07
3.github/copilot-instructions.md**Version**: line**Version**: 5.1.0
4platforms/vscode-extension/.github/copilot-instructions.mdSame as #3
5docs/index.htmlFooter versionv5.1.0
6ROADMAP-UNIFIED.mdQuick Status tableMaster 5.1.0 row
7Git tagTag namev5.1.0

Preflight Gates

GateCheckScript Flag
0PAT configuredAlways
1Version sync (all 7 locations)Always
2Build passesAlways
3Lint passesAlways
4Tests pass-SkipTests to skip
5Package creates-Package to include
6Human reviewManual

Full Release Workflow

powershell
# VS Code Extension release
scripts/release-vscode.ps1 -BumpType minor

# M365 Agent release  
scripts/release-m365.ps1 -Validate

Version Bump Only

powershell
# 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

Common Mistakes

MistakePrevention
Published without version bumpRun preflight first
CHANGELOG not updatedScript checks this
Forgot to push tagsScript does this
Version mismatchGrep entire repo for old version
PAT 401 errorRefresh PAT before release

Related Scripts

ScriptPurpose
scripts/release-preflight.ps1Pre-release validation
scripts/release-vscode.ps1Full VS Code release
scripts/release-m365.ps1M365 agent packaging
.github/muscles/build-extension-package.ps1Full build (sync + compile + PII scan)
.github/muscles/sync-architecture.jsCanonical Master → Heir sync

Triggers

  • "release", "publish", "deploy"
  • "preflight", "pre-release check"
  • "version bump", "version sync"

Scripts: scripts/release-preflight.ps1, scripts/release-vscode.ps1