Conventional Commit message writer from the staged diff

Summarizes only what is staged and drafts a Conventional Commit message in English or Japanese that matches the repository's existing style. Warns about staged secrets.

ClaudeHermes AgentCodexCursorMIT (modify, redistribute and use commercially)Python

What it does

Writes an accurate commit message for exactly what is staged.

  • The bundled script summarizes git diff --cached: files, added/deleted lines, file kinds (code, test, docs, build, CI, binary), scope candidates and renames
  • Reads the last 15 commit subjects to match the repository's style: Conventional Commits or not, Japanese or English, scope names already in use
  • Warns about staged .env files, private keys, and added lines that look like tokens or passwords
  • Suggests splitting the commit when code changes span 3 or more areas
  • Marks breaking changes with ! and a BREAKING CHANGE: footer

How to use

python scripts/staged_summary.py --repo .

Then ask the agent to write a commit message for the staged changes. Works with Claude, Codex, Hermes Agent and Cursor. The agent runs git commit -F only when you ask it to commit.

Requirements

  • Python 3 (standard library only)
  • Git

Caveats

  • The script is read-only; it never stages or commits.
  • If nothing is staged, the agent asks instead of staging on its own.
  • The type hint comes from file names only; the final type is decided from the diff itself.
  • Secret detection uses simple patterns and will not catch everything.

How to install

  1. Unzip the downloaded file (it contains a git-commit-message-writer/ folder with SKILL.md).
  2. Copy the whole folder into your agent's skills folder.
    • Claude: ~/.claude/skills/ (per project: .claude/skills/)
    • Hermes Agent: ~/.hermes/skills/
    • Codex: ~/.agents/skills/ / Cursor: ~/.cursor/skills/
    • Claude app (claude.ai): upload the ZIP in Customize → Skills
  3. Restart the agent and check that the skill appears in its skill list.

Step-by-step install for Windows / Mac and each agent

Seller

AI Skill Market (official)

44 published skills

Seller profile and all skills