Commit

From SeloraHomes/ha-selora-ai · View interactive version

Commit is an AI agent skill from the GitHub repository SeloraHomes/ha-selora-ai. Create a git commit following the project's conventional commit rules

How to use this skill

Skill file

Commit

Create a git commit for staged and unstaged changes.

Commit message format

This project uses commitlint with @commitlint/config-conventional, enforced by a lefthook commit-msg hook.

Rules:

Choosing the right commit type

This project uses semantic-release. Some types trigger a release (new version published to users), others do not. Choose carefully — a wrong type means an unnecessary release.

Release-triggering types — only use when the change is meaningful to end users:

Non-release types — use for everything else:

Rule of thumb: if the change doesn't affect what end users experience when running the integration, it should NOT trigger a release. Use chore:, docs:, style:, test:, ci:, or build: instead.

Examples:

Steps

  1. Run git status and git diff to review all changes
  2. Run git log --oneline -5 to match the existing commit style
  3. Draft a commit message following the rules above — count characters to ensure the subject line fits within 50
  4. Stage relevant files by name (avoid git add -A)
  5. Commit with the message using a HEREDOC
  6. If the commit-msg hook fails, fix the message and create a new commit (do not amend)
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.