All skills
haorantang97 avatar

/skill-skill

@54c1782
by Lab 305haorantang97/labkit7 stars

Create, revise, validate, package, or publish AI skills and rule files. Use as the main entry for the user's skill-authoring workflow, including creating a new SKILL.md, improving an existing rule, and preparing a skill repository. Choose only the requested stage; ordinary product code or content work is outside this skill.

  • 12 files
  • 62.5 KB
  • License
  • Updated 4 weeks ago
  • GitHub

Use this Skill: https://skilld.dev/gh/haorantang97/labkit/skill-skill

This session only. Nothing lands on disk.

modulestranslate-readmeSKILL.md

≈1.2k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Quick Start

Two inputs: the finished README.md and the target language. Then:

  1. Create README.{lang-code}.md with the full translation
  2. Add the same language switcher line to the top of both files
  3. Report which sections were NOT translated and why (see the do-not-translate list)

Translate only after README.md is final. A translation of a draft goes stale on the first edit.


Phase 1: Pick the file name and switcher

File naming, by convention on GitHub:

Language File name
Simplified Chinese README.zh-CN.md
Traditional Chinese README.zh-TW.md
Japanese README.ja.md
Spanish README.es.md
Other README.{BCP-47 code}.md

Language switcher, placed on the first content line of BOTH files, directly under the banner embed if one exists:

**English** | [中文](README.zh-CN.md)

And in the translated file, invert the bold:

[English](README.md) | **中文**

The current language is bold plain text, never a self-link. A self-link that reloads the same page reads as a bug.


Phase 2: Translate

Work section by section in the original order. Do not reorder, merge, or drop sections.

Do-not-translate list. These stay in the source language, always:

  • Code blocks and inline code (commands, file paths, flags)
  • File names, directory names, repo names, skill names
  • Badge URLs and image paths
  • YAML front matter examples
  • Proper nouns: GitHub, Cursor, Windsurf, Copilot, product names
  • Link URLs (translate the link text, keep the target)

Translation rules:

  • Translate meaning, not word order. A README that reads like machine output costs more trust than an English-only README
  • Keep technical register consistent: pick one term per concept and reuse it (repo = 仓库 everywhere, not 仓库/存储库 mixed)
  • Headings translate, but anchors then change. Rewrite any in-page #anchor links to match the translated headings
  • Numbers, dates, and version strings stay identical to the original

Phase 3: Verify sync

Before delivering, check:

  • Both files have the switcher line, correct bold, correct link target
  • Section count matches between the two files
  • All code blocks are byte-identical between the two files
  • No {PLACEHOLDER} tokens in either file
  • In-page anchor links work in the translated file

Phase 4: Keep in sync after edits

Whenever README.md changes later, the translated file must change in the same commit. Add this line to CONTRIBUTING.md if the repo accepts PRs:

If your PR edits README.md, apply the same change to README.zh-CN.md in the same PR.

A translation more than one release behind the original is worse than no translation. If the user stops maintaining the second language, delete the file and the switcher rather than leaving it stale.


Common Mistakes

Translating the rule file or SKILL.md itself. The rule content is instructions to an agent. Two language versions of the same instructions drift apart, and the agent may load the stale one. Keep rule files in one language; translate only human-facing docs.

Adding the switcher to only one file. A reader landing on README.zh-CN.md from a search result has no path back to English without the switcher in that file too. Both files get the line.

Translating code blocks and commands. git clone translated into any other language breaks copy-paste. Everything in the do-not-translate list stays verbatim.

Leaving in-page anchors pointing at English headings. GitHub generates anchors from heading text. After headings are translated, #install no longer exists in the translated file. Rewrite every in-page link.

Creating the translation before the README is final. Every later edit to README.md now has to be made twice. Run this skill last among the content steps, right before publish-to-github.

Source: SKILL.md on GitHub

No third-party reports yet.

Signed by skilld at 54c1782. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 weeks ago.

Activeupdated 4 weeks ago

README badge

README badge for haorantang97/labkit/skill-skill