English | 中文
A Codex skill for safely aligning both the persistent GitHub Spec Kit CLI and the managed files in an existing Spec Kit project with an official stable GitHub release.
- Resolves the latest stable tag from GitHub Releases instead of hardcoding a version
- Audits the persistent
specifyexecutable, version, and installation method - Uses
specify self checkandspecify self upgradeon current CLI versions - Falls back to the owning
uv toolorpipxinstaller for older versions - Upgrades project integrations through manifest-aware
specify integration upgrade - Refreshes installed extensions without silently overwriting customized managed files
- Distinguishes optional third-party workflows, bundles, and presets from the routine core upgrade
- Verifies the CLI and reviews the project diff after changes
The workflow follows GitHub's official Upgrade Guide and treats GitHub Releases as the stable-release source of truth.
Copy the repository to your Codex skills directory:
mkdir -p "${CODEX_HOME:-$HOME/.codex}/skills/spec-kit-stable-upgrade"
cp SKILL.md "${CODEX_HOME:-$HOME/.codex}/skills/spec-kit-stable-upgrade/"
cp -R agents scripts "${CODEX_HOME:-$HOME/.codex}/skills/spec-kit-stable-upgrade/"Restart Codex after installing or replacing the skill.
Use $spec-kit-stable-upgrade to audit my local Spec Kit installation.
Use $spec-kit-stable-upgrade to upgrade the CLI and this project's Spec Kit files.
Use $spec-kit-stable-upgrade to pin Specify CLI to official release vX.Y.Z.
这是一个 Codex skill,用于将持久安装的 GitHub Spec Kit CLI 和现有项目内由 Spec Kit 管理的文件,安全地对齐到 GitHub 官方稳定版。
- 从 GitHub Releases 动态确认最新稳定 tag,不再写死旧版本号
- 检查
specify的路径、版本和真实安装方式 - 新版 CLI 优先使用
specify self check/specify self upgrade - 旧版 CLI 按实际安装来源回退到
uv tool或pipx - 使用 manifest-aware 的
specify integration upgrade更新项目集成 - 更新已安装 extensions,同时保护被本地修改过的托管文件
- 将 workflows、bundles、presets 等可选第三方组件与常规核心升级分开处理
- 升级后验证 CLI,并审查项目 diff
该流程遵循 GitHub 官方 Upgrade Guide,并以 GitHub Releases 作为稳定版本真源。
将仓库复制到 Codex skills 目录:
mkdir -p "${CODEX_HOME:-$HOME/.codex}/skills/spec-kit-stable-upgrade"
cp SKILL.md "${CODEX_HOME:-$HOME/.codex}/skills/spec-kit-stable-upgrade/"
cp -R agents scripts "${CODEX_HOME:-$HOME/.codex}/skills/spec-kit-stable-upgrade/"安装或替换后重启 Codex。