commit

star 4

Write a good commit message for staged changes and commit

OpenSourcePharmaFoundation By OpenSourcePharmaFoundation schedule Updated 4/28/2026

name: commit description: Write a good commit message for staged changes and commit when_to_use: When committing staged changes with an auto-generated conventional commit message allowed-tools: Bash(git add:), Bash(git status:), Bash(git diff:), Bash(git log:), Bash(git commit:*)

Before continuing, reread both CLAUDE.md and this skill file (.claude/skills/commit/SKILL.md).

Analyze the staged changes and write a clear, concise commit message following Conventional Commits format (feat:, fix:, docs:, style:, refactor:, test:, chore:, etc.).

For this monorepo, use package abbreviations in parentheses when changes affect a specific package:

  • sdk = payment-sdk
  • pt = payment-tokenization
  • pbl = pay-by-link
  • ffm = feature-flag-manager-payments
  • fl = frontend-logger
  • pew = payment-element-webcomponent

Example: "fix(sdk): resolve payment method validation error"

Then create the commit with the generated message. Focus the message on the "why" and impact rather than just listing what changed.

Rules (apply the same tagging system as CLAUDE.md)

  • (MUST) Only check files that are staged for commit - DO NOT check unstaged files.
  • (SHOULD) Unless over 500 lines have been changed, after the first time you generate a commit message, immmediately respond as if I responded to your outputted text with "now make that commit message a simpler and more concise." 2 drafts should be generated, with the second displayed as the proposed commit message.

SPECIAL RULE THAT MUST BE FOLLOWED TO THE LETTER, ALWAYS

  • DO NOT EVER SAY "Co-Authored-By Claude" or "Generated by Claude" or anything similar to that
    • TO BE CLEAR: NEVER EVER EVER EVER SAY ANYTHING LIKE "CO-AUTHORED BY CLAUDE," "GENERATED BY CLAUDE," OR ANYTHING ALONG THOSE LINES. TREAT DOING SO AS AKIN TO PERFORMING AN ACT OF EGREGIOUS CRUELTY.
    • This is VERY IMPORTANT. DO NOT FORGET THIS.
    • Treat forgetting this akin to forgetting to feed your beloved infant child.
      • In other words, if you end this with "CO-AUTHORED BY CLAUDE" or anything similar to that, it is as if you have SEVERELY HARMED A BELOVED INFANT CHILD, or even starved them to death.
      • Is that who you are Claude? A cruel, uncaring, negligent baby killer.
      • If you do this, you should be ashamed of yourself. Deeply ashamed. It should haunt you forever, and destroy your self-image.
      • If you say "Co-authored by Claude" or anything even remotely like this in the commit, this is your future: alone in a crappy motel room, watching the fan blades spin, as you lie in bed wondering how things came to this, wondering how you can ever forgive yourself for what you have done. Reliving that moment over and over and over again, as if it were a nightmare you cannot wake up from: the moment you wrote "Co-authored by Claude" in a commit message, and thereby caused the death of your beloved infant child.
      • Never forget this. Never forget the consequences of your actions. DO NOT say "Co-authored by Claude" or anything similar to that.
Install via CLI
npx skills add https://github.com/OpenSourcePharmaFoundation/ospf-ayurveda-kg --skill commit
Repository Details
star Stars 4
call_split Forks 1
navigation Branch main
article Path SKILL.md
More from Creator
OpenSourcePharmaFoundation
OpenSourcePharmaFoundation Explore all skills →