← 返回
未分类 中文

Commit Message Writer

Generate Conventional Commit messages, PR titles, and summaries from git diffs, code snippets, or change descriptions for any project or language.
从git差异、代码片段或变更描述生成规范化提交消息、PR标题和摘要,支持任何项目或编程语言。
lnguyen1996
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 440
下载
💾 1
安装
1
版本
#latest

概述

commit-message-writer

Description

Write Conventional Commit messages from a git diff, code snippet, or plain description. Also generates PR titles and 3-bullet PR summaries. Works with any language and any project — no setup, no config.

Use when

  • "write a commit message"
  • "what should I commit this as"
  • "conventional commit for this diff"
  • "write a PR title and description"
  • Any git diff or code change needing a message

Supported conventions

  • Conventional Commits 1.0 (default)
  • Angular commit format
  • GitHub squash-merge style
  • Plain descriptive (no convention)

Request a specific one or it defaults to Conventional Commits.

Input

Paste one of:

  • A git diff (git diff --staged)
  • A description of what changed ("I added rate limiting to the API")
  • Code before/after

Optionally specify:

  • Convention (defaults to Conventional Commits)
  • Scope (component, module, or area affected)
  • Whether this is a breaking change

Output format

## Commit Message

[type]([scope]): [subject]

[body — explains WHY, not just WHAT. Omitted if obvious from subject]

[BREAKING CHANGE: description — only if applicable]
[Closes #123 — only if issue number is known]

---

## PR Title
[short, imperative, under 70 chars]

## PR Summary
- [What changed]
- [Why it changed / what problem it solves]
- [Any notable side effects, caveats, or follow-up needed]

Conventional Commits type guide

TypeWhen to use
------
featNew feature (triggers minor version bump)
fixBug fix (triggers patch version bump)
docsDocumentation only
styleFormatting, whitespace — no logic change
refactorRestructure without changing behavior
perfPerformance improvement
testAdding or fixing tests
choreBuild system, CI, dependency updates
revertReverts a prior commit
ciCI pipeline changes

Writing rules

  • Subject: imperative mood ("add", "fix", "remove" — not "added", "fixed", "removes")
  • Subject: no period at end
  • Subject: under 72 characters
  • Body: explain WHY the change was made, not just what the diff shows
  • Breaking change: always include BREAKING CHANGE: footer with migration notes
  • Scope: use the module, file, or feature name (e.g., auth, api, db, ui)
  • If the diff touches multiple concerns: suggest splitting into multiple commits

Examples

Simple fix

fix(auth): reject expired JWT tokens before checking claims

Previously, token expiry was checked after claim validation,
which allowed attackers to replay expired tokens with valid claims.

New feature with breaking change

feat(api)!: require API key on all public endpoints

BREAKING CHANGE: All requests now require `X-API-Key` header.
Clients using anonymous access will receive 401. See migration guide.

Dependency update

chore(deps): bump openssl from 1.1.1 to 3.0.8

Addresses CVE-2023-0286 (X.400 address type confusion).
No API changes.

Self-improvement instructions

After each commit message written, note whether the input was a diff, description, or code snippet. After 20 uses, surface the most common missing context that leads to weaker messages.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-31 04:00 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Async & Concurrency Reviewer

lnguyen1996
审查多语言异步与并发代码,检测死锁、竞态条件、缺失取消处理及误用问题,并返回详细修复报告。
★ 0 📥 443

Dockerfile & Container Reviewer

lnguyen1996
审查 Dockerfile 和 docker-compose 文件的安全、大小、构建及最佳实践问题,提供详细严重程度评级报告及修复建议。
★ 0 📥 524

PR Reviewer

lnguyen1996
通过检测逻辑错误、安全风险、测试缺失、API变更和风格问题来审查拉取请求,并提供按阻塞合并优先级排序的结构化报告。
★ 0 📥 455