AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Commit Helper

skill-111pointer111-claude-marketplace-commit-helper · by 111pointer111

Git Commit 规范生成 — 分析暂存区变更,自动生成符合 Conventional Commits 规范的 commit message

No reviews yet
0 installs
41 views
0.0% view→install

Install

$ agentstack add skill-111pointer111-claude-marketplace-commit-helper

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-111pointer111-claude-marketplace-commit-helper)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
4mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Commit Helper? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Git Commit 规范生成 Skill

分析暂存区变更,自动生成符合 Conventional Commits 规范的 commit message。


核心流程

当用户说"提交"、"commit"、"生成 commit message"时,执行以下步骤:

1. 检查变更状态

git status
git diff --cached --stat
git diff --cached

2. 分析变更内容

根据 diff 内容判断:

  • 变更类型:feat / fix / docs / style / refactor / perf / test / chore / build / ci
  • 影响范围:涉及的模块、组件、功能
  • 变更摘要:一句话描述核心改动

3. 生成 Commit Message

格式(Conventional Commits):

(): 

type 类型:

| type | 说明 | 示例 | |------|------|------| | feat | 新功能 | feat(auth): 添加微信登录 | | fix | 修复 bug | fix(api): 修复用户列表分页错误 | | docs | 文档更新 | docs: 更新 README 安装说明 | | style | 代码格式(不影响逻辑) | style: 统一缩进为 2 空格 | | refactor | 重构(非新功能非修复) | refactor(utils): 提取日期格式化函数 | | perf | 性能优化 | perf: 优化图片懒加载 | | test | 测试相关 | test: 添加用户模块单元测试 | | chore | 构建/工具/依赖 | chore: 升级 webpack 到 v5 | | build | 构建系统变更 | build: 迁移到 Vite | | ci | CI 配置变更 | ci: 添加 GitHub Actions |

scope 规则:

  • 可选,表示影响范围
  • 通常对应模块名、组件名、目录名
  • 小写,多个词用连字符

subject 规则:

  • 使用中文或英文,保持项目一致性
  • 不超过 50 个字符
  • 不以句号结尾
  • 使用祈使语气("添加" 而非 "添加了")

4. 确认并执行

向用户展示生成的 commit message,确认后执行:

git commit -m "(): " -m "" -m ""

快捷命令

| 命令 | 功能 | |------|------| | 提交 / commit | 生成 commit message 并提交 | | 查看变更 / git status | 查看当前变更状态 | | 生成 commit message | 只生成 message,不执行 commit |


示例

示例 1:新功能

# 用户:提交
# Agent 分析 diff 后生成:
git commit -m "feat(auth): 添加 JWT 认证中间件" -m "- 实现 token 验证逻辑
- 添加 refresh token 机制
- 处理 token 过期场景"

示例 2:Bug 修复

# 用户:提交
# Agent 分析 diff 后生成:
git commit -m "fix(api): 修复用户列表空指针异常" -m "当 users 数组为空时,map 操作抛出异常。
添加空数组检查,返回空列表而非报错。"

示例 3:文档更新

# 用户:提交
# Agent 分析 diff 后生成:
git commit -m "docs: 更新 AGENTS.md 添加 minimax CLI 说明"

特殊情况处理

多个不相关的变更

如果暂存区包含多个不相关的变更,建议拆分为多次提交:

检测到多个不相关的变更,建议拆分提交:
1. feat(auth): 添加登录功能
2. docs: 更新 API 文档
3. fix: 修复配置文件读取错误

是否拆分提交?还是合并为一次提交?

无暂存文件

如果没有文件在暂存区,提示用户先 git add

暂存区为空,请先添加要提交的文件:
git add 
或添加所有变更:
git add .

风格适配

  • 如果项目已有 commit 历史,分析现有风格并保持一致
  • 中文项目优先使用中文 commit message
  • 英文项目使用英文 commit message
  • 支持 emoji 前缀(如果项目已有此惯例):✨ feat: ...🐛 fix: ...

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.