translation-workflow

translation-workflow is a command for Claude Code from Linfee/spec-kit-cn. It costs 10 tokens per session (524 once invoked), scanned A, original, MIT.

A command-based workflow for keeping a translated project aligned with its original version. It detects changes, runs translations, reviews quality, fixes issues, and checks the project before release.

In plain words
What is it for?
Use it to detect source changes, execute or review translations, fix Markdown punctuation, synchronize approved directories, and run the project's end-to-end quality checks.
Why use it?
It reduces the risk of outdated translations, lost local edits, inconsistent punctuation, or unsafe file synchronization. The workflow separates updating, translating, reviewing, and repairing.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/linfee/spec-kit-cn/translation-workflow
Clone the repo
git clone --depth 1 https://github.com/Linfee/spec-kit-cn

Made for: Claude Code.

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 translation-workflow

README.md
[![agentmods](https://agentmods.dev/badge/commands/linfee/spec-kit-cn/translation-workflow.svg)](https://agentmods.dev/commands/linfee/spec-kit-cn/translation-workflow)
Your own site
<a href="https://agentmods.dev/commands/linfee/spec-kit-cn/translation-workflow"><img src="https://agentmods.dev/badge/commands/linfee/spec-kit-cn/translation-workflow.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 524 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00010 $0.00524
Opus 5 $0.00005 $0.00262
Sonnet 5 $0.00002 $0.00105
Haiku 4.5 $0.00001 $0.00052

Measured 4d ago against content hash b0c084fdb436, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

translation-workflow 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 4d 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.

.claude/commands/translation-workflow.md · 68 lines

What it actually says

用户输入: $ARGUMENTS

目标: 提供翻译工作流的快速参考和使用指南.

工作流概览

/translation-detect   同步原版 + 检测差异 + 制定计划
       ↓ (自动询问确认)
/translation-execute  执行翻译
       ↓ (自动询问确认)
/translation-review   审核质量 + 专项检查 + 发布验证
       ↓ (有问题时建议)
/translation-fix      修复问题

每个环节通过询问自动衔接, 用户可在任意节点中断.

独立工具

命令 用途
/punctuation-fix [路径] 批量修复 Markdown 标点符号
./tests/e2e/quality-check.sh 快速质量检查脚本(终端直接运行)

常见场景

原版更新

/translation-detect    # 一键同步原版, 检测差异, 自动衔接翻译

发布前检查

/translation-review    # 全面审核 + 发布验证

修复翻译问题

/translation-fix                    # 修复所有问题
/translation-fix templates/xxx.md   # 修复指定文件

标点符号修复

/punctuation-fix                    # 处理所有 md 文件
/punctuation-fix templates/         # 处理指定目录

rsync 安全规则

目录 策略 说明
scripts/, .devcontainer/, media/ rsync --delete 完全同步原版
templates/, docs/, memory/ 增量合并 禁止 --delete, 会丢失翻译
.github/ 禁止同步 本项目有独立 CI/CD
tests/e2e/ 不同步 本项目自定义测试

测试脚本位置约束

自定义测试脚本统一放在 tests/e2e/, 不要放在 scripts/ (同步时会被 rsync --delete 覆盖).

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. 4d ago First seen · 68 lines · 10 tokens per session scan A b0c084fdb436

Subscribe to this mod's changes

translation-workflow is a command published in the GitHub repository Linfee/spec-kit-cn (695 stars, last pushed 1mo ago), licensed MIT. It adds 10 tokens to every session and 524 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.