Skip to content
Skill Authoring
Skill

/smart-commits

Organize an existing Git tree into logical commits and push them. Use when asked to commit everything, smart commit, group changes, clean the commit stack, or push work.

From plugin
skills
2277 skills2 MCP

Claude Code

$ npx -y skills add hoangnb24/skills --skill smart-commits --agent claude-code

SKILL.md

smart-commits.SKILL.md
name: smart-commits
description: Organize an existing Git tree into logical commits and push them. Use when asked to commit everything, smart commit, group changes, clean the commit stack, or push work.

Smart Commits

Turn the current working tree into one or more coherent commits, then push when the repository has a configured remote. This skill is for committing existing work. It must not become a feature-editing session.

Core Rules

  • Never edit product code or docs just to make a commit easier. If validation exposes a real blocker, report it and keep the working tree intact unless the user explicitly asks for a fix.
  • Never stash, reset, checkout away, overwrite, or revert unrelated changes. In multi-agent repos, treat every existing change as intentional work unless the user explicitly asks otherwise.
  • Preserve the user's requested boundary. If they say to leave a path, topic, or change set alone, do not stage it.
  • Stage exact files or hunks intentionally. Avoid `git add .` unless the whole tree has been inspected and belongs in one commit group.
  • Prefer conventional commit messages with a useful body explaining why the group belongs together.
  • Push after committing when a remote/upstream exists. If no push destination exists, leave the commits local and say so.

Workflow

1. Inspect the repository:

   git status --porcelain=v1
   git branch --show-current
   git remote -v
   git diff --stat
   git diff --cached --stat

2. Read enough representative diffs and files to understand intent. Include staged, unstaged, untracked, deleted, and renamed files. 3. Identify commit groups by product intent, not by file type:

  • foundational/configuration changes before dependent feature changes
  • source and directly coupled tests together when they prove one behavior
  • docs as a separate commit only when they are independently meaningful
  • generated artifacts only when they are part of the requested deliverable

4. Run appropriate quality gates before committing when code changed. Use the repo's own checks first. If checks are unavailable, expensive, or already known broken, record that in the final response. 5. Commit one group at a time:

   git add <specific files>
   git commit -m "<type>(<scope>): <subject>" -m "<body>"

6. After each commit, re-run `git status --porcelain=v1` and continue until all in-scope changes are committed. 7. Push:

   git push

If the branch lacks an upstream, use `git push -u origin <branch>` only when the remote and branch name are clearly correct.

Grouping Guidance

Good groups:

1. `refactor(auth): extract token validation helper` 2. `feat(users): add email verification endpoint` 3. `test(users): cover email verification flow`

Bad groups:

1. `chore: update files` 2. `docs: update docs and app code` 3. `test: update tests` when the tests prove multiple unrelated features

Final Response

Report the commits created, push result, validation run, and any remaining out-of-scope or uncommitted files. If the tree is already clean when invoked, verify the latest relevant commit and say no new commit was needed.

Read more
@hoangnb24
Ships withskills

Khuym is a focused Codex plugin containing five independent meta-skills and one tool-automation skill. It improves how an agent understands, researches, sequences, lands, and visualizes work without imposing a repository workflow.

2277 skills2 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
227
Star history of hoangnb24/skills on GitHub, a chart by star-history.com

Other skills on skills.

goal-griller

goal-griller

Turn vague ideas into verifiable Codex goals. Use when the user mentions goal mode, /goal, create_goal, autonomous work, or asks…

@hoangnb24@hoangnb24Install Skill
pi-durable-multi-provider

pi-durable-multi-provi…

Agent playbook for building multi-provider applications with @earendil-works/pi-durable and @earendil-works/pi-ai where every job…

@hoangnb24@hoangnb24Install Skill
prompt-leverage

prompt-leverage

Upgrade raw prompts into execution-ready instructions. Use when asked to improve a prompt, add context, tool, verification, or…

@hoangnb24@hoangnb24Install Skill
sequence-execution-plan

sequence-execution-pla…

Build dependency-aware plans from goals, incidents, backlogs, or priorities. Use when priority conflicts with execution order and…

@hoangnb24@hoangnb24Install Skill
tldraw-api

tldraw-api

Create, inspect, edit, persist, and verify tldraw canvases through the tldraw Desktop local Canvas API without mouse-driven…

@hoangnb24@hoangnb24Install Skill
xia

xia

Research unfamiliar implementation work before coding. Use when work is ambiguous, version-sensitive, or risky and requires repo…

@hoangnb24@hoangnb24Install Skill

More skills from other plugins.

gstack-openclaw-ceo-review

gstack-openclaw-ceo-re…

Use when asked to review a plan, challenge a proposal, run a CEO review, poke holes in an approach, think bigger about scope, or…

gstack3w138k
@garrytan@garrytanInstall Skill
book-to-skill

book-to-skill

Converts books and documents (PDF, EPUB, DOCX, HTML, Markdown, plain text, RTF, MOBI/AZW with Calibre) into structured agent…

@virgiliojr94@virgiliojr94Install Skill
distilly

distilly

Set up the owner profile so a personal agent knows who it works for (first-run setup, \"get to know me\"), or distill colleague,…

@titanwings@titanwingsInstall Skill

Questions about smart-commits.

Which coding agents can use smart-commits?
smart-commits installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.