mt-markup-preserving-translation

mt-markup-preserving-translation is a skill for Claude Code, Codex from pedroiff0/awesome-skills. It costs 54 tokens per session (1,354 once invoked), scanned A, original, MIT.

A guide for creating standalone dark-themed HTML architecture diagrams with inline SVG, a format for drawing scalable graphics in web pages.

In plain words
What is it for?
Use it to make diagrams of application layers, cloud infrastructure, microservices, service meshes, databases, APIs, or deployment layouts.
Why use it?
It provides a consistent visual approach for showing how software services, databases, networks, and cloud systems connect.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to make diagrams of application layers, cloud infrastructure, microservices, service meshes, databases, APIs, or deployment layouts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pedroiff0/awesome-skills/mt-markup-preserving-translation
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.

Any agent
npx skills add pedroiff0/awesome-skills --skill mt-markup-preserving-translation
Clone the repo
git clone --depth 1 https://github.com/pedroiff0/awesome-skills

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 mt-markup-preserving-translation

README.md
[![agentmods](https://agentmods.dev/badge/skills/pedroiff0/awesome-skills/mt-markup-preserving-translation/github.svg)](https://agentmods.dev/skills/pedroiff0/awesome-skills/mt-markup-preserving-translation)
Your own site
<a href="https://agentmods.dev/skills/pedroiff0/awesome-skills/mt-markup-preserving-translation"><img src="https://agentmods.dev/badge/skills/pedroiff0/awesome-skills/mt-markup-preserving-translation/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 mt-markup-preserving-translation

Your own site · 80×15
<a href="https://agentmods.dev/skills/pedroiff0/awesome-skills/mt-markup-preserving-translation"><img src="https://agentmods.dev/badge/skills/pedroiff0/awesome-skills/mt-markup-preserving-translation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,354 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.
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.00054 $0.01354
Opus 5.5 $0.00022 $0.00542
Sonnet 5.5 $0.00011 $0.00271
Haiku 4.5 $0.00005 $0.00135

Measured 2mo ago against content hash 235cbfeb46fd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mt-markup-preserving-translation 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 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/translate_quartz.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/content-i18n/mt-markup-preserving-translation/SKILL.md · 53 lines

How it starts

The opening of the file, as written. The whole thing — 53 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Markup-preserving MT translation

The engine (LibreTranslate) WILL corrupt your source if you hand it raw Markdown. The fix is a single principle: never let the engine see anything structural — split the line, keep markup/URLs/wikilinks/proper-nouns/HTML literal, translate only the plain-text spans between them, rejoin.

Core strategy (apply in this order, per line)

  1. Split positional, not placeholder. Find protected spans (wikilinks, embeds, proper nouns, inline HTML) with re.finditer, keep them literal, translate the text BETWEEN them. Placeholders (§N§, ZZNZZ, \x00N\x00) are silently mangled by the engine (see references/libretranslate-notes.md) — do NOT use them for anything except bold/italic (which uses real HTML tags: <strong>/<em> with format=html).
  2. Wikilinks/embeds — capture with !?\[\s*\[\s*[^\[\]]*\]\s*\]\s* (the FIRST [ is mandatory so the ! of embeds is kept; a leading \s* before [ drops the ! and yields broken [[[). Keep literal — engine turns ![[assets/b/b.pdf|B]] into [ [ [assets/b/b.pdf|Banner]].
  3. Internal links — \[([^\]]*)\]\(([^)]+)\); translate only the anchor text, re-emit with the ORIGINAL url. Engine mangles URLs (integrra.iff.edu.br/p/x -> https: / / integrra ... / x).
  4. Proper nouns — positional, NOT to the engine. "Soja" -> "Soya", "Ana Cecília Soja" -> "Chapitre 1" if seen. Stash as literal spans (longest-first ordering matters).
  5. Tables — split each row on |, translate per cell, rejoin. Engine drops inner | and merges columns if given the whole row.
  6. Bold/italic — convert **x**-><strong>x</strong>, *x*-><em>x</em>, call engine with format=html, revert tags after. Engine preserves real HTML tags.
  7. Headings — strip ## (+ emoji) as a prefix, re-prepend after translate; clean a leading ^[-\*#]\s+ the engine may inject.

Inline HTML blocks (carousels etc.) — the hard one

Non-greedy regex (<\w+...>.*?</\w+>) is NOT enough for nested tags: it matches the smallest tag and leaves the outer wrapper (<div class="media-carousel">, <a href=...>) to be fed to the engine, which then corrupts attributes and spaces URLs (< div classe = "media-carrousel" >, href = classe "/ pt-br / ... " = "carrousel-glide").

Read the full file on GitHub · 53 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago First seen · 53 lines · 54 tokens per session scan A 235cbfeb46fd

Subscribe to this mod's changes

mt-markup-preserving-translation is a skill published in the GitHub repository pedroiff0/awesome-skills (1 stars, last pushed 15d ago), licensed MIT. It adds 54 tokens to every session and 1,354 once invoked, about $0.0002 per session on Opus 5.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-31.

Related

mt-markup-preserving-translation compared with skills from other repositories

mt-markup-preserving-translation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mt-markup-preserving-translationpedroiff0/awesome-skillsSkill115d agoMITA54Claude Code, Codex
dx-roasterVarnan-Tech/opendirectorySkill69320d agoMITA130Claude Code
mnemosyne-maintenanceAtlasOmnia/donna-starterSkill13811d agoMITA40Claude Code, Codex
review-workflowggg123124/vrchat-assistantSkill303d agoMITA46Claude Code, Codex
code-reviewggg123124/vrchat-assistantSkill303d agoMITA96Claude Code, Codex
specification-compliance-reviewAtlasOmnia/donna-starterSkill13811d agoMITB35Claude Code, Codex
work-self-improvement-reviewUniM0cha/self-improving-skillsSkill511mo agoMITA101Codex