AgentSkillsCN

release-check

验证所有工件在发布前已完整且一致。检查规格说明书、文档、版本控制及 API 文档。在创建发布版本之前运行此步骤,确保万无一失。

SKILL.md
--- frontmatter
name: release-check
description: >
  Validates all artifacts are complete and consistent for release.
  Checks spec kit artifacts, documentation, versioning, and API docs.
  Run before creating a release to ensure nothing is missing.
version: 0.0.1
license: MIT
compatibility: Requires spec kit artifacts
metadata:
  author: drillan
  category: quality-gate
  repository: https://github.com/drillan/speckit-gates

release-check

Validates release readiness before creating a release.

Purpose

This skill validates that all artifacts are complete and consistent for release:

  • Spec kit artifacts: spec.md, plan.md, tasks.md exist and are complete
  • Documentation: README.md, CHANGELOG.md have required sections
  • Versioning: Version numbers are consistent across package.json and CHANGELOG
  • API docs: API documentation matches contract specifications

Output

The skill outputs a ReleaseChecklist with:

  • Overall readiness status (Ready/Not Ready)
  • Individual check items with pass/fail/skip status
  • Version consistency information
  • Specific issues to address before release

Usage

This is a manual skill - run it before creating a release:

bash
npx skills run release-check

Or via AI agent:

code
User: Check if we're ready for release

Exit Codes

CodeStatusMeaning
0ReadyAll checks pass
1Not ReadySome checks failed
3ErrorRequired files missing

Checks Performed

Artifact Checks (FR-022)

CheckRequirement
spec.md existsRequired
plan.md existsRequired
tasks.md existsRequired
All tasks completeRequired

Documentation Checks (FR-023)

CheckRequirement
README.md existsRequired
README.md has usage sectionRequired
CHANGELOG.md existsRequired
CHANGELOG.md has unreleased sectionRequired

Version Checks (FR-026)

CheckRequirement
package.json version presentOptional
CHANGELOG.md version presentOptional
Versions matchIf both present

API Checks (FR-025)

CheckRequirement
contracts/ existsOptional
API docs exist if contractsRequired if contracts
Endpoints documentedRequired if contracts

Checklist Output Format

code
## Release Checklist

**Status**: Ready to Release / Not Ready

### Artifacts
| Status | Check | Details |
|--------|-------|---------|
| [PASS] | spec.md exists | |
| [PASS] | plan.md exists | |
| [FAIL] | All tasks complete | 5 tasks remaining |

### Documentation
| Status | Check | Details |
|--------|-------|---------|
| [PASS] | README.md exists | |
| [SKIP] | API docs | No contracts/ directory |

Recommendations

If release check fails:

  1. Complete all remaining tasks in tasks.md
  2. Ensure README.md has a usage section
  3. Update CHANGELOG.md with release notes
  4. Verify version numbers are consistent
  5. Run release-check again to verify fixes