Skip to main content

commit

Stage and create a Conventional Commits message for the current change

来源信息

仓库
EverMind-AI/EverOS
最近来源活动
2026年6月28日 23:31
检测到的 SKILL.md 语言
英语
星标
13,442
分支
941

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
commit
description
Stage and create a Conventional Commits message for the current change
# /commit Create a well-formed commit following the [Conventional Commits](https://www.conventionalcommits.org) standard. The format is enforced by `gitlint` in the `commit-msg` hook. ## Steps 1. Run `git status` and `git diff` (and `git diff --staged`) to see what changed. 2. Review recent history for style: `git log --oneline -10`. 3. Group the change into a single focused commit. If the working tree mixes unrelated changes, stage selectively (`git add -p` / specific paths) rather than committing everything at once. 4. Write the message in **Conventional Commits** form: ``` <type>[(scope)][!]: <imperative summary, ≤72 chars> <optional body: what & why, wrapped at 72> <optional footer: BREAKING CHANGE: …, Refs: #123> ``` 5. Never use `--no-verify`. If pre-commit hooks fail, fix the cause and re-commit. 6. Do not commit secrets, generated artifacts, or work-in-progress directly to the protected `main` branch. ## Types | Type | Use for | |---|---| | `feat` | new feature | | `fix` | bug fix | | `refactor` | behavior-preserving restructure | | `test` | add / update tests | | `docs` | documentation | | `style` | formatting only | | `perf` | performance | | `chore` | config / build / tooling | | `build` | build system or dependencies | | `ci` | CI configuration | | `revert` | revert a previous commit | ## Notes - No emoji — the title must start with the `type`. - One logical change per commit; keep the history bisectable. - The summary is imperative mood: "add", not "added" / "adds". - `scope` is optional: `fix(search): …`. A `!` before the colon (or a `BREAKING CHANGE:` footer) marks a breaking change.
在 GitHub 查看