| name | translation-quality |
| description | Japanese to English translation quality evaluation using xCOMET |
Translation Quality Evaluation Skill
Purpose
Evaluate and ensure high-quality Japanese โ English translations using automated quality metrics (xCOMET) with clear decision criteria and actionable outputs.
Why This Skill?
- Manual translation review is time-consuming and subjective
- xCOMET provides objective, reproducible quality scores
- Clear thresholds enable automated decision-making
- Results can be directly embedded into documentation
Inputs
| Input | Type | Description |
|---|
| source_file | .ja.md file | Japanese source document |
| translation_file | .md file | English translation document |
| threshold | number (0-1) | Minimum acceptable score (default: 0.85) |
Outputs
| 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 |
Constraints
MUST
- Use
xcomet:xcomet_batch_evaluate for multi-segment evaluation
- Set
source_lang: "ja" and target_lang: "en"
- Generate report in embeddable Markdown format
- Include both summary and detailed segment scores
SHOULD
- Evaluate at least 10 representative segments per document
- Include segment text in reports for segments scoring < 0.90
- Use
deepl:translate-text for re-translation when --fix is specified
MUST NOT
- Mark documents as "Excellent" if any segment scores < 0.85
- Skip segments containing only code blocks
- Include raw JSON in final report (format as Markdown tables)
Workflow
Step 1: File Detection
Detect .ja.md โ .md pairs in the specified path
- If single file specified, find its pair automatically
- If directory specified, find all pairs recursively
Step 2: Segment Extraction
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
5. List items with substantive content
Skip:
- Code blocks (```)
- URLs and links
- Mermaid diagrams
- Pure formatting elements
Step 3: Quality Evaluation
Call xCOMET MCP with extracted pairs:
mcp: xcomet
tool: xcomet_batch_evaluate
params:
pairs: [{ source: "ๆฅๆฌ่ช", translation: "English" }, ...]
source_lang: "ja"
target_lang: "en"
response_format: "markdown"
Step 4: Result Classification
Apply decision criteria to scores and generate report.
Step 5: Report Generation
Output embeddable Markdown with:
- Summary table
- Quality criteria reference
- Segment details (for scores < 0.95)
- Recommendations
Decision Criteria
| 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 |
Per-Segment Criteria
| 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 |
Examples
Example 1: Single File Evaluation
Input:
/check-translation docs/skills/overview.md
Process:
- Detect pair:
overview.ja.md โ overview.md
- Extract 15 segments
- Call
xcomet:xcomet_batch_evaluate
- Average score: 0.978
- Generate report
Output:
## Translation Quality Report
### Summary
| Metric | Value |
|--------|-------|
| Files checked | 1 |
| Segments evaluated | 15 |
| Average score | **0.978** |
| Status | โ
Excellent |
### Quality Criteria
| Score | Rating | Action |
|-------|--------|--------|
| โฅ 0.95 | Excellent | Publish |
| 0.90-0.94 | Good | Minor review |
| 0.85-0.89 | Acceptable | Review |
| < 0.85 | Problematic | Revise |
### Segment Details
All 15 segments scored โฅ 0.95. No issues detected.
### Recommendation
โ
Ready for publication without changes.
Example 2: Directory Batch Evaluation
Input:
/check-translation docs/
Process:
- Find 8 file pairs in
docs/
- Extract 40 total segments
- Batch evaluate all segments
- Generate comprehensive report
Output:
## Translation Quality Report
### Summary
| Metric | Value |
|--------|-------|
| Files checked | 8 |
| Segments evaluated | 40 |
| Average score | **0.972** |
| Status | โ
Excellent |
| Critical errors | 0 |
### Per-File Results
| File | Score | Status |
|------|-------|--------|
| README.md | 0.975 | โ
Excellent |
| concepts/01-vision.md | 0.978 | โ
Excellent |
| skills/anti-patterns.md | 0.957 | โ
Excellent |
| workflows/patterns.md | 0.977 | โ
Excellent |
### Segments Needing Attention (< 0.95)
| Source | Translation | Score |
|--------|-------------|-------|
| MCPใตใผใใผใฎ้็บใป้็จ... | Organizing security risks... | 0.898 |
### Recommendation
โ
Overall excellent quality. Optional: Review 1 segment above.
Anti-Patterns
Pattern: Raw Score Reporting
Problematic Approach:
Score: 0.9750812888145447
Why It's Problematic: Overly precise numbers suggest false accuracy
Correct Approach:
Score: **0.975** (Excellent)
Pattern: Missing Context
Problematic Approach:
3 segments below threshold
Why It's Problematic: Reviewer cannot act without seeing the text
Correct Approach:
| Source | Translation | Score |
|--------|-------------|-------|
| ๅฎ้ใฎใใญในใ | Actual text | 0.84 |
Related MCPs
| MCP | Usage | Required |
|---|
| xcomet-mcp-server | xcomet_batch_evaluate, xcomet_evaluate | Required |
| deepl-mcp | translate-text (for --fix option) | Optional |
References