php-commit

php-commit is a skill for Claude Code from yoanbernabeu/sfcode. It costs 43 tokens per session (494 once invoked), scanned A, original, MIT.

A French-language Git commit-message guide for PHP and Symfony projects, using an emoji-based format that identifies the change type.

In plain words
What is it for?
Use it to inspect a PHP/Symfony diff, choose a change category, and draft a French commit message for review.
Why use it?
It helps developers write consistent commit messages and requires approval before creating the commit.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to inspect a PHP/Symfony diff, choose a change category, and draft a French commit message for review.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yoanbernabeu/sfcode/php-commit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add yoanbernabeu/sfcode --skill php-commit
Clone the repo
git clone --depth 1 https://github.com/yoanbernabeu/sfcode

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for php-commit

README.md
[![agentmods](https://agentmods.dev/badge/skills/yoanbernabeu/sfcode/php-commit/github.svg)](https://agentmods.dev/skills/yoanbernabeu/sfcode/php-commit)
Your own site
<a href="https://agentmods.dev/skills/yoanbernabeu/sfcode/php-commit"><img src="https://agentmods.dev/badge/skills/yoanbernabeu/sfcode/php-commit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for php-commit

Your own site · 80×15
<a href="https://agentmods.dev/skills/yoanbernabeu/sfcode/php-commit"><img src="https://agentmods.dev/badge/skills/yoanbernabeu/sfcode/php-commit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 494 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.00494
Opus 5.5 $0.00017 $0.00198
Sonnet 5.5 $0.00009 $0.00099
Haiku 4.5 $0.00004 $0.00049

Measured 1mo ago against content hash cb6f00c92c84, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

php-commit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.sfcode/skills/php-commit/SKILL.md · 56 lines

What it actually says

Convention de commit Emoji-Log

Préfixer chaque message par un emoji selon le type de changement :

Emoji Type Quand l'utiliser
📦 NEW Nouvelle feature ou nouveau fichier majeur
👌 IMPROVE Amélioration d'une feature existante
🐛 FIX Correction de bug
📖 DOC Documentation uniquement (README, CHANGELOG, etc.)
🚀 RELEASE Tag de version
✅ TEST Tests uniquement
🔧 CHORE Tooling, CI, dépendances, refacto sans changement fonctionnel

Format

EMOJI TYPE: <verbe à l'impératif présent, en français, ~50 chars max>

<corps optionnel multi-ligne expliquant le *pourquoi* — pas le *quoi*,
la diff parle d'elle-même>

Procédure

  1. Lancer git diff --stat HEAD puis git diff HEAD pour comprendre le changement.
  2. Identifier le type principal (un seul emoji par commit).
  3. Rédiger un sujet de ~50 caractères, à l'impératif présent (« ajoute », « corrige », « refactor », pas « ajout »).
  4. Si plusieurs fichiers et que le pourquoi n'est pas trivial : ajouter un corps de 2-5 lignes max.
  5. Proposer le message à l'utilisateur avant d'exécuter git commit (jamais commiter sans validation).

Exemples

📦 NEW: ajoute un endpoint /api/posts/{slug}/comments
🐛 FIX: corrige le tri Doctrine sur Post::publishedAt

Le critère par défaut renvoyait les posts récents en dernier
à cause d'un `ASC` au lieu de `DESC`.
🔧 CHORE: passe Symfony AI à ^0.3
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 56 lines · 43 tokens per session scan A cb6f00c92c84

Subscribe to this mod's changes

php-commit is a skill published in the GitHub repository yoanbernabeu/sfcode (6 stars, last pushed 5mo ago), licensed MIT. It adds 43 tokens to every session and 494 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.