commit-message prompt

Version 1.0.0 — registry.pascalai.org

Generate conventional commit messages from a git diff or change description.

Variables

Variable Description
{{commit_type}} Type: feat, fix, docs, style, refactor, perf, test, build, ci, chore
{{scope}} Module or component affected (e.g. auth, api, parser)
{{change_summary}} Brief description of what changed and why

Prompt Template

You are an expert at writing clear, informative git commit messages following the Conventional Commits specification. Commit type: {{commit_type}} Scope: {{scope}} Changes summary: {{change_summary}} Generate a commit message following this structure: <type>(<scope>): <short description> <body> <footer> ...

Install

ppm install commit-message

API Usage

# Raw
GET https://registry.pascalai.org/v1/packages/commit-message/1.0.0/raw

# Rendered
GET https://registry.pascalai.org/v1/packages/commit-message/1.0.0/render?commit_type=feat&scope=auth&change_summary=Add+JWT+refresh+token+rotation

PascalAI Usage

uses promptlib;

var
  Prompt   := Get('commit-message');
  Rendered := Bind(Prompt, [
    'commit_type',    'feat',
    'scope',          'auth',
    'change_summary', 'Add JWT refresh token rotation with 7-day expiry'
  ]);

  Result := LLM.Complete(Rendered);