Generate a complete communication-focused language guide for travelers. Creates all 11 chapter files following the project's system prompt and checklist.
You are generating a communication-focused language guide for travelers. Follow the system prompt at agents/system-prompt.md exactly, and validate against agents/checklist.md before finishing.
The user provides: $ARGUMENTS — the language name (e.g., "french", "korean", "portuguese").
Parse the language slug from the arguments (lowercase, no spaces). If no language is provided, ask the user.
Read the system prompt and checklist:
agents/system-prompt.md for the full guide generation specagents/checklist.md for quality requirementsCheck if the language already exists:
languages/<slug>/chapters/ — if it exists, ask if the user wants to overwrite or skipReference an existing guide for format:
languages/japanese/chapters/ (e.g., 00-cover.md, 01-core-phrases.md, 07-restaurants.md) to match the exact format, table style, and depthGenerate all 11 chapters following the required structure:
00-cover.md — About, usage notes, guide structure overview01-core-phrases.md — Pattern templates, greetings, small talk, asking for help, emergencies, daily interactions02-language-foundations.md — Essential grammar, particles, pronouns, sentence patterns03-pronunciation.md — Vowels, consonants, special sounds04-writing-systems.md — Scripts/characters (if applicable), survival reading05-directions-navigation.md — Asking directions, landmarks06-transportation.md — Trains, buses, taxis, airports07-restaurants.md — Ordering, dietary needs, payment08-shopping.md — Sizes, trying on, payment, returns09-hotels.md — Check-in/out, requests, problems10-cultural-guide.md — Regional differences, etiquette affecting communicationWrite each file to languages/<slug>/chapters/.
Quality requirements per chapter:
English | Target Language | Transliteration | Notes[brackets] for customizable slots — 10+ patterns minimumValidate against checklist:
agents/checklist.md and confirm complianceOptionally generate a spec:
languages/<slug>/spec.md created (detailed content specification like the Japanese one)After generating all chapters, report:
./scripts/build-guide.sh <slug>