AGENT SKILL

生产环境手动部署

manual-only-deploy

将应用程序部署到生产环境。仅在您准备好部署时手动调用。

适用职业发布经理
License 许可
MIT
最近更新
2026-05-15
Stars
★ 13
Forks
1

01 前言 Front Matter

name
manual-only-deploy
title
manual-only-deploy
description
Deploy the application to production. Only invoke this manually when you are ready to deploy.
allowed-tools
Bash(npm run build) Bash(npm test) Bash(git push *) Bash(git tag *) Bash(git status) Bash(cat *)
disable-model-invocation
true

02 资源文件 217

03 SKILL.md 正文

Deploy workflow

This skill deploys the application. It runs a series of checks before touching anything remote. If any step fails, it stops immediately and reports the failure. It does not retry automatically.

Step 1: Confirm no uncommitted changes

Run:

git status

If the output shows modified or untracked files, stop here. Report: "Deploy aborted: there are uncommitted changes. Commit or stash them before deploying." Do not proceed.

Step 2: Run the test suite

Run:

npm test

If any test fails, stop here. Report which tests failed and do not proceed.

Step 3: Build the project

Run:

npm run build

If the build fails, stop here. Report the error output and do not proceed.

Step 4: Create a version tag

Read the current version from package.json:

cat package.json

Extract the version field. Create a git tag in the format v<version>-<YYYYMMDD>:

git tag v<version>-<YYYYMMDD>

For example, if the version is 2.3.1 and today is 2026-05-13, the tag is v2.3.1-20260513.

If a tag with that name already exists, append a counter: v2.3.1-20260513-2.

Step 5: Push the tag

Run:

git push origin <tag-name>

If the push fails, report the error. Do not retry.

Step 6: Report completion

Print a summary:

  • Tag name
  • Commit SHA the tag points to (git rev-parse HEAD)
  • Timestamp

Example output:

Deploy complete.
Tag: v2.3.1-20260513
Commit: a1b2c3d4e5f6
Time: 2026-05-13 14:32:07 UTC

04 同仓库更多 Skills

davila7
davila7/claude-with-skills

版本号升级与 Git 标签

tag-version

升级软件包版本并创建带注释的 git 标签。接受语义化版本号(1.2.0)或升级类型(patch、minor、major)。不执行推送——请使用 publish 技能进行推送。作为发布工作流的一部分使用。

发布经理部署与发布管理
★ 13
davila7
davila7/claude-with-skills

项目完整发布流程

release

运行完整的发布工作流:变更日志条目、版本升级、git 标签和 GitHub Release。依次调用 changelog-entry、tag-version 和 publish。在发布项目新版本时使用。

发布经理部署与发布管理
★ 13
davila7
davila7/claude-with-skills

GitHub 版本发布

publish

将当前分支和所有标签推送到 origin,然后使用最新标签及其 CHANGELOG.md 条目创建 GitHub Release。在 tag-version 之后使用以完成发布。

发布经理部署与发布管理
★ 13
davila7
davila7/claude-with-skills

变更日志条目生成

changelog-entry

按照 Keep a Changelog 格式为所有未发布的提交起草变更日志条目。将提交分组为新增(Added)、变更(Changed)、修复(Fixed)、移除(Removed)和安全(Security)。在发布新版本之前或更新 CHANGELOG.md 时使用。

发布经理部署与发布管理
★ 13
davila7
davila7/claude-with-skills

代码自动格式化

auto-format-on-edit

每次编辑后使用 Prettier 和 ESLint 自动格式化代码文件。当 Claude 编辑文件时在后台激活。格式化是静默的——没有提示,除非格式化程序失败,否则没有输出。当您希望在编码会话期间自动执行一致的格式化时使用。

软件开发工程师开发环境与工具链管理
★ 13
davila7
davila7/claude-with-skills

代码质量审计

code-quality-audit

运行全面的代码质量审计,涵盖安全性、性能和可维护性。用于季度审计、发布前审查或接入大型代码库时。

测试工程师测试与质量保障
★ 13