commit-roast
Skill7 starsChanged 4 days agoMITView on GitHub
Roasts a repo's git log with a hygiene score, then turns bad habits into message rules. Use when asked to roast our commits, how bad the commit messages are, to count wip or asdf messages, check Conventional Commits use, or add a commit-msg hook.
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- tellmefrankie/ai-investment-skillstheir own version, first seen May 13, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- tellmefrankie/ai-investment-skills★ 14same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository71 other files it gives its agents.
- docs/llms.txtllms.txt
- a11y-fixerSkill
- ad-copy-generatorSkill
- agent-guardrailsSkill
- agent-memory-keeperSkill
- ai-slop-detectorSkill
- api-to-sdkSkill
- app-store-optimizerSkill
- architecture-doctorSkill
- brand-voice-guideSkill
- bug-detectiveSkill
- bus-factorSkill
- changelog-from-gitSkill
- codebase-explainerSkill
- codebase-time-machineSkill
- codebase-valuationSkill
- commit-craftSkill
- competitor-spySkill
- content-repurposerSkill
- copy-paste-detectorSkill
- cost-cutterSkill
- dead-code-funeralSkill
- demo-recorderSkill
- dependency-doctorSkill
- dependency-weigh-inSkill
- dev-wrappedSkill
- dockerize-anythingSkill
- domain-modelerSkill
- durable-agent-workflowsSkill
- e2e-flow-testerSkill
- email-campaign-writerSkill
- env-secrets-guardSkill
- gh-actions-auditorSkill
- github-portfolioSkill
- hook-generatorSkill
- incident-commanderSkill
- influencer-outreachSkill
- instagram-growth-managerSkill
- issue-triageSkill
- landing-page-roasterSkill
- launch-post-writerSkill
- meeting-notes-to-ticketsSkill
- merge-conflict-resolverSkill
- migration-wizardSkill
- name-checkerSkill
- plan-grillerSkill
- pre-commit-setupSkill
- prompt-injection-scannerSkill
- pr-reviewer-proSkill
- readme-glow-upSkill
- repo-cardSkill
- repo-dietSkill
- roast-my-githubSkill
- screenshot-to-componentSkill
- seo-blog-writerSkill
- skill-creator-proSkill
- skill-finderSkill
- skills-doctorSkill
- social-analytics-reporterSkill
- social-media-calendarSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 28
Read the output first. If the hall of shame is a bot (chore: rebuild site [skip ci], release tooling, Dependabot), say so and roast the …
- Distinctive: line 36
Write five rules that each fix something the numbers showed, worst first, with the number that earned it.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Commit Roast
Funny about the history, useful about the next commit. Every joke needs a number from the script behind it.
1. Get the numbers
python3 scripts/commit_stats.py # last 1000 commits of HEAD
python3 scripts/commit_stats.py -C path/to/repo --since "6 months ago"
python3 scripts/commit_stats.py main~300..main --max-count 0 # a range, no cap
python3 scripts/commit_stats.py --author "@acme.com" --json
python3 scripts/commit_stats.py --show-authors # only if the user asks for namesThe script only runs git log. Merge commits are counted on their own and left out of every message statistic. Times use each commit's author date in its own timezone, so 01:30 in Berlin is late night even if CI ran in UTC. Messages in the output are cut to 60 characters and swear words are censored (s***).
Exit codes: 0 report printed · 2 not a git repository, a git error, or no non-merge commits in the range.
How it decides: imperative mood checks whether the first word after any type(scope): prefix is a base verb from a built-in list ("add", "fix") or one of its other forms ("added", "fixes", "fixing"); other first words are unclassified. A fix-the-fix chain is two or more consecutive fix commits that share a file, each within an hour of the previous one. Big means over 200 changed lines; a body of only Signed-off-by: style trailers doesn't count.
2. Deliver the roast
Read the output first. If the hall of shame is a bot (chore: rebuild site [skip ci], release tooling, Dependabot), say so and roast the humans' commits instead, or rerun with --author.
Start with the score card: the hygiene score and its seven parts, copied from the output, never rounded up. Then 5-8 roast lines, mostly from MOST ROASTABLE. Each one names a number and, where there is one, a short sha: "wip was the entire message 41 times. That's not a commit history, that's a loading bar." Close with one honest compliment the numbers support, such as 100% Conventional Commits or zero reverts.
Roast the habits and the history, never a person. Authors stay anonymous unless the user passes --show-authors or asks; even then, no ranking of colleagues in anything meant for sharing. Keep censored words censored.
3. Five rules for this repo
Write five rules that each fix something the numbers showed, worst first, with the number that earned it. Pick from these or write your own:
| The numbers show | Rule |
| one-word or lazy messages, a long hall of shame | Say what changed and why it was needed: "Fix retry loop that ignored timeout", not "fix" |
| low imperative rate | Write the subject as a command: "Add", "Fix", "Remove", not "Added" or "Fixes" |
| subjects over 72 characters | Keep the subject to about 50 characters, at most 72; details go in the body |
| big commits with no body | Over ~200 changed lines gets a body: what, why, and what you tested |
| fix-the-fix chains, typo commits | Run the tests before committing; squash follow-up fixes into the commit they fix before the PR (git commit --fixup <sha> then git rebase -i --autosquash) |
| giant commits | One reason to change per commit; split refactors, formatting and features |
| low issue refs | Put the ticket in the subject or a footer (Refs PAY-123, #42) |
| mixed or no prefixes | Adopt Conventional Commits: type(scope)!: description |
| late-night or Friday-evening share | Not a message rule. Mention it once, kindly, and move on |
Point to the commit-craft skill for writing good commits from staged changes, and to pre-commit-setup for installing hooks.
4. Offer enforcement (only if the user wants it)
A plain git hook, no dependencies. Git passes the message file as $1 and aborts the commit on a non-zero exit. Save as .git/hooks/commit-msg and chmod +x it:
#!/bin/sh
subject=$(sed -n '/^#/d; /^[[:space:]]*$/d; p; q' "$1")
case "$subject" in Merge*|Revert*|fixup!*|squash!*) exit 0 ;; esac
[ ${#subject} -le 72 ] || { echo "commit-msg: subject is ${#subject} chars, keep it <= 72" >&2; exit 1; }
[ "$(echo "$subject" | wc -w)" -ge 2 ] || { echo "commit-msg: say what changed, not just '$subject'" >&2; exit 1; }
# Uncomment to require Conventional Commits:
# echo "$subject" | grep -Eq '^[a-z]+(\([^)]*\))?!?: .+' || { echo "commit-msg: use type(scope): description" >&2; exit 1; }For JS/TS teams, commitlint with Conventional Commits: npm install -D @commitlint/cli @commitlint/config-conventional, a commitlint.config.js containing export default { extends: ['@commitlint/config-conventional'] };, and with husky, echo "npx --no -- commitlint --edit \$1" > .husky/commit-msg. Hooks can be skipped with --no-verify, so suggest running the same check in CI on PR commits.
5. Share line (optional)
Our commit history scored 47/100. "wip" appears 41 times.
We have rules now.Do not
- Name, rank or quote individual authors unless the user asked for it, and never in something meant to be posted.
- Invent or round stats, or roast something the script didn't measure.
- Rewrite shared history with
git rebase,commit --amend,filter-repoor force-push just to clean up old messages. - Install hooks, add dependencies or edit CI without the user's go-ahead.
- Print uncensored swear words from commit messages.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

