Tidb Pr Metadata Guard tidb-pr-metadata-guard

Create or edit TiDB PR metadata, or diagnose template-related bot labels; preserve required fields and hidden comments.

Works in Claude, ChatGPT, Codex and more
Our test
8/10✓ Verified
tested Dec 6, 2026
GitHub stars
41k
pingcap/tidb
Added by
0
members
Updated
Dec 6
commit 86e528b
Content
1 file
no scripts · 3 KB
License
Apache 2.0
free to use

What our test found

The skill gives clear, repository-specific safeguards for preserving PR template structure and checking bot labels, though it depends on the TiDB repository template and does not provide a sample template.

Request we tested it on“I’m opening a TiDB PR for a planner change. Help me prepare the title and body while preserving the repository’s required template and bot metadata.”

Limits spotted

  • The required template is not included, so a complete PR body cannot be drafted without repository access.
  • The skill does not give a concrete command for updating an existing PR body.
View on GitHub ↗
name: tidb-pr-metadata-guard
description: Create or edit TiDB PR metadata, or diagnose template-related bot labels; preserve required fields and hidden comments.

TiDB PR Metadata Guard

Overview

Use this skill for TiDB GitHub pull request metadata updates. The goal is to preserve repository-required PR structure while editing only the mutable fields.

Before changing a PR body, read .github/pull_request_template.md.

Workflow

  1. Write PR titles and descriptions in English.
  2. For a new PR, start from .github/pull_request_template.md instead of writing the body from scratch.
  3. Use a title in the form pkg [, pkg2, pkg3]: what is changed or *: what is changed.
  4. In that title format, pkg means the TiDB module area, not a literal Go package path. For example, changes under pkg/planner/core usually map to planner, not pkg/planner/core.
  5. Use gh pr create -T .github/pull_request_template.md.
  6. Fill in the template in a Markdown file first, then submit it.
  7. For an existing PR, update only the mutable sections.
  8. Safe targets: Issue Number:, Problem Summary:, the content under ### What changed and how does it work?, test checkbox states and concrete commands, and the release-note block.
  9. Do not rename headings, reorder checklist sections, or rewrite the template wholesale.
  10. Preserve hidden HTML comments exactly.
  11. Keep Tests <!-- At least one of them must be included. --> unchanged.
  12. Keep the No need to test nested block and its HTML comment unchanged.
  13. Do not delete or rewrite template comments that explain issue linking or release-note behavior.
  14. If a PR needs a new linked issue, use tidb-issue-metadata-guard to create or identify the issue first, then patch only the Issue Number: line in the PR body.
  15. Prefer file-based edits for GitHub metadata.
  16. Materialize the intended issue body or PR body into a local Markdown file.
  17. Review that file against the PR template before calling gh.
  18. After any PR body update, re-read the PR and check whether bot-gated labels changed as expected.
  19. do-not-merge/needs-linked-issue
  20. do-not-merge/needs-tests-checked
  21. If a label remains unexpectedly, diff the current body against .github/pull_request_template.md before changing anything else.

Quick Checks

  • The PR body still contains an Issue Number: line, and that line can reference one or more related issues with full keyword syntax such as close #<id> and ref #<id>.
  • The PR title uses module-oriented scope names such as planner, executor, or *:, not raw Go package paths such as pkg/planner/core.
  • The Tests line still includes the template HTML comment verbatim.
  • At least one test checkbox is checked, or No need to test is checked with a reason.