/ronce-racine:commit-readiness-reviewfrom Ronce Racine
Reviews staged changes before a Claude-initiated git commit. Checks for secrets, debug leftovers, and runs per-stack format/lint/typecheck/tests. Use when a commit is imminent or under time pressure.
Ships in Ronce Racine. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
If the current repo has a project-specific pre-commit skill, it wins - it knows the exact commands.
validating-features-end-to-end instead if: the question is "does it work" (functional proof), not "is it committable"git status + git diff --stat: real scope, stacks touched, at-risk filespackage.json / Makefile / CI config)git log --oneline -5Closes # if the convention requires it)--amend once pushedgit status + git diff --stat. Identify the stacks touched (each extension → its checks) and at-risk files (.env, *.pem, *.key, credentials) → immediate STOP if present.gitleaks protect --staged --redact on the staged diff, or gitleaks detect --no-git --redact on the tree. If it is not installed, do not block on it - fall back to the grep below.git diff HEAD | grep -iE "(password|api[_-]?key|secret|token|sk_live|ghp_|glpat-|AKIA[0-9A-Z]{16}|-----BEGIN [A-Z ]*PRIVATE KEY-----)\s*[:=]?" plus at-risk files git diff --name-only HEAD | grep -iE "\.env|\.pem|\.key|credentials|secret".gitleaks:allow comment on the line, or systemically via the allowlist of a repo-level .gitleaks.toml config - never by loosening the global scan.rules/pre-commit-secret-detection.md for gitleaks install, pre-commit hook, allowlist and the rotation procedure if a secret is already pushed.package.json scripts, Makefile, repo conventions). Test the changed scope only; the full suite is for before push.waitForTimeout, sleep)console.log, print(, dbg!, debugger)TODO/FIXME added → track in a ticket or remove.skip, xit, #[ignore]) with no justificationgit add -A/git add .. Verify each staged file belongs to the change.git log --oneline -5 for the format). Ask for confirmation before git commit unless an autonomous mode is explicitly active.| Excuse | Reality |
|---|---|
| "It's just for debugging, I'll commit the secret for 2 min" | A pushed secret = key rotation + history purge. No exception |
| "We're in a hurry, I'll skip the lint" | Pressure does not change the checklist. A rushed broken commit costs more |
"git add -A is faster" | Blind staging pulls in .env, builds, files from other changes. File by file |
"--no-verify to get past the hook" | The hook protects the branch. No --no-verify without an explicit user request |
| "The checks will probably pass" | ✅ = executed with pasted output, never assumed |
"I'll fix it with --amend after the push" | No --amend on a pushed commit. Verify beforehand |
A missing box = no commit. The one exception is a failure that predates the change: it does not block the commit, it has to be stated. Silently committing on a red suite and refusing to commit at all are both wrong, and the second is how a checklist read literally forbids every commit in a repository that has been red for a fortnight.
Test procedure: scripts/precommit-scan.test.ts - deterministic behavioral test of the script (positive + negative fixture). Run npx tsx scripts/precommit-scan.test.ts from the canonical repo after any change to the script (also picked up by npm test). Not distributed to target repos.
scripts/precommit-scan.ts - scans the staged diff (npx tsx scripts/precommit-scan.ts): secrets via gitleaks or regex fallback, sensitive files, debug leftovers. Read-only, exit 1 on a secret/sensitive file. Wireable as a hook (see hooks/).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
pre-commit, git-hooks, secret-detection, code-review, commit-checklist
npx claudepluginhub charierefiedler/ronce-racine --plugin ronce-racine37 skills in this plugin
/adversarial-feature-challengeUse when a feature is "done" and needs adversarial stress-testing before shipping - "is it really ready", "est-ce vraiment prêt", "find the bugs", "trouve les bugs", "red team", before closing a ticket whose only validation is the golden path passing./api-contract-versioningUse when modifying an API endpoint, schema or contract consumed elsewhere - renaming/removing/restructuring a request or response field, pagination or envelope change, "field X must become", "le champ X doit devenir", introducing a breaking change, versioning an API, or deprecating a field/route. Covers REST, GraphQL and gRPC alike./audit-architectureAudit Architecture, Scalability & Availability. Use when auditing ADRs, interface contracts, coupling, scalability, resilience patterns, SLA/RPO/RTO, high availability, or incident management. Triggers on "audit architecture", "audit archi", "audit scalabilité", "audit scalability", "audit disponibilité", "audit availability", "audit résilience", "audit resilience", "audit incidents"./audit-ci-cdAudit CI/CD & Release Management. Use when auditing pipelines, deployment strategies, DORA metrics, IaC, artifact management, or supply chain security. Triggers on "audit ci", "audit pipeline", "audit déploiement", "audit deployment", "audit release"./audit-complianceCompliance, Data Governance & FinOps audit. Use when auditing GDPR compliance, data governance, data retention, consent management, FinOps, or regulatory requirements. Triggers on "audit conformité", "audit compliance", "compliance audit", "audit RGPD", "audit GDPR", "audit données", "audit data governance", "audit finops", "audit gouvernance"./audit-industrialisationFull software-industrialisation audit. Orchestrates the 8 domain audits and produces a consolidated report. Use when running a full audit of a project's software engineering maturity. Triggers on "audit industrialisation", "industrialisation audit", "audit complet", "full audit", "audit projet", "project audit", "audit maturité", "maturity audit", "audit global", "global audit".Other plugins' skills for the same job