commit-format
Formats GitHub commit messages following Conventional Commits style with title and optional description. Use when proposing or implementing code changes, writing commit messages, or when the user asks for commit message suggestions.
来源信息
- 仓库
- bitsocialnet/5chan
- 最近来源活动
- 2026年7月3日 06:58
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 132
- Forks
- 14
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- commit-format
- description
- Formats GitHub commit messages following Conventional Commits style with title and optional description. Use when proposing or implementing code changes, writing commit messages, or when the user asks for commit message suggestions.
# Commit Format
## Template (copy this structure exactly)
Title only — raw markdown:
```
> **Commit title:** `type(scope): short description here`
```
Title with description — raw markdown:
```
> **Commit title:** `type(scope): short description here`
>
> Description sentence one. Description sentence two with `codeRef()` references.
```
## Rules
1. Use markdown blockquote (`>` prefix) — no exceptions
2. Title goes after `**Commit title:**` wrapped in exactly ONE backtick pair
3. NEVER put backticks inside the title — the whole title is one code span, no nesting
4. Description uses backticks for code references — title does NOT
5. Conventional Commits types: `fix`, `feat`, `perf`, `refactor`, `docs`, `chore`
6. Always include a scope — a short, human-readable area name (e.g. `reply modal`, `mod queue`), matching how this repo actually commits (see the `commit` skill)
7. Use `perf` for performance optimizations (not `fix`)
7. Description: 2-3 sentences about the solution, no bullet points, only if title isn't enough
## Wrong vs Right
❌ WRONG — missing backticks around title:
```
> **Commit title:** refactor(mod queue): rename from /queue to /modqueue
```
❌ WRONG — backticks around individual words instead of whole title:
```
> **Commit title:** refactor(mod queue): rename from `/queue` to `/modqueue`
```
❌ WRONG — missing scope:
```
> **Commit title:** `refactor: rename from /queue to /modqueue`
```
✅ CORRECT — entire title in one backtick pair, no backticks inside, scope present:
```
> **Commit title:** `refactor(mod queue): rename from /queue to /modqueue`
```
## Self-check
Before outputting, verify:
- [ ] Lines start with `>`
- [ ] Title is wrapped in exactly one backtick pair: `` `like this` ``
- [ ] Title has the form `type(scope): description`
- [ ] No backticks inside the title text
- [ ] Code references in description (not title) use backticks
在 GitHub 查看