commit

Solid

Use this skill when an agent needs to prepare a focused commit, follow repository commit-message conventions, write a clear commit message, and create the git commit cleanly.

Code & Development 16 stars 0 forks Updated today MIT

Install

View on GitHub

Quality Score: 80/100

Stars 20%
41
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Commit Skill Use this skill when the work is already implemented and the next step is to create a clean git commit. ## Goals - Keep the commit scoped to the intended change - Write a concise, descriptive commit message - Avoid including unrelated modified files ## Workflow 1. Inspect the working tree before committing. 2. Confirm which files belong to the requested change. 3. Detect the repository's commit-message rules and style. 4. Stage only the relevant files. 5. Write a commit message that follows the detected style and summarizes the user-visible change. 6. Create the commit without rewriting unrelated history. ## Commit Message Style Before writing the message, check for explicit rules in repository instructions such as `AGENTS.md`, `CONTRIBUTING.md`, `README.md`, pull request templates, package scripts, or commitlint configuration. Explicit project or user rules override history. If no explicit rule exists, inspect recent commits: ```bash git log --format=%s -n 20 git log --format=%B -n 5 ``` Use the dominant style from relevant recent history: - **Conventional commits:** use `type(scope): subject` or `type: subject` when recent history uses prefixes such as `feat:`, `fix:`, `docs:`, `chore:`, `ci:`, `refactor:`, or scoped variants. - **Simple subjects:** use a concise imperative subject such as `Update skill validation workflow` when history uses plain sentence-style commit subjects. - **Multiline commits:** include a blank line and body when ...

Details

Author
denysdovhan
Repository
denysdovhan/agents
Created
5 months ago
Last Updated
today
Language
Shell
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category