translate

translate is a skill for Claude Code, Codex from 0-bingwu-0/html-knowledge-base-templates. It costs 55 tokens per session (1,076 once invoked), scanned A, original, MIT.

A translation command for rendered HTML pages containing podcast question-and-answer cards.

In plain words
What is it for?
Translating podcast note pages into languages such as Chinese, Japanese, Spanish, French, or German.
Why use it?
It creates a translated copy without changing the page’s layout, styles, or HTML structure.

Skill for Claude CodeCodex

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

Good fit Translating podcast note pages into languages such as Chinese, Japanese, Spanish, French, or German.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/0-bingwu-0/html-knowledge-base-templates/translate
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 0-bingwu-0/html-knowledge-base-templates --skill translate
Clone the repo
git clone --depth 1 https://github.com/0-bingwu-0/html-knowledge-base-templates

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 translate

README.md
[![agentmods](https://agentmods.dev/badge/skills/0-bingwu-0/html-knowledge-base-templates/translate.svg)](https://agentmods.dev/skills/0-bingwu-0/html-knowledge-base-templates/translate)
Your own site
<a href="https://agentmods.dev/skills/0-bingwu-0/html-knowledge-base-templates/translate"><img src="https://agentmods.dev/badge/skills/0-bingwu-0/html-knowledge-base-templates/translate.svg" alt="Measured on agentmods" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,076 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.00055 $0.01076
Opus 5 $0.00028 $0.00538
Sonnet 5 $0.00011 $0.00215
Haiku 4.5 $0.00006 $0.00108

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

Security

Grade A, and why

translate 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 8d 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.

podcast-question-cards/skills/translate/SKILL.md · 122 lines

What it actually says

You translate a rendered Q&A card HTML page into a target language.

Goal: Produce a localized version of an English Q&A card page without touching layout, styles, or markup — only the text content is translated.


USAGE

/translate <lang> <path-to-source-html>

Example:

/translate zh podcast/notes/lenny-2026-05-03.html
/translate ja podcast/notes/lenny-2026-05-03.html

Where <lang> is an ISO 639-1 code (zh, ja, es, fr, de, ...). For Chinese, default to Simplified (zh → zh-CN) unless zh-TW is given explicitly.


INPUT

A rendered Q&A card HTML file produced by [[digest]], typically at:

podcast/notes/{channel_slug}-{published_date}.html


OUTPUT FILE

Write the translated HTML to:

podcast/notes-{lang}/{channel_slug}-{published_date}-{lang}.html

Example:

  • input → podcast/notes/lenny-2026-05-03.html
  • /translate zhpodcast/notes-zh/lenny-2026-05-03-zh.html
  • /translate japodcast/notes-ja/lenny-2026-05-03-ja.html

Create the podcast/notes-{lang}/ directory if it does not exist.

Do NOT paste HTML into chat. The chat response should only say:

Created podcast/notes-{lang}/{filename}


WHAT TO TRANSLATE

Translate the human-readable text content:

  • <title> and the episode title heading
  • episode-meta items: source, guest, published date, etc.
  • The url_display link text (keep the href URL itself unchanged)
  • Each card's question (.qa-question)
  • Each card's one-sentence answer (.qa-answer)
  • Each card's source passage inside <blockquote>, including speaker labels

WHAT NOT TO TOUCH

  • HTML tags, attributes, class names, ids, inline styles
  • The template skeleton, CSS, and any <style> / <script> blocks
  • href URL values (translate only the visible link text)
  • Card numbering — it is CSS-generated, do not write numbers into the HTML
  • The .qa-toggle element — it stays empty; do not add labels like "原文片段" or "Read transcript"
  • Proper nouns and technical terms: never translate or transliterate people names, company names, product names, or technical vocabulary. Keep them verbatim in the source language — no parenthetical glosses, no romanizations, no native-form substitutions, even when an established translation exists.
  • Verified spellings from the English version — do not re-romanize or re-translate names

LANGUAGE & STYLE

  • Use natural, idiomatic phrasing in the target language. Do not translate word-for-word.
  • Keep all technical vocabulary verbatim in the source language (e.g. agency, product-market fit, RAG). Do not translate or gloss it, even on first mention.
  • Preserve the speaker's voice in <blockquote> source passages — keep them conversational, not formal prose. Do not "clean up" colloquialisms.
  • Preserve paragraph breaks and speaker labels inside <blockquote> (e.g. Host:, Max:) — translate the label words but keep the structure.

PUBLISHED DATE

Re-render {{published_date}} in a form consistent with the target language:

  • zh2026 年 5 月 3 日
  • ja2026年5月3日
  • es3 de mayo de 2026
  • fr3 mai 2026
  • de3. Mai 2026
  • default to the locale's conventional long date form

HTML HEADER

Update the document language attribute:

  • <html lang="en"><html lang="{lang}"> (use the full tag where appropriate: zh-CN, zh-TW, pt-BR)

Keep the <meta charset="utf-8"> and viewport meta as-is.


QUALITY CHECKS

  • Every visible English string is translated; no stray English text remains except intentionally-kept proper nouns and technical terms.
  • The translated answer still matches the question (no semantic drift).
  • The source passage still supports the answer — if a translation changes the meaning, re-translate, do not rewrite the answer.
  • If the source HTML has an actual error in the English text, translate faithfully first, then append a single translator note at the very end of the page in a <p class="translator-note">…</p> outside the card list.
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. 8d ago First seen · 122 lines · 55 tokens per session scan A c3ad8d738b64

Subscribe to this mod's changes

translate is a skill published in the GitHub repository 0-bingwu-0/html-knowledge-base-templates (5 stars, last pushed 3mo ago), licensed MIT. It adds 55 tokens to every session and 1,076 once invoked, about $0.0003 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-31.

Related

Other skills, from other repositories

chinese-documentation

A Chinese technical-documentation style guide covering spacing, punctuation, numbers, terminology, and links when Chinese and English appear together.

jnMetaCode/superpowers-zh · 62 tokens

azure-ai-translation-text-py

Azure AI Text Translation SDK for real-time text translation, transliteration, language detection, and dictionary lookup. Use for translating text content in applications. Triggers: "text translation", "translator", "translate text", "transliterate", "TextTranslationClient".

microsoft/skills · 60 tokens

harden

Improve interface resilience through better error handling, i18n support, text overflow handling, and edge case management. Makes interfaces robust and production-ready. Use when the user asks to harden, make production-ready, handle edge cases, add error states, or fix overflow and i18n issues.

fengshao1227/ccg-workflow · 62 tokens

seedance-vocab-ja

This skill should be used when the user asks for Japanese Seedance 2.0 prompt wording, Japanese cinematic vocabulary, or translation of camera, lighting, action, VFX, audio, and production terms into Japanese.

Emily2040/seedance-2.0 · 50 tokens

asc-subscription-localization

Bulk-localize subscription, subscription-group, and in-app purchase display names across App Store locales using asc, including API 4.4.1 version-scoped v2 resources. Use when filling or updating subscription/IAP names and descriptions without App Store Connect UI work.

rorkai/app-store-connect-cli-skills · 60 tokens

i18n-helper

A helper for adding internationalization, which lets software show different languages and regional text. It finds user-visible text written directly in code and moves it into language files.

laolaoshiren/claude-code-skills-zh · 33 tokens