Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

git-commit-helpergit 提交助手

Agent Skill

git-commit-helper 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

682

周安装

29

GitHub Stars

1

下载量

239
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:git-commit-helper(git 提交助手)
来源仓库:https://github.com/pixel-process-ug/superkit-agents
仓库路径:skills/git-commit-helper
安装命令:
npx skills add https://github.com/pixel-process-ug/superkit-agents --skill git-commit-helper
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/pixel-process-ug/superkit-agents --skill git-commit-helper

简介

git-commit-helper 用于查找、检索和筛选相关信息,适合快速定位候选结果。

  • 适用于需要根据关键词或任务场景从来源线索中筛选信息的场景。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用该技能。
  • 安装前需确认权限范围和维护状态,注意可能触发联网或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Git Commit Helper

Overview

Enforce conventional commit standards, guide semantic versioning decisions, generate changelogs, and ensure commit message quality. This skill provides a structured approach to version control communication that enables automated tooling and clear project history.

Phase 1: Analyze Changes

Analyze the staged diff to understand what was changed:

git diff --cached --stat
git diff --cached
  1. Identify the files and modules affected
  2. Determine the nature of the change (new feature, bug fix, refactoring, etc.)
  3. Check if the change is breaking (API changes, removed features, changed contracts)

STOP — Do NOT write a commit message until you understand the full scope of changes.

Phase 2: Classify and Compose

Commit Type Decision Table

TypeWhen to UseVersion BumpExample
featNew feature for the userMINORfeat(auth): add OAuth2 login flow
fixBug fix for the userPATCHfix(api): handle null response in user endpoint
docsDocumentation only changesNonedocs(readme): update installation steps
styleFormatting, missing semicolons, etc.Nonestyle(lint): fix trailing whitespace
refactorCode change with no behavior changeNonerefactor(utils): extract date formatting helpers
perfPerformance improvementPATCHperf(query): add index for user lookup
testAdding or correcting testsNonetest(auth): add login failure scenarios
choreMaintenance, deps, toolingNonechore(deps): update typescript to 5.4
ciCI/CD configuration changesNoneci(github): add Node 20 to test matrix
buildBuild system or external dependenciesNonebuild(webpack): optimize chunk splitting

Conventional Commit Format

<type>(<scope>): <description>

[optional body]

[optional footer(s)]

Scope Guidelines

Scope should identify the area of the codebase affected:

Scope StrategyExamplesWhen to Use
By moduleauth, billing, dashboard, apiFeature-organized codebases
By layerdb, ui, middleware, configLayer-organized codebases
By package@app/core, @app/sharedMonorepos
Generaldeps, ci, lint, typesCross-cutting changes

Rules:

  • Lowercase, kebab-case
  • Keep consistent within a project
  • Optional but recommended for projects with 10+ files changed regularly
  • Omit scope for truly cross-cutting changes

Description Rules

  • Use imperative mood: "add" not "added" or "adds"
  • No capital first letter
  • No period at the end
  • Maximum 72 characters (type + scope + description combined)
  • Describe WHAT changed, not HOW

Phase 3: Write the Commit Message

Body Guidelines

feat(cart): add quantity update functionality

Users can now change item quantities directly in the cart
without removing and re-adding items. The quantity selector
supports values from 1 to 99 with real-time price updates.

Closes #234
  • Wrap at 72 characters
  • Explain WHY the change was made (motivation)
  • Explain WHAT changed at a high level
  • Use blank line to separate from description and footer

Breaking Changes

feat(api)!: change user endpoint response format

BREAKING CHANGE: The /api/users endpoint now returns a paginated
response object instead of a plain array. Clients must update
to read from the `data` field.

Migration guide:
- Before: const users = await fetch('/api/users').json()
- After:  const { data: users } = await fetch('/api/users').json()

Two ways to indicate breaking changes:

  1. ! after type/scope: feat(api)!: description
  2. BREAKING CHANGE: footer (provides space for migration details)

Both trigger a MAJOR version bump.

STOP — Present the commit message to the user for approval before committing.

Phase 4: Assess Version Impact

Semantic Versioning (SemVer): MAJOR.MINOR.PATCH

ComponentIncrement WhenExample
MAJORBreaking changes (incompatible API changes)1.0.0 -> 2.0.0
MINORNew features (backward compatible)1.0.0 -> 1.1.0
PATCHBug fixes (backward compatible)1.0.0 -> 1.0.1

Version Bumping Rules

Commits since last release:
  fix(auth): handle expired tokens       -> PATCH
  feat(search): add fuzzy matching       -> MINOR (overrides PATCH)
  fix(ui): correct button alignment      -> already MINOR
  feat(api)!: change response format     -> MAJOR (overrides MINOR)

Result: MAJOR bump (highest wins)

Pre-Release Versions

1.0.0-alpha.1    -> Early testing
1.0.0-beta.1     -> Feature complete, testing
1.0.0-rc.1       -> Release candidate
1.0.0            -> Stable release

Initial Development (0.x.y)

  • 0.1.0: First usable version
  • 0.x.y: API is not stable; MINOR can include breaking changes
  • 1.0.0: First stable release; SemVer rules fully apply

Phase 5: Generate Changelog (if applicable)

CHANGELOG.md Format

# Changelog

## [1.2.0] - 2025-03-15

### Added
- Fuzzy search matching for product catalog (#234)
- Bulk export functionality for reports (#245)

### Fixed
- Handle expired authentication tokens gracefully (#230)
- Correct button alignment on mobile viewports (#232)

### Changed
- Update TypeScript to 5.4 (#240)

## [1.1.0] - 2025-02-28
...

Commit Type to Changelog Section Mapping

Commit TypeChangelog Section
featAdded
fixFixed
perfPerformance
refactorChanged
docsDocumentation
BREAKING CHANGEBreaking Changes (top of release)
chore, ci, build, style, testTypically excluded

Automation Tools

ToolUse Case
conventional-changelogGenerate changelog from git history
semantic-releaseFully automated versioning + publishing
changesetManual changeset files for monorepos
release-pleaseGoogle's release automation

Commit Message Quality Checklist

Must Pass

  • Uses conventional commit format (type(scope): description)
  • Type is from the allowed list
  • Description uses imperative mood
  • Description is under 72 characters total
  • No period at end of description
  • Breaking changes are clearly marked

Should Pass

  • Scope accurately identifies the affected area
  • Body explains WHY, not just WHAT (for non-trivial changes)
  • References issue/ticket number (Closes #123, Refs #456)
  • Single logical change per commit (atomic commits)
  • No "WIP" or "temp" commits in main branch history

Commit Splitting Guide

When to Split Decision Table

ConditionAction
Changes to different modules/featuresSplit into separate commits
Refactor combined with feature additionSplit: refactor first, then feature
Test additions for existing code + new featureSplit: tests first, then feature
Config changes + code changesSplit into separate commits
Single logical change across multiple filesKeep as one commit

How to Split

# Interactive staging for partial commits
git add -p                    # Stage hunks interactively
git add path/to/specific/file # Stage specific files

# Example: split refactor + feature
git add src/utils/date.ts
git commit -m "refactor(utils): extract date formatting helpers"

git add src/components/DatePicker.tsx src/components/DatePicker.test.tsx
git commit -m "feat(ui): add date range picker component"

Anti-Patterns / Common Mistakes

Anti-PatternWhy It Is WrongWhat to Do Instead
fix type for a new featureMisleads version bump automationUse feat for new functionality
Squashing meaningful historyLoses context of development processKeep atomic commits, squash only WIP
Using --no-verify to skip hooksBypasses quality gatesFix the hook failure instead
Amending published/pushed commitsBreaks other developers' historyCreate new commit instead
Empty or "." commit messagesZero information for future readersWrite a descriptive message
Mixing formatting with logic changesCannot revert one without the otherSeparate into distinct commits
"change X to Y" duplicating the diffAdds no information beyond the diffDescribe WHY the change was made
Huge commits touching 20+ filesImpossible to review or bisectSplit into logical atomic commits

Integration Points

SkillIntegration
finishing-a-development-branchSquash commit message follows conventional format
code-reviewCommit quality is part of review checklist
deploymentVersion bumps trigger release pipelines
planningCommit scoping aligns with plan task granularity
verification-before-completionVerify tests pass before committing

Skill Type

FLEXIBLE — Conventional commit format is strongly recommended but can be adapted to existing project conventions. Version bumping rules are deterministic when conventional commits are used. Changelog sections map directly from commit types.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.05%
按下载量换算86

Claude

27.18%
按下载量换算65

Cursor

18.01%
按下载量换算43

Gemini CLI

9.58%
按下载量换算23

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills