commit

Create Conventional Commits messages from session context and git diffs.

Updated May 3, 2026
One-click install
npx skills add https://github.com/david-nossebro/agent-commons --skill commit-david-nossebro
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit
Source: https://github.com/david-nossebro/agent-commons/tree/main/shared/skills/commit
Command: npx skills add https://github.com/david-nossebro/agent-commons --skill commit-david-nossebro

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the problem of turning an active coding session into a clean, accurate git commit by inspecting what actually changed, choosing a conventional commit message, and committing safely.

Core Features & Use Cases

  • Session-aware review: checks the current conversation and any available session history to understand intent before drafting the commit message.
  • Repository-state inspection: verifies the real changes using git status --short and relevant diffs so the message matches the code.
  • Conventional commit message generation: produces an imperative, conventional commit header with appropriate type/scope and optional body/footers when needed.
  • Safe execution workflow: stages everything with git add -A and creates a commit unless a real blocker or no-changes condition applies; reports the resulting commit header and summary.

Quick Start

Ask the AI to commit the current work with a best-practice Conventional Commits message after reviewing the session context and the repo diffs.

Frequently Asked Questions about commit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a conventional commit message from my git diff?

To generate a conventional commit message from a git diff, the workflow analyzes repository changes and session context to produce an imperative commit header with appropriate type and scope. It inspects the actual file diffs to ensure the message accurately reflects the staged updates.

Can I automatically stage all files and create a git commit in one step?

Yes, you can automatically stage all files and create a git commit in one step. The workflow executes git add -A to stage every update, analyzes the changes, generates a matching conventional commit message, and commits everything unless a real blocker or empty repository state prevents it.

What is the best way to write git commit messages that match my code changes?

The best way to write git commit messages that match your code changes is to inspect the repository state using git status and diff outputs. Reviewing the actual diffs alongside session context ensures the generated conventional commit message accurately represents the modified code.

Does automated commit generation work without manual staging beforehand?

Yes, automated commit generation works without manual staging beforehand. The workflow handles staging automatically by running git add -A across all updated files, inspecting the resulting diffs, and generating a conventional commit message before finalizing the git commit.

When should I avoid automated conventional commits?

You should avoid automated conventional commits when a real blocker exists in your repository or when no changes are present. The workflow safely aborts the commit process if it detects an empty staging area or encounters a blocking condition during the diff review.