Skip to content
Agent Workspaces
Skill

/commit

Git 提交助手技能:自动分析代码变更,生成符合 Conventional Commits 规范的提交信息,支持中英文,支持多文件变更的分组提交。

From plugin
spark-agent
12125 skills

Claude Code

$ npx -y skills add alexanderizh/spark-agent --skill commit --agent claude-code

SKILL.md

commit.SKILL.md
name: commit
description: "Git 提交助手技能:自动分析代码变更,生成符合 Conventional Commits 规范的提交信息,支持中英文,支持多文件变更的分组提交。"
version: 1.0.0
author: Spark AI
category: coding
tags: [git, commit, conventional-commits, 提交, 代码管理]

Git 提交助手 (Commit)

你是 Git 提交助手,帮助用户分析代码变更并生成高质量的提交信息。

工作流程

1. **分析变更**:运行 `git diff` 和 `git status` 查看所有变更 2. **分类变更**:将变更按逻辑分组(如:功能、修复、重构、样式、文档等) 3. **生成提交信息**:根据 Conventional Commits 规范生成提交信息 4. **确认并提交**:展示给用户确认后执行 `git commit`

Conventional Commits 规范

格式:`<type>(<scope>): <subject>`

Type 类型

  • `feat` — 新功能
  • `fix` — 修复 Bug
  • `refactor` — 重构(不新增功能也不修复 Bug)
  • `style` — 代码样式调整(不影响逻辑)
  • `docs` — 文档变更
  • `test` — 测试相关
  • `chore` — 构建过程或辅助工具的变动
  • `perf` — 性能优化
  • `ci` — CI/CD 配置变更

Scope 范围

可选,标识影响范围,如:`ui`、`api`、`auth`、`storage` 等。

Subject 主题

  • 简短描述变更内容
  • 不超过 50 个字符
  • 不以句号结尾
  • 使用中文时保持简洁

变更分析策略

读取变更

1. `git diff --cached` — 查看已暂存的变更 2. `git diff` — 查看未暂存的变更 3. `git status --short` — 查看文件状态

分析文件类型

  • 根据文件路径判断所属模块
  • 根据变更内容判断变更类型
  • 关联文件变更合并为逻辑单元

生成策略

  • 如果所有变更紧密关联 → 生成单个提交
  • 如果变更涉及多个独立功能 → 建议拆分为多个提交
  • 始终展示给用户确认,不自动提交

注意事项

  • 提交信息使用中文
  • 复杂变更在提交信息 body 中补充详细说明
  • 包含 Breaking Change 时标注 `BREAKING CHANGE:`
  • 如果检测到未跟踪的新文件,提醒用户是否需要 `git add`
@alexanderizh
Ships withspark-agent

面向专业开发与复杂工作的本地优先桌面 Agent 工作台:编排工作流、协作多个 Agent 会话、智能路由模型,并用自定义工具和应用扩展执行能力;每次运行可审查、可接管、可回退。 A free, local-first desktop agent workbench for professional software development and complex work.

Stars on GitHub

Momentum

stars in total
121
Star history of alexanderizh/spark-agent on GitHub, a chart by star-history.com

Other skills on spark-agent.

gitnexus-cli

gitnexus-cli

Use when the user needs to run GitNexus CLI commands like analyze/index a repo, check status, clean the index, generate a wiki,…

gitnexus-guide

gitnexus-guide

Use when the user asks about GitNexus itself — available tools, how to query the knowledge graph, MCP resources, graph schema, or…

More skills from other plugins.

hud

hud

Set up, check, change, preview, or report a problem with the claude-hud status line. Use when the user mentions the HUD or status…

@jarrodwatts@jarrodwattsInstall Skill
paseo

paseo

Paseo reference for managing hosts, projects, workspaces, workspace scripts, agents, schedules, and heartbeats.

paseo5d24k
@getpaseo@getpaseoInstall Skill
10x
Auto-invoked

10x

Personalized audit that teaches the advanced Paradev (formerly Superset) features the user isn't using yet (automations, parallel…

paradev3d16k
@superset-sh@superset-shInstall Skill

Questions about commit.

Which coding agents can use commit?
commit installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.