AReaL: Skill for Claude Code

.agents/skills/translate-doc-zh/SKILL.md

translate-doc-zh is a skill for Claude Code, Codex from areal-project/AReaL. It costs 27 tokens per session (371 once invoked), scanned A, original, Apache-2.0.

A translation workflow for converting English Markdown documents under docs/en/ into matching Chinese documents under docs/zh/. Markdown is a text format that supports headings, links, tables, and code blocks.

In plain words
What is it for?
Use it to validate a source file, create or update its Chinese counterpart, and translate prose without changing code, paths, flags, or configuration keys.
Why use it?
It preserves the document structure and technical details while keeping the English and Chinese documentation paths aligned.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; installed under .agents/ (shared by several agents); mentions Codex.

This is areal-project/AReaL's own configuration. It tells Claude Code and Codex how to work on AReaL itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything AReaL configures →

About the project

AReaL is an infrastructure system for training large language models with reinforcement learning, connecting model training to applications built around AI agents. Researchers and developers use it to train reasoning and agentic models through asynchronous workflows, and the catalogue add-ons support working with AReaL.

areal-project/AReaL · 5,749 stars · on GitHub · areal-ai.io

Reuse

Borrowing it

Nothing to install: this file belongs to areal-project/AReaL. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/areal-project/AReaL/main/.agents/skills/translate-doc-zh/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/areal-project/AReaL

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for translate-doc-zh

README.md
[![agentmods](https://agentmods.dev/badge/skills/areal-project/areal/translate-doc-zh/github.svg)](https://agentmods.dev/skills/areal-project/areal/translate-doc-zh)
Your own site
<a href="https://agentmods.dev/skills/areal-project/areal/translate-doc-zh"><img src="https://agentmods.dev/badge/skills/areal-project/areal/translate-doc-zh/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for translate-doc-zh

Your own site · 80×15
<a href="https://agentmods.dev/skills/areal-project/areal/translate-doc-zh"><img src="https://agentmods.dev/badge/skills/areal-project/areal/translate-doc-zh.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 371 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.00371
Opus 5 $0.00014 $0.00186
Sonnet 5 $0.00005 $0.00074
Haiku 4.5 $0.00003 $0.00037

Measured 13d ago against content hash 3de94b4c2985, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

translate-doc-zh scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/translate-doc-zh/SKILL.md · 48 lines

What it actually says

Translate Docs EN to ZH

Use this skill when the user asks to translate a document from docs/en/ to docs/zh/.

Input

  • A markdown file path under docs/en/

Workflow

Step 1: Validate the source path

  1. Confirm the file exists.
  2. Confirm it is under docs/en/.
  3. Confirm it ends with .md.
  4. If any check fails, stop and ask the user for a valid docs/en/...md path.

Step 2: Resolve the target path

  • Source: docs/en/<path>.md
  • Target: docs/zh/<path>.md

Step 3: Choose translation mode

  • If the Chinese file already exists, update only the changed parts while preserving the rest.
  • If the Chinese file does not exist, translate the full document.

Translation Rules

  • Preserve technical terms such as FSDP, FSDP2, GRPO, PPO, DAPO, MoE, LLM, RL, RLVR, Codex, Claude Code, OpenCode, Megatron, Archon, SGLang, vLLM, PyTorch, HuggingFace, and Transformers.
  • Do not translate file paths, code blocks, CLI flags, or literal configuration keys.
  • Preserve Markdown structure, tables, and fenced code blocks.
  • Use concise, professional Chinese terminology.

Error Handling

  • If the target directory does not exist, create it before writing the translated file.
  • If the source document is partially translated already, preserve sections that do not need updates.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 48 lines · 27 tokens per session scan A 3de94b4c2985

Subscribe to this mod's changes

translate-doc-zh is a skill published in the GitHub repository areal-project/AReaL (5,749 stars, last pushed yesterday), licensed Apache-2.0. It adds 27 tokens to every session and 371 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.