git-commit

GitHub

协助用户创建聚焦、可审查的 Git 提交,智能拆分无关变更,规范撰写符合 Conventional Commits 标准的提交信息并执行提交。

.agents/skills/git-commit/SKILL.md Terry-Mao/AICodingFlow

Trigger Scenarios

请求提交当前更改 要求将更改组织为多个提交

Install

npx skills add Terry-Mao/AICodingFlow --skill git-commit -g -y
More Options

Non-standard path

npx skills add https://github.com/Terry-Mao/AICodingFlow/tree/main/.agents/skills/git-commit -g -y

Use without installing

npx skills use Terry-Mao/AICodingFlow@git-commit

指定 Agent (Claude Code)

npx skills add Terry-Mao/AICodingFlow --skill git-commit -a claude-code -g -y

安装 repo 全部 skill

npx skills add Terry-Mao/AICodingFlow --all -g -y

预览 repo 内 skill

npx skills add Terry-Mao/AICodingFlow --list

SKILL.md

Frontmatter
{
    "name": "git-commit",
    "description": "Create focused, reviewable commits from the current diff without including unrelated files."
}

git-commit

Use this when the user asks to commit current changes or organize them into commits.

Inspect and group

Review status, unstaged/staged diffs, and their stats. Check repository commit conventions only when they are not already clear from the task or nearby files. Split only genuinely separate concerns (for example behavior versus refactor, dependency churn, generated output, formatting-only changes, or unrelated docs/tests). Keep directly related tests with the change.

Stage only intended paths, using git add -p when a file contains mixed concerns. Do not bulk-stage unrelated work.

Message and commit

Unless repository conventions say otherwise, use:

type(scope): summary

Use feat, fix, refactor, perf, docs, test, build, ci, or chore. Add Fixes #123 only for explicit closing intent or a clearly completed narrow issue; use Refs #123 for partial or ambiguous work. Never invent issue IDs.

Run normal git commit -m so hooks execute. If a hook fails, stop and report; do not use --no-verify, push, rewrite history, or force operations unless explicitly requested. Report the final hash and whether hooks ran.

Version History

  • d3fef11 Current 2026-09-03 03:51

    优化了检查流程,改用交互式暂存(git add -p)处理混合关注点;增强钩子失败处理机制,禁止未请求时强制操作。

  • e53c5ac 2026-07-24 11:35

Same Skill Collection

.agents/skills/bootstrap-issue-config/SKILL.md
.agents/skills/create-issue/SKILL.md
.agents/skills/create-pr/SKILL.md
.agents/skills/diagnose-ci-failures/SKILL.md
.agents/skills/git-branch/SKILL.md
.agents/skills/git-push/SKILL.md
.agents/skills/git-worktree/SKILL.md
.agents/skills/pr-walkthrough/SKILL.md
.agents/skills/resolve-merge-conflicts/SKILL.md
.agents/skills/review-pr-local/SKILL.md
.agents/skills/review-spec-local/SKILL.md
.agents/skills/spec-driven-implementation/SKILL.md
.agents/skills/write-product-spec/SKILL.md
.agents/skills/write-tech-spec/SKILL.md
.github/skills/check-impl-against-spec/SKILL.md
.github/skills/create-product-spec/SKILL.md
.github/skills/create-tech-spec/SKILL.md
.github/skills/dedupe-issue-repo/SKILL.md
.github/skills/dedupe-issue/SKILL.md
.github/skills/implement-issue/SKILL.md
.github/skills/implement-specs/SKILL.md
.github/skills/product-change-report/SKILL.md
.github/skills/product-docs-sync/SKILL.md
.github/skills/product-wiki/SKILL.md
.github/skills/review-pr-repo/SKILL.md
.github/skills/review-pr/SKILL.md
.github/skills/review-spec-repo/SKILL.md
.github/skills/review-spec/SKILL.md
.github/skills/security-review-pr/SKILL.md
.github/skills/security-review-spec/SKILL.md
.github/skills/triage-issue-repo/SKILL.md
.github/skills/triage-issue/SKILL.md
.github/skills/update-dedupe/SKILL.md
.github/skills/update-pr-review/SKILL.md
.github/skills/update-triage/SKILL.md

Metadata

Files
0
Version
d3fef11
Hash
3843a1ef
Indexed
2026-07-24 11:35

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-03 15:04
浙ICP备14020137号-1 $bản đồ khách truy cập$