Letters to Santa
Write the prompt that teaches your AI spacing and type.
Door 4 · AI lesson · About 10 minutes for the whole door
What this door is worth
- 3 stars: First Submit passes
- 2 stars: A hint, or one or two failed Submits
- 1 star: Three or more failed Submits
- 0 stars: After showing the answer
The rule
Teach your AI your rules in writing: a spacing scale, a type scale and two fonts, each with its numbers.
You learned those rules on doors 1 to 3. Today you hand them on.
Why your AI drifts
Ask an AI for a card and it picks padding that looks fine: 14px here, 18px there. Ask for a heading and it picks 26px, because 26px looks fine too. Each guess is reasonable on its own. Together they are the mess you cleaned up this week.
The AI is not careless. It has no rules to follow, so it guesses, and on the next screen it guesses again.
Words are not rules
"Keep the spacing consistent" sounds like a rule. It is not one, because your AI cannot check it. 14px on every card is consistent. So is 15px.
A rule your AI can follow has numbers in it. It lists the values that are allowed, so every other value is wrong.
Writing the letter
Keep it short, with one line for each decision:
- Spacing. Padding, margins and gaps come from 4, 8, 12, 16, 24 and 32px. Nothing else.
- Sizes. Body text is 16px. Each step up is times 1.25: 20, 25 and 31.25px. Small print is one step down, 12.8px.
- Fonts. Two families, each with a job. Georgia for headings, system-ui for everything else, buttons included.
Name the values, not the feeling. "Calm" and "clean" give your AI nothing to check.
Write it once
A good letter is not only for today. Put it in your AI's rules file, the file it reads before every task, such as CLAUDE.md, AGENTS.md or .cursorrules. Then every screen it builds starts from your numbers, not its guesses.
What to look for
- A rule with no numbers in it.
- A value in your AI's answer that your letter does not list.
- Buttons in a third font, because nobody named theirs.
Quiz
Three questions about the rule. Sign in to see the answers and pick yours.
- Which line in your letter will your AI follow best?
- Your letter says "Keep the type consistent." What do you add so your AI sets the right sizes?
- Your letter gave numbers for padding but none for font sizes. Your AI set the card notes to 15px. Why 15px?
Sign in to answerYour stars are saved to your account.
Fix the page
The problem
Sleighlist's wish list was built by an AI with no rules, so it guessed. It mixed up everything you fixed on doors 1 to 3.
- The three cards have padding of
14px,10pxand18px 9px. - The page uses four font families: Georgia, Trebuchet MS, Arial and system-ui.
- The font sizes were picked by eye: 13, 14, 15, 17 and 26px.
Today you do not fix this page yourself. You write the letter: the rules your AI must follow, with the numbers. Your AI does the fixing.
How to play
- Write your rule in the rule box. Submit needs it: at least 40 characters.
- Copy the prompt. Your rule goes in first, as MY RULE, then the tasks and the code.
- Paste the prompt into your own AI. Then paste the page it sends back.
- Run checks. They grade the page your AI sent back, so a vague rule gives a page that fails.
- Submit. Your rule is saved with it, and after the door you see it beside ours.
What to do
The page your AI sends back must pass three checks:
- Every padding is on the 4px scale: 4, 8, 12, 16, 24 or 32.
- The page uses two font families at most.
- Every font size is a step on one scale: 16px, times 1.25 for each step up, so 12.8, 16, 20, 25 and 31.25px.
If a check fails, fix the letter, not the CSS. Ask what your rule left out, add it, and copy the prompt again.
Press Run checks as often as you like. Press Submit when every check passes. Fewer hints and fewer failed Submits earn more stars.
How do you want to fix it?
- By handEdit the HTML yourself. The preview updates as you type.Sign in to fix it by hand
- With your AICopy a prompt for your AI, then paste its answer back. Add your own rule to see how much better it does.Sign in to fix it with your AI
You can switch at any time. The stars are the same either way.
How stars work
Most doors are worth up to 6 stars: 3 from the quiz and 3 from the fix.
Quiz. One star for each right answer. Your first answer is final.
The fix. Press Submit and confirm. Your first passing Submit sets your stars.
| Your first passing Submit | Stars |
|---|---|
| No hints, no failed Submits | 3 |
| With a hint, or after one or two failed Submits | 2 |
| After three or more failed Submits | 1 |
| After showing the answer | 0 |
- Run checks is free. Run it as often as you like. It never costs a star.
- Only your first hint lowers your stars. After that, hints cost nothing extra.
- Show me the answer opens after three failed Submits, or once you have read every hint. You keep your quiz stars.
Gold. Pass a door within 24 hours of it opening and it turns gold. Every door stays open until 31 December, so a late pass still earns stars.
Snow Days. If a door doesn't turn gold while you have a streak, a Snow Day is used for you once its 24 hours are up. Your streak carries on, but that door doesn't add to it. You have three for December.
By hand or with your AI, the stars are the same.