commit-msg

根据当前的代码修改生成简洁的中文 git 提交信息。

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "commit-msg" with this command: npx skills add conor-yek/skills/conor-yek-skills-commit-msg

Commit 信息生成

根据当前的代码修改生成简洁的中文 git 提交信息。

执行步骤

  • 并行运行 git status 和 git diff --cached 查看已暂存的改动

  • 如果有已暂存的改动(staged),只针对这些改动生成提交信息

  • 如果没有已暂存的改动,查看所有未暂存改动(git diff ),并询问是否 add 所有改动

  • 分析修改内容,识别模块和改动类型

  • 生成提交信息,包含标题和详细说明

  • 询问用户是否创建 commit,如果确认则使用 git commit -s 添加个人签名

提交信息格式

<type>(<scope>): <简短标题>

<详细说明,2-3行,说明:

  • 具体改动内容
  • 改动原因
  • 影响范围>

Type 类型

Type 说明

feat

新功能

fix

修复问题

refactor

重构

perf

性能优化

docs

文档

style

格式

test

测试

chore

构建工具

要求

  • 智能识别:优先使用已 staged 的改动,如果没有则提示用户

  • 标题:一行,不超过 50 字符

  • 详细说明:2-3 行,说明具体改动、原因和影响

  • scope:具体模块名(如 lisa_uart 、lisa_gpio )

  • 提交命令:

  • 如果有 staged 改动:使用 git commit -s

  • 如果没有 staged 改动且用户确认 add:先运行 git add -A ,再 git commit -s

  • 不要添加 Claude Code 的 Co-Authored-By 信息

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

arcs-dev-tools

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

sdk-assistant-agent

No summary provided by upstream source.

Repository SourceNeeds Review
General

OpenClaw Skill Growth

Make OpenClaw Skills observable, diagnosable, and safely improvable over time. Use this when the user wants to maintain many SKILL.md files, inspect repeated...

Registry SourceRecently Updated
171Profile unavailable
General

Find Skills for ClawHub

Search for and discover OpenClaw skills from ClawHub (the official skill registry). Activate when user asks about finding skills, installing skills, or wants...

Registry SourceRecently Updated
2871Profile unavailable