skills/book-translation/SKILL.md
Use this skill when translating a book, chapter, or long-form document into another language while preserving structure, formatting, terminology consistency, and document continuity.
npx skillsauth add chatandbuild/chatchat-skills Book TranslationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when the user wants to translate a book, chapter, or other long-form document into another language.
Ask for (or infer from context) the minimum required details:
fr-FR vs fr-CA)If the user provides a PDF:
If the user provides text (or Markdown):
Create a short glossary of:
If there are ambiguous terms, present 2–3 options and recommend one for consistency.
Translate section-by-section to maintain coherence and avoid drift:
Run a consistency pass:
Provide:
This skill guides translation of book content for The Interactive Book of Prompting at prompts.chat.
The book has 25 chapters across 7 parts. Translation requires:
src/content/book/{locale}/messages/{locale}.jsonBefore starting, identify:
de, fr, es, ja, ko, zh)messages/ directorysrc/content/book/{locale}/ folder existsThe 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:
import {locale} from "./{locale}";locales object: {locale},export { en, tr, az, {locale} };This is faster because:
Edit each copied file in src/content/book/{locale}/ to translate from Turkish to your target language.
Process files one by one:
| 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 |
| 25-agents-and-skills | Agents & Skills |
<div>, <img>, className, etc. unchanged##, **bold**, *italic*, [links](url)import statements at the topIn messages/{locale}.json, translate the "book" section. Key areas:
"book": {
"title": "The Interactive Book of Prompting",
"subtitle": "An Interactive Guide to Crafting Clear and Effective Prompts",
"metaTitle": "...",
"metaDescription": "...",
...
}
book.chapters)"chapters": {
"00a-preface": "Preface",
"00b-history": "History",
"00c-introduction": "Introduction",
...
}
book.chapterDescriptions)"chapterDescriptions": {
"00a-preface": "A personal note from the author",
"00b-history": "The story of Awesome ChatGPT Prompts",
...
}
book.parts)"parts": {
"introduction": "Introduction",
"foundations": "Foundations",
"techniques": "Techniques",
"advanced": "Advanced Strategies",
"bestPractices": "Best Practices",
"useCases": "Use Cases",
"conclusion": "Conclusion"
}
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?",
...
}
}
⚠️ 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:
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
book.interactive.*, book.chapter.*, book.search.*)Translate all interactive component labels and navigation strings.
Run the check script:
node scripts/check-translations.js
Start dev server and test:
npm run dev
Navigate to /book with the target locale to verify content loads
The English (en) translation is complete and serves as the base template for all new translations:
src/content/book/*.mdx — copy this files to src/content/book/{locale}/*.mdxmessages/en.json → book section — use as reference for structuresrc/content/book/*.mdx to src/content/book/{locale}/*.mdx"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)documentation
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.
development
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
devops
Deploy applications and infrastructure to Cloudflare using Workers, Pages, and related platform services. Use when the user asks to deploy, host, publish, or set up a project on Cloudflare.
tools
Use this skill when designing and building durable command-line tools from API docs, OpenAPI specs, SDKs, curl examples, admin tools, web apps, or local scripts, especially when the CLI should expose composable commands, stable JSON output, auth/config handling, install-on-PATH behavior, and a companion skill.