The Vibe Coding Loop
Every step follows the same pattern: Start from a template. Ask Gemini CLI to customise it. Compile to PDF. Review and repeat until it’s perfect.Create a project folder
- Windows
- macOS
- Open File Explorer
- Go to your Documents folder
- Right-click in an empty space → New → Folder
- Name it
my-pdfs
Open terminal in your project folder
- Windows
- macOS
Open your
my-pdfs folder in File Explorer. Click the address bar at the top, type powershell, and press Enter.Initialise a cover letter template
Typst has a library of free, community-made templates called Typst Universe. We’ll start with fireside — a clean, modern cover letter template.In your terminal, run:This downloads the template and creates a ready-to-use project folder with a
.typ file inside.What just happened? The
typst init command pulled a professionally designed template from Typst Universe and set up a project folder for you. The template already has a polished layout — you just need to fill in your details.'typst init' not working?
'typst init' not working?
If you see an error, try these fixes:
- “typst: command not found” — Go back to the setup page and install Typst CLI
- Network error — Check your internet connection;
typst initdownloads the template from the web - Permission error — On Windows, try running PowerShell as Administrator. On macOS, try adding
sudobefore the command
Start Gemini CLI
Navigate into the template folder and start Gemini CLI:Press Enter. You should see Gemini CLI start up with a prompt ready for your input.
Customise with Gemini CLI
Now ask Gemini CLI to customise the template for you. Pick the style that appeals to you:
- Simple
- Creative
- Formal
Copy this prompt — Clean customisation
Review your PDF
Open the compiled PDF by double-clicking it in your file explorer. It will open in your default PDF viewer.
Starting from a template means your first result already looks professional. The template handles layout, typography, and spacing — Gemini CLI just customises the content and styling to your taste.
Iterate and improve
Not happy with the result? That’s normal — and that’s the whole point! Copy any of these follow-up prompts into Gemini CLI:
Change the font
Add colour
Adjust margins and spacing
Add a footer
What Just Happened?
Here’s what you did, step by step:- You initialised a professional template from Typst Universe with
typst init - Gemini CLI customised the template — updating content, fonts, colours, and layout
- Typst compiled the code into a pixel-perfect PDF
- You iterated — asking for design changes, recompiling, and reviewing until it looked right
Troubleshooting
The PDF is blank
The PDF is blank
The
.typ file might be empty or have an error. Ask Gemini CLI:Typst compile error
Typst compile error
If you see an error when compiling, paste the error message into Gemini CLI:Typst error messages are clear and specific — they tell you exactly which line has the problem.
The layout looks wrong
The layout looks wrong
Ask Gemini CLI to fix the layout:
I want to start over completely
I want to start over completely
You can re-initialise the template:Or tell Gemini CLI to start from scratch:
Happy with your cover letter? Head to Explore templates to discover more document types you can create — invoices, reports, checklists, and more.