commit-message
Use when proposing or writing a git commit message
- License 许可
- MIT
- 最近更新
- 2026-10-30
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- commit-message
- description
- Use when proposing or writing a git commit message
02 资源文件 1
- 其他templates/commit-msg74 B
03 SKILL.md 正文
Commit messages
Format
One English line, no body, no trailers:
type(scope): subject
typeis one of: feat, fix, refactor, test, docs, chore, perf, build, ci.scopeis lowercase kebab-case: the module, service or feature.subjectstarts lowercase, uses the imperative mood, at most 72 characters for the whole line.- No
Co-Authored-Byor other trailers.
Good
feat(clients): add passport expiry checkfix(report-311): handle empty error countrefactor(bff): extract routing table
Bad
Fixed the bug in reports— no type or scope, past tense.feat(clients): Add passport check— capitalized subject.fix(api): handle nilfollowed by a paragraph — bodies are not allowed.
Rules
- Propose commits; do not commit unless the user asks.
- One logical change per commit; list the files each proposed commit contains.
- Check a message with
~/.config/opencode/bin/check-commit-msg <file>or by piping it to stdin.
Per-repository hook
Install only into a specific repository and only when the user asks:
cp ~/.config/opencode/skills/commit-message/templates/commit-msg .git/hooks/commit-msg && chmod +x .git/hooks/commit-msg
Never set core.hooksPath globally.
04 同仓库更多 Skills
verify
Use when a change in __SERVICE__ must be checked before review
work-record
Use when you finished work on a tracker task and it must be recorded in the workspace through a merge request.
task-new
Use to create one story in a stream from the stream profile's story template, link it from its scope screens and open a merge request.
task-decompose
Use to split a stream at the decomposition stage into stories - list scope screens without a story, create the accepted stories and close the stage through a merge request.
task-context
Use to gather the context of a story key or a tracker id - its story, stream stage, scope screens, repositories, decisions, mockups and work records.
repos-sync
Use to update clones of your repositories under repos/ and see their branch, lag and uncommitted changes.