# Commit Helper

> 生成清晰的 Git 提交消息。写提交消息、准备提交时使用。

- **Type:** Skill
- **Install:** `agentstack add skill-almax000-claude-skills-commit-helper`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [almax000](https://agentstack.voostack.com/s/almax000)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [almax000](https://github.com/almax000)
- **Source:** https://github.com/almax000/claude-skills/tree/main/commit-helper

## Install

```sh
agentstack add skill-almax000-claude-skills-commit-helper
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Git 提交消息助手

## 使用步骤

1. 运行 `git diff --staged` 查看已暂存的更改
2. 分析更改的性质和目的
3. 生成符合规范的提交消息

## 提交消息格式

```
(): 

```

### Type 类型

| 类型 | 说明 |
|------|------|
| feat | 新功能 |
| fix | Bug 修复 |
| docs | 文档更新 |
| style | 代码格式（不影响逻辑） |
| refactor | 重构（不是新功能也不是修复） |
| perf | 性能优化 |
| test | 测试相关 |
| chore | 构建/工具/依赖更新 |

### Scope 范围

- 可选，表示影响的模块/组件
- 例如：`feat(auth)`, `fix(api)`, `docs(readme)`

### Subject 标题

- 50 字符以内
- 使用祈使句（"add" 而非 "added"）
- 首字母小写
- 结尾不加句号

### Body 正文

- 解释「为什么」而不是「做了什么」
- 每行 72 字符以内
- 可以用 `-` 列出要点

### Footer 脚注

- 关联 issue：`Fixes #123` 或 `Closes #456`
- 破坏性更改：`BREAKING CHANGE: description`

## 示例

```
feat(auth): add OAuth2 login support

- Implement Google OAuth2 flow
- Add token refresh mechanism
- Store tokens securely in encrypted storage

This enables users to login with their Google accounts,
reducing friction in the signup process.

Closes #234
```

```
fix(api): handle null response from payment gateway

The payment gateway occasionally returns null instead of
an error object. This caused uncaught exceptions in
production.

Added null check and proper error handling.

Fixes #567
```

## 原则

- 一个提交做一件事
- 消息要有意义，方便日后查找
- 写给未来的自己和同事看

## Source & license

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

- **Author:** [almax000](https://github.com/almax000)
- **Source:** [almax000/claude-skills](https://github.com/almax000/claude-skills)
- **License:** MIT

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

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-almax000-claude-skills-commit-helper
- Seller: https://agentstack.voostack.com/s/almax000
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
