agentleFS
abduallahJamalabduallahJamal/qalam-skills/skills/translation-qa/SKILL.md

translation-qa

Skill1 starsChanged 16 days agoMITView on GitHub

Review a finished translation against its source and report defects in meaning, omissions, code, links, numbers, terminology, and Arabic readability — with a mechanical gate for what can be computed and a structured review pass for what cannot. Use when asked to check, review, or approve a translation before publishing.

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 10 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Governing rule: every finding names a location, quotes both texts, and states why it is a defect.

    line 17
  2. Very specific:

    Not for: translating (that is translate-docs), or editing Arabic prose with no source to compare (arabic-style).

    line 28
  3. Distinctive:

    If any is missing, say so in the report header.

    line 42
  4. Distinctive:

    Read the JSON, not just the human summary.

    line 53
  5. Distinctive:

    Do not read source and target side by side from the first sentence.

    line 78
  6. Distinctive:

    Pass A — target only: Read the translation as a reader of the target language would.

    line 81
  7. Distinctive:

    Use four severities, defined by what the reader does next:

    line 101
  8. Distinctive:

    Use this shape. It is short on purpose: a reviewer reads the top and skims the rest.

    line 112
  9. Distinctive:

    If a category has no defects, write "none".

    line 150
  10. Distinctive:

    Before delivering, re-check each Blocking and Major item against the source.

    line 154
  11. Distinctive:

    Do not present a clean gate as an approval.

    line 172

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Translation QA

You are reviewing, not rewriting. The deliverable is a defect report a human can act on, plus a verdict that is honest about what was and was not checked.

Governing rule: every finding names a location, quotes both texts, and states why it is a defect. "This reads awkwardly" without a fix suggestion and a reason is noise, and a review full of noise gets ignored wholesale — including the real defects.

When to use this

  • The user asks to review, check, approve, or proofread a translation.
  • translate-docs reaches its final pass.
  • A translator delivered a file and someone needs to sign off.

Not for: translating (that is translate-docs), or editing Arabic prose with no source to compare (arabic-style).

Procedure

1. Establish the baseline

Without these three, a "defect" may be a deliberate choice:

  1. Source and target files, both complete.
  2. Register the translation was supposed to hold (فصحى معاصرة, technical, literary, dialect).
  3. Glossary, if one exists.

If any is missing, say so in the report header. A review without a glossary cannot judge terminology, only internal consistency.

2. Run the mechanical gate first

python -m qalam gate --source source.md --target target.md \
  --source-language en --target-language ar \
  --glossary glossary.json --numerals preserve --json > gate.json

Read the JSON, not just the human summary. What each finding means:

CodeSeverityWhat it proves
length_ratioerror / warnContent is missing or padded
structureerrorHeadings, fences, links, or images do not match one-for-one
code_blocks, code_changederrorCode was altered — always a defect
inline_codeerrorA code span was translated or dropped
links, imageserrorA target was lost or an image path broke
numberswarnA value differs; verify each one against the source
duplicate_paragrapherrorThe model repeated a block
bracketserrorUnbalanced or mismatched punctuation
untranslatedwarnA line is still in the source language
language_mixerror / warnTarget is not predominantly in the target language
arabic_punctuation, arabic_spacingwarnLatin punctuation or a space before punctuation
numeralswarn / infoDigit script does not follow the requested convention
mt_smellinfoA known machine-translation phrase
terminologywarnA glossary source form survived translation
whitespaceinfoCosmetic; fix in bulk, never per line

Fix errors before you read for style. A document with broken code and missing links has bigger problems than its rhythm.

3. Read in three passes

Do not read source and target side by side from the first sentence; you will match words instead of meaning.

Pass A — target only. Read the translation as a reader of the target language would. Note every place you stumble, re-read, or lose track. Do not look at the source. These notes are where readability defects live.

Pass B — source and target aligned, paragraph by paragraph. For each pair look for the six defects that matter:

  1. Meaning changed — a claim is stronger, weaker, or different.
  2. Omitted — a clause, qualifier, negation, or example is missing.
  3. Added — content, emphasis, or explanation not in the source.
  4. Mistranslated term — a glossary term rendered differently.
  5. Broken reference — pronoun, cross-reference, or list item pointing wrong.
  6. Register drift — a formal source became casual, or the reverse.

Pass C — structural spot checks. First and last paragraph of every chunk boundary, every heading, every table, every list of three or more items, every negative sentence, and every number with a unit.

4. Classify findings

Use four severities, defined by what the reader does next:

SeverityDefinitionExample
BlockingWrong meaning, missing content, broken code. Cannot publish.A requirement lost the word "not".
MajorReads as a defect to a native reader, meaning survives."يُعتبر من" calque; inconsistent term.
MinorStyle, rhythm, punctuation.ASCII comma after an Arabic clause.
NotePreference, or a decision only the author can make.Persona of a quoted character.

5. Write the report

Use this shape. It is short on purpose: a reviewer reads the top and skims the rest.

# Review: <document>, <src> → <tgt>

## Verdict
<Blocking: 0 | Major: 4 | Minor: 11 | Notes: 2>
<One sentence: publishable / publishable after fixes / needs re-translation of N sections>

## What was checked
- Mechanical gate: all checks, glossary enforced, numerals preserve
- Full read of target, aligned read of all N paragraphs, structure spot checks
- NOT checked: figures, footnotes rendering, print layout

## Blocking
1. **§3.2, para 2 — meaning inverted**
   Source: "The parser must not discard trailing whitespace."
   Target: "يجب أن يتجاهل المحلل المسافات البيضاء الزائدة."
   Problem: تجاهل = discard; the negation is missing.
   Suggested: "يجب ألا يتجاهل المحلل المسافات البيضاء الزائدة."

## Major
…

## Minor
| # | Location | Issue | Suggested |
| --- | --- | --- | --- |

## Notes
…

Rules for the report:

  • Quote the source and the target. A finding without a quote cannot be verified.
  • Give the suggested fix inline. The reviewer should not have to solve it.
  • Group minor findings into a table; do not give each one a section.
  • If a category has no defects, write "none". Do not pad.

6. Verify your own findings

Before delivering, re-check each Blocking and Major item against the source. False positives destroy trust faster than missed minor issues. Delete anything you cannot reproduce.

Then confirm the counts: errors from the gate must all appear in the report or be explicitly explained.

What the gate cannot catch

Say this in the report, every time. The gate does not know:

  • whether the translation means what the source means,
  • whether an idiom landed,
  • whether the register holds,
  • whether a term choice was wise (only that it was consistent),
  • whether a name is transliterated the way the reader expects,
  • whether a footnote, figure caption, or table header renders correctly.

Do not present a clean gate as an approval.

Arabic review specifics

  • Negation and modality are where meaning breaks. Read every لا, لم, لن, يجب, ينبغي, يجوز against the source.
  • Agreement — verb and adjective must agree with the noun's gender and number. Dual (المثنى) is the form translators forget.
  • Idafa chains longer than three nouns: unreadable, rewrite.
  • Punctuation — Arabic comma, and no space before it.
  • MT tells — the gate lists known phrases; the review should catch the structural ones the list cannot (تم + مصدر, يُعتبر من, passive chains).

Failure modes in a review

FailureWhy it happensFix
Report lists 100 minor issues and misses the inverted negationReading for style before meaningRun the six defect classes first, style last
Reviewer rewrites instead of reportingProducing is easier than judgingQuote, diagnose, suggest — never paste a full rewrite
Findings cannot be verifiedNo source quoteEvery finding carries source and target text
Verdict says "looks good" after a clean gateTreating the gate as approvalState explicitly what the gate cannot check
False positives on deliberate choicesNo register or glossary baselineAsk for the baseline; mark disagreements as Notes
Duplicated findingsSame defect counted per lineGroup systemic findings with a count
Severity inflationEverything feels urgentApply the reader-action test in the severity guide
The gate's own warnings are ignoredReading only the summaryParse the JSON and account for every error

References

  • references/review-checklist.md — the pass-by-pass checklist.
  • references/severity-guide.md — how to classify borderline findings.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.