Logo vun Aipcc Commit Suggest

Aipcc Commit Suggest

Organisatioun
opendatahub-io
aipcc-commit-suggest

Generate AIPCC Commits style commit messages or summarize existing commits

Iwwersiicht

Editeuropendatahub-io
Repositoryai-helpers
Skill-Nummaipcc-commit-suggest
Stären
39
Forks
76
Matgeliwwert Fichieren
Nëmmen Instruktiounen
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Vum opendatahub-io op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Aipcc Commit Suggest an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/opendatahub-io/ai-helpers/tree/main/plugins/odh-git/skills/aipcc-commit-suggest
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/opendatahub-io/ai-helpers.git /tmp/ai-helpers
mkdir -p .claude/skills
cp -r /tmp/ai-helpers/plugins/odh-git/skills/aipcc-commit-suggest .claude/skills/aipcc-commit-suggest
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Aipcc Commit Suggest an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Aipcc Commit Suggest automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Aipcc Commit Suggest net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Name

odh-ai-helpers:aipcc-commit-suggest

Synopsis

/aipcc:commit-suggest       # Analyze staged changes
/aipcc:commit-suggest [N]     # Analyze last N commits (1-100)

Description

AI-powered command that analyzes code changes and generates commit messages following the project's AIPCC format requirements.

Modes:

  • Mode 1 (no argument) – Analyze staged changes (git add required)
  • Mode 2 (with N) – Analyze last N commits to rewrite (N=1) or summarize for squash (N≥2)

Use cases:

  • Create AIPCC-formatted commit messages
  • Improve or rewrite existing commits to meet project standards
  • Generate squash messages for MR merges

Difference from /git:summary – That command is read-only, while aipcc:commit-suggest generates actionable commit message suggestions for user review and manual use.

Implementation

The command operates in two modes based on input:

Mode 1 (no argument):

  1. Collect staged changes via git diff --cached
  2. Analyze file paths and code content to determine appropriate AIPCC ticket reference
  3. Generate 3 AIPCC-formatted commit message suggestions (Recommended, Standard, Minimal)
  4. Display formatted suggestions and prompt user for selection
    • Ask: "Which suggestion would you like to use? (1/2/3 or skip)"
    • Support responses: 1, use option 2, commit with option 3, skip
    • Execute git commit -s with selected message if user requests (includes sign-off)

Mode 2 (with N):

  1. Retrieve last N commits using git log
  2. Parse commit messages and analyze changes to maintain AIPCC format consistency
  3. For N=1: Suggest improved rewrite following AIPCC format For N≥2: Merge commits into unified AIPCC-formatted squash message
  4. Generate 3 AIPCC-formatted commit message suggestions (Recommended, Standard, Minimal)
  5. Display formatted suggestions and prompt user for selection
    • Ask: "Which suggestion would you like to use? (1/2/3 or skip)"
    • Support responses: 1, use option 2, amend with option 3, skip
    • Execute git commit --amend -s (N=1) or squash operation (N≥2) if user requests

Examples

bash
# Generate message for staged files
git add src/auth.ts src/middleware.ts
/aipcc:commit-suggest

# Rewrite last commit message
/aipcc:commit-suggest 1

# Summarize last 5 commits for squash
/aipcc:commit-suggest 5

Return Value

Generates 3 AIPCC-formatted commit message suggestions:

  • Suggestion #1 (Recommended) – Detailed with full body and Jira integration
  • Suggestion #2 (Standard) – Concise with essential information
  • Suggestion #3 (Minimal) – Brief description with required elements

Each suggestion includes:

  • AIPCC format title (AIPCC-XXX: description)
  • Blank line between title and body
  • Body text explaining the changes in complete sentences
  • Optional Jira integration (Fixes AIPCC-XXX)
  • Required sign-off line

Example:

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Suggestion #1 (Recommended)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
AIPCC-123: Add JWT authentication middleware

Implement token-based authentication for API endpoints to enhance
security. The middleware verifies JWT tokens and extracts user
information for authorization decisions.

Fixes AIPCC-123

Co-Authored-By: [AI_NAME] ([AI_MODEL])

Signed-off-by: Your Name <your.email@example.com>

Which suggestion would you like to use? (1/2/3 or skip)

Mode 2 Specifics

  • N=1 – Suggest improved rewrite for the last commit in AIPCC format
  • N≥2 – Generate unified AIPCC-formatted squash message with footer: Squashed from N commits: + original commit list

Commit Message Format Requirements

AIPCC Format

All commits must follow this project-specific format:

AIPCC-XXX: Short description

Longer explanation of what the commit does, written in at least one
complete sentence explaining the purpose and impact of the change.

[Optional: Fixes AIPCC-XXX]

[Optional: Co-Authored-By: [AI_NAME] ([AI_MODEL])]

Signed-off-by: Your Name <your.email@example.com>

Required Elements

  • Title: Must start with "AIPCC-XXX:" followed by a short description
  • Body: Must explain what the commit does in at least one complete sentence
  • Sign-off: All commits must include Signed-off-by line (use git commit -s)

Optional Elements

  • Jira Integration: Include "Fixes AIPCC-XXX" in the body to automatically close the Jira ticket when MR merges
  • Co-authors: Co-Authored-By: Name <email@example.com>
  • AI Attribution: Co-Authored-By: [AI_NAME] ([AI_MODEL]) when AI assists with code generation
  • Breaking Changes: Note significant API changes in the body

Examples

AIPCC-456: Fix memory leak in authentication service

Resolve memory leak caused by unclosed database connections in the
auth service. This improves server stability under high load.

Fixes AIPCC-456

Co-Authored-By: [AI_NAME] ([AI_MODEL])

Signed-off-by: Jane Developer <jane@example.com>
AIPCC-789: Add user profile management API

Implement REST endpoints for user profile CRUD operations.
Includes validation, error handling, and comprehensive test coverage.

Co-Authored-By: [AI_NAME] ([AI_MODEL])

Signed-off-by: John Developer <john@example.com>

Arguments

  • [N] (optional): Number of recent commits to analyze (1-100)
    • If omitted: Analyzes staged changes (Mode 1)
    • If N=1: Suggests improved rewrite for the last commit
    • If N≥2: Generates unified squash message for last N commits

See Also

  • /git:summary – Display repository status and recent commits (read-only)
  • AIPCC Project Guidelines – Internal project commit format requirements
  • Conventional Commits Specification – General industry standard (adapted for AIPCC format)

Heefeg gestallte Froen

Wat mécht de KI-Skill Aipcc Commit Suggest?

Generate AIPCC Commits style commit messages or summarize existing commits

Firwat Aipcc Commit Suggest op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Aipcc Commit Suggest besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Aipcc Commit Suggest an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/opendatahub-io/ai-helpers/tree/main/plugins/odh-git/skills/aipcc-commit-suggest an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Aipcc Commit Suggest benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Aipcc Commit Suggest benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Aipcc Commit Suggest domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Aipcc Commit Suggest gratis?

Jo. De Skill gëtt vum opendatahub-io ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇