跳到正文
cccskills
免费在 GitHub 公开

commit-all

Batch-commit all uncommitted changes grouped by relevance. Use when multiple accumulated changes need committing. Invoked by saying "commit all" or "commit everything".

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

查看安装方法

包含的文件(1)

  • SKILL.md2.0 KB

SKILL.md(原文)

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

Commit All Uncommitted Changes

Stage, commit, and push all uncommitted changes — grouped by relevance so each commit is cohesive.


Branch Safety (BLOCKING GATE)

  1. Check the current branch — run git branch --show-current.
  2. If on master or main — STOP immediately. Do not stage, commit, or push.
  3. Stay on the current branch. Never switch branches.

Steps

1. Assess All Changes

git status --short
git diff --stat

2. Group Changes by Relevance

Cluster files into commit batches based on:

  • Feature/module area
  • Change type (docs, config, source)
  • Logical coupling

Target 1–5 batches. If all related, one batch is fine.

3. For Each Batch — Present 3 Commit Message Options

Before committing each batch:

  1. List the files in the batch
  2. Present 3 numbered commit message options (concise → descriptive)
  3. Wait for the user to pick

4. Stage and Commit Each Batch

git add <explicit-file-paths>
git commit -m "<type>(<scope>): <subject>" -m "<body>"

Never use git add . or git add -A. Always explicit paths.

5. Push

After all batches committed:

  • Ask: "All batches committed. Ready to push to <branch>?"
  • Wait for explicit approval before pushing.

Commit Message Rules

Same rules as the $commit skill:

  • Subject: <type>(<scope>): <summary> — under ~80 chars
  • Types: feat, fix, refactor, docs, style, data, config, chore
  • Body: 2–3 -m flags max, end with Files: list
  • 3 options per batch — user picks.

Rules

  • Never stage without showing batch contents first.
  • Never combine unrelated changes.
  • Never skip the 3-option presentation.
  • One commit per batch, one push at the end.
  • Always ask for explicit user approval.

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

commit

免费

Stage, commit, and push code changes with branch safety and explicit staging. Use when ready to commit work. Invoked by saying "commit", "push", or "commit and push".

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

savedpixel/ai-agent-rules-generator82026年4月12日 更新

Document completed work — update task log, sync documentation, log observations. Use after finishing a task or batch of changes.

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

savedpixel/ai-agent-rules-generator82026年4月12日 更新

Execute a previously created implementation plan — implement, test, document, and close out. Use when a plan file exists and is ready for implementation.

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

savedpixel/ai-agent-rules-generator82026年4月12日 更新

Merge dev branch into master/main and push. Use when dev changes are ready for production branch. Invoked by saying "merge to master" or "merge to main".

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

savedpixel/ai-agent-rules-generator82026年4月12日 更新

plan-task

免费

Create a detailed implementation plan before coding. Use when starting a new feature, multi-step refactor, or complex task. Invoked by saying "plan", "create a plan", or "plan this task".

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

savedpixel/ai-agent-rules-generator82026年4月12日 更新

report

免费

Generate a structured report on completed work, a feature area, or a topic. Saved to the reports directory. Invoked by saying "report", "generate report", or "summarize work".

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

savedpixel/ai-agent-rules-generator82026年4月12日 更新

查看 savedpixel 的全部技能

报告此技能的问题