跳到正文
cccskills
免费在 GitHub 公开

commit

Commit local changes without pushing.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md1.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Commit — Local Commit Only

Commits local changes to the current branch. Does not push or create a PR.

Instructions

  • NEVER push. This skill only creates local commits.
  • All user-facing text must use the language the user has been using in the conversation. Do not default to English.

Stage & Commit

Run git status --porcelain and inspect the output:

  • No output → no local changes. Inform the user and stop.
  • Staged changes exist, no unstaged changes → proceed directly to commit.
  • Staged changes exist, unstaged changes also exist → ask the user: commit only the staged files (partial), or stage everything (full)? If partial: skip staging (files are already staged). If full: run git add -A first.
  • No staged changes, unstaged changes exist → run git add -A to stage everything, then commit.

Read the staged diff (git diff --cached) and generate a commit message following the project's commit conventions. If no convention is found, default to a concise English message under 120 characters ending with a period, with no other punctuation, focusing on user-perceivable changes.

Commit, then output a single line in the format: 已提交 {short_hash}:{commit message}

If the user chose partial, also inform them that unstaged changes remain and were not included in this commit.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Accept screenshot baseline changes and commit the updated version.json.

中文简介正在准备中。当前显示原文说明。

Tencent/tgfx15952026年10月19日 更新

cr

免费

Automated code review and fix for local branches, PRs, commits, and files. Supports single-agent interactive fix and multi-agent adversarial review with auto-fix.

中文简介正在准备中。当前显示原文说明。

Tencent/tgfx15952026年10月19日 更新

pr

免费

Commit and push changes, then create a new PR or append to an existing one.

中文简介正在准备中。当前显示原文说明。

Tencent/tgfx15952026年10月19日 更新

squash

免费

Analyze branch commits and consolidate iterative modifications.

中文简介正在准备中。当前显示原文说明。

Tencent/tgfx15952026年10月19日 更新

查看 Tencent 的全部技能

报告此技能的问题