Aller au contenu
Skillpedia
Programmation générale26k · #10023

ce-commit

Ce qu’il fait

Cette compétence enregistre vos modifications de code locales sous forme d'un ou plusieurs commits git, avec des messages clairs. Elle s'adresse aux développeurs qui veulent un historique de commits propre, sans les étapes de livraison supplémentaires.

Quand l’utiliser

  • ✓Quand vous voulez enregistrer vos modifications actuelles sous forme de commit avec un message clair.
  • ✓Quand vous avez plusieurs modifications sans lien et voulez les répartir en commits distincts.
  • ✓Quand vous voulez valider localement et décider plus tard de l'envoi.

Lien du skill

https://github.com/EveryInc/compound-engineering-plugin/blob/main/skills/ce-commit/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/EveryInc/compound-engineering-plugin/blob/main/skills/ce-commit/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Pouvez-vous valider mes modifications actuelles avec un message clair ?”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

La compétence lit l'état de travail et le style des commits récents, regroupe les fichiers modifiés et rédige un message qui énonce le résultat. Elle crée ensuite le commit et vérifie que les modifications sont bien enregistrées.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

Git Commit

Create well-crafted local commit(s) from the current working tree. No push, no PR — use ce-commit-push-pr for the full ship flow.

Done when: each logical change is committed with an explicit file list and a message that states the outcome, and git status is clean of those changes. Stop when: the tree is clean (nothing to commit).

Context

Gather context with each command as its own shell tool call (program + args only). Do not join with ;, &&, ||, pipes, $(...), or redirects — that syntax fails under Windows PowerShell. A non-zero exit is a normal state to interpret, not a failure to suppress.

Command Purpose Non-zero / empty means
git status Working-tree state Not a git repo — stop
git diff HEAD Uncommitted changes Unborn repo / no commits yet
git branch --show-current Current branch Empty = detached HEAD
git log --oneline -10 Recent message style Unborn repo — no history
git rev-parse --abbrev-ref origin/HEAD Remote default branch No origin/HEAD / bare HEAD — try gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name', else main

Treat this as a snapshot. Re-read branch and staged set immediately before committing if anything may have changed.

Default branch name: strip a leading origin/ from origin/HEAD (so origin/trunk → trunk). Use that bare name for all “on the default branch?” checks — never compare against origin/<name>.

Workflow

  1. Gather — run every Context command above (own shell call each), then continue.

  2. Nothing to commit — if git status shows no staged, modified, or untracked files, report that and stop. Do not use git diff HEAD alone as cleanliness (it misses untracked files).

  3. Branch first — if detached HEAD, or on the default branch (main / master / the bare default name above), create a feature branch from the change content (git checkout -b <name>), then re-read git branch --show-current. Do not ask — commit-only still must not leave work only on a detached HEAD or the default branch. If the derived name exists, pick a non-conflicting suffix.

  4. Convention — match project commit conventions already in context; else match the recent log pattern; else conventional commits (type(scope): description). When using conventional commits and fix/feat both fit, default to fix: (remedying broken or missing behavior); reserve feat: for new capabilities. User override wins.

  5. Logical commits — if changed files clearly split into distinct concerns, make separate commits (file level only, 2–3 max, no git add -p). If ambiguous, one commit.

  6. Message — subject is imperative and names the outcome (what is now possible or fixed), not the file list. Body only when motivation or trade-offs are not obvious from the subject. When a plan Implementation Unit ID is already in hand for this commit (conversation, caller, or the files belong to one unit), append that unit's U-ID in parentheses — (U3) means unit 3. Do not hunt for a plan. Omit when the commit spans units, the unit is unclear, or no plan is in hand. When the commit carries someone else's work that will not otherwise land under their name (ported from their branch or PR, or applied from their patch), end the message with a Co-authored-by: Name <email> trailer for each person that work credits: its commit authors and anyone their Co-authored-by trailers name. Copy each identity exactly from those commits or the patch. Never guess an email: when none is recorded, name them in the message body instead.

    • Bad: Update checkout.rb / Add tests and fix stuff
    • Good: Fix double-submit on checkout
    • Good: Add per-subscription mute (U3)
  7. Stage and commit — stage named files only (never git add -A or git add .). Honor exclude:<paths> when the invocation carries it: those files stay uncommitted no matter what else changed; say in the report that they were left out. Write the full message — subject line, blank line, optional body — to a file outside the repo with your file-write tool, then stage and commit as two calls per commit group:

git add file1 file2 file3
git commit -F <message-file> -- file1 file2 file3

No shell parses the message with -F: a $, quotes, backticks, or a multi-line body pass through literally under any shell, with no quoting rules to satisfy. Git's normal whitesp

Questions fréquentes

Pousse-t-elle mon commit ?

Non. Elle crée seulement des commits locaux, et le parcours de livraison complet fait l'objet d'une compétence distincte.

Que se passe-t-il s'il n'y a rien à valider ?

La compétence s'arrête et indique que l'état de travail est propre.

Respecte-t-elle le style de messages de mon dépôt ?

Oui. Elle examine les messages de commit récents pour que le nouveau message s'inscrive dans le style existant.

Détails

Description originale de l’auteur

Create a git commit with a clear, value-communicating message. Use when the user asks to commit/save staged or unstaged changes with a repo-appropriate message.

repo: EveryInc/compound-engineering-plugin

Popularité

Étoiles GitHub
26k
Position au classement
#10023
Licence
MIT
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires