What problem does it solve?
Turning code changes, PRs, and product specs into accurate, user-facing TiDB documentation is slow and error-prone. This Skill guides an AI through the full editorial workflow in the pingcap/docs repository, ensuring every documented fact is traceable to an authoritative source.
Core Features & Use Cases
- Create or update decision logic: Analyzes inputs (code PRs, GitHub issues, design docs, rough notes) and decides whether to create a new page or update existing ones, then follows a dedicated reference workflow for each path.
- Fact grounding and version targeting: Maps code patterns (system variables, config fields, SQL grammar, flags) to exact target doc files, derives version numbers from PR milestones, and marks unverifiable facts as open questions instead of guessing.
- Style and consistency enforcement: Matches existing page voice, entry formats, TOC placement rules, front matter conventions, and runs markdownlint and link verification before reporting.
- Use Case: An engineer merges a PR adding a new system variable to pingcap/tidb. The Skill inspects the PR diff, updates system-variables.md in alphabetical order with the correct entry format, adds a version note, cross-links the feature page, and reports follow-ups for Chinese translation and release notes.
Quick Start
Ask the AI to write TiDB documentation for the changes in a given pingcap/tidb PR URL and update the affected pages in pingcap/docs.