借助 AI 助手

把工具包交给你的 AI 助手(里面有说明文件 AGENTS.md),或粘贴下面的提示。它指向规范和校验工具,助手可以写书并自行检查。

You are helping me write a book for the Ledu language-learning reader app.
Read the format first: https://ledu.app/developers/book-format.md
JSON Schemas: https://ledu.app/schema/v2/book.schema.json, section.schema.json, lexicon.schema.json
Starter kit with a valid sample book, an AI brief (AGENTS.md) and the validator:
https://ledu.app/developers/ledu-book-kit.zip

Follow the format exactly: target-language text in "fa", meanings in "gloss" (a map that includes
the base locale), every block with a unique "id", only the block kinds the format lists, and no
audio or image paths for files that do not exist. After each file, run
"python3 validate_books.py <book folder>" and fix every error until it prints 0 error(s).

My book: [target language, base language, level, topic and number of lessons]

给 AI 工具和编辑器的文件

  • book-format.md整份格式,一个 Markdown 文件:交给 AI 助手最合适。
  • ledu-book-kit.zip入门工具包:规范、AGENTS.md(给助手的说明)、Schema、校验工具和示例图书。
  • llms.txt网站给 AI 工具的索引,遵循 llms.txt 约定。
  • schema/v2/*.schema.jsonJSON Schema。在图书文件里加上指向这个地址的 "$schema",VS Code 等编辑器会边写边检查。