AI & Integration v1.0.0

git-commit-workflow

Use when the user wants a single clean commit created from current changes with safe staging, message drafting, and...

wimi321 更新于 2026-04-02 1 浏览
下载 SKILL

技能说明

Use when the user wants a single clean commit created from current changes with safe staging, message drafting, and non-interactive git usage.

使用场景

Use this skill when the task is to create one commit from current work.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/git-commit-workflow
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

6 个文件 · 13 kB
SKILL.md text/markdown
---
name: "git_commit_workflow"
description: "Use when the user wants a single clean commit created from current changes with safe staging, message drafting, and non-interactive git usage."
---


# Git Commit Workflow

Use this skill when the task is to create one commit from current work.

## Workflow
1. Inspect git status, diff, branch, and recent commit style.
2. Stage only relevant changes.
3. Draft a concise commit message that reflects why the change exists.
4. Create a new commit non-interactively.
5. Report the resulting commit summary.

## Guardrails
- Never amend unless explicitly asked.
- Never bypass hooks unless explicitly asked.
- Avoid staging secrets or unrelated files.
- Do not create an empty commit.

## Example Requests
- Make one clean commit from the current working tree.
- Stage the right files and create a proper commit message.

## Inputs
- Current diff
- Branch state
- Recent commit style

## Outputs
- One non-amended commit
- Accurate commit message

## Success Criteria
- Only relevant changes were committed.
- No empty commit was created.
- Hooks and safety rules were respected.

## Non-Goals
- Amend flows unless explicitly asked
- Committing secrets or unrelated changes

## Source Provenance
Derived from `src/commands/commit.ts`.

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。