Agent skill

Commit

by LennartHennigs in LennartHennigs/Button2

Stage and commit current changes for Button2 — checks for needed CHANGELOG/README/CLAUDE.md updates, creates a branch if on master, writes a commit message, and commits

MITAuto-check passedDevelopment

Install Commit

skills CLI
$ npx skills add LennartHennigs/Button2 --skill commit -a claude-code

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

GitHub CLI
$ gh skill install LennartHennigs/Button2 commit --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/LennartHennigs/Button2.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/commit .claude/skills/commit && 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
commit
GitHub stars
565
Token cost
~562 tokens
SKILL.md length
272 words
Files
1
Skills in repo
4
Repo updated
First seen
Licence
MIT

At a glance

Stage and commit current changes for Button2 — checks for needed CHANGELOG/README/CLAUDE.md updates, creates a branch if on master, writes a commit message, and commits

  • Works in 6 steps: Understand what changed → Branch check → Check CHANGELOG → …
  • Tasks that involve Commit messages
  • SKILL.md covers Step 1: Understand what changed, Step 2: Branch check, Step 3: Check CHANGELOG and Step 4: Check README, plus 2 more sections
  • Calls git

What it does

Commit is an agent skill from LennartHennigs/Button2. Stage and commit current changes for Button2 — checks for needed CHANGELOG/README/CLAUDE.md updates, creates a branch if on master, writes a commit message, and commits

Its SKILL.md is about 560 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Commit messages, Changelog and release notes and Agent instruction files. It works with Git. The repository describes itself as: Arduino/ESP button library that provides callback functions to track single, double, triple and long clicks. It also takes care of debouncing. The licence is MIT.

When your agent uses it

  • Tasks that involve Commit messages
  • Tasks that involve Changelog and release notes
  • Tasks that involve Agent instruction files

Example prompts

  • “/commit”

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Understand what changed
  2. Branch check
  3. Check CHANGELOG
  4. Check README
  5. Check CLAUDE.md
  6. Stage and commit

What it can do on your machine

Read from SKILL.md and the folder at commit 2f8ba6a. 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

Commit loads about 562 tokens when it runs. Until then it costs about 44 tokens; SKILL.md has 272 words of instructions outside code blocks.

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

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

The full file from LennartHennigs/Button2 at commit 2f8ba6a, republished under its MIT licence (© LennartHennigs). 272 words, ~562 tokens.

Download SKILL.mdSave it as .claude/skills/commit/SKILL.md (or your agent's skills folder).
name
commit
description
Stage and commit current changes for Button2 — checks for needed CHANGELOG/README/CLAUDE.md updates, creates a branch if on master, writes a commit message, and commits

Commit the current working changes. Follow these steps:

Step 1: Understand what changed

Run git diff --stat and git status to see what files are modified or untracked. Read the diffs for any changed source files (src/, test/, examples/) to understand the nature of the changes.

Step 2: Branch check

Run git branch --show-current. If on master or main:

  • Infer a short branch name from the changes (e.g. fix/was-pressed-for, feat/new-callback, docs/readme-update)
  • Run git checkout -b <branch-name>
  • Tell the user which branch was created

Step 3: Check CHANGELOG

If any source files (src/, test/, examples/) changed, check whether CHANGELOG.md's ## Unreleased section already documents those changes. If not, add the missing entries following the established format:

  • **Fixed (Issue #N)**: ... for bug fixes
  • **Added**: ... for new API or features
  • **Changed**: ... for behavioral changes
  • **Internal**: ... for refactors, test additions, infra with no user-visible effect

Skip changelog update for whitespace-only, comment, or docs-only changes.

Step 4: Check README

If public API changed (new/removed/renamed functions in src/Button2.h), check whether README.md reflects the change. If not, update the relevant section. Skip for internal or test-only changes.

Step 5: Check CLAUDE.md

If a non-obvious pattern, gotcha, or invariant was introduced that future sessions should know about, add a concise note to CLAUDE.md. Do not add obvious or one-off information.

Step 6: Stage and commit

Stage all relevant files:

bash
git add <changed source files> CHANGELOG.md  # plus README.md / CLAUDE.md if updated

Write a conventional commit message:

  • fix: for bug fixes
  • feat: for new features
  • test: for test-only changes
  • docs: for documentation only
  • chore: for tooling, config, infra

Keep the subject line under 72 characters. Add a short body if the why isn't obvious from the subject.

Run git commit -m "..." and confirm success.

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

Files

Just SKILL.md in .claude/skills/commit of LennartHennigs/Button2.

Open the folder on GitHubat commit 2f8ba6a

Compare with similar skills

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

Commit compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Commit this skillLennartHennigs/Button2565—~562Automated safety check: PassMIT
CommitLennartHennigs/ESPRotary188—~590Automated safety check: PassMIT
Proseploxc/modbux108—~2.1kAutomated safety check: PassMIT
Fantasia Final Cleanupvishiri/fantasia-archive409—~1.2kAutomated safety check: PassGPL-3.0
Sync Docsayutaz/piper-plus218—~1.4kAutomated safety check: PassMIT
React Router Release Notes Prepremix-run/react-router57k—~1.1kAutomated safety check: PassMIT

Similar skills

  • Commit

    LennartHennigs/ESPRotary

    Stage and commit current changes for ESPRotary — checks for needed CHANGELOG/README/CLAUDE.md updates, creates a branch if on master, writes a commit message, and commits

    188 GitHub stars~590 tokensUpdated 2 mo ago
    DevelopmentAuto-check passed
  • Prose

    ploxc/modbux

    Measure a sentence you just wrote against the thing it describes, then prune the block it lands in.

    108 GitHub stars~2.1k tokensUpdated today
    DevelopmentAuto-check passed
  • Fantasia Final Cleanup

    vishiri/fantasia-archive

    End-of-batch ship workflow for Fantasia Archive: run full yarn testbatch:verify (not dev scoped gate), fix failures, sync README/AGENTS/rules/skills from Git changes, update in-app changelog, split…

    409 GitHub stars~1.2k tokensUpdated 5 days ago
    DevelopmentAuto-check passed
  • Sync Docs

    ayutaz/piper-plus

    コミット前にエージェントチームで全ドキュメント (CLAUDE.md / README / CHANGELOG / docs/) を監査し、コード変更に応じて自動更新します。大規模変更時の documentation drift を予防。

    218 GitHub stars~1.4k tokensUpdated today
    DevelopmentAuto-check passed
  • 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 today
    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.

    102k GitHub starsUsed in 2 repos~3.5k tokens
    DevelopmentAuto-check: notes

More from LennartHennigs/Button2

  • Release

    LennartHennigs/Button2

    Cut a new Button2 release — suggests version bump based on change type, updates version files and CHANGELOG, commits, tags, pushes, creates a GitHub release, and publishes to PlatformIO

    565 GitHub stars~519 tokensUpdated 4 mo ago
    Auto-check passed
  • Readme

    LennartHennigs/Button2

    Audit README.md against the current Button2 API and recent CHANGELOG entries, then apply any needed updates

    565 GitHub stars~372 tokensUpdated 4 mo ago
    Auto-check passed
  • Compile

    LennartHennigs/Button2

    Compile Button2 examples across Arduino platforms using arduino-cli and PlatformIO.

    565 GitHub stars~221 tokensUpdated 4 mo ago
    Auto-check passed

Works with

Categories

Questions about Commit

What does Commit do?

Stage and commit current changes for Button2 — checks for needed CHANGELOG/README/CLAUDE.md updates, creates a branch if on master, writes a commit message, and commits. Commit is an agent skill from LennartHennigs/Button2.

When should I use Commit?

Commit fits situations like: tasks that involve Commit messages; tasks that involve Changelog and release notes; tasks that involve Agent instruction files.

How do I install Commit in Claude Code?

Run `npx skills add LennartHennigs/Button2 --skill commit -a claude-code`. Or copy the skill folder (.claude/skills/commit in LennartHennigs/Button2) into .claude/skills/commit in your project. Claude Code loads it when a task matches its description.

How do I install Commit in Codex?

Run `npx skills add LennartHennigs/Button2 --skill commit -a codex`. Or copy the skill folder (.claude/skills/commit in LennartHennigs/Button2) into .agents/skills/commit in your project. Codex loads it when a task matches its description.

Can I use Commit 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 LennartHennigs/Button2 --skill commit -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/commit, .gemini/skills/commit, .github/skills/commit and .opencode/skills/commit in your project.

What does Commit need to run?

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

Does Commit 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 Commit 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 Commit use?

Commit is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Commit use?

About 562 tokens (SKILL.md is roughly 2.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 Commit?

Skills that share tags, products or a category with Commit: Commit (LennartHennigs/ESPRotary, 188 stars), Prose (ploxc/modbux, 108 stars), Fantasia Final Cleanup (vishiri/fantasia-archive, 409 stars) and Sync Docs (ayutaz/piper-plus, 218 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Commit?

LennartHennigs (a GitHub user) maintains it in LennartHennigs/Button2, which has 565 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on June 6, 2026.

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