Agent skill

Smart Commits

by hoangnb24 in hoangnb24/skills

Organize an existing Git tree into logical commits and push them.

No licenceAuto-check passedDevelopment

Install Smart Commits

skills CLI
$ npx skills add hoangnb24/skills --skill smart-commits -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install hoangnb24/skills smart-commits --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/hoangnb24/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/khuym/skills/smart-commits .claude/skills/smart-commits && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
smart-commits
GitHub stars
230
Token cost
~795 tokens
SKILL.md length
408 words
Files
2
Skills in repo
6
Repo updated
First seen
Licence
None found

At a glance

Organize an existing Git tree into logical commits and push them.

  • Works in 7 steps: Inspect the repository → Read enough representative diffs and… → Identify commit groups by product… → …
  • Asked to commit everything
  • SKILL.md covers Core Rules, Workflow, Grouping Guidance and Final Response
  • Calls git

What it does

Smart Commits is an agent skill from hoangnb24/skills. 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.

Its SKILL.md is about 800 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It sits in Development. It works with Git.

When your agent uses it

  • Asked to commit everything
  • Clean the commit stack

Example prompts

  • “/smart-commits”

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Inspect the repository
  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
  4. Run appropriate quality gates before committing when code changed. Use the repo's own checks first. If checks are unavailable, expensive…
  5. Commit one group at a time
  6. After each commit, re-run git status --porcelain=v1 and continue until all in-scope changes are committed.
  7. Push

What it can do on your machine

Read from SKILL.md and the folder at commit 9a579fc. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Smart Commits loads about 795 tokens when it runs. Until then it costs about 46 tokens; SKILL.md has 408 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~46
When it runs · the whole SKILL.md, loaded when a task matches
~795

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 408 words (~795 tokens).

“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.”

— opening of SKILL.md by hoangnb24
name
smart-commits

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file in plugins/khuym/skills/smart-commits of hoangnb24/skills.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit 9a579fc

Compare with similar skills

Smart Commits next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Smart Commits compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Smart Commits this skillhoangnb24/skills230—~795Automated safety check: PassNone
Finishing a Development Branchobra/superpowers297k5 repos~1.9kAutomated safety check: PassMIT
Code Review ChecklistshareAI-lab/learn-claude-code78k4 repos~1.1kAutomated safety check: PassMIT
Code Design Rationale Investigatorcursor/plugins11k9 repos~2.6kAutomated safety check: PassNone
Contributor-First PR MergeHKUDS/OpenHarness16k1 repos~847Automated safety check: PassMIT
Finishing A Development Branchfarm-fe/farm5.6k34 repos~1.8kAutomated safety check: PassMIT

Similar skills

  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    297k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 4 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Official

    Digs into why code is shaped the way it is by checking git history, pull requests and connected tools in parallel, then reporting a cited read on the tradeoffs.

    11k GitHub starsUsed in 9 repos~2.6k tokens
    DevelopmentAuto-check passed
  • Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.

    16k GitHub starsUsed in 1 repo~847 tokens
    DevelopmentAuto-check passed
  • A skill your agent uses when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for…

    5.6k GitHub starsUsed in 34 repos~1.8k tokens
    DevelopmentAuto-check passed
  • Moves a package from another TryGhost repository into Ghost as an internal workspace package while keeping its Git history, with checkpoints for the steps that need an administrator.

    56k GitHub stars~3.8k tokensUpdated today
    DevelopmentAuto-check passed

More from hoangnb24/skills

  • Tldraw API

    hoangnb24/skills

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

    230 GitHub stars~1.5k tokensUpdated 2 mo ago
    Auto-check passed
  • Prompt Leverage

    hoangnb24/skills

    Upgrade raw prompts into execution-ready instructions. An agent skill from hoangnb24/skills.

    230 GitHub stars~725 tokensUpdated 2 mo ago
    Auto-check passed
  • Goal Griller

    hoangnb24/skills

    Turn vague ideas into verifiable Codex goals. An agent skill from hoangnb24/skills.

    230 GitHub stars~1.1k tokensUpdated 2 mo ago
    Auto-check passed
  • Sequence Execution Plan

    hoangnb24/skills

    Build dependency-aware plans from goals, incidents, backlogs, or priorities.

    230 GitHub stars~2.4k tokensUpdated 2 mo ago
    Auto-check passed
  • Xia

    hoangnb24/skills

    Research unfamiliar implementation work before coding. An agent skill from hoangnb24/skills.

    230 GitHub stars~604 tokensUpdated 2 mo ago
    Auto-check passed

Works with

Categories

Questions about Smart Commits

What does Smart Commits do?

Organize an existing Git tree into logical commits and push them. Smart Commits is an agent skill from hoangnb24/skills. Organize an existing Git tree into logical commits and push them.

When should I use Smart Commits?

Smart Commits fits situations like: asked to commit everything; clean the commit stack.

How do I install Smart Commits in Claude Code?

Run `npx skills add hoangnb24/skills --skill smart-commits -a claude-code`. Or copy the skill folder (plugins/khuym/skills/smart-commits in hoangnb24/skills) into .claude/skills/smart-commits in your project. Claude Code loads it when a task matches its description.

How do I install Smart Commits in Codex?

Run `npx skills add hoangnb24/skills --skill smart-commits -a codex`. Or copy the skill folder (plugins/khuym/skills/smart-commits in hoangnb24/skills) into .agents/skills/smart-commits in your project. Codex loads it when a task matches its description.

Can I use Smart Commits in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add hoangnb24/skills --skill smart-commits -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/smart-commits, .gemini/skills/smart-commits, .github/skills/smart-commits and .opencode/skills/smart-commits in your project.

What does Smart Commits need to run?

Going by SKILL.md and its folder, Smart Commits needs the command-line tools its instructions call (git).

Does Smart Commits access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Smart Commits safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Smart Commits use?

No licence was found for Smart Commits or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Smart Commits use?

About 795 tokens (SKILL.md is roughly 3.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Smart Commits?

Skills that share tags, products or a category with Smart Commits: Finishing a Development Branch (obra/superpowers, 297k stars), Code Review Checklist (shareAI-lab/learn-claude-code, 78k stars), Code Design Rationale Investigator (cursor/plugins, 11k stars) and Contributor-First PR Merge (HKUDS/OpenHarness, 16k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Smart Commits?

hoangnb24 (a GitHub user) maintains it in hoangnb24/skills, which has 230 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on July 18, 2026.

Source: hoangnb24/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.