跳到正文
cccskills
免费在 GitHub 公开

pre-release

Run a comprehensive pre-release validation checklist for bashdep

中文简介正在准备中。当前显示原文说明。

Chemaclass/bashdep星标 19(GitHub 19 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md2.7 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Pre-Release Validation

Run all checks before releasing a new bashdep version.

Checklist

1. Version Consistency

grep -n 'BASHDEP_VERSION="' bashdep
awk '/^## \[/{print; exit}' CHANGELOG.md
git tag --list --sort=-v:refname | head -3

bashdep's BASHDEP_VERSION is the source of truth. The release script bumps it; verify it matches the intended target version.

2. Full Test Suite

make test

Run 3-5 times to catch flaky tests. All must pass.

3. Static Analysis & Lint

make sa      # ShellCheck - zero warnings
make lint    # editorconfig-checker - clean

4. Documentation

  • CHANGELOG.md ## [Unreleased] section is complete and reflects every user-visible change since the last tag
  • docs/api.md reflects every public bashdep::* function
  • docs/behavior.md reflects current lockfile / dev-dep / error semantics
  • docs/releasing.md is current
  • README.md examples copy-paste cleanly
  • No remaining TODO / FIXME in docs

5. Bash 3.2+ Compatibility (must return no results)

grep -nE 'declare -A' bashdep
grep -nE '\$\{[A-Za-z_][A-Za-z0-9_]*,,\}'  bashdep
grep -nE '\$\{[A-Za-z_][A-Za-z0-9_]*\^\^\}' bashdep
grep -nE '\bmapfile\b|\breadarray\b' bashdep
grep -nE '&>>' bashdep
grep -nE '\$\{[A-Za-z_][A-Za-z0-9_]*\[-1\]\}' bashdep

6. Runtime Dependency Audit

grep -nwE 'jq|python|node|yq' bashdep || echo "OK"

Library code must only call curl / awk / mktemp / POSIX builtins.

7. Mode-Flag Coverage

Every public mutating command honors BASHDEP_DRY_RUN, BASHDEP_SILENT, BASHDEP_VERBOSE, BASHDEP_FORCE. Spot-check each in the test suite:

grep -nE 'BASHDEP_(DRY_RUN|SILENT|VERBOSE|FORCE)=true' tests/unit/bashdep_test.sh

8. Release Script Dry Run

./release.sh --dry-run

Verify:

  • Version bump target matches expectation
  • CHANGELOG roll preview is correct
  • Compare links at the bottom of CHANGELOG would update correctly

9. Breaking Changes

Review git log <last-tag>..HEAD for any breaking changes. Each must be called out in CHANGELOG.md under ### Changed or ### Removed with a brief migration note.

10. Git & CI Status

  • Working tree clean (git status --short empty)
  • On main
  • All CI checks green: gh run list --limit 5 --branch main
  • Target tag does not yet exist: git tag --list <X.Y.Z> returns empty

11. Smoke Test

( cd "$(mktemp -d)" \
  && cp /path/to/bashdep . \
  && source ./bashdep \
  && bashdep::version )

Output

Report each check as ✅ pass / ❌ fail / ⚠️ warning. Only proceed to /release when all checks are ✅.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Add a new bashdep:: lifecycle command with TDD

中文简介正在准备中。当前显示原文说明。

Chemaclass/bashdep192026年10月20日 更新

commit

免费

Stage and commit changes using conventional commits format

中文简介正在准备中。当前显示原文说明。

Chemaclass/bashdep192026年10月20日 更新

Coverage gap analysis for the bashdep public API plus a bashdep::doctor audit

中文简介正在准备中。当前显示原文说明。

Chemaclass/bashdep192026年10月20日 更新

fix-test

免费

Debug and fix failing bashdep tests systematically

中文简介正在准备中。当前显示原文说明。

Chemaclass/bashdep192026年10月20日 更新

gh-issue

免费

Fetch a GitHub issue, create a branch, plan and implement with TDD, then open a PR

中文简介正在准备中。当前显示原文说明。

Chemaclass/bashdep192026年10月20日 更新

pr

免费

Push branch and create a GitHub PR following the bashdep PR template

中文简介正在准备中。当前显示原文说明。

Chemaclass/bashdep192026年10月20日 更新

查看 Chemaclass 的全部技能

报告此技能的问题