
Turn any book or notes into mind maps, flashcards, sketchnotes and comics with AI prompt shortcuts
Paste a book chapter or your notes into ChatGPT, Grok, Claude, or Gemini, then type a short code such as /mindmap or /flashcards. These are prompt shortcuts, not official product commands. I show a copy-paste priming prompt, a free PDF cheat sheet, a worked example on Chapter I of Alice's Adventures in Wonderland, and the same /mindmap result from Grok CLI, ChatGPT / OpenAI via Codex CLI, Claude Code, and Gemini via Antigravity.
A short video making the rounds says you can paste a book into ChatGPT, type /mindmap, /sketchnotes, /flashcards, or /educationalcomics, and get a map of the ideas, a handwritten-style page, memory cards, or a comic. That is a useful study trick. It is not a hidden ChatGPT feature.
OpenAI's slash command reference lists app and workspace actions such as /model, /plan, and /status. The four study codes are not on that list. Creator Cindy Zhu said the same in her written guide: ChatGPT does not have real built-in slash commands like /mindmap. The model is just reading the words. For the background on the viral clip, see our news post.
The same shorthand works in Grok, Claude, and Gemini, because it is a prompt, not a product switch. It is more reliable if you first tell the chat what each code means. That is what this tutorial does, with a primer you can paste, a real run in Grok CLI on a public-domain chapter, and the same /mindmap request in four tools.
Download the free cheat sheet (PDF). It has the primer, every shortcut, and the tips, on two pages.
What you need
- The text you want to study: a chapter, a PDF your tool can read, or notes you already have. Do not paste a whole 400-page book in one go. A chapter or a section is enough.
- Any capable chat: ChatGPT, Grok, Claude, or Gemini. For sketchnotes and comics, you also need image generation on that account.
- Optional: a Mermaid renderer such as mermaid.live, Obsidian, or GitHub Markdown, if you want the mind map as a real diagram.
The worked example below uses Chapter I, "Down the Rabbit-Hole," from Lewis Carroll's Alice's Adventures in Wonderland (1865), which is in the public domain. I took the text from Project Gutenberg ebook 11.
Prime the chat once
Paste this at the top of a new chat. Then paste your source text. After that, you only type the short code.
For the rest of this chat, when I type a code that starts with a slash, apply the matching instruction to the source text I have already given you (or that I paste in the same message). Do not treat these codes as built-in product commands. They are shorthand I am defining here:
/mindmap - Build a mind map of the key topics branching from one central idea. If I add "as Mermaid", output only a valid Mermaid mindmap diagram in a fenced mermaid code block, with a short title before it. Use the Mermaid mindmap syntax (mindmap, root((...)), indented branches). Keep branch labels short.
/sketchnotes - Write a one-page sketchnote plan of the source: a short title, a one-sentence thesis, 5 to 8 clustered ideas with tiny doodle cues in italics, and a memorable closing line. Then, if you can generate images, also create a single landscape page in a clean hand-drawn notebook style (ink on paper, not a photograph, no logos, no watermarks, no real people). Keep any lettering large and few in number, because small text in generated images often comes out garbled.
/flashcards - Make 8 to 12 question-and-answer flashcards from the source. Short answers (under 20 words). Skip trivia that is not useful for recall. Number them. Format each as Q: ... then A: ...
/educationalcomics - Write a 4-panel comic script that retells the core idea of the source (panel number, a brief visual, and a short line of dialogue or narration). Then, if you can generate images, also create one landscape comic page of those four panels, in a clear educational comic style, with large readable lettering and no logos or watermarks.
/quiz - Write a 6-question mixed quiz (4 multiple choice with 4 options, 2 short answer). Put the answer key at the bottom, after a line that says "Answer key".
/studysheet - Make a one-page study sheet: title, one-sentence thesis, 6 to 10 key points, a short glossary of important names or terms, and 3 takeaways.
If a code is not in this list, say so and do the closest useful job. Stay faithful to the source. Do not invent plot points. Confirm this primer in one short sentence, then wait.
In Grok CLI I saved that block as prompts/primer.txt, then loaded the chapter from a second prompt file and resumed the same session. The primer was accepted in one sentence, and the model waited for a slash code.

Image: Grok CLI session.

Image: Grok CLI session.
If you would rather not paste a primer every time, you can put the same definitions in ChatGPT custom instructions, a custom GPT, or the equivalent system prompt in another app.
/mindmap, and how to get a diagram that actually renders
Type:
/mindmap as Mermaid
Plain /mindmap usually gives you an indented text tree. Adding "as Mermaid" asks for a diagram you can paste into a renderer. This is the exact block Grok returned for the Alice chapter, and I checked it with the Mermaid CLI, which rendered it without errors:
mindmap
root((Down the Rabbit-Hole))
Bored on the bank
Sister's pictureless book
Daisy-chain or not
White Rabbit
Pink eyes
Late, with a watch
Waistcoat pocket
Down the hole
The long fall
Deep well, slow fall
Shelves and cupboards
Empty marmalade jar
Miles and latitude
Antipathies
Dinah and bats
Lands on sticks
The hall
Locked doors
Row of lamps
Glass table
Tiny golden key
Little door
Fifteen inches high
Lovely garden
Head will not fit
Shut up like a telescope
Drink Me
Checks for poison
Cherry-tart and toast
Shrinks to ten inches
Key out of reach
Eat Me
Cake in a glass box
Grow or shrink
Finishes the cake

Image: Grok CLI session.

Image: the Mermaid block above, rendered with mermaid-cli. applycoding.com.
Same prompt, four AIs
I ran the same primer and the same /mindmap as Mermaid request on the same Alice Chapter I text in four tools: Grok CLI, ChatGPT / OpenAI via Codex CLI, Claude Code, and Gemini via Antigravity. These are the real outputs, rendered with mermaid-cli. Nothing here is a mockup.

Image: Same prompt, four AIs. applycoding.com.
All four returned a valid Mermaid mindmap with root((Down the Rabbit-Hole)) and indented branches, and all four rendered without errors.
They do not look the same.
Grok CLI used seven plot-shaped branches and kept Drink Me and Eat Me apart. It kept small, accurate details such as pink eyes, a fifteen-inch door, the empty marmalade jar, "Antipathies," cherry-tart and toast, and shrinking to ten inches. It did not linger on Alice's tears or on the first bite of cake doing nothing.
ChatGPT / OpenAI via Codex CLI was the most thematic. It nested the White Rabbit under a "Curiosity" branch, added a "Frustration" branch (slippery table legs, tears, self-advice), and closed with a "Key themes" branch (curiosity and risk, changing size, uncertain knowledge). That last branch is interpretation, not a plot beat, but it stays faithful to the chapter. This was also the only map that noted the first bite of cake left Alice the same size.
Claude Code was the leanest: five main branches, Drink Me and Eat Me merged, and fewer props. It quoted "I shall be late!" and compressed Alice's mid-fall geography into "Antipathies / Australia." The diagram body was valid Mermaid, but the model left the markdown fence unclosed. mermaid-cli still rendered it once the body was extracted.
Gemini via Antigravity (Gemini 4 Argon in this run, after Gemini 3.8 Flash High did not return a map) was the most detailed on the fall and the hall: four thousand miles, latitude and longitude, New Zealand or Australia, maps and pictures on pegs, hanging lamps, the three-legged glass table, the fifteen-inch door, and the currant cake. It used informal wording ("Freaking out about being late") and a "Magical Food and Drink" label that is a little stronger than the text.
So: Claude was compact, Grok was a balanced scene-by-scene map, Gemini was richest on mid-fall and hall details, and Codex added themes and the cake's first-bite beat. None invented a new plot point.
The terminal sessions, if you want to see the raw Mermaid each tool printed:

Image: Grok CLI session.

Image: ChatGPT / OpenAI via Codex CLI session.

Image: Claude Code session.

Image: Gemini via Antigravity session.
/flashcards, and ChatGPT's real Flashcards feature
Type:
/flashcards
Grok returned 12 short question-and-answer cards from the chapter, including the empty orange marmalade jar, Alice's mix-up of "Antipodes" with "Antipathies," and the "EAT ME" cake.

Image: Grok CLI session.
Here are a few of those cards, unchanged:
A: Pictures and conversations.
2. Q: What makes Alice run after the White Rabbit?
A: It takes a watch from its waistcoat-pocket.
3. Q: What label is on the jar Alice grabs while falling?
A: ORANGE MARMALADE. The jar is empty.
4. Q: Why does Alice keep the empty jar instead of dropping it?
A: She fears it might kill somebody underneath.
5. Q: How far does Alice think it is to the centre of the earth?
A: About four thousand miles.
6. Q: What word does Alice use when she means the Antipodes?
A: The Antipathies.
7. Q: Who is Dinah?
A: Alice's cat.
8. Q: How does the fall end?
A: She lands unhurt on sticks and dry leaves.
9. Q: What does the little golden key open?
A: A door about fifteen inches high behind a curtain.
10. Q: Why does Alice hesitate before drinking from the bottle?
A: She checks that it is not marked poison.
11. Q: How tall is Alice after she drinks the bottle?
A: Ten inches high.
12. Q: What is written in currants on the little cake?
A: EAT ME.
That output is just formatted text. ChatGPT also has a real Flashcards feature, which is a separate product tool, not a /flashcards command. To use it:
- Open a ChatGPT conversation and ask for flashcards on a topic, or upload your notes and ask ChatGPT to turn them into flashcards.
- Read the front of a card, then tap it to flip and see the answer.
- Mark a card if you know it, or mark it to practice again later. You can shuffle the deck.
- Decks are saved in your library. Open a saved deck there, or ask ChatGPT to bring the cards back.
- You can add or edit cards in the same chat, for example "Add cards about the golden key" or "Rewrite this definition in simpler language."
OpenAI's help article is clear that ChatGPT can make mistakes, and that you should check the cards against your source, especially before an exam. I would do the same with any /flashcards output from Grok, Claude, or Gemini.
/sketchnotes
Type:
/sketchnotes
The primer asks for a one-page plan first (title, thesis, clustered ideas, doodle cues), and then, if image generation is available, a single landscape notebook page with only a few large labels. Small text in generated images is the part that usually goes wrong.

Image: Grok CLI session.

Image: Grok CLI session.
This page came out cleaner than many image-model sketchnotes, because the labels were large and few: KEY, WATCH, MARMALADE, DRINK ME, EAT ME. The title was shortened to "DOWN THE HOLE," which is a reminder to read the image against the source, not treat it as a perfect copy of the plan.
/educationalcomics
Type:
/educationalcomics
Grok first wrote a four-panel script from the chapter, then generated the panels and assembled them into one landscape page. It also caught a drift in an early draft (the garden door had come out person-sized, and Alice was not yet small) and redrew those scenes.

Image: Grok CLI session.
The script, unchanged except for quote marks:
Down the Rabbit-Hole
Panel 1. On the bank, Alice sits bored beside an open book with no pictures. A White Rabbit in a waistcoat runs past, watch in its hand. Rabbit: "Oh dear! I shall be late!"
Panel 2. Alice falls down a deep well lined with cupboards, bookshelves, maps, and pictures. She holds an empty marmalade jar. Alice: "I wonder how many miles I've fallen?"
Panel 3. In a lamp-lit hall of locked doors, she kneels at a tiny open door, golden key in hand, and looks through into a garden of flowers and fountains. Alice: "I wish I could shut up like a telescope!"
Panel 4. She is now tiny. The golden key sits on the glass table, far above her. A little bottle and a cake are beside her on the floor. Alice: "Either way I'll get into the garden!"

Image: Grok CLI session.
The lettering on this page stayed readable because the primer asked for large, short lines. That is not guaranteed. If a comic comes back with smashed words, keep the script, and either ask for a redraw with fewer words or letter the panels yourself.
Extra shortcuts: /quiz and /studysheet
The primer also defines two text-only extras that are useful after the map and the cards.
/quiz

Image: Grok CLI session.
/studysheet

Image: Grok CLI session.
You can add more codes in the same style. Useful extras include /glossary, /timeline, and /critique. Keep the definition to one tight paragraph, or the short label will start to drift.
How to do this in ChatGPT, Claude, and Gemini
The steps are the same in any of these chats:
- Paste the primer, or put it in custom instructions.
- Paste a chapter or your notes.
- Type one code at a time. /mindmap, then /flashcards, then a visual code if you want a page you can see.
- For ChatGPT flashcards you actually want to flip and reopen later, use the official Flashcards feature described above, not only a text /flashcards dump.
- In Claude, you can go further and turn a markdown file in
.claude/commands/into a real slash command, as Oleksandr Kulbida notes. That is a Claude Code feature, not the viral shortcut itself.
Grok CLI is a convenient way to keep a primer, a source file, and each code in versioned prompt files. I used grok --prompt-file to start the session, then -r to resume it for each code. Any other chat works if you paste the same blocks by hand.
Limits
- These codes are not official product commands. If a vendor changes its real slash menu, /mindmap will still just be a prompt.
- Image models still struggle with small lettering. Ask for a few large labels, or keep the script and treat the picture as a sketch.
- A confident summary of a long book may skip or invent chapters. Work a section at a time, and check the output against the source.
- A mind map, a quiz, or a comic is not the same as studying. The formats that help most are the ones that make you recall or explain the material yourself.
- Public-domain text is the safe choice for a full paste. For a book still in copyright, use your own notes, a short quotation that is fair to quote, or a tool that is licensed to read the file.
If you want the shorter news version of how this trend started, it is here: Viral ChatGPT study slash commands are prompt shortcuts, not official features.
Download the free cheat sheet (PDF) if you want the primer, every shortcut, and the tips in one two-page sheet.