← Everything you can learn here

For everyone

Build your first AI agent: a weekly planner in 3 messages

Three messages turn Claude into a small agent that plans your week, saves it as one page, and checks its own work. No code. It leaves out anything only you can decide, and tells you why.

The prompt
Message 1 (the rule book):
My name is Riya. I work a 9 to 6 office job, Monday to Friday, and I go to the gym in the mornings. Keep everything short and friendly, in simple words. Never plan anything before 7 am or after 9 pm. Never plan work tasks on Sunday. Do not send, book or buy anything: only plan. Save everything you make in a folder called output. Please create a CLAUDE.md file with all of that.

Message 2 (the job, in a new chat):
Build me a weekly planning agent. Goal: every Monday I get one clear plan for my week. Task: when I say "plan my week" and paste my events and to-dos, put the fixed events on their days first, then fit each to-do into a free slot on a sensible day, with a time and how long it takes. Sort anything you cannot plan into a short list called "Needs you" with the reason. Rules: follow my rules in CLAUDE.md, never move a fixed event, never put two things at the same time, leave at least one free evening. Done means: one page saved as output/week-plan.html that I can open in a browser, with a column for each day from Monday to Sunday and the "Needs you" list at the bottom, and you have checked that nothing overlaps and every to-do is either planned or in "Needs you". Save this routine in a file called planner.md in this folder. Then add one line to CLAUDE.md: when I say "plan my week", follow planner.md.

Message 3 (every week, in a new chat):
plan my week

Fixed events:
- Office 9 am to 6 pm, Monday to Friday
- Gym 7 am to 8 am, Monday, Wednesday, Friday
- Team dinner Tuesday 7:30 pm to 9 pm
- Dentist Thursday 6:30 pm, 45 minutes
- Mum's birthday lunch Saturday 1 pm to 3 pm
- School friends call Sunday 11 am, 1 hour

To-dos:
- Buy a birthday gift for Mum (before Saturday)
- Pay the electricity bill (due Wednesday)
- Finish the slides for Friday's 10 am office presentation, about 2 hours
- Call the plumber about the kitchen tap (he only picks up 10 am to 5 pm on weekdays)
(The video had 10 to-dos. Add yours the same way.)

How to use it

  1. Get the Claude desktop app, open the Code tab and pick one empty folder. Paste message 1 with your own name, hours and rules.
  2. Start a new chat in the same folder and paste message 2. If Claude asks for your OK, read it and click Allow.
  3. Start a new chat, type "plan my week" and paste your own events and to-dos. Open the output folder and double-click week-plan.html.

Watch the Short

Things I've built with this