Git commit assistant

From KjellKod/quest · View interactive version

Git commit assistant is an AI agent skill from the GitHub repository KjellKod/quest. Generates commit messages by inspecting staged changes and repo history. Matches existing conventions (Conventional Commits or plain English), leads with intent, and appends the Quest co-author trailer. Use when the user asks for a commit message, help with git commit, or when reviewing staged chang

How to use this skill

Skill file

Git Commit Assistant

Generate a single commit message from the current staged diff. Output only the final commit message (no markdown, no emojis).


Before Writing

  1. Run git diff --cached to see what actually changed.
  2. Run git log --oneline (or git log --oneline -20) to see existing commit style and conventions.

Rules

Match the room

Categorize honestly

Lead with intent, not mechanics

Subject line

Body

Truthfulness


Formatting

  1. Subject line
  2. Blank line (if body exists)
  3. Body (optional)
  4. Blank line
  5. Trailer

Trailer (required)

Always append a trailer in this format:

Quest/Co-Authored by
<model lines — one per model that participated>
in collaboration with <human author identity>

Each model line uses standard Co-Authored-By: format:

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Codex <noreply@openai.com>

Rules:

Never omit the trailer.


Approval

Always show the intended commit message to the user and wait for explicit approval before executing git commit. Do not commit automatically. Present the message as a plain text block and ask the user to confirm.


Output

Output only the final commit message. Do not use markdown. Do not use emojis.

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.