Repository navigation
Add drafting rules and a no-context tone pass for docs writing - #5822
Merged
Merged
Conversation
Agent-written docs kept repeating facts across pages and sections, using bold label bullets and colon setups, stacking hedges, and putting the reason before the action. Add those patterns to AGENTS.md's Writing style, add a Tone pass step that has a no-context agent review the change, and call it from the three skills that write docs text.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📖 Docs PR preview linksThis PR does not change any pages in /docs. If you make updates, links to the modified pages will appear here. |
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are identified for the documentation drafting and tone-review workflow updates.
No open issues 🎉
What changed in this PR
Adds drafting guidance and a no-context tone review to the documentation authoring workflow, addressing patterns identified in #5804.
Changes:
- Expands writing rules for repetition, list structure, hedging, and concrete wording.
- Defines a tone pass with a separate reviewer, a self-review fallback, and a Vale check.
- Integrates the pass into three writing skills, preserving code and allowing intentional cross-page repetition during fact sweeps.
| File | Description |
|---|---|
| AGENTS.md | Adds drafting rules and the shared tone-pass procedure. |
| .claude/skills/docs-page-from-source/SKILL.md | Adds tone review focused on formatting and voice carried over from source material. |
| .claude/skills/docs-guide-revision/SKILL.md | Adds tone review before delivery while preserving code. |
| .claude/skills/docs-fact-sweep/SKILL.md | Adds tone review with an exception for intentional cross-page repetition. |
Review effort: Balanced
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds guidance to stop agent-written docs from sounding generated. It came out of #5804, where a no-context review of agent-written heartbeat docs found these patterns:
AGENTS.md
docs/for pages that already state the same facts. The writer applies each finding unless it misreads the text or would change a technical claim, then reruns Vale.Skills
These three skills write docs text but had no tone step. Each now runs the Tone pass:
docs-page-from-source: before the Vale check. The reviewer is told to look for formatting and voice carried over from the source.docs-fact-sweep: after applying changes. The reviewer skips cross-page repetition of the swept fact, which a sweep restates on purpose.docs-guide-revision: before delivering the revised guide. The skill's existing rule against changing code still applies.docs-pr-reviewanddocs-section-reviewalready check tone, so they're unchanged.Notes to reviewers
docs/too.