Logo di Commit Message Writing

Commit Message Writing

Organizzazione
shopwareLabs
commit-message-writing

Use this skill when the user explicitly asks to generate, write, draft, or create a commit message, squash commit, commit title, or merge commit message for the Shopware core repository (shopware/shopware). Supports two modes — full commit messages (title + body) for branch commits, and squash merge titles (title-only) for trunk merges — the skill auto-detects which based on the current branch and PR target. Analyzes diffs, infers scope from Shopware's directory structure, and detects breaking changes. Do NOT activate during implementation work or when the user is still writing code; only when they are ready to capture a finished change. For commit messages in the ai-coding-tools marketplace repo itself, use the commit-message-generating skill instead.

Panoramica

AutoreshopwareLabs
Repositoryai-coding-tools
Nome della skillcommit-message-writing
Stelle
45
Fork
7
File inclusi
3
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • 3 file inclusi

    Script, modelli di documento e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da shopwareLabs su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Commit Message Writing in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/shopwareLabs/ai-coding-tools/tree/main/plugins/contributor-writing/skills/commit-message-writing
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/shopwareLabs/ai-coding-tools.git /tmp/ai-coding-tools
mkdir -p .claude/skills
cp -r /tmp/ai-coding-tools/plugins/contributor-writing/skills/commit-message-writing .claude/skills/commit-message-writing
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Commit Message Writing in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Commit Message Writing non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Commit Message Writing non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Commit Message Generation

Generate conventional commit messages for Shopware core. Squash merge titles (title-only) for trunk merges and full commit messages (title + body) for branch work.

Output scope: Presents formatted commit message text. Does not create commits, write files, or modify git state.

Phase 1 — Detect Mode and Gather Context

Determine what we're generating — a squash merge title or a branch commit message.

  1. Parse user input:
    • Commit ref provided (SHA, HEAD, HEAD~3, etc.) -> branch mode, resolve to SHA
    • Branch ref, "squash", "current branch", or "merge commit" -> squash mode
    • Nothing specific -> branch mode, use HEAD
  2. Gather the diff:
    • Branch mode: git show <sha> --name-status --format='' and git show <sha> --format=''
    • Squash mode: Continue to step 3
  3. Squash mode only — detect base branch: Load references/branch-and-pr-detection.md and execute Steps 1-4. Route as commit-message-writing.
  4. Squash mode only — get branch diff:
    • git diff <base>...HEAD --stat and git diff <base>...HEAD
    • git log <base>..HEAD --oneline

Phase 2 — Analyze and Generate

Type Detection

Analyze the diff to determine the commit type. Priority-ordered decision tree:

  1. Revert commit? -> revert
  2. Only docs (*.md, docblocks, inline comments)? -> docs
  3. Only formatting/whitespace changes? -> style
  4. Only test files? -> test
  5. Only build/dependency files (composer.json, package.json, Dockerfile)? -> build
  6. Only CI config (.github/workflows/, .gitlab-ci.yml)? -> ci
  7. Adds new user-facing functionality? -> feat
  8. Fixes broken behavior? -> fix
  9. Performance improvement (caching, query optimization, reduced allocations)? -> perf
  10. Code restructuring without behavior change? -> refactor
  11. Otherwise -> chore

When ambiguous (e.g., both feat and fix equally present), ask the user:

AskUserQuestion(
  question="This branch contains both new functionality and bug fixes. Which type best represents the primary purpose?",
  options=[
    {label: "feat", description: "The main goal is new functionality"},
    {label: "fix", description: "The main goal is correcting broken behavior"}
  ]
)

Scope Detection

Delegate to references/scope-inference.md. Pass the list of changed file paths and the base branch (for commit history lookup in squash mode) or HEAD~20 (for branch mode).

Breaking Change Detection

Scan the diff for breaking changes:

  • API signature changes (required parameters added, removed, or reordered)
  • Public methods or classes removed or renamed
  • Return types changed on public methods
  • Database schema breaking changes (column removal, type change)
  • Default behavior changed in ways that affect existing callers

If detected, add the ! marker after scope in the output.

Subject

Craft the subject line. Apply references/writing-rules.md.

  • Imperative mood, lowercase, no period, max 72 characters total
  • Informed by the diff (truth) and commit messages (intent context, squash mode only)
  • Specific: name the component and behavior, not abstract descriptions
  • No PR number (GitHub adds it during squash merge)
  • No AI/tool attribution

Body (Branch Mode Only)

Craft the body. Apply references/writing-rules.md.

  • WHY-not-WHAT: explain motivation, root cause, trade-offs
  • Blank line between subject and body
  • Single continuous lines per paragraph (no hard-wrapping)
  • Concrete: class names, config keys, method signatures
  • If breaking: include BREAKING CHANGE: footer with brief description

Phase 3 — Validate and Present

Before presenting, validate the generated message against references/writing-rules.md:

  1. Em dash check: Literally search the generated text for — and –. Replace any found.
  2. Banned vocabulary: Scan for words from the banned list. Replace with plain alternatives.
  3. Subject rules: Verify imperative mood, lowercase, no period, within 72 characters, no attribution.
  4. Body rules (branch mode): Verify WHY-not-WHAT, no diff restatement, concrete specifics.

Squash mode:

type(scope): subject

Branch mode:

type(scope): subject

Body explaining why this change was made.

Or with breaking change:

type(scope)!: subject

Body explaining why this change was made.

BREAKING CHANGE: brief description of what breaks.

After the message, show brief reasoning (one line each):

  • Type: feat — adds new maxLength parameter to attribute entity fields
  • Scope: dal — all changes within DataAbstractionLayer, matches trunk history

Done. No file writes, no git operations beyond read-only commands.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Commit Message Writing?

Use this skill when the user explicitly asks to generate, write, draft, or create a commit message, squash commit, commit title, or merge commit message for the Shopware core repository (shopware/shopware). Supports two modes — full commit messages (title + body) for branch commits, and squash merge titles (title-only) for trunk merges — the skill auto-detects which based on the current branch and PR target. Analyzes diffs, infers scope from Shopware's directory structure, and detects breaking changes. Do NOT activate during implementation work or when the user is still writing code; only w...

Perché usare Commit Message Writing su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Commit Message Writing è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Commit Message Writing in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/shopwareLabs/ai-coding-tools/tree/main/plugins/contributor-writing/skills/commit-message-writing. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Commit Message Writing?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Commit Message Writing?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Commit Message Writing: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Commit Message Writing è gratuita?

Sì. È pubblicata su GitHub da shopwareLabs con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇