Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 23 additions & 10 deletions .agents/shared/writing-style.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ Use this guidance for authoring, editing, or reviewing Markdown in `pingcap/docs
## Overall principles

- Write for TiDB users, not for internal teams.
- Use a conversational and friendly tone, but do not sound casual, playful, or promotional.
- Use a conversational and friendly tone, but do not sound playful or promotional.
- Prefer clear, direct, and practical language.
- When in doubt, favor clarity over cleverness.
- Rewrite content that might confuse a new user.
- Do not pre-announce what the document will do. Start with useful information directly.
- Write for a global audience. Avoid culture-specific references, vague shorthand, and region-specific assumptions.
- Write accessibly. Prefer simple sentence structures and wording that is easy to scan and understand.
Expand All @@ -25,12 +27,21 @@ Use this guidance for authoring, editing, or reviewing Markdown in `pingcap/docs

- Use second person, such as `you` and `your`, instead of `we`.
- Use active voice whenever possible. Make it clear who performs the action.
- Prefer present tense unless you are describing historical behavior.
- Correct English grammar, spelling, and punctuation errors.
- Put conditions before instructions, not after.
- Use standard American English spelling and punctuation.
- Use serial commas.
- Prefer concise and precise wording over decorative phrasing.
- Preserve technical meaning. Do not rewrite in ways that change product behavior or scope.

## Terminology and version notation

- Use terminology consistently. Do not use "database" and "instance" interchangeably. Choose the term that matches the actual product concept.
- Use "replicate" instead of "synchronize" when referring to replicating data from one TiDB cluster to another.
- Write MySQL versions as `MySQL 8.0`, `MySQL 8.4`, or `MySQL 8.x`. Do not add a `v` prefix. The `v` prefix is reserved for TiDB and TiDB tool versions, such as `TiDB v8.5` and `DM v2.0`.
- Follow the established terminology in `glossary.md` and `resources/terms.md`.

## Structure and organization

- Keep the structure easy to scan with meaningful headings and short paragraphs.
Expand Down Expand Up @@ -100,14 +111,16 @@ Keep the frontmatter `title` and the H1 aligned in wording and capitalization.
- Use images only when they add value that text alone cannot provide.
- Keep screenshots and diagrams aligned with the current product behavior and UI text.

## Review lens

When reviewing or rewriting content, check these in order:
## Final checklist

1. Is the content factually correct?
2. Is the logic complete and easy to follow?
3. Are other related documents also affected and likely to need updates?
4. Does the structure match the document type?
5. Does the wording improve clarity without changing product meaning?
Before finalizing authored, edited, or reviewed content, verify that:

Make feedback specific, actionable, and tied to the changed content. Avoid praise-only edits.
- [ ] The content addresses a clear user need and is appropriate for its intended audience.
- [ ] Technical facts are accurate, and edits preserve the intended product behavior and scope.
- [ ] The structure matches the document type, and headings follow the required hierarchy and capitalization.
- [ ] Procedures present prerequisites and conditions before clear, actionable steps.
- [ ] Terminology, product names, and version notation are accurate and consistent.
- [ ] Commands, code, configuration names, API fields, UI strings, and literal values remain correct.
- [ ] Links, formatting, lists, notes, warnings, images, and alt text follow repository conventions.
- [ ] The language is clear, concise, grammatically correct, and easy for a global audience to understand.
- [ ] Related documents, TOC entries, aliases, or cross-references have been considered when applicable.
42 changes: 42 additions & 0 deletions .coderabbit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

language: en-US
early_access: false

Comment thread
qiancai marked this conversation as resolved.
# Controls how comments are written, not how many comments are posted.
tone_instructions: >-
Be concise, direct, and professional. Avoid praise, filler, and subjective style preferences.

reviews:
# Keep assertive to catch language, clarity, and consistency issues.
profile: assertive
Comment thread
qiancai marked this conversation as resolved.
request_changes_workflow: false
poem: false
in_progress_fortune: false

auto_review:
enabled: true
Comment thread
qiancai marked this conversation as resolved.
auto_incremental_review: true
auto_pause_after_reviewed_commits: 2
drafts: false
# CodeRabbit always includes the default branch. Keep target branches explicit so auto review remains enabled even if the default branch changes.
base_branches:
- '^master$'
- '^release-8\.5$'

path_instructions:
- path: '**/*.md'
instructions: |
- Act as a senior technical writer when reviewing documentation.
- Provide ready-to-commit suggestions that PR authors can apply directly.
- Make feedback specific, actionable, and tied to the changed content. Avoid praise-only comments, summaries of correct content, duplicate comments, broad rewrites, and low-value nitpicks.

knowledge_base:
code_guidelines:
enabled: true
filePatterns:
- files: .agents/shared/writing-style.md
applyTo: '**/*.md'

chat:
art: false