Agent skill

Create Or Update Zh Translation PR

by pingcap in pingcap/docs

Create or update a zh translation PR from pingcap/docs to pingcap/docs-cn by using repo-local scripts to prepare change-unit translation inputs, apply minimal edits to the existing Chinese files…

Custom licenceAuto-check passedWriting & Content

Install Create Or Update Zh Translation PR

skills CLI
$ npx skills add pingcap/docs --skill create-or-update-zh-translation-pr -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install pingcap/docs create-or-update-zh-translation-pr --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/pingcap/docs.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/create-or-update-zh-translation-pr .claude/skills/create-or-update-zh-translation-pr && rm -rf skills-src

Use ~/.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/

Facts

Skill name
create-or-update-zh-translation-pr
GitHub stars
616
Token cost
~2.9k tokens
SKILL.md length
1,394 words
Files
5 (incl. scripts)
Skills in repo
8
Repo updated
First seen
Licence
Custom licence

At a glance

Create or update a zh translation PR from pingcap/docs to pingcap/docs-cn by using repo-local scripts to prepare change-unit translation inputs, apply minimal edits to the existing Chinese files…

  • Works in 5 steps: Prepare translation inputs → Create or reuse the translation branch → Apply deterministic updates first → …
  • Tasks that involve Translation
  • SKILL.md covers Default behavior, Load this context first, Preconditions and Required inputs, plus 8 more sections
  • Runs Python and Shell scripts from its folder; calls python3, bash and gh; reaches github.com

What it does

Create Or Update Zh Translation PR is an agent skill from pingcap/docs. Create or update a zh translation PR from pingcap/docs to pingcap/docs-cn by using repo-local scripts to prepare change-unit translation inputs, apply minimal edits to the existing Chinese files, and create or update the target PR with the same branch, title, body, and label rules used in gh-util.user.js.

Its SKILL.md is about 2.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including scripts (for example `scripts/apply_translation_units.py`, `scripts/create_translation_branch.sh` and `scripts/create_translation_pr.sh`).

It sits in Writing & Content, covering Translation. It works with TiDB. The repository describes itself as: TiDB database documentation. TiDB is an open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics.

When your agent uses it

  • Tasks that involve Translation

Example prompts

  • “/create-or-update-zh-translation-pr”

Requirements

  • Python 3
  • A Bash shell

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Prepare translation inputs
  2. Create or reuse the translation branch
  3. Apply deterministic updates first
  4. Apply the remaining translation as minimal edits
  5. Create or update the translation PR

What it can do on your machine

Read from SKILL.md and the folder at commit 56da8d8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    Ships 4 files in scripts/ (Python and Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • python3
    • bash
    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Create Or Update Zh Translation PR loads about 2.9k tokens when it runs. Until then it costs about 85 tokens; SKILL.md has 1,394 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~85
When it runs · the whole SKILL.md, loaded when a task matches
~2.9k

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.

Safety

Auto-check passed

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); the scripts in this folder are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 1,394 words (~2,856 tokens).

“Use this skill when the user asks to create a Chinese translation PR in pingcap/docs-cn from an English doc change in pingcap/docs, or when they want to sync later source-PR updates into an existing translation PR.”

— opening of SKILL.md by pingcap, Custom licence
name
create-or-update-zh-translation-pr

Read the full SKILL.md on GitHub

Files

SKILL.md and 4 other files (scripts) in .agents/skills/create-or-update-zh-translation-pr of pingcap/docs.

  • SKILL.md
  • scripts/apply_translation_units.py
  • scripts/create_translation_branch.sh
  • scripts/create_translation_pr.sh
  • scripts/prepare_translation_inputs.py

Open the folder on GitHubat commit 56da8d8

Compare with similar skills

Create Or Update Zh Translation PR 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.

Create Or Update Zh Translation PR compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Create Or Update Zh Translation PR this skillpingcap/docs616—~2.9kAutomated safety check: PassCustom licence
Translation Diff ExportDevolutions/UniGetUI26k—~1.1kAutomated safety check: PassMIT
Sync Translationssymfony/symfony31k—~1.9kAutomated safety check: PassMIT
Translation Diff ImportDevolutions/UniGetUI26k—~750Automated safety check: PassMIT
Translation Diff TranslateDevolutions/UniGetUI26k—~934Automated safety check: PassMIT
Generate Translationspayloadcms/payload45k—~1.1kAutomated safety check: PassMIT

Similar skills

  • Translation Diff Export

    Devolutions/UniGetUI

    Compares UniGetUI JSON locale files against English, identifies untranslated or source-changed keys, and generates patch, reference, and handoff files for a target language.

    26k GitHub stars~1.1k tokensUpdated today
    Writing & ContentAuto-check passed
  • Sync Translations

    symfony/symfony

    Synchronize translation catalogs across maintained Symfony branches: find messages that newer branches added to the English catalogs but that are still missing from the oldest maintained branch…

    31k GitHub stars~1.9k tokensUpdated today
    Writing & ContentAuto-check passed
  • Translation Diff Import

    Devolutions/UniGetUI

    Merges translated key-value pairs from a UniGetUI JSON localization patch back into the full language file and validates the merged result.

    26k GitHub stars~750 tokensUpdated today
    Writing & ContentAuto-check passed
  • Translation Diff Translate

    Devolutions/UniGetUI

    Translates a sparse UniGetUI JSON language patch, writes completed entries into the working copy, preserves placeholders and terminology, and prepares the patch for merge-back.

    26k GitHub stars~934 tokensUpdated today
    Writing & ContentAuto-check passed
  • Generate Translations

    payloadcms/payload

    A skill your agent uses when new translation keys are added to packages to generate new translations strings

    45k GitHub stars~1.1k tokensUpdated today
    Writing & ContentAuto-check passed
  • Drives long-form fiction, scripts, storyboards, interactive films and long-document translation through InkOS, with every change made by a typed action.

    10k GitHub starsUsed in 1 repo~1.1k tokens
    Writing & ContentAuto-check passed

More from pingcap/docs

All 8 skills in this repo
  • Produces and merges Related resources cards for TiDB docs pages using the RelatedResources and ResourceCard MDX components.

    616 GitHub stars~1.8k tokensUpdated today
    Auto-check passed
  • Release Notes

    pingcap/docs

    Evaluate whether a change needs a release note. An agent skill from pingcap/docs.

    616 GitHub stars~2.6k tokensUpdated today
    Auto-check passed
  • Write new TiDB documentation or update existing TiDB documentation from code changes, PRs, issues, design docs, product specs, rough drafts, existing docs, or short feature descriptions.

    616 GitHub stars~2.3k tokensUpdated today
    Auto-check passed
  • Writes or updates the front matter summary field in pingcap/docs and pingcap/docs-cn Markdown files.

    616 GitHub stars~1.8k tokensUpdated today
    Auto-check passed
  • A skill your agent uses when creating or editing GitHub issues in pingcap/docs so issue templates, required fields, scope boundaries, and labels stay consistent with repository workflow.

    616 GitHub stars~1.8k tokensUpdated today
    Auto-check passed
  • 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…

    616 GitHub stars~1.9k tokensUpdated today
    Auto-check passed

Works with

Questions about Create Or Update Zh Translation PR

What does Create Or Update Zh Translation PR do?

Create or update a zh translation PR from pingcap/docs to pingcap/docs-cn by using repo-local scripts to prepare change-unit translation inputs, apply minimal edits to the existing Chinese files…. Create Or Update Zh Translation PR is an agent skill from pingcap/docs.js.

When should I use Create Or Update Zh Translation PR?

Create Or Update Zh Translation PR fits situations like: tasks that involve Translation.

How do I install Create Or Update Zh Translation PR in Claude Code?

Run `npx skills add pingcap/docs --skill create-or-update-zh-translation-pr -a claude-code`. Or copy the skill folder (.agents/skills/create-or-update-zh-translation-pr in pingcap/docs) into .claude/skills/create-or-update-zh-translation-pr in your project. Claude Code loads it when a task matches its description.

How do I install Create Or Update Zh Translation PR in Codex?

Run `npx skills add pingcap/docs --skill create-or-update-zh-translation-pr -a codex`. Or copy the skill folder (.agents/skills/create-or-update-zh-translation-pr in pingcap/docs) into .agents/skills/create-or-update-zh-translation-pr in your project. Codex loads it when a task matches its description.

Can I use Create Or Update Zh Translation PR in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pingcap/docs --skill create-or-update-zh-translation-pr -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/create-or-update-zh-translation-pr, .gemini/skills/create-or-update-zh-translation-pr, .github/skills/create-or-update-zh-translation-pr and .opencode/skills/create-or-update-zh-translation-pr in your project.

What does Create Or Update Zh Translation PR need to run?

Going by SKILL.md and its folder, Create Or Update Zh Translation PR needs Python and a shell for the scripts in its folder and the command-line tools its instructions call (python3, bash and gh). Our summary lists: Python 3; A Bash shell.

Does Create Or Update Zh Translation PR access the network?

SKILL.md names 1 domain. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Create Or Update Zh Translation PR safe to install?

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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Create Or Update Zh Translation PR use?

Create Or Update Zh Translation PR has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Create Or Update Zh Translation PR use?

About 2.9k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Create Or Update Zh Translation PR?

Skills that share tags, products or a category with Create Or Update Zh Translation PR: Translation Diff Export (Devolutions/UniGetUI, 26k stars), Sync Translations (symfony/symfony, 31k stars), Translation Diff Import (Devolutions/UniGetUI, 26k stars) and Translation Diff Translate (Devolutions/UniGetUI, 26k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Create Or Update Zh Translation PR?

pingcap (a GitHub organization) maintains it in pingcap/docs, which has 616 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on October 10, 2026.

Source: pingcap/docs on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.