Tone of Voice and Conventions That Stick
Why This Matters
If you have to say “be brief”, “use British spelling” or “no emojis in commit messages” at the start of every session, you are wasting time and getting inconsistent results. Conventions written into context files are applied every time, by every team member’s agent.
What belongs in a tone of voice
Tone of voice covers how the agent communicates and how it writes text that ends up in your product or repository:
- Communication with you: short answers, lead with the result, list changed files, no apologies or filler.
- Commit messages and PR descriptions: format, tense, length, ticket references.
- User-facing text: language, spelling, formal or informal address, terminology.
- Code comments: when to write them, and in which language.
Write it down once
Add a section to CLAUDE.md:
## Communication
- Lead with the outcome, then the changed files, then open questions
- Keep answers under 15 lines unless asked for detail
## Writing in this repo
- Commit messages: imperative mood, max 72 chars, e.g. "Add status filter to runs page"
- UI text: English (UK), sentence case for buttons ("Clear filters")
- Use "test run", never "execution" or "job", in UI and docs
Personal preferences (for example the language you want answers in) go in ~/.claude/CLAUDE.md, not in the shared project file.
Make the difference visible
Try this experiment:
- Without the section, ask three times in fresh sessions: “Write a commit message for the status filter change.” Note how the answers differ.
- Add the section and repeat. The messages should now follow one format.
The point is not perfect prose. It is predictability: reviewers know what to expect, and changelogs and PR lists become readable.
Asking every time versus rules that persist
| Asking in chat | Rule in a context file |
|---|---|
| Works for this session only | Works in every session |
| Depends on who remembers to ask | Applies for the whole team |
| Easy to contradict later | Reviewable in a pull request |
When you notice you have given the same correction twice, move it into CLAUDE.md. That small habit is how a team’s agent gets better week by week.
Hands-on
- Collect three corrections you repeat often (from chat history or code review).
- Write them as short, testable rules in CLAUDE.md (user level or project level).
- Run the commit message experiment above and compare.
- Open a pull request with the change so the team can comment on the conventions.
Walkthrough in TestRun Board
- Open the sections Communication and Writing in this repo at the bottom of
AGENTS.md: lead with the outcome, answers under 15 lines, imperative commit messages of at most 72 characters, UK English and sentence case in the UI, and “test run” instead of “execution” or “job”. - Temporarily remove those two sections, start a new session and ask three times: “Write a commit message for adding a status filter.” Write the three answers down.
- Restore the sections (
git checkout AGENTS.md), start a new session and ask again three times. Compare: format, length and vocabulary should now be consistent. - Ask for a button label for clearing filters. With the conventions loaded the answer should be “Clear filters”, not “Clear Filters” or “Reset”.
- Add one convention of your own, for example how ticket numbers appear in commit messages, and open a pull request for it.
Key Takeaways
- Tone of voice covers communication, commits, UI text and comments.
- Personal preferences go in
~/.claude/CLAUDE.md, team conventions in the repository. - Concrete examples (“Clear filters”) work better than adjectives (“friendly”).
- Repeated a correction twice? Write it down.