Agent skill

Generating Smart Commits

by jeremylongshore in jeremylongshore/tons-of-skills-marketplace

Execute use when generating conventional commit messages from staged git changes.

MITAuto-check passedDevelopment

Install Generating Smart Commits

skills CLI
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill generating-smart-commits -a claude-code

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

GitHub CLI
$ gh skill install jeremylongshore/tons-of-skills-marketplace generating-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/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.curated/generating-smart-commits .claude/skills/generating-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
generating-smart-commits
GitHub stars
2.8k
Token cost
~1k tokens
SKILL.md length
430 words
Files
7 (incl. scripts, references, assets)
Skills in repo
3,342
Repo updated
First seen
Licence
MIT

At a glance

Execute use when generating conventional commit messages from staged git changes.

  • Works in 9 steps: Run git diff --cached --stat to get an… → Run git diff --cached to examine the… → Classify the commit type based on the… → …
  • Generating conventional commit messages from staged git changes
  • SKILL.md covers Current State, Overview, Prerequisites and Instructions, plus 4 more sections
  • Runs Python scripts from its folder; calls git

What it does

Generating Smart Commits is an agent skill from jeremylongshore/tons-of-skills-marketplace. Execute use when generating conventional commit messages from staged git changes. Trigger with phrases like "create commit message", "generate smart commit", "/commit-smart", or "/gc". Automatically analyzes changes to determine commit type (feat, fix, docs), identifies breaking changes, and formats according to conventional commit standards.

Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including scripts, reference files and assets (for example `assets/README.md`, `references/README.md` and `scripts/README.md`). Compatibility notes: Designed for Claude Code

It sits in Development, covering Commit messages. It works with Git. The repository describes itself as: Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com. The licence is MIT.

When your agent uses it

  • Generating conventional commit messages from staged git changes
  • With phrases like create commit message
  • Generate smart commit

Example prompts

  • “create commit message”
  • “generate smart commit”
  • “/commit-smart”
  • “/generating-smart-commits”

Requirements

  • Python 3
  • Compatibility (from SKILL.md): Designed for Claude Code
  • Pre-approved tools (allowed-tools): Read, Write, Edit, Grep, Glob, Bash(git:*)

Workflow steps

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

  1. Run git diff --cached --stat to get an overview of staged files and change volume
  2. Run git diff --cached to examine the actual code changes in detail
  3. Classify the commit type based on the nature of changes
  4. Determine scope from the primary directory or module affected (e.g., auth, api, cli, db)
  5. Check for breaking changes: removed public APIs, changed function signatures, renamed exports, schema migrations
  6. Check recent commit history with git log --oneline -10 to match the project's style conventions
  7. Construct the commit message: type(scope): imperative description under 72 characters
  8. Add a body with bullet points explaining the "why" behind the change if the diff is non-trivial
  9. Append BREAKING CHANGE: footer if applicable

What it can do on your machine

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

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Grep
    • Glob
    • Bash(git:*)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • git

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

  • Network

    Links to these hosts (documentation or services it may open):

    • conventionalcommits.org
    • github.com
    • cbea.ms

    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.

  • Compatibility

    Designed for Claude Code

    From compatibility in the SKILL.md frontmatter.

Context cost

Generating Smart Commits loads about 1k tokens when it runs, and up to ~1k if it reads all its reference files. Until then it costs about 92 tokens; SKILL.md has 430 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~92
When it runs · the whole SKILL.md, loaded when a task matches
~1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1k

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); the scripts in this folder are not scanned.

SKILL.md

The full file from jeremylongshore/tons-of-skills-marketplace at commit cfae287, republished under its MIT licence (© jeremylongshore). 430 words, ~1,018 tokens.

Download SKILL.mdSave it as .claude/skills/generating-smart-commits/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
generating-smart-commits
description
Execute use when generating conventional commit messages from staged git changes. Trigger with phrases like "create commit message", "generate smart commit", "/commit-smart", or "/gc". Automatically analyzes changes to determine commit type (feat, fix, docs), identifies breaking changes, and formats according to conventional commit standards.
allowed-tools
Read, Write, Edit, Grep, Glob, Bash(git:*)
compatibility
Designed for Claude Code
version
1.28.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
license
MIT
tags
devops, git, smart-commits

Generating Smart Commits

Current State

!git diff --cached --stat !git log --oneline -5 !git status --short

Overview

Analyze staged git changes and generate Conventional Commits messages with accurate type classification, scope detection, and breaking change identification. Supports feat, fix, docs, style, refactor, test, chore, perf, ci, and build types following the Conventional Commits 1.0.0 specification.

Prerequisites

  • Git repository initialized in the working directory
  • Changes staged via git add (at least one staged file)
  • Git user name and email configured (git config user.name, git config user.email)
  • Understanding of the project's commit message conventions (check recent history)

Instructions

  1. Run git diff --cached --stat to get an overview of staged files and change volume
  2. Run git diff --cached to examine the actual code changes in detail
  3. Classify the commit type based on the nature of changes:
    • feat: new functionality visible to users
    • fix: bug correction
    • refactor: code restructuring without behavior change
    • docs: documentation only
    • test: adding or updating tests
    • chore: build process, dependencies, or tooling
    • perf: performance improvement
    • ci: CI/CD configuration changes
  4. Determine scope from the primary directory or module affected (e.g., auth, api, cli, db)
  5. Check for breaking changes: removed public APIs, changed function signatures, renamed exports, schema migrations
  6. Check recent commit history with git log --oneline -10 to match the project's style conventions
  7. Construct the commit message: type(scope): imperative description under 72 characters
  8. Add a body with bullet points explaining the "why" behind the change if the diff is non-trivial
  9. Append BREAKING CHANGE: footer if applicable

Output

Conventional commit message following this format:

type(scope): imperative description

- Explanation of what changed and why
- Impact on existing functionality

BREAKING CHANGE: description (if applicable)
Show full SKILL.md (169 more words)Show less

Error Handling

ErrorCauseSolution
No changes staged for commitNothing added to staging areaRun git add <files> to stage changes before generating the message
Not a git repositoryWorking directory is not inside a git repoRun git init or navigate to the repository root
Ambiguous commit typeChanges span multiple categories (feature + fix)Split into separate commits or use the primary intent as the type
Scope unclear from file pathsChanges touch many unrelated directoriesUse the most significant module or omit scope entirely
Commit message exceeds 72 charactersDescription too verboseShorten to the essential action; move details to the commit body

Examples

  • "Analyze my staged changes and generate a conventional commit message with the right type and scope."
  • "Create a commit message for these changes, checking if there are any breaking changes in the API."
  • "Generate a smart commit following this project's existing commit style (check the last 10 commits)."

Resources

© jeremylongshore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files (scripts, references, assets) in skills/.curated/generating-smart-commits of jeremylongshore/tons-of-skills-marketplace.

  • SKILL.md
  • assets/README.md
  • assets/commit_template.txt
  • assets/example_diff.txt
  • references/README.md
  • scripts/README.md
  • scripts/commit_analyzer.py

Open the folder on GitHubat commit cfae287

Compare with similar skills

Generating 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.

Generating Smart Commits compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Generating Smart Commits this skilljeremylongshore/tons-of-skills-marketplace2.8k—~1kAutomated safety check: PassMIT
React Router Release Notes Prepremix-run/react-router57k—~1.1kAutomated safety check: PassMIT
ToolJet Multi-Repo CommitToolJet/ToolJet41k—~1.3kAutomated safety check: PassAGPL-3.0
Git Workflow and Versioningaddyosmani/agent-skills104k2 repos~3.5kAutomated safety check: NotesMIT
React Router Pull Request Creatorremix-run/react-router57k—~2.5kAutomated safety check: PassMIT
Verdaccio Pull Request Workflowverdaccio/verdaccio18k—~1.9kAutomated safety check: PassMIT

Similar skills

  • React Router Release Notes Prep

    remix-run/react-router

    Polishes pending React Router change files before the versioning scripts run, and decides whether a long-form What's Changed section is warranted.

    57k GitHub stars~1.1k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Commits changes across ToolJet's root repo and its server/ee and frontend/ee submodules, writing messages from the diffs and updating submodule pointers in order.

    41k GitHub stars~1.3k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Git Workflow and Versioning

    addyosmani/agent-skills

    Sets git habits for every change: short-lived branches, atomic commits with descriptive messages, clean pull requests, plus versioning, tagging and changelogs for releases.

    104k GitHub starsUsed in 2 repos~3.5k tokens
    DevelopmentAuto-check: notes
  • React Router Pull Request Creator

    remix-run/react-router

    Packages finished React Router work into a draft pull request: branch, commit, push, a written PR body and the right GitHub labels.

    57k GitHub stars~2.5k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Takes a change through a verdaccio pull request: branch, local checks, changeset, title and body, labels, CI and review rounds, and ports to other release lines.

    18k GitHub stars~1.9k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Commits changes in the Saleor codebase and works through pre-commit hook failures from ruff, mypy, the GraphQL schema check and the migrations check.

    23k GitHub stars~575 tokensUpdated yesterday
    DevelopmentAuto-check passed

More from jeremylongshore/tons-of-skills-marketplace

All 3,342 skills in this repo
  • Performing Security Code Review

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to conduct a security-focused code review using the security-agent plugin.

    2.8k GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check: notes
  • Adapting Transfer Learning Models

    jeremylongshore/tons-of-skills-marketplace

    Build this skill automates the adaptation of pre-trained machine learning models using transfer learning techniques.

    2.8k GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Agent Context Loader

    jeremylongshore/tons-of-skills-marketplace

    Execute proactive auto-loading: automatically detects and loads agents.md files.

    2.8k GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Aggregating Performance Metrics

    jeremylongshore/tons-of-skills-marketplace

    Aggregate and centralize performance metrics from applications, systems, databases, caches, and services.

    2.8k GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed
  • Analyzing Capacity Planning

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to analyze capacity requirements and plan for future growth.

    2.8k GitHub stars~947 tokensUpdated yesterday
    Auto-check passed
  • Analyzing Database Indexes

    jeremylongshore/tons-of-skills-marketplace

    Process use when you need to work with database indexing. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~2k tokensUpdated yesterday
    Auto-check passed

Works with

Categories

Questions about Generating Smart Commits

What does Generating Smart Commits do?

Execute use when generating conventional commit messages from staged git changes. Generating Smart Commits is an agent skill from jeremylongshore/tons-of-skills-marketplace. Execute use when generating conventional commit messages from staged git changes.

When should I use Generating Smart Commits?

Generating Smart Commits fits situations like: generating conventional commit messages from staged git changes; with phrases like create commit message; generate smart commit.

How do I install Generating Smart Commits in Claude Code?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill generating-smart-commits -a claude-code`. Or copy the skill folder (skills/.curated/generating-smart-commits in jeremylongshore/tons-of-skills-marketplace) into .claude/skills/generating-smart-commits in your project. Claude Code loads it when a task matches its description.

How do I install Generating Smart Commits in Codex?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill generating-smart-commits -a codex`. Or copy the skill folder (skills/.curated/generating-smart-commits in jeremylongshore/tons-of-skills-marketplace) into .agents/skills/generating-smart-commits in your project. Codex loads it when a task matches its description.

Can I use Generating 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 jeremylongshore/tons-of-skills-marketplace --skill generating-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/generating-smart-commits, .gemini/skills/generating-smart-commits, .github/skills/generating-smart-commits and .opencode/skills/generating-smart-commits in your project.

What does Generating Smart Commits need to run?

Going by SKILL.md and its folder, Generating Smart Commits needs Python for the scripts in its folder and the command-line tools its instructions call (git). Our summary lists: Python 3. Its frontmatter pre-approves these tools: Read, Write, Edit, Grep, Glob, Bash(git:*). Compatibility (from SKILL.md): Designed for Claude Code.

Does Generating Smart Commits access the network?

SKILL.md names 3 domains. As links in the text: conventionalcommits.org, github.com and cbea.ms. This is read from the text; nothing was executed.

Is Generating 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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Generating Smart Commits use?

Generating Smart Commits is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Generating Smart Commits use?

About 1k tokens (SKILL.md is roughly 4.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 15 tokens, read only when the agent opens those files.

What are the alternatives to Generating Smart Commits?

Skills that share tags, products or a category with Generating Smart Commits: React Router Release Notes Prep (remix-run/react-router, 57k stars), ToolJet Multi-Repo Commit (ToolJet/ToolJet, 41k stars), Git Workflow and Versioning (addyosmani/agent-skills, 104k stars) and React Router Pull Request Creator (remix-run/react-router, 57k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Generating Smart Commits?

jeremylongshore (a GitHub user) maintains it in jeremylongshore/tons-of-skills-marketplace, which has 2,827 GitHub stars. The repository holds 3,342 skills in this directory. The repository was last updated on October 10, 2026.

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