book-translation
π―SkillStep-by-step instructions for translating "The Interactive Book of Prompting" on prompts.chat into a new language. It covers the chapters, the website text and the interactive examples.
Installation
npx skills add f/prompts.chat --skill book-translationRun it in a terminal; it asks which AI coding tools to install it for (Claude Code, Codex, Cursor and more).
Uses skills.sh Β· Node.js 22.20+
After installing
Ask for related work and the agent uses it on its own, or call it yourself.
/book-translationInstall by hand
Copy the whole skill folder from GitHub to the place below. Copying only SKILL.md can leave out files the skill uses.
Open the skill folder β- This project
.claude/skills/book-translation/ - All projects
~/.claude/skills/book-translation/
These paths are for Claude Code. For other tools, the command above puts it in the right place.
What this skill does
Overview
This skill guides an AI through translating an online book about writing prompts for AI. The book lives on the prompts.chat website and has 31 chapters. The skill lists which files to copy, translate and register so the new language works on the site.
Key Features
- You can set up folders for a new language by copying the existing chapter files.
- You can translate chapter text while keeping page layout code and code samples unchanged.
- You can translate chapter titles, menus and buttons in
messages/{locale}.json. - You can translate the examples used in the book's hands-on demos so they work in the new language.
- You can check the result with
node scripts/check-translations.jsandnpm run dev.
Who is this for?
This is for people helping to translate the prompts.chat book into their own language. It is tied to that project's files, so it is not a general translation tool. It helps keep translations consistent and avoids missed steps.
Summarized by AI from this skill's SKILL.md. Suggest a better one
SKILL.md
View on GitHub βTranslate "The Interactive Book of Prompting" chapters and UI strings to a new language
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:
- MDX content files - Full chapter content in
src/content/book/{locale}/ - 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:
- Add import:
import {locale} from "./{locale}"; - Add to
localesobject:{locale}, - 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)
| Slug | English Title |
|---|---|
00a-preface | Preface |
00b-history | History |
00c-introduction | Introduction |
01-understanding-ai-models | Understanding AI Models |
02-anatomy-of-effective-prompt | Anatomy of an Effective Prompt |
03-core-prompting-principles | Core Prompting Principles |
04-role-based-prompting | Role-Based Prompting |
05-structured-output | Structured Output |
06-chain-of-thought | Chain of Thought |
07-few-shot-learning | Few-Shot Learning |
08-iterative-refinement | Iterative Refinement |
09-json-yaml-prompting | JSON & YAML Prompting |
10-system-prompts-personas | System Prompts & Personas |
11-prompt-chaining | Prompt Chaining |
12-handling-edge-cases | Handling Edge Cases |
13-multimodal-prompting | Multimodal Prompting |
14-context-engineering | Context Engineering |
15-common-pitfalls | Common Pitfalls |
16-ethics-responsible-use | Ethics & Responsible Use |
17-prompt-optimization | Prompt Optimization |
18-writing-content | Writing & Content |
19-programming-development | Programming & Development |
20-education-learning | Education & Learning |
21-business-productivity | Business & Productivity |
22-creative-arts | Creative Arts |
23-research-analysis | Research & Analysis |
24-future-of-prompting | The Future of Prompting |
24a-from-prompt-to-team | From Prompt to Team |
25-agents-and-skills | Agents & Skills |
27-tools-mcp-connectors | Tools, MCP and Connectors |
26-the-harnesses | The Harnesses |
28-persistent-bots | Always-On Bots: Agents That Keep Working |
28a-software-development-with-ai | Software Development with AI |
MDX Translation Guidelines
- Preserve all JSX/React components - Keep
<div>,<img>,className, etc. unchanged - Preserve code blocks - Code examples should remain in English (variable names, keywords)
- Translate prose content - Headings, paragraphs, lists
- Keep Markdown syntax -
##,**bold**,*italic*,[links](url) - Preserve component imports - Any
importstatements 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
-
Run the check script:
node scripts/check-translations.js -
Start dev server and test:
npm run dev -
Navigate to
/bookwith 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 tosrc/content/book/{locale}/*.mdx - JSON keys:
messages/en.jsonβbooksection β use as reference for structure
Recommended Workflow
- Copy
src/content/book/*.mdxtosrc/content/book/{locale}/*.mdx - Copy the
"book"section frommessages/en.jsontomessages/{locale}.json. Translate these in multiple agentic session instead of single time (token limit may exceed at once) - Edit each file, translating English β target language
- 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
More from this repository4
prompts.chat is an open-source collection of prompts, the instructions you type to an AI, that you can browse and copy. The prompts work with ChatGPT, Claude, Gemini, Llama, Mistral, and other AI assistants.
Finds ready-made AI prompts from the prompts.chat library when you ask for one. It can also fetch a specific prompt and rewrite your own prompt to make it better.
Helps you find ready-made skills for Claude in the prompts.chat collection and install them for you. Just describe what you need, pick a result, and the skill files are saved into your project.
Helps you build widgets for the prompts.chat site, such as sponsor cards or custom blocks shown inside the prompt list. It asks for the widget details, creates the code file, and sets where and how often the widget appears.