git-commit

仓库创建 2026年7月6日最近提交 22 天前SkillHot 收录 22 天前
▸ 精选理由

把杂乱变更转成合适提交并避免错误提交

▸ 风险提示

会执行提交或推送操作,需确认权限与远程影响

这个 Skill 做什么

阅读变更并生成/拆分提交信息,交互确认后执行 commit/push。

想把当前改动提交(commit)或推送(push)时,先把 staged 和 unstaged 的变更读一遍,生成一条或多条英文提交信息,并通过选择题让你决定是合并成一次提交还是拆分、是否同时 push。只有你确认后才会执行 commit/push,绝不擅自提交。相当于有个会写提交信息并能防止误操作的智能助理。

▸ 展开 SKILL.md 英文原文

Use when the user wants to commit and/or push the current changes — invoked as /git-commit. Summarizes the working tree (staged or unstaged) into one or more English commit messages, then asks via multiple choice whether to make a single commit or a sensible split, and whether to also push. Never commits or pushes without that confirmation.

开发编程Git自动化提交信息推送通用
0
Stars
0
Forks
10
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/Seismoforg/claude-config/main/skills/git-commit/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/Seismoforg/claude-config/main/skills/git-commit/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# GIT COMMIT

Guided commit: read changes, propose message(s), confirm via multiple choice, then
execute exactly what was chosen. Messages in **English**. Never commit or push
before the user picks an action.

# STEP 1 — INSPECT
Gather staged AND unstaged before proposing:
- `git status --porcelain=v1 -b` — branch, ahead/behind, every changed path.
- `git diff` — unstaged.
- `git diff --staged` — staged.
- Untracked files → note them (need `git add`).

Clean tree → say so and STOP. Don't create an empty commit.
Record the branch and whether it's the default (main/master).

Hygiene scan: flag obvious secrets (`.env`, key/token/credential files), large binaries, and build/generated artifacts a
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有