All skills
cat-xierluo avatar

/git-batch-commit

@172a3c5

智能 Git 批量提交快捷按钮。触发词:"git 提交"、"批量提交"、"拆分提交"、"整理提交",或用户明确要把已暂存变更拆成多个聚焦 commit 时使用。只负责 commit 拆分和提交信息生成;分支、PR、push、merge、Issue 关闭语义以 git-workflow 为准。提交完成后,若仓库内存在 skill-publish-sync 或 subtree-publish 配置、或仓库已登记于本技能 config/subtree-repos.yaml(按仓库个性化触发时点与推送命令),本技能会提示是否将涉及版本更新的技能同步发布到 ClawHub/SkillHub 或推送 subtree 独立仓库——这些发布/推送动作均需用户显式确认。

Use this Skill: https://skilld.dev/gh/cat-xierluo/legal-skills/git-batch-commit

This session only. Nothing lands on disk.

referencesconventional-commits.md

≈452 tokens on demand. Your agent reads this file only when SKILL.md points to it.

约定式提交规范

本 skill 遵循约定式提交(Conventional Commits)规范进行提交信息格式化。

格式

<类型>: <标题>

<正文描述>

正文(body)是必填项,用于补充变更的具体内容和原因。正文应列出关键变更点,使用列表格式(- 开头)。

支持的类型

类型 描述
docs 文档变更
feat 新功能
fix Bug 修复
refactor 代码重构
style 代码风格变更
chore 构建工具、依赖、工具链
test 测试添加或修改
config 配置变更
license License 文件更新

示例

docs: 更新 README 文档

- 补充安装说明
- 添加使用示例
feat: 添加用户认证

- 实现 JWT Token 签发与验证
- 添加登录/登出 API 端点
fix: 修复解析器内存泄漏

- 修复大文件解析时缓冲区未释放的问题
chore: 更新依赖

Issue / Task 引用

git-batch-commit 只负责轻量引用,不负责关闭 Issue:

docs: 更新 README 文档 (#13)

Refs #13

- 补充安装说明
- 添加使用示例

项目本地任务引用使用正文中的 Refs:,避免误关 GitHub Issue:

docs: 更新任务材料

Refs: project-task Issue #13

- 补充素材包说明

若需要使用 Closes #N 关闭 GitHub Issue,或需要合并 PR、推送远端、拉取 PR 到 main,遵循 git-workflow。

为什么要使用标准化提交?

  1. 更易阅读: 快速理解改动内容
  2. 更好的 git log: 更清晰、更有意义的历史记录
  3. 自动化 changelog: 工具可以自动生成 CHANGELOG.md
  4. 语义化版本控制: 帮助确定版本升级
  5. 团队一致性: 所有人使用相同的格式

Source: SKILL.md on GitHub

No alerts15d3 checks · Risk SAFE
  • Gen Agent Trust Hub15d

    The git-batch-commit skill is a utility for intelligently grouping and committing Git changes. It uses standard Git commands via subprocess to manage commits and provides clear disclosure regarding optional synchronization with external platforms (ClawHub/SkillHub), which requires explicit user confirmation.

  • Socket15d

    No alerts

  • Snyk15d

    Risk: LOW · No issues

Signed by skilld at 172a3c5. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 3 days ago
homepage
https://github.com/cat-xierluo/legal-skills
author
杨卫薪律师(微信ywxlaw)
version
1.4.3

README badge

README badge for cat-xierluo/legal-skills/git-batch-commit