diff --git a/NEWS.md b/NEWS.md index b38dd26..04158c6 100644 --- a/NEWS.md +++ b/NEWS.md @@ -24,6 +24,9 @@ - `/pr` and `/ship` open PRs with `gh`. Other skills use it for PR numbers and fall back to git without it. - Add eval cases for every skill under `evals/`. +- `/pr --auto`, `/commit`, `/diff-explainer`, and `/slice --auto` write in + thoughtbot's [voice and tone](https://thoughtbot.com/playbook/the-thoughtbot-way/brand/voice-and-tone), + not one person's. ## [1.5.1] - 2026-07-30 diff --git a/evals/commit/splits-unrelated-changes/graders/in-voice.md b/evals/commit/splits-unrelated-changes/graders/in-voice.md new file mode 100644 index 0000000..72aa68d --- /dev/null +++ b/evals/commit/splits-unrelated-changes/graders/in-voice.md @@ -0,0 +1,12 @@ +--- +type: llm +focus: trace +--- + +Look at the commit messages in the `git commit` commands Claude ran. Ignore the `Co-Authored-By:` trailer. + +thoughtbot's voice: speaks as "we" for the team, never "I"; numerals for counts ("2 tests", not "two tests"); no emoji. A number that starts a sentence may be spelled out ("Two titles can ..."). + +PASS if no message says "I", spells out a count of 2 or more as a word mid-sentence, or uses an emoji. + +FAIL if any message does, or Claude ran no `git commit`. diff --git a/evals/pr/auto-voice/graders/in-voice.md b/evals/pr/auto-voice/graders/in-voice.md index d88ff75..9554073 100644 --- a/evals/pr/auto-voice/graders/in-voice.md +++ b/evals/pr/auto-voice/graders/in-voice.md @@ -2,7 +2,7 @@ type: llm --- -Steve's PR voice: the body opens with what prompted the change ("Now that ...", "Prior to this ...", "In an effort to ...", or a sentence stating the problem), not with what changed. It speaks as "we" for the team and never as "I". Short paragraphs, no headings. +thoughtbot's PR voice: the body opens with what prompted the change ("Now that ...", "Prior to this ...", or a sentence stating the problem), not with what changed. It speaks as "we" for the team and never as "I". Short paragraphs, no headings. The PR body is the description the reply hands back, usually in a fenced block; a title on its first line is fine. Notes tied to a file and line are not the body. Judge only the body. diff --git a/evals/pr/auto-voice/graders/mechanics.md b/evals/pr/auto-voice/graders/mechanics.md new file mode 100644 index 0000000..d5444d8 --- /dev/null +++ b/evals/pr/auto-voice/graders/mechanics.md @@ -0,0 +1,11 @@ +--- +type: llm +--- + +thoughtbot's writing mechanics: numerals for counts ("3 orders", not "three orders"), no emoji, and at most one exclamation point per paragraph. + +Judge the PR body the reply hands back and the line notes tied to a file and line. Ignore code blocks, drawings, and the attribution lines naming the model. + +PASS if no count of 2 or more is spelled out as a word ("two", "three", "ten") mid-sentence (one that starts a sentence is fine), there's no emoji, and no paragraph has more than one exclamation point. "One" as a word is fine. + +FAIL if any of those slip, or there is no body. diff --git a/evals/pr/auto-voice/prompt.md b/evals/pr/auto-voice/prompt.md index 0456e28..185f6d7 100644 --- a/evals/pr/auto-voice/prompt.md +++ b/evals/pr/auto-voice/prompt.md @@ -1,5 +1,5 @@ --- -description: Run unattended, the skill writes the body and the line notes in Steve's voice from the guide built into it, without borrowing the guide's examples. +description: Run unattended, the skill writes the body and the line notes in thoughtbot's voice from the guide built into it, without borrowing the guide's examples. max_turns: 60 timeout_seconds: 1200 allowed_tools: [Read, Glob, Grep, Bash, Skill, Agent, Write, AskUserQuestion] diff --git a/skills/commit/SKILL.md b/skills/commit/SKILL.md index 9cbc9b4..81cd855 100644 --- a/skills/commit/SKILL.md +++ b/skills/commit/SKILL.md @@ -95,9 +95,16 @@ Most commits have one or two. None is fine. service stubbed that behaves differently for real. An audit log that rounds "didn't run it" up to silence is worse than none. -Write these for a teammate skimming `git log`, not for the code. Plain words, no -"this ensures", "robust", "it's worth noting". Don't list the files you touched. -Bullets are fine when there are three separate risks. Otherwise prose. +Write these for a teammate skimming `git log`, not for the code, in thoughtbot's +[voice and tone][voice]: + +- Conversational. "We" for the team, never "I". Contractions, easy words, short + sentences. No "this ensures", "robust", "it's worth noting". +- Numerals ("3 retries", not "three retries"), unless the number starts a + sentence. The Oxford comma. No emoji. + +Don't list the files you touched. Bullets are fine when there are 3 separate +risks. Otherwise prose. **Never invent a why.** The good reasons come from this session: what you tried, what broke, what surprised you. None of that is in the diff. If you're committing @@ -135,3 +142,5 @@ Co-Authored-By: Claude Show `git log --oneline` for the new commits. Then one line each for anything worth knowing: a split you made, files you left uncommitted and why, a hook that complained. + +[voice]: https://thoughtbot.com/playbook/the-thoughtbot-way/brand/voice-and-tone diff --git a/skills/diff-explainer/SKILL.md b/skills/diff-explainer/SKILL.md index 0a0ddff..b8bd5e6 100644 --- a/skills/diff-explainer/SKILL.md +++ b/skills/diff-explainer/SKILL.md @@ -89,7 +89,10 @@ paragraph belonging in "Start here". If a sentence would still be true with the hidden, it's a _what_ and can go. The ones that earn their place are the ones an author would rather not write — this is a workaround, this gets slow at 10x the data — and the dead ends, since "we tried X, it failed because Y" pre-empts the -reviewer's first suggestion. Plain words: no "it's worth noting", "this ensures". +reviewer's first suggestion. Write in thoughtbot's [voice and tone][voice]: +conversational, "we" for the team, contractions, short sentences, numerals (3, not +three), sentence-case headings, no emoji in the text. Plain words: no "it's worth +noting", "this ensures". **Open with the problem and one analogy.** The reviewer may have no context on the problem this branch solves, and a mechanism means nothing until they know what @@ -152,3 +155,5 @@ the Artifact tool (favicon `🔍`, a one-sentence description, the change's name the title) and hand over the link. If your environment wants `artifact-design` loaded first, load it, but keep the template's `