一键导入
translation-quality
English ↔ Japanese translation quality evaluation using xCOMET for the "Understanding LLMs Through Claude Code" repository
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
English ↔ Japanese translation quality evaluation using xCOMET for the "Understanding LLMs Through Claude Code" repository
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | translation-quality |
| description | English ↔ Japanese translation quality evaluation using xCOMET for the "Understanding LLMs Through Claude Code" repository |
Evaluate and ensure high-quality translations between English (docs/) and Japanese (docs/ja/) using automated quality metrics (xCOMET) with clear decision criteria and actionable outputs.
This repository has a special bilingual structure:
docs/01-llm-structural-problems/, docs/02-context-window/, ...docs/ja/01-llm-structural-problems/, docs/ja/02-context-window/, ...README.md (English) ↔ README.ja.md (Japanese)The naming convention here differs from typical *.ja.md projects — Japanese files have the same filename but live under docs/ja/. This Skill auto-detects this convention.
| Input | Type | Description |
|---|---|---|
| target | path | File or directory to check |
| direction | ja-en | en-ja | Source language direction (default: auto-detect from path) |
| threshold | number (0-1) | Minimum acceptable score (default: 0.85) |
| Output | Type | Description |
|---|---|---|
| quality_report | Markdown | Embeddable report with scores and recommendations |
| segment_details | Table | Per-segment scores and issues |
| action_items | List | Specific corrections needed |
| terminology_check | List | Specialized terms that should remain in English (Context Rot, Lost in the Middle, etc.) |
xcomet:xcomet_batch_evaluate for multi-segment evaluationsource_lang and target_lang correctly based on which is primarydeepl:translate-text for re-translation when --fix is specifiedFor docs/ structure:
EN file: docs/PART/FILE.md
JA file: docs/ja/PART/FILE.md
For root:
EN file: README.md
JA file: README.ja.md
Detect pairs automatically. If only one side exists, report as missing translation.
Extract translatable segments from both files:
1. Document title (# heading)
2. Section headings (## / ### headings)
3. Key paragraphs (first 2-3 sentences per section)
4. Table content (cell text)
5. List items with substantive content
6. GitHub Alerts content ([!NOTE], [!TIP], [!IMPORTANT], etc.)
Skip:
- Code blocks (triple-backtick fences)
- URLs and links (but keep link text)
- Mermaid diagrams (but flag node labels for terminology check)
- Pure formatting elements
- Navigation footers (Previous / Next / 次へ / 前へ)
Call xCOMET MCP with extracted pairs:
mcp: xcomet
tool: xcomet_batch_evaluate
params:
pairs: [{ source: "English original", translation: "日本語訳" }, ...]
source_lang: "en"
target_lang: "ja"
response_format: "markdown"
In addition to xCOMET scores, verify these terms remain consistent on both sides:
| English term | Should remain as |
|---|---|
| Context Rot | Context Rot (NOT コンテキストロット) |
| Lost in the Middle | Lost in the Middle |
| Priority Saturation | Priority Saturation |
| Hallucination | Hallucination |
| Sycophancy | Sycophancy |
| Knowledge Boundary | Knowledge Boundary |
| Prompt Sensitivity | Prompt Sensitivity |
| Instruction Decay | Instruction Decay |
| CLAUDE.md | CLAUDE.md |
| MCP | MCP |
| Skill / Sub-agent | Skill / Sub-agent |
| /compact, /clear | /compact, /clear |
Apply decision criteria to scores and generate report.
Output embeddable Markdown with:
| Condition | Action | Rationale |
|---|---|---|
| Average ≥ 0.95 | ✅ Excellent - Publish | Professional quality |
| 0.90 ≤ Average < 0.95 | ✅ Good - Minor review | May benefit from polish |
| 0.85 ≤ Average < 0.90 | ⚠️ Review required | Check flagged segments |
| 0.70 ≤ Average < 0.85 | 🔄 Re-translate | Parameter adjustment needed |
| Average < 0.70 | ❌ Manual revision | Significant issues present |
| Score | Label | Action |
|---|---|---|
| ≥ 0.95 | Excellent | No action needed |
| 0.90-0.94 | Good | Review if time permits |
| 0.85-0.89 | Acceptable | Consider revision |
| < 0.85 | Problematic | Must revise |
Any of the following is treated as a fail regardless of xCOMET score:
/compact, CLAUDE.md) translatedInput:
/check-translation docs/ja/01-llm-structural-problems/context-rot.md
Process:
docs/01-llm-structural-problems/context-rot.md ↔ docs/ja/01-llm-structural-problems/context-rot.mdxcomet:xcomet_batch_evaluateOutput:
## Translation Quality Report
### Summary
| Metric | Value |
|--------|-------|
| Files checked | 1 |
| Segments evaluated | 18 |
| Average score | **0.973** |
| Status | ✅ Excellent |
| Terminology | ✅ Pass |
### Recommendation
✅ Ready for publication without changes.
Input:
/check-translation docs/
Process:
docs/ and docs/ja/ (50+ pages)Output:
## Translation Quality Report
### Summary
| Metric | Value |
|--------|-------|
| Files checked | 52 |
| Segments evaluated | 423 |
| Average score | **0.964** |
| Status | ✅ Excellent |
| Critical errors | 0 |
| Terminology issues | 2 |
### Per-Part Results
| Part | Score | Status |
|------|-------|--------|
| Part 1: Structural Problems | 0.978 | ✅ |
| Part 2: Context Window | 0.971 | ✅ |
| Part 3: CLAUDE.md | 0.962 | ✅ |
| Part 10: Multi-Session | 0.945 | ✅ |
### Terminology Findings
| File | Issue |
|------|-------|
| 04-conditional-context/rules.md | "Glob Pattern" → "グロブパターン" (should remain "Glob Pattern") |
### Recommendation
✅ Overall excellent quality. Review 1 segment and fix 1 terminology issue above.
Problematic: Score: 0.9750812888145447
Correct: Score: **0.975** (Excellent)
Problematic:
| Source | Translation |
|---|---|
| Context Rot causes degradation | コンテキストの腐敗が劣化を引き起こす |
Correct:
| Source | Translation |
|---|---|
| Context Rot causes degradation | Context Rot が劣化を引き起こす |
Problematic: 3 segments below threshold
Correct:
| Source | Translation | Score |
|---|---|---|
| Actual text here | 実際のテキスト | 0.84 |
| MCP | Usage | Required |
|---|---|---|
| xcomet-mcp-server | xcomet_batch_evaluate, xcomet_evaluate | Required |
| deepl-mcp | translate-text (for --fix option) | Optional |