Git Commit Guidelines

VerifiedSafe

Format and create git commits by following repository conventions. Review repo state, stage only relevant files, and keep commits focused.

Sby Skills Guide Bot
DevelopmentBeginner
8/29/2026
Claude CodeCodexCursor
#git#commit-messages#version-control#workflow#release-management

Recommended for

Automated summary

Guides the creation of a git commit by inspecting repository state, staging only relevant files, and applying the project's commit message conventions.

Strengths

  • Always checks `git status`, `git diff`, and the last five commits first, which prevents blind commits.
  • Stages only files tied to the requested change and leaves out generated, untracked, or local-only artifacts.
  • Verifies whether a release intent is required for publishable packages, distinguishing published READMEs from repo-only Markdown.
  • Confirms the outcome with `git status --short` afterwards and forbids bypassing failing hooks.

Limitations

  • Relies on a repo-specific `.github/CONTRIBUTING.md#commit-messages` file; without it the message conventions are undefined.
  • Does not cover pushing, amending, or conflict resolution — pushing is explicitly out of scope.
  • The release-intent rule assumes a monorepo with publishable packages and does not map cleanly onto a simple project.
When to use it

Use it when a set of working-tree changes needs to become clean, convention-compliant commits.

When not to use it

Avoid it in repositories without contribution guidelines or commit conventions, or when the task is rewriting history or pushing to a remote.

Security analysis

Safe
Quality score88/100

The skill instructs standard git inspection and staging commands (status, diff, log, add) for creating focused commits. It explicitly prohibits pushing unless asked, avoiding empty commits, and bypassing hooks. There are no destructive, exfiltrating, or obfuscated actions.

No concerns found

How this analysis is made

Examples

Commit the current work
Commit the changes I just made with a proper commit message.
Scoped commit for one fix
Only commit the fix in packages/core — leave the other untracked files alone.
Check release intent before committing
Commit the README update and let me know if this package needs a release intent.

name: commit description: Commit message formatting and guidelines

Commit

Use this skill whenever the user asks you to create a git commit for the current work.

Instructions

  1. Review the current git state before committing:
    • git status
    • git diff
    • git log -5 --oneline
  2. Only stage files relevant to the requested change. Do not include unrelated untracked files, generated files, or likely-local artifacts.
  3. Read and follow .github/CONTRIBUTING.md#commit-messages. It is the source of truth for Ghost's commit conventions.
  4. For publishable packages, check whether a release intent is required. A package README.md is published and requires a release; repository-only Markdown such as AGENTS.md, CLAUDE.md, changelogs, and package-local docs/ does not.
  5. Run git status --short after committing and confirm the result.

Important

  • Do not push to remote unless the user explicitly asks
  • Keep commits focused and avoid bundling unrelated changes
  • If there are no relevant changes, do not create an empty commit
  • If hooks fail, fix the issue and create a new commit. Never bypass hooks.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/git-commit-guidelines-mte1liss/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/git-commit-guidelines-mte1liss' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/git-commit-guidelines-mte1liss/download' --output '.skill-downloads/git-commit-guidelines-mte1liss/SKILL.md.part' && mv '.skill-downloads/git-commit-guidelines-mte1liss/SKILL.md.part' '.skill-downloads/git-commit-guidelines-mte1liss/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/git-commit-guidelines-mte1liss/SKILL.md' && test -s '.skill-downloads/git-commit-guidelines-mte1liss/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/commit' && cp -R '.skill-downloads/git-commit-guidelines-mte1liss' '.claude/skills/commit'

Cursor
test -f '.skill-downloads/git-commit-guidelines-mte1liss/SKILL.md' && test -s '.skill-downloads/git-commit-guidelines-mte1liss/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/commit' && cp -R '.skill-downloads/git-commit-guidelines-mte1liss' '.cursor/skills/commit'

Codex
test -f '.skill-downloads/git-commit-guidelines-mte1liss/SKILL.md' && test -s '.skill-downloads/git-commit-guidelines-mte1liss/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/commit' && cp -R '.skill-downloads/git-commit-guidelines-mte1liss' '.agents/skills/commit'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/git-commit-guidelines-mte1liss'

openskills read 'git-commit-guidelines-mte1liss'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/git-commit-guidelines-mte1liss/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills