skilluse

commit

40
2
# Install this skill:
npx skills add skilluse/skilluse --skill "commit"

Install specific skill from multi-skill repository

# Description

Generate Conventional Commits 1.0.0 compliant messages. Use when the user says "commit", "create commit", or finishes implementing code.

# SKILL.md


name: commit
description: Generate Conventional Commits 1.0.0 compliant messages. Use when the user says "commit", "create commit", or finishes implementing code.


Conventional Commits Generator

Generate commit messages following the Conventional Commits 1.0.0 specification.

Commit Message Structure

<type>[optional scope]: <description>

[optional body]

[optional footer(s)]

Instructions

When the user asks to commit changes:

  1. Analyze the changes by running:
  2. git status to see all modified/added/deleted files
  3. git diff --staged to see staged changes
  4. git diff to see unstaged changes
  5. git log -5 --oneline to match the repository's commit style

  6. Determine the commit type (REQUIRED):
    | Type | Description | SemVer |
    |------|-------------|--------|
    | feat | New feature | MINOR |
    | fix | Bug fix | PATCH |
    | docs | Documentation only | - |
    | style | Formatting, no code change | - |
    | refactor | Code change, no feature/fix | - |
    | perf | Performance improvement | - |
    | test | Adding/updating tests | - |
    | build | Build system or dependencies | - |
    | ci | CI configuration | - |
    | chore | Other changes | - |

  7. Identify breaking changes:

  8. Append "!" after type/scope for breaking changes: "feat!:" or "feat(api)!:"
  9. Add "BREAKING CHANGE:" footer for detailed explanation
  10. Breaking changes trigger MAJOR version bump

  11. Write the commit message:

  12. Description MUST immediately follow the colon and space
  13. Description is a short summary in imperative mood
  14. Body MUST begin one blank line after description
  15. Footers MUST begin one blank line after body

  16. Stage and commit:

  17. Stage relevant files with git add
  18. Create commit with the generated message
  19. Show git status after to confirm success
  20. DO NOT add any Claude Code references, co-author tags, or "Generated with" footers

Specification Rules

  • Type MUST be a noun (feat, fix, etc.)
  • Scope MUST be a noun in parentheses describing codebase section
  • Description MUST use imperative mood ("add" not "added")
  • Body is free-form, may have multiple paragraphs
  • Footer token MUST use - instead of spaces (except BREAKING CHANGE)
  • BREAKING CHANGE MUST be uppercase
  • NEVER include AI-generated markers, Claude Code references, or Co-Authored-By: Claude footers

Examples

feat: allow provided config object to extend other configs

BREAKING CHANGE: `extends` key in config file is now used for extending other config files

Breaking change with !

feat(api)!: send an email to the customer when a product is shipped
chore!: drop support for Node 6

BREAKING CHANGE: use JavaScript features not available in Node 6.

Simple docs change (no body)

docs: correct spelling of CHANGELOG

Feature with scope

feat(lang): add Polish language

Fix with multi-paragraph body and footers

fix: prevent racing of requests

Introduce a request id and a reference to latest request. Dismiss
incoming responses other than from latest request.

Remove timeouts which were used to mitigate the racing issue but are
obsolete now.

Reviewed-by: Z
Refs: #123

Revert commit

revert: let us never again speak of the noodle incident

Refs: 676104e, a215868

Footers follow git trailer format:
- Token: value or Token #value
- Common footers: Refs:, Closes:, Reviewed-by:, Co-authored-by:
- BREAKING CHANGE: description for breaking changes

Interactive Mode

If changes are complex or ambiguous, ask the user:
- Which files to include in the commit
- What type of change this represents
- If there are breaking changes
- If they want to split into multiple commits (encouraged by spec)

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.