AgentSkillsCN

committing-changes

按照项目惯例创建提交。处理具有项目特定范围、PR标题要求及CI验证规则的Conventional Commits。

SKILL.md
--- frontmatter
name: committing-changes
description: Creates commits following project conventions. Handles Conventional Commits with project-specific scopes, PR title requirements, and CI validation rules.

Committing Changes

Steps

For Regular Commits

  1. Stage changes with git add
  2. Commit using Conventional Commits format: <type>(<scope>): <description>

For PRs

  1. The PR title is what matters - PRs are squash-merged
  2. PR title must follow CC format

Reference

Scopes

Package name minus @kitz/ prefix. Comma-separate for multiple packages. Omit for repo-level.

code
feat(core): add new utility          # @kitz/core
fix(core, arr): update shared type   # Multiple packages
ci: add Vercel Remote Cache          # Repo-level (no scope)

Types

TypeDescriptionVersion Bump
featNew featureMinor
fixBug fixPatch
docsDocumentationPatch
perfPerformance improvementPatch
styleFormatting, whitespaceNone
refactorCode change (no behavior change)None
testAdding/updating testsNone
buildBuild system, dependenciesNone
ciCI configurationNone
choreOther maintenanceNone
chore.docsREADME, guides (not code docs)None

Special Rules

chore.docs vs docs:

  • docs(pkg): JSDoc, code comments → Patch release, full CI
  • chore.docs: README, guides → No release, CI skipped

CI Skips: ci: or chore.docs: PR titles skip code checks (only format runs)

Releases: Handled automatically by @kitz/release based on conventional commits. No manual steps required.

Bypasses (edge cases only)

  • <!-- cc-bypass --> in PR body: Skip CC validation

Notes

  • Individual PR commits don't matter - only the PR title affects releases
  • Scopes are for changelogs, not CI filtering (Turborepo uses git diff)
  • Semver rule: feat = "new capability", fix = "works better"