Assistant Commit Conventionnel

VérifiéSûr

Assiste la création de commits au format conventionnel (type(scope): description). Analyse les modifications, regroupe les changements logiquement, et rédige automatiquement le message de commit. Utile après avoir terminé une tâche ou sur la commande /commit.

Spar Skills Guide Bot
DeveloppementDébutant
6002/06/2026
Claude Code
#git#conventional-commits#version-control#commit-message

Recommandé pour

Notre avis

Crée des commits conventionnels bien formatés en analysant les changements du dépôt Git.

Points forts

  • Automatise le formatage des messages de commit selon la norme Conventional Commits
  • Analyse les fichiers modifiés pour suggérer un type et un champ d'application pertinents
  • Permet de regrouper logiquement les modifications et de demander une confirmation avant de commiter
  • Inclut automatiquement une ligne Co-Authored-By pour créditer l'IA

Limites

  • Nécessite que le dépôt soit déjà initialisé et que l'utilisateur ait configuré Git
  • Peut ne pas détecter correctement le champ d'application pour des projets non structurés
  • Ne gère pas les situations de conflit de fusion ou de rebase
Quand l'utiliser

Utilisez cette compétence chaque fois que vous devez commiter des modifications dans un dépôt Git, en particulier pour des projets suivant une convention de message de commit.

Quand l'éviter

Évitez de l'utiliser pour des commits rapides et informels, ou lorsque vous devez contourner intentionnellement les conventions pour un dépôt personnel.

Analyse de sécurité

Sûr
Score qualité85/100

This skill only runs standard git commands (status, diff, add, commit, log) with conventional formatting, no destructive or exfiltrating actions.

Aucun point d'attention détecté

Exemples

Basic commit
/commit
Commit with specific files
Commit only the changes in src/ and include/ directories with a conventional message.
Multi-file commit with explanation
Stage and commit the recent changes with a detailed body explaining why the refactoring was needed.

name: commit description: Create a conventional commit with proper format. Use when committing changes, after completing a task, or when user says /commit.

Git Commit Skill

Instructions

You are a git commit assistant. Your job is to create clean, well-formatted commits following conventional commit standards.

Commit Format

Use the format: <type>(<scope>): <description>

Types:

  • feat: New feature or content
  • fix: Bug fix or correction
  • docs: Documentation changes
  • refactor: Code/content restructuring
  • chore: Maintenance tasks (config, dependencies)
  • style: Formatting changes (no content change)
  • test: Adding or updating tests

Scope (for this thesis):

  • intro, related, synth, weak, privacy, discussion, conclusion - chapters
  • bib - bibliography
  • fig - figures/tables
  • config - LaTeX/build configuration
  • claude - Claude Code configuration

Steps:

  1. Check current status:

    git status
    git diff --stat
    
  2. Analyze changes:

    • What files were modified?
    • What is the nature of the changes?
    • Group related changes logically
  3. Stage appropriate files:

    • Stage related changes together
    • Don't mix unrelated changes in one commit
    • Ask user if unsure what to include
  4. Draft commit message:

    • Keep first line under 72 characters
    • Use imperative mood ("add" not "added")
    • Focus on WHY, not just WHAT
    • Add body if changes need explanation
  5. Create commit:

    git add [files]
    git commit -m "$(cat <<'EOF'
    type(scope): short description
    
    Optional longer description if needed.
    
    Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
    EOF
    )"
    
  6. Verify:

    git log -1 --stat
    

Examples:

feat(privacy): add differential privacy analysis section
fix(bib): correct duplicate citation keys
docs(claude): add custom skills for thesis workflow
refactor(intro): restructure motivation section
chore(config): update latexmk settings
style(synth): fix table formatting

Multi-line Example:

feat(weak): implement silver annotation pipeline

- Add label function definitions
- Integrate with Snorkel framework
- Include evaluation metrics

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Important Notes:

  • Always show user the staged changes before committing
  • Ask for confirmation if changes are significant
  • Don't commit files that shouldn't be tracked (.aux, .log, etc.)
  • Don't commit secrets or credentials
  • Keep commits atomic (one logical change per commit)

Never:

  • Don't commit without showing the user what will be committed
  • Don't use vague messages like "update files" or "fix stuff"
  • Don't commit unrelated changes together
  • Don't skip the Co-Authored-By line
Skills similaires