Skip to content
f avatar

Book Translation

Step-by-step playbook for translating a 31-chapter prompting book and its interactive demo strings into a new locale.

CCM score
67 of 100
skills.sh installs
694
GitHub stars
178.8K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers copying the Turkish translation as a base, then translating MDX chapters, JSON keys, and locale data files
  • Includes a 31-row chapter table, JSON structure examples for titles, parts, and demo examples, and a check-translations.js verification step
  • Enforces locale registration in src/components/book/elements/locales/index.ts, and requires JSX, code blocks, and Markdown syntax to stay unchanged
  • Designed for contributors localizing prompts.chat's book at /book who work in multiple agentic sessions

Install

$ npx -y skills add f/prompts.chat --skill book-translation -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Book Translation Skill

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

Overview

The book has 31 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

Details

Repository
github.com/f/prompts.chat
Categories
Writing & Content, Learning & Teaching
First seen
Jun 3, 2026

Questions

What does the book-translation skill do?

The book-translation skill translates the chapters of The Interactive Book of Prompting and its UI strings into a new language. It copies the complete Turkish translation as a base, then guides the agent through the MDX content files and the JSON translation keys.

Who is the book-translation skill for?

It is for developers and translators who work on the prompts.chat repository and want to add a new locale to The Interactive Book of Prompting. The steps assume a target locale code such as de, fr or ja.

How do I install the book-translation skill?

Run npx -y skills add f/prompts.chat --skill book-translation -y in your project. After installing, the agent can copy the Turkish base, translate the chapter files, and register the new locale in the book elements index.

Where does book-translation stand in the Writing & Content category?

The skill is listed in the Writing & Content category alongside writing-beats, writing-shape, writing-fragments, wait-what and copywriting. Unlike those general writing skills, it covers the specific workflow for translating this one interactive book.

More from f/prompts.chat

All 4

Similar to Book Translation

More Writing & Content