Skip to content

Add drafting rules and a no-context tone pass for docs writing - #5822

Merged
Duncanma merged 1 commit into
mainfrom
duncan/authoring-tone-pass
Nov 25, 2026
Merged

Duncanma merged 1 commit into
mainfrom
duncan/authoring-tone-pass

Conversation

@Duncanma

Copy link
Copy Markdown
Contributor

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:

  • the same fact stated on several pages and in several sections
  • bold label bullets ("Detection time.") and colon setups ("Common causes:")
  • stacked hedges ("at most about one a minute")
  • the reason given before the reader's action
  • abstract verbs ("a timeout weighs X against Y")

AGENTS.md

  • Writing style. Now tells writers to apply the Text tone list from the Code Review Rules while drafting, not only when reviewing. Adds bullets for:
    • stating each fact once and linking to it elsewhere
    • writing list items as sentences in explanatory prose; reference lists, link lists, and index pages keep their format
    • one hedge per claim
    • concrete effects instead of abstract trade-offs
    • matching the target page's voice when adapting source material
  • New Tone pass subsection. Before finishing a prose change, a subagent with no session context reviews the diff against Writing style, Word choice, and Text tone. It also searches the rest of 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-review and docs-section-review already check tone, so they're unchanged.

Notes to reviewers

  • This PR went through its own tone pass. That pass found 8 issues, which are fixed here:
    • The first draft claimed the pass catches cross-page repetition, but the reviewer only got the diff. It now searches docs/ too.
    • The action-first rule duplicated one already in Text tone, so Writing style now points to that list instead of repeating it.
  • Advisory Vale rules for the patterns that can be detected automatically (bare "causes:" setups, stacked hedges) are a possible follow-up. They aren't in this PR.

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.
@Duncanma
Duncanma requested a review from a team as a code owner November 25, 2026 17:40
Copilot AI balanced review requested due to automatic review settings November 25, 2026 17:40
@vercel

vercel Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
temporal-documentation Ready Ready Preview Nov 25, 2026 5:41pm UTC

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

📖 Docs PR preview links

This PR does not change any pages in /docs. If you make updates, links to the modified pages will appear here.

@Duncanma
Duncanma merged commit 4d0cb7f into main Nov 25, 2026
12 checks passed
@Duncanma
Duncanma deleted the duncan/authoring-tone-pass branch November 25, 2026 17:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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

1 active deployment
Preview — b312f1c8 Deployed Nov 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants