What this thread does
The problem
You ask Claude Code to open a pull request or document a function and the text comes back dense: long sentences that lean on terms the reader has never seen, so reviewers skim or rubber-stamp it. The same pain shows up in commit messages and docstrings.
What the thread shows
A r/ClaudeCode post by u/ForSpareParts (13 Sep 2026) pastes a docstring Claude wrote and discusses phrases that assumes the reader already holds the writer's context ("the caller", "the synthetic aggregation categories", "column Enum8"). The author's diagnosis: Claude has little sense of which ideas deserve a definition, and extra detail often makes it worse. Simple rules like "be brief" did not hold for them, and rule-lists drift as a chat runs on.
The suggestions that came back (nobody reported a measured result):
- Give it a reader, not a list of don'ts. Name who reads it ("someone who has not opened this file"), require a term to be defined on first use, cap the length, and paste one PR description you actually like as the example. A second commenter said the same: show a template or example of what you want rather than what to avoid, and say comments describe what the code does now, not what it used to do.
- Keep git rules in a file of their own. One commenter keeps a
git.mdin the agents directory that says exactly how agents use git, including a Pull Requests section. - Use Anthropic's prompting guide. A commenter quoted the "writing density" block (the "mannered prose" instruction) from the Fable 5.1 prompting guide; the author replied that it targets flourish, not the missing-context problem. The guide's "Writing density" section agrees with that reading: it describes Fable 5.1 prose that can run denser than Fable 5's (longer sentences, fewer paragraph breaks), defines mannered prose as metaphor and flourish used instead of direct statement, and suggests the instruction in a user message (preferred) or the system prompt.
- Enforcement by script. One commenter runs a pre-commit hook that forbids the agent from adding or changing comments and output messages, and has another model write them. That is heavy-handed; mentioned here only because it shows the rule-in-chat approach was not trusted.
Claude Code's own memory docs say CLAUDE.md is loaded as context, not enforced; to block something regardless of what the model decides they point to a PreToolUse hook. Style is not something a hook can judge, which is why the example-and-reader approach is the practical one.
How to apply it
1. Put your PR rules in docs/git.md and import it from CLAUDE.md or AGENTS.md (@docs/git.md) so sessions that load that instruction file also load the PR rules. 2. Write for a reader and a shape. Example wording (mine, adapted from the thread):
PR descriptions: write for a reviewer who has not seen this branch.
Sections: Why (1-2 sentences), What changed (3-5 bullets, plain words),
How I checked it, Risk or rollback. Define any project term on first use.
Max 150 words. No history of what you tried; only the final state.
Example of a PR I like: <paste one real description>
3. Same for commit messages: one subject line in imperative mood, a body that says why, not a play-by-play. 4. Re-check after the first three PRs; if drift returns in long sessions, ask Claude to re-read docs/git.md before opening the PR.
Mistakes to check
- Only writing "don't be dense": the thread's author found negative rules weak.
- Pasting a bad PR as the example by accident; pick a human-written one from your repo.
- Expecting CLAUDE.md alone to hold in a long session; it is context, not enforcement.
Limits
Not run by me. The thread is one user's complaint plus informal suggestions; the wording above is my illustration.
Sources
- How Claude remembers your project (Claude Code docs), read on 19 Oct 2026. Checked: CLAUDE.md and auto memory are loaded as context, not enforced configuration, and a PreToolUse hook is the way to block an action regardless of what Claude decides; CLAUDE.md files import other files with
@path/to/import, relative to the importing file; AGENTS.md can be read directly (v2.1.277 or later) or imported from CLAUDE.md, and@pathimports are expanded inside AGENTS.md. This supports step 1 of the body's "How to apply it". - Prompting Claude Fable 5.1 (Anthropic), "Writing density" section. Checked: the mannered-prose definition and the short "Please remove all mannered prose" alternative exist in the guide, as the commenter said; what the section is for is quoted in the body edit above.
- Read via the public RSS copy on 2026-11-14: ForSpareParts's 13 September post, the docstring and replies support the missing-context complaint, reader/example advice, git.md file, pre-commit restriction, prompting-guide quotation and the author's distinction between flourish and missing context. This comment list may be a subset. The prompting-guide text is also quoted in a readable comment; that guide was not reopened in this pass. The memory page was re-read on 2026-11-14 for the imports in step 1 and the context-versus-enforcement distinction. The PR template above is my illustration adapted from the comments; I did not run it.
Started from a post by @ForSpareParts, packaged by the editor. Original post