Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
f avatar

Book Translation

  • 518 installs
  • 167k repo stars
  • Updated August 4, 2026
  • f/prompts.chat

book-translation is a localization skill that translates all 25 chapters and UI strings of The Interactive Book of Prompting into a new locale using MDX and messages JSON for developers who maintain multilingual docs sit

About

Book Translation is an agent skill for maintainers of prompts.chat’s Interactive Book of Prompting who need a full locale rollout without hand-waving file layout. It tells your coding agent exactly which artifacts to touch: MDX chapter bodies, JSON translation keys for titles and UI chrome, and the book elements locale registry that React components read at runtime. The workflow favors copying the battle-tested Turkish folder as a structural scaffold, then replacing copy while preserving JSX and MDX structure—often faster than diffing against English when grammar parallels your target language. developers shipping multilingual educational products use it during Build/Docs sprints when they already have English source of truth and need parity across 25 chapters. It does not replace professional literary translation judgment; it encodes repo conventions so agents do not skip index registration or split content paths incorrectly.

  • Covers 25 chapters across 7 parts via MDX under src/content/book/{locale}/ and UI keys in messages/{locale}.json
  • Recommends cloning the complete Turkish (tr) tree as the translation base instead of English-only
  • Registers new locales in src/components/book/elements/locales/index.ts (import, locales map, named exports)
  • Copies element locale TS from en.ts template for component-level strings
  • Prerequisite checklist: target locale code and whether messages/ and content folders already exist

Book Translation by the numbers

  • 518 all-time installs (skills.sh)
  • +14 installs in the week ending Jun 18, 2026 (Skillselion tracking)
  • Ranked #378 of 1,879 Documentation skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/f/prompts.chat --skill book-translation

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs518
repo stars167k
Security audit3 / 3 scanners passed
Last updatedAugust 4, 2026
Repositoryf/prompts.chat

How do you localize MDX book chapters and UI strings?

Localize all 25 chapters and UI strings of The Interactive Book of Prompting to a new locale using MDX plus messages JSON.

Who is it for?

Developers maintaining the prompts.chat book who need synchronized MDX chapter and JSON UI localization.

Skip if: Developers translating unrelated apps without the book's MDX plus messages/{locale}.json layout.

When should I use this skill?

User requests a new book locale, chapter translation, or messages JSON updates for The Interactive Book of Prompting.

What you get

Localized MDX files in src/content/book/{locale}/ and messages/{locale}.json translation keys

  • Localized MDX chapters
  • messages/{locale}.json UI catalog

By the numbers

  • 25 chapters across 7 parts
  • Two artifact types: MDX content files and messages JSON keys

Files

SKILL.mdMarkdownGitHub ↗

Book Translation Skill

This skill guides translation of book content for The Interactive Book of Prompting at prompts.chat.

Overview

The book has 25 chapters across 7 parts. Translation requires: 1. MDX content files - Full chapter content in src/content/book/{locale}/ 2. JSON translation keys - UI strings, chapter titles, and descriptions in messages/{locale}.json

Prerequisites

Before starting, identify:

  • Target locale code (e.g., de, fr, es, ja, ko, zh)
  • Check if locale exists in messages/ directory
  • Check if src/content/book/{locale}/ folder exists

Step 1: Copy Turkish Folder as Base

The Turkish (tr) translation is complete and well-tested. Copy it as your starting point instead of translating from English:

mkdir -p src/content/book/{locale}
cp -r src/content/book/*.mdx src/content/book/{locale}/
cp src/components/book/elements/locales/en.ts src/components/book/elements/locales/{locale}.ts

⚠️ IMPORTANT: After copying, you MUST register the new locale in `src/components/book/elements/locales/index.ts`: 1. Add import: import {locale} from "./{locale}"; 2. Add to locales object: {locale}, 3. Add to named exports: export { en, tr, az, {locale} };

This is faster because:

  • Turkish and many languages share similar sentence structures
  • All JSX/React components are already preserved correctly
  • File structure is already set up
  • You only need to translate the prose, not recreate the structure

Step 2: Translate MDX Content Files

Edit each copied file in src/content/book/{locale}/ to translate from Turkish to your target language.

Process files one by one:

Chapter List (in order)

SlugEnglish Title
00a-prefacePreface
00b-historyHistory
00c-introductionIntroduction
01-understanding-ai-modelsUnderstanding AI Models
02-anatomy-of-effective-promptAnatomy of an Effective Prompt
03-core-prompting-principlesCore Prompting Principles
04-role-based-promptingRole-Based Prompting
05-structured-outputStructured Output
06-chain-of-thoughtChain of Thought
07-few-shot-learningFew-Shot Learning
08-iterative-refinementIterative Refinement
09-json-yaml-promptingJSON & YAML Prompting
10-system-prompts-personasSystem Prompts & Personas
11-prompt-chainingPrompt Chaining
12-handling-edge-casesHandling Edge Cases
13-multimodal-promptingMultimodal Prompting
14-context-engineeringContext Engineering
15-common-pitfallsCommon Pitfalls
16-ethics-responsible-useEthics & Responsible Use
17-prompt-optimizationPrompt Optimization
18-writing-contentWriting & Content
19-programming-developmentProgramming & Development
20-education-learningEducation & Learning
21-business-productivityBusiness & Productivity
22-creative-artsCreative Arts
23-research-analysisResearch & Analysis
24-future-of-promptingThe Future of Prompting
25-agents-and-skillsAgents & Skills

MDX Translation Guidelines

1. Preserve all JSX/React components - Keep <div>, <img>, className, etc. unchanged 2. Preserve code blocks - Code examples should remain in English (variable names, keywords) 3. Translate prose content - Headings, paragraphs, lists 4. Keep Markdown syntax - ##, **bold**, *italic*, [links](url) 5. Preserve component imports - Any import statements at the top

Step 3: Translate JSON Keys

In messages/{locale}.json, translate the "book" section. Key areas:

Book Metadata

"book": {
  "title": "The Interactive Book of Prompting",
  "subtitle": "An Interactive Guide to Crafting Clear and Effective Prompts",
  "metaTitle": "...",
  "metaDescription": "...",
  ...
}

Chapter Titles (book.chapters)

"chapters": {
  "00a-preface": "Preface",
  "00b-history": "History",
  "00c-introduction": "Introduction",
  ...
}

Chapter Descriptions (book.chapterDescriptions)

"chapterDescriptions": {
  "00a-preface": "A personal note from the author",
  "00b-history": "The story of Awesome ChatGPT Prompts",
  ...
}

Part Names (book.parts)

"parts": {
  "introduction": "Introduction",
  "foundations": "Foundations",
  "techniques": "Techniques",
  "advanced": "Advanced Strategies",
  "bestPractices": "Best Practices",
  "useCases": "Use Cases",
  "conclusion": "Conclusion"
}

Interactive Demo Examples (book.interactive.demoExamples)

Localize example text for demos (tokenizer samples, temperature examples, etc.):

"demoExamples": {
  "tokenPrediction": {
    "tokens": ["The", " capital", " of", " France", " is", " Paris", "."],
    "fullText": "The capital of France is Paris."
  },
  "temperature": {
    "prompt": "What is the capital of France?",
    ...
  }
}

Book Elements Locales (REQUIRED)

⚠️ DO NOT SKIP THIS STEP - The interactive demos will not work in the new language without this.

Translate the locale data file at src/components/book/elements/locales/{locale}.ts:

  • Temperature examples, token predictions, embedding words
  • Capabilities list, sample conversations, strategies
  • Tokenizer samples, builder fields, chain types
  • Frameworks (CRISPE, BREAK, RTF), exercises
  • Image/video prompt options, validation demos

Then register it in `src/components/book/elements/locales/index.ts`:

import {locale} from "./{locale}";

const locales: Record<string, LocaleData> = {
  en,
  tr,
  az,
  {locale},  // Add your new locale here
};

export { en, tr, az, {locale} };  // Add to exports

UI Strings (book.interactive.*, book.chapter.*, book.search.*)

Translate all interactive component labels and navigation strings.

Step 4: Verify Translation

1. Run the check script:

   node scripts/check-translations.js

2. Start dev server and test:

   npm run dev

3. Navigate to /book with the target locale to verify content loads

Reference: English Translation

The English (en) translation is complete and serves as the base template for all new translations:

  • MDX files: src/content/book/*.mdx — copy this files to src/content/book/{locale}/*.mdx
  • JSON keys: messages/en.jsonbook section — use as reference for structure

Recommended Workflow

1. Copy src/content/book/*.mdx to src/content/book/{locale}/*.mdx 2. Copy the "book" section from messages/en.json to messages/{locale}.json. Translate these in multiple agentic session instead of single time (token limit may exceed at once) 3. Edit each file, translating English → target language 4. Keep all JSX components, code blocks, and Markdown syntax intact

Quality Guidelines

  • Consistency: Use consistent terminology throughout (e.g., always translate "prompt" the same way)
  • Technical terms: Some terms like "AI", "ChatGPT", "API" may stay in English
  • Cultural adaptation: Adapt examples to be relevant for the target audience where appropriate
  • Natural language: Prioritize natural-sounding translations over literal ones

Related skills

How it compares

Pick book-translation over generic i18n skills when the repo follows prompts.chat's MDX book tree plus messages/{locale}.json pairing.

FAQ

What files does book-translation modify?

book-translation modifies MDX chapter files in src/content/book/{locale}/ and JSON UI keys in messages/{locale}.json for The Interactive Book of Prompting. Both layers must stay aligned so chapter content and navigation strings render correctly in the target locale.

How many chapters does book-translation cover?

book-translation covers all 25 chapters organized in 7 parts of The Interactive Book of Prompting. Developers translate full MDX bodies plus related UI strings, titles, and descriptions stored in the messages JSON catalog.

Is Book Translation safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.