On this page
- What AI books are good (and bad) at
- What you need
- The one-prompt version
- How a book file actually gets made
- The full workflow
- 1. Write a reader profile
- 2. Ask for the outline first
- 3. Agree on a style guide, then write chapter by chapter
- 4. Fact-check
- 5. Add diagrams and a cover
- 6. Export to PDF and EPUB
- 7. Read it and iterate
- The result
- Tips
- Your turn
Today’s AI is very good at one thing in particular: sharing knowledge. Ask Claude to explain probability, photosynthesis or Python, and you get a clear, patient answer.
So here’s an idea. If AI can explain it in a chat, it can explain it in a book. And not a generic textbook written for “the average student”. A book written for you: in your language, at your level, with examples from your own life, in a style you actually enjoy reading.
In this article I’ll show you how. First the one-prompt version, then how a book file actually gets made (Markdown, pandoc, LaTeX, PDF, EPUB, all explained for beginners), and then the full workflow I’d use for a book you really want to learn from.
Want the next tutorial in your inbox?
Leave your email and you get new tutorials and the members-only posts first. Free, no spam.
You're on the list.
What AI books are good (and bad) at
Before you start, pick your topic carefully. An AI book is only as good as what the model already knows.
Great topics: school subjects (maths, physics, biology, history, economics), programming, and well-documented skills like writing, statistics or personal finance. There is a huge amount of good material about these on the internet, so the model knows them well.
Risky topics:
- Things with little training data. Regional languages (bahasa daerah) like Javanese, Sundanese or Batak are a good example. The model may mix up words, levels of politeness or spelling. A book about them can look confident and still be wrong.
- Brand-new subjects. Anything that appeared after the model’s training cutoff, or that is changing every month. The model simply hasn’t read enough about it yet.
For risky topics you can still make a book, but you need good sources to feed in and a human who knows the subject to check it. For great topics, you mostly need a good brief. That’s what this article is about.
And here’s the part I love: the knowledge is the same knowledge, but the explanation can be made for one person. Explained in casual Indonesian instead of formal English. Starting from zero instead of assuming you remember high school. With football examples, or cooking examples, or whatever makes it click for you.
What you need
Same setup as my shorts explainer tutorial:
- Claude Pro. $20/month, or $17/month if you pay annually. Subscribe at claude.ai.
- Claude Desktop, the latest version. Download it here.
In Claude Desktop, select Opus 5.5 as the model and turn on Auto mode. Both are at the bottom right of the chat. You never have to open a terminal: Claude writes the files and runs the tools for you.
The one-prompt version
The simplest version is one message. Say who you are, what you want to learn, and how you like to learn. For example:
That’s the whole thing. Claude plans the chapters, writes them, and turns them into a PDF you can download.
When I sent it in Claude Desktop, Claude loaded its PDF skill, wrote a Python script that builds the book, and built the PDF. Then it turned the pages into images to check the layout, found nearly empty pages, and rebuilt it until they were gone.

The result was The Odds of the Game, a 13-page PDF with seven short chapters, a cover, diagrams, 10 practice questions and full answers at the back. Every idea comes with a real match, like the 2022 World Cup final shootout and Leicester’s 5000-1 title.

Your book will be different every time you run it. Here’s another demo made for this article from exactly that brief. It came out as a 12-page PDF with five short chapters: what probability is, penalties, shootouts, expected goals (xG) and a recap.

Download the PDF if you want to flip through it.
It works. It’s correct, it’s readable, and it’s personal: penalties and xG instead of dice and coloured balls. But look closely and you’ll see it’s also plain. Default fonts, a half-empty page in the middle, no cover, no diagrams. For a quick study guide that’s fine. For a book you want to keep, use the full workflow below.
How a book file actually gets made
Before going further, it helps to understand what Claude is doing behind the scenes. Claude can only write text. So how does text become a nicely typeset book?
The answer is a chain of free, open-source tools that have been around for years. Here are the words you’ll see in Claude’s messages:
Markdown. A way to write formatted text using plain characters. A line starting with # is a chapter title, **bold** becomes bold, a line starting with - is a bullet point. It’s easy for humans to read and easy for AI to write. Every chapter of your book starts life as a Markdown file.
pandoc. A converter. You give it Markdown, it gives you almost any document format: PDF, EPUB, Word, web pages. It’s the heart of the whole thing.
LaTeX (pronounced “lay-tech”). A typesetting system that scientists and publishers have used for decades. It decides where lines break, how maths formulas look, and where page numbers go. When pandoc makes a PDF, by default it quietly hands the work to LaTeX. That’s why maths in AI-made books can look like a real textbook.
PDF vs EPUB. A PDF has fixed pages. It looks exactly the same everywhere, which is great for printing and laptops. An EPUB is an e-book: the text reflows to fit the screen, so it’s much nicer on a phone or an e-reader. pandoc makes both from the same Markdown.

Two more tools show up for the pictures:
- Graphviz draws diagrams (boxes and arrows) from a short text description. Claude can also draw diagrams directly as SVG, a picture format that is really just text.
- Playwright, a browser automation tool, can turn a web page into an image. That’s an easy way to make a cover: Claude designs the cover as a web page and takes a screenshot of it.
The full workflow
This is the workflow I’d use for a book you really want to learn from. To show it with real results, the whole workflow was run end to end for this article to make a 4-chapter demo book: Python for Busy Creators, written for a made-up reader called Nadia who runs a home-cooking account.
The prompts below are examples of what to send at each step. Change them to fit your own book.
The trick: do the cheap, fast steps first and check them, and save the slow steps (rendering the whole book) for when you’re happy.
1. Write a reader profile
This is where the personalization happens. Before any chapter is written, describe the reader. If the book is for you, describe yourself honestly. Here is the profile for the demo book:
The more specific, the better. “Beginner” is vague. “Comfortable with spreadsheets, has never written code” tells Claude exactly where to start.
2. Ask for the outline first
Don’t ask for the book yet. Ask for the table of contents, with a one-line promise for the whole book and the main points of each chapter. Reading an outline takes one minute. Rewriting four chapters because the structure was wrong takes much longer.
The outline for the demo book: (1) Code is just a recipe, (2) Captions on autopilot, (3) Rename 50 photos in 2 seconds, (4) Which post did best? Every chapter solves one chore from the reader profile. That’s the personalization doing its job. If something’s off, say so now: “skip installing tools, I already have Python”, “add a chapter about Excel”, “make it 6 chapters”.

3. Agree on a style guide, then write chapter by chapter
A style guide is a short list of rules that every chapter follows. It keeps chapter 4 consistent with chapter 1, even when they’re written at different times. The demo book’s guide had rules like:
Then go one chapter at a time. Read it, react (“this is too fast”, “more examples like this one”, “I didn’t get dictionaries”), and only then ask for the next one. This is where the book becomes really yours: Claude rewrites the parts you didn’t understand, which no printed textbook can do.
4. Fact-check
AI can be confidently wrong, so build checking into the workflow. How you check depends on the topic:
- Programming books: have Claude run every code example and compare the real output with what the book says. This is the best kind of fact-check, because the computer is the judge.
- School subjects: ask Claude to list every number, date, formula and claim in the chapter, mark which ones it is less sure about, and check those against a source.
- Risky topics (regional languages, brand-new subjects): this is the step where you need a human expert, or at least your own reliable sources pasted in.
In the demo, this paid off in a way nobody planned. In the Indonesian edition (step 7), a translated caption example said its output was “86 karakter”. The check ran the code and Python said 88. Small, but exactly the kind of mistake a reader would trip on.

5. Add diagrams and a cover
Some ideas are easier to see than to read. Ask for a diagram wherever a chapter explains a process or a structure, and for a cover that fits the topic.

6. Export to PDF and EPUB
Now the slow step: build the whole book. Ask for both formats, so you can read it on your laptop and your phone.
The PDF came out at 21 pages, with the cover, a table of contents and four chapters:

And the EPUB, previewed at phone width. Same Markdown, but now the text reflows to fit the screen:


7. Read it and iterate
The first build is never the final one. Read it like the reader would, and tell Claude what bothers you. The first build of the demo book had three real problems:
- Long code lines ran off the edge of the page.
- The loop diagram was so small you couldn’t read it.
- The EPUB had all four chapters stuck together in one long chapter.
All three were fixed with one message each. Here’s the code one, before and after:

Iterating is also where personalization goes further. Want it in your own language? Ask. The demo book got an Indonesian edition, in casual aku/kamu style, with the code examples translated too:

The result
From one reader profile to a finished book:
- A 21-page PDF and an EPUB, in English and in Indonesian.
- 4 chapters, each built around one chore from the reader’s week.
- 10 code examples per edition, every one run and checked against real Python output.
- 2 diagrams and a cover.
Download them and have a look: PDF · EPUB · Indonesian PDF · Indonesian EPUB
The examples are about cooking, the account is fictional, but swap the reader profile and you get a completely different book. A nurse learning statistics with hospital examples. A student reviewing for exams with K-pop examples, hehe. Same workflow.
Tips
Be specific about your level. “I’m a beginner” is less useful than “I know what a variable is, but loops confuse me.”
Ask for exercises with answers. Reading feels like learning. Answering questions actually is.
Keep the files. Ask Claude to keep the reader profile, outline, style guide and chapters as separate files. Then “make chapter 3 easier” or “add a chapter” later is a small edit, not a restart.
Don’t publish what you can’t check. A personal study book is low risk. A book you plan to sell or share with a class needs a real fact-check by someone who knows the subject.
Your turn
Pick something you’ve always wanted to understand, write an honest reader profile, and make your own book. Share a page on social media and tag me: @terrydjony on Threads, @Terry_Djony on X or @terrydjony on Instagram. I’d love to see what topic you pick and who you wrote it for.
See you in the next one!
Was this useful?
Thanks, good to know.Got it, thank you.Something went wrong. Please try again.
Got a question or stuck somewhere? Email me at [email protected] or DM me on Threads. I answer every one.
Share this tutorial:
Get the members-only posts
Members get the members-only tutorials and courses, like my AI Coworker on Discord course, and every new tutorial first. Free, no spam.
You're on the list.
What should I write next?
Finished this one? Tell me what you are stuck on next. The next tutorials come from these answers, and I reply to yours when it turns into one.
Got it, thank you. I read every one.
You wrote: