Skip to content

Instantly share code, notes, and snippets.

@kidroca
Last active April 15, 2026 12:35
Show Gist options
  • Select an option

  • Save kidroca/851ee5774963d7fe606f8c26edec7837 to your computer and use it in GitHub Desktop.

Select an option

Save kidroca/851ee5774963d7fe606f8c26edec7837 to your computer and use it in GitHub Desktop.
My AI Commits prompt template (InteliJ | Webstorm) (Emoji + Conventional commits and some custom instructions)

Commit Conventions

Format

type(scope): emoji summary
  • type — what kind of change (see table below)
  • scope — optional; the module/concept being changed, not the file path; use a slash to orient in the big picture (e.g. auth/oauth, api/users, payment/webhook); omit when the change is truly global or scope would be redundant
  • emoji — paired with type (see table); pick the one that best fits the specific change
  • summary — imperative mood: "Add X", not "Added X"; no period at the end

Title

Aim for readable at a glance. No hard character limit — just don't ramble.

Body (optional)

Include when the why or how isn't obvious from the title. Skip it for self-evident changes.

Focus on what changed technically and why. Don't frame it as UX wins, DX improvements, or code quality gains — unless that is the change (e.g. a perf commit).

Types & Emoji

Type Emojis Use for
feat New functionality
fix ️🛠️ Bug fixes
refactor ♻️ Restructuring, no behavior change
perf ⚡ ️ Performance improvements
test Adding or updating tests
docs 📝 Documentation only
security 🔐 ️ Security-related changes
chore ⚙️ Maintenance, tooling, config, deps

Examples

feat(auth/oauth): ✨ Add PKCE flow for mobile clients

Implements RFC 7636 code challenge/verifier. Previous implicit flow left in place
behind a feature flag pending client migration.
fix(api/users):  Handle missing profile fields gracefully
chore(deps):  Add zod for runtime schema validation
refactor(payment/webhook): ♻️ Extract Stripe handler into service layer

{Use this hint to improve the commit message: $hint}


{diff}

@kidroca

kidroca commented Jul 25, 2024

Copy link
Copy Markdown
Author

Works good with gpt-4o, ok with gpt-4o-mini and llama3.1. Not so good with phi3:mini

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment