CommunityCoding & Developmentgithub.com

conventional-commit-writer

Analyze staged or unstaged git changes and write concise, accurate Conventional Commits messages (`feat:`, `fix:`, `docs:`, `refactor:`, `chore:`, `feat!:`) ready for automated CHANGELOG.md generation and SemVer releases. Use when preparing git commits, reviewing diffs before committing, or standardizing commit history.

What is conventional-commit-writer?

conventional-commit-writer is a Claude Code agent skill that analyze staged or unstaged git changes and write concise, accurate Conventional Commits messages (`feat:`, `fix:`, `docs:`, `refactor:`, `chore:`, `feat!:`) ready for automated CHANGELOG.md generation and SemVer releases. Use when preparing git commits, reviewing diffs before committing, or standardizing commit history.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/imadegunawinangun/conventional-commit-writer/tree/HEAD

Installed? Explore more Coding & Development skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Conventional Commit Writer

Use this skill whenever the user asks to write, review, or execute a git commit message based on actual code changes.

Workflow

  1. Inspect the real diff first:

    • Check git status and git diff --staged. If nothing is staged, inspect git diff and untracked files (git status --short), and ask or clarify if only specific files should be staged.
    • Never guess changes from file names alone; read the actual hunks so the commit message reflects what changed and why.
  2. Choose the right Conventional Commit type:

    • feat: new user-facing or API capability (MINOR bump).
    • fix: bug fix or error handling repair (PATCH bump).
    • docs: documentation-only changes (README.md, CHANGELOG.md, comments).
    • refactor: code restructuring with no behavior change.
    • perf: measurable performance improvement.
    • test: adding or updating tests.
    • ci: CI/CD workflow changes (.github/workflows/*).
    • chore: build, tooling, dependencies, or maintenance tasks.
    • Add ! after type/scope (e.g., feat!: ...) and a BREAKING CHANGE: footer if backward compatibility is broken (MAJOR bump).
  3. Format the commit message:

    • Subject line: <type>(<optional-scope>): <imperative summary> (keep under 72 characters, no trailing period).
    • Write in the language preferred by the repository/user (English or Indonesian consistently).
    • Focus on impact and intent rather than listing filenames (e.g., fix(gateway): handle Weaviate timeout gracefully instead of update pipeline.ts).
    • Add a short bulleted body only when the why or multi-part context is not obvious from the subject line.
    • Preserve any required repository trailers (such as Co-authored-by: if configured).
  4. Handle multi-concern diffs:

    • If the diff mixes unrelated changes (e.g., a bug fix + a new feature + unrelated docs), recommend splitting into separate atomic commits so commit-and-tag-version generates a clean CHANGELOG.md.
  5. Verify before finalizing:

    • Confirm the subject matches ^(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)(\([a-z0-9-]+\))?!?: .+.
    • Never run git commit or git push without explicit user intent or approval for the commit/push action.

Related Skills