Skip to content
cccskills
FreePublished on GitHub

commit

Commit local changes without pushing.

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md1.4 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

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.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

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

The English summary is being prepared. Showing the original description.

Tencent/tgfx1.6KUpdated Oct 19, 2026

cr

Free

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.

The English summary is being prepared. Showing the original description.

Tencent/tgfx1.6KUpdated Oct 19, 2026

pr

Free

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

The English summary is being prepared. Showing the original description.

Tencent/tgfx1.6KUpdated Oct 19, 2026

squash

Free

Analyze branch commits and consolidate iterative modifications.

The English summary is being prepared. Showing the original description.

Tencent/tgfx1.6KUpdated Oct 19, 2026

See all skills by Tencent

Report a problem with this skill