Docs PR Metadata Guard
pingcap/docs
A skill your agent uses when creating or editing pull requests in pingcap/docs so the PR template sections, version checkboxes, related-link fields, HTML comments, and description structure stay…
Creates and edits TiDB pull request titles and descriptions without breaking the PR template, and diagnoses bot labels that stay on because of template changes.
$ npx skills add pingcap/tidb --skill tidb-pr-metadata-guard -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install pingcap/tidb tidb-pr-metadata-guard --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/pingcap/tidb.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/tidb-pr-metadata-guard .claude/skills/tidb-pr-metadata-guard && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "tidb-pr-metadata-guard" agent skill from https://github.com/pingcap/tidb/tree/master/.agents/skills/tidb-pr-metadata-guard into .claude/skills/tidb-pr-metadata-guard/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tidb-pr-metadata-guard", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/pingcap/tidb/tree/master/.agents/skills/tidb-pr-metadata-guardType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add pingcap/tidb --skill tidb-pr-metadata-guard -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install pingcap/tidb tidb-pr-metadata-guard --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pingcap/tidb.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/tidb-pr-metadata-guard .agents/skills/tidb-pr-metadata-guard && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "tidb-pr-metadata-guard" agent skill from https://github.com/pingcap/tidb/tree/master/.agents/skills/tidb-pr-metadata-guard into .agents/skills/tidb-pr-metadata-guard/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tidb-pr-metadata-guard", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add pingcap/tidb --skill tidb-pr-metadata-guard -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install pingcap/tidb tidb-pr-metadata-guard --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pingcap/tidb.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/tidb-pr-metadata-guard .cursor/skills/tidb-pr-metadata-guard && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "tidb-pr-metadata-guard" agent skill from https://github.com/pingcap/tidb/tree/master/.agents/skills/tidb-pr-metadata-guard into .cursor/skills/tidb-pr-metadata-guard/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tidb-pr-metadata-guard", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/pingcap/tidb.git --path .agents/skills/tidb-pr-metadata-guard--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add pingcap/tidb --skill tidb-pr-metadata-guard -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install pingcap/tidb tidb-pr-metadata-guard --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pingcap/tidb.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/tidb-pr-metadata-guard .gemini/skills/tidb-pr-metadata-guard && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "tidb-pr-metadata-guard" agent skill from https://github.com/pingcap/tidb/tree/master/.agents/skills/tidb-pr-metadata-guard into .gemini/skills/tidb-pr-metadata-guard/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tidb-pr-metadata-guard", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install pingcap/tidb tidb-pr-metadata-guardInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add pingcap/tidb --skill tidb-pr-metadata-guard -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/pingcap/tidb.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/tidb-pr-metadata-guard .github/skills/tidb-pr-metadata-guard && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "tidb-pr-metadata-guard" agent skill from https://github.com/pingcap/tidb/tree/master/.agents/skills/tidb-pr-metadata-guard into .github/skills/tidb-pr-metadata-guard/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tidb-pr-metadata-guard", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add pingcap/tidb --skill tidb-pr-metadata-guard -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install pingcap/tidb tidb-pr-metadata-guard --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pingcap/tidb.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/tidb-pr-metadata-guard .opencode/skills/tidb-pr-metadata-guard && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "tidb-pr-metadata-guard" agent skill from https://github.com/pingcap/tidb/tree/master/.agents/skills/tidb-pr-metadata-guard into .opencode/skills/tidb-pr-metadata-guard/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tidb-pr-metadata-guard", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
tidb-pr-metadata-guardCreates and edits TiDB pull request titles and descriptions without breaking the PR template, and diagnoses bot labels that stay on because of template changes.
The skill keeps TiDB GitHub PRs compliant with `.github/pull_request_template.md`. New PRs start from the template with `gh pr create -T`, filled in a Markdown file first, and use a title like `pkg [, pkg2, pkg3]: what is changed` or `*: what is changed`, where the scope names a TiDB module area such as `planner` rather than a Go package path like `pkg/planner/core`. Titles and descriptions are written in English.
For an existing PR the agent edits only the mutable sections: the issue number, problem summary, the what-changed section, test checkboxes and commands, and the release-note block. Headings and order stay as they are, and hidden HTML comments are preserved exactly. After any body update it re-reads the PR and checks whether the bot labels `do-not-merge/needs-linked-issue` and `do-not-merge/needs-tests-checked` changed as expected, diffing against the template if one stays. A new linked issue is handled first through `tidb-issue-metadata-guard`.
7 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit e7178de. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
ghFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use gh, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
TiDB PR Metadata Guard loads about 703 tokens when it runs. Until then it costs about 36 tokens; SKILL.md has 377 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from pingcap/tidb at commit e7178de, republished under its Apache-2.0 licence (© pingcap). 377 words, ~703 tokens.
.claude/skills/tidb-pr-metadata-guard/SKILL.md (or your agent's skills folder).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.
.github/pull_request_template.md instead of writing the body from scratch.pkg [, pkg2, pkg3]: what is changed or *: what is changed.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.gh pr create -T .github/pull_request_template.md.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.Tests <!-- At least one of them must be included. --> unchanged.No need to test nested block and its HTML comment unchanged.tidb-issue-metadata-guard to create or identify the issue first, then patch only the Issue Number: line in the PR body.gh.do-not-merge/needs-linked-issuedo-not-merge/needs-tests-checked.github/pull_request_template.md before changing anything else.Issue Number: line, and that line can reference one or more related issues with full keyword syntax such as close #<id> and ref #<id>.planner, executor, or *:, not raw Go package paths such as pkg/planner/core.Tests line still includes the template HTML comment verbatim.No need to test is checked with a reason.© pingcap, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/tidb-pr-metadata-guard of pingcap/tidb.
Open the folder on GitHubat commit e7178de
TiDB PR Metadata Guard next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| TiDB PR Metadata Guard this skillpingcap/tidb | 41k | — | ~703 | Automated safety check: Pass | Apache-2.0 | |
| Docs PR Metadata Guardpingcap/docs | 615 | — | ~1.9k | Automated safety check: Pass | Custom licence | |
| PR Babysitteropeninterpreter/openinterpreter | 69k | 3 repos | ~4.2k | Automated safety check: Pass | Apache-2.0 | |
| Check PRonyx-dot-app/onyx | 32k | 2 repos | ~2.3k | Automated safety check: Pass | MIT | |
| Contributor-First PR MergeHKUDS/OpenHarness | 16k | 1 repos | ~847 | Automated safety check: Pass | MIT | |
| Create Pull Requestcline/cline | 70k | 1 repos | ~1.6k | Automated safety check: Pass | Apache-2.0 |
pingcap/docs
A skill your agent uses when creating or editing pull requests in pingcap/docs so the PR template sections, version checkboxes, related-link fields, HTML comments, and description structure stay…
openinterpreter/openinterpreter
Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.
onyx-dot-app/onyx
Checks a GitHub, GitLab, or Perforce (p4) pull request (or merge request, or shelved changelist) for unresolved review comments, failing status checks, and incomplete PR descriptions.
HKUDS/OpenHarness
Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.
cline/cline
Opens a GitHub pull request from your current branch with the gh CLI, after reviewing the commits and diff and gathering the details the PR needs.
openinterpreter/openinterpreter
Rewrites the title and body of one or more pull requests with gh, leading with why the change was made, then what changed, and describing only the net result.
pingcap/tidb
Decides from local git changes whether make bazel_prepare must run in TiDB before build or test commands, and reports the evidence for the decision.
pingcap/tidb
Investigates TiDB plan or test-result diffs that the change does not explain, ruling out failpoint setup and merge effects before expected outputs are updated.
pingcap/tidb
Use when running TiDB package tests and deciding whether failpoint enable/disable is required before and after the test command.
pingcap/tidb
Use when recording TiDB integration tests under tests/integrationtest and verifying regenerated result files stay minimal and correct.
pingcap/tidb
Use when running tests under tests/realtikvtest that require a local TiUP playground lifecycle with strict startup, readiness checks, and cleanup.
pingcap/tidb
Checks a fix proposed by a user or reviewer for intent, correctness and compatibility before the agent implements it in the TiDB codebase.
Categories
Creates and edits TiDB pull request titles and descriptions without breaking the PR template, and diagnoses bot labels that stay on because of template changes. md`. New PRs start from the template with `gh pr create -T`, filled in a Markdown file first, and use a title like `pkg [, pkg2, pkg3]: what is changed` or `*: what is changed`, where the scope names a TiDB module area such as `planner` rather than a Go package path like `pkg/planner/core`.
TiDB PR Metadata Guard fits situations like: opening a pull request against the TiDB repo; editing a TiDB PR description without losing template sections; working out why a do-not-merge bot label is still on a PR.
Run `npx skills add pingcap/tidb --skill tidb-pr-metadata-guard -a claude-code`. Or copy the skill folder (.agents/skills/tidb-pr-metadata-guard in pingcap/tidb) into .claude/skills/tidb-pr-metadata-guard in your project. Claude Code loads it when a task matches its description.
Run `npx skills add pingcap/tidb --skill tidb-pr-metadata-guard -a codex`. Or copy the skill folder (.agents/skills/tidb-pr-metadata-guard in pingcap/tidb) into .agents/skills/tidb-pr-metadata-guard in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pingcap/tidb --skill tidb-pr-metadata-guard -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/tidb-pr-metadata-guard, .gemini/skills/tidb-pr-metadata-guard, .github/skills/tidb-pr-metadata-guard and .opencode/skills/tidb-pr-metadata-guard in your project.
Going by SKILL.md and its folder, TiDB PR Metadata Guard needs the command-line tools its instructions call (gh). Our summary lists: GitHub CLI (`gh`) with access to the TiDB repository.
SKILL.md contains no URLs. Its commands use gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
TiDB PR Metadata Guard is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 703 tokens (SKILL.md is roughly 2.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with TiDB PR Metadata Guard: Docs PR Metadata Guard (pingcap/docs, 615 stars), PR Babysitter (openinterpreter/openinterpreter, 69k stars), Check PR (onyx-dot-app/onyx, 32k stars) and Contributor-First PR Merge (HKUDS/OpenHarness, 16k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
pingcap (a GitHub organization) maintains it in pingcap/tidb, which has 40,633 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 9, 2026.
Source: pingcap/tidb on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.