Contents

I Gave an AI Assistant a Chore I Hate. The Hard Part Was Building What It Needed

Generated by AI

I’m terrible at planning meals, and for the past two months it has been my job. Every day went the same way: find something to cook, go to the store, buy the ingredients, cook it that night. I stuck to meals I already knew how to make, until I made burgers two weeks in a row and my wife and I agreed we needed variety. So I gave the job to an AI assistant, and then had to build what it needed to do it.

Week of dinners, two nights empty

The app's Meals view, filtered to dinners. The two empty nights are on purpose.

Why I built this

I got laid off, my wife picked up more shifts, and I had the time, so I took over meal planning and cooking, and she could stop worrying about dinner. But my way of meal planning and cooking dinner was too much mental load, on top of looking for a job and house chores. I needed help, and I wasn’t going to ask my wife or kids.

I use AI for all sorts of projects, and this looked like a real problem to hand one. My old process was printing each meal and handing the pages to my wife. I wanted to plan a week ahead and have her check it in Skylight: a 15-inch Skylight Calendar touchscreen on our wall, plus its app on our phones, which we already used for events and had never used for meals.

Skylight does have AI of its own. We pay for Skylight Plus, which includes Sidekick, though I’d never tried it until I sat down to write this. I typed “chicken, burgers, pasta, Asian, Italian”, picked seven days and four people, and got seven dinners: all chicken, three of them chicken burgers. That’s partly on me for typing “burgers”. But it’s a meal generator, not an assistant. It filled every night I picked without checking the family calendar, so as far as I could see, a date night still gets a dinner. The recipes are generated, not ones from sites I use and can check. I couldn’t tell whether it can run each week on its own, any change after the plan is mine to make by hand, and there’s no back and forth. I wanted to stop managing meals, not move where I manage them.

Sidekick’s plan: seven chicken dinners, three of them burgers

Skylight's Sidekick, given "chicken, burgers, pasta, Asian, Italian".

To reach Skylight, an assistant needs tools, and the standard way to give a chat assistant tools is something called an MCP server. In plain words: a small program between the AI and another service that offers the AI a short menu of things it may do (“list the meals for these dates”, “add this meal”).

There’s no official API or MCP server for Skylight either, as far as I can tell, so there was no way to bring my own assistant. I’d just gotten access to Duet, Claude’s AI assistant, so I first tested whether it could write a weekly plan in a Google Doc, which it could. It looked promising, but nobody in my house is going to read a Google Doc, and I didn’t want to retype what Duet wrote into a calendar. I could have used Google Calendar, but that sounded dull next to building an integration with Skylight over MCP. So the project became: Duet plans our meals into Skylight, the family keeps the app they know, and I stop planning by hand.

How it fits together

I started from an open-source Skylight server that someone else wrote (credited in the repo) and extended it. It runs on a Cloudflare Worker, a small program hosted on Cloudflare’s network, so Duet can reach it from any chat without my laptop being on. I built it so any AI assistant could use it, not just Duet.

Flow from assistant to my server to Skylight, after my approval

The calendar is the only copy of the plan, because it’s what the family looks at. A Google Doc is still created each week, but it’s for me: the whole week on one page, easy to scan and share.

Four tools matter for dinners: one lists the meals on the calendar for a range of dates, one reads calendar events for the same dates, one plans a whole week at once, and one edits a single meal.

The other half is a standing instruction: a block of text attached to the chat that tells Duet how this family eats. It works the way you’d teach a new person how you like dinner. Each time something comes out wrong, or I correct a choice, we update the instructions, so next week it can make that call on its own. Duet doesn’t learn by itself; the instructions are what it learns from, and every rule in them exists because something went wrong once.

What took longer than the dinners

I assumed the hard part would be the planning. The hard part was the server. With no official API, there was nothing to build against. I opened the web app, watched with my browser’s developer tools what it sent when I added or edited a meal, and had Claude turn those requests into tools. I pasted the request and response data into Claude, but left out the headers that carry sign-in details.

It was probably the longest and most boring part of the whole project. Most of my career as a product manager has involved APIs, including building a developer portal, so I know what good documentation saves you: you read what each call does and how the people who built it meant it to be used. Without it, every tool meant sending the call, reading the response and trying a variant, over and over, by trial and error. That’s also why I built it for people who aren’t me: more of the API than my family will use, a browser sign-in, local and hosted modes, Windows as well as Mac, and notes on what was and wasn’t tested, so the next person doesn’t have to repeat it. I took as few shortcuts as I could, for a side project nobody is paying me for. It took about two weeks of long days, weekends included. After more than 200 commits, Skylight could still change any of it tomorrow.

Tools & AI assist

Two AI tools did different jobs. Claude built the server: it extended the open-source project, wrote its tests and turned my pasted captures into tool code, where it is genuinely faster than I am. Duet runs it each week: it drafts the dinners, previews each week before writing, then does the real writes, and handles the Friday run and a Thursday check that Skylight’s API still works. I made the decisions: what a meal name should look like, which checks block a write, when the weekly run is allowed to write at all.

What went wrong

The first run: learning to teach it

The first run was me learning how to teach Duet, and my first time handing real work to an AI assistant. You can’t just say “plan meals” and expect it to come out the way you pictured it. I started with a dry run: read the calendar and the meals, draft six dinners, show everything, write nothing. It took about eight messages to get one week onto the calendar, more than the chore it was supposed to replace.

Most of what makes a week work, I hadn’t told it:

  • House rules: one takeout night, one meatless night, one dessert, the equipment we own, where the recipes come from.
  • Meals that differ from each other across the week.
  • The rest of the calendar: nights that need a fast dinner, and nights like date night that need none.

Five things went wrong, and the tests caught none of them:

  • The plan ran Monday to Sunday, but Skylight’s week runs Sunday to Saturday, so one dinner no longer fit and the meatless night fell off the end.
  • The drafts held literal placeholders, like “(plan doc URL)” where the link to our meal-plan Google Doc belonged.
  • Duet fixed a typo after showing me a draft and mentioned it only at the end, a silent edit that makes “exact text” a lie.
  • A cooking step landed in a field meant for family notes.
  • Duet doubled or 1.5x-ed four of the five recipes on its own guess. I missed it until one grocery line: three whole chickens for one dinner.

The fix was to turn each surprise into a sentence in the standing instructions. Here is the shape of the rules, trimmed:

Use explicit YYYY-MM-DD dates in every call, never "this week"
(the plan week runs Sunday to Saturday).

Make every recipe as written; scale only if I say so.

Create the plan document first, so the Plan line carries a real link.

Never leave placeholders. If you change a block after showing it,
show it again.

plan_week_meals: dryRun true first, then write ONE meal, read it
back, show me, and wait for my yes before the rest.

Each rule traces to a failure above. If I could keep only one, it’s the last: half a week of dinners on a wall display is the worst way this can fail.

After the fixes, five dinners went in: one meal first, then the other four. I read the whole week back from Skylight in a separate call and compared it to what I’d approved. It matched.

Even that first week bent. My wife cooked two of my planned nights, one of them my birthday dinner, so I asked Duet to move them to the following week. It picked days that were clear on both calendars, showed me the changes, waited for a yes, then wrote them and read each one back.

The wall display I photographed and the phone I should have asked about

Meal names turned out to be harder than recipes. The wall display’s month view clips names at around eighteen characters, so “Herb butter baked salmon” showed up as “Herb butter baked s”. I shortened three names to fit, then reversed it within minutes: my family mostly reads the calendar in the phone app, which shows names in full. I had optimized for the screen I’d photographed, not the one people use.

“Keep names short” isn’t an instruction a model reads the same way twice, so I gave it a target and a cap: aim for 25 characters, never more than 35 with a dessert. Then a second pass from the reader’s side: the family already knows the dish, so the name should be the plain dish (“Baked salmon”) and the descriptive version goes on the first line of the instructions. Identity goes in the field people scan, precision in the field they open.

On the wall display a recipe link is plain text you can’t tap, so nothing the cook needs at the stove can live only behind it. The instructions carry the steps with times and temperatures, and the link is a convenience.

A dinner entry in the calendar app

A finished dinner entry as the family sees it. The link to our plan document is covered by a grey box.

Instructions box over its 2,000-character limit

My full rules ran 7,077 characters against a 2,000 limit. Part of one line is covered by a grey box.

Making the server say no

I caught “(plan doc URL)” because I was reading the drafts like a reviewer. That’s not a safety system; that’s me having a careful day. So the server reads before it writes, too. A placeholder on a screen the whole family sees is never right, so the server refuses the write:

// Text in (), [] or <> that stands in for something missing:
// "(plan doc URL)", "[recipe link]", "<dessert name>"
const BRACKETED_PLACEHOLDER =
  /[([<][^)\]>\n]*\b(?:url|link|needed|to fill in|fill in|placeholder|tbd|todo|dessert name|recipe name|plan doc)\b[^)\]>\n]*[)\]>]/i;

if (found) {
  errors.push(`${label} contains a placeholder: ${JSON.stringify(found)}.`);
}

Everything else just gets a warning: a name over 25 characters, a dessert longer than two words, a cooking verb in the notes. Those have real exceptions, so they only warn. It isn’t clever, either. It’s keyword matching, so “(insert here)” would sail right through. I’m fine with that trade: a missed placeholder costs me a read, and a false alarm costs me the Friday run.

Then I tried to break it. I deleted the “url” keyword from the check and waited for the tests to fail. They all passed. So the tests weren’t testing what I thought, and three more cases went in until breaking the check actually broke something.

Full access, and a log instead of a gate

Here I overruled caution on purpose. I wanted setup to be easy for anyone trying this, and I wanted Duet to have full access instead of stopping to ask before each step. I also tested whether Duet’s client would pause for a human yes before a delete. It didn’t: it deleted in one call.

Easy still meant sign-in never goes through the assistant: no tool Duet can call will log in, log out or read the credential. The project I started from wanted your Skylight password in environment variables (settings a program reads when it starts), and I didn’t want a password where any tool on the machine could read it. So you sign in in the browser, and what’s stored is a credential, not the password: encrypted with a key in the macOS Keychain on a Mac, and an unencrypted file protected only by your user account on Windows and Linux. I took that flow from another open-source Skylight project.

The risk is real: Duet could remove the wrong meal or event. But this is a family calendar, not money, and for us a wrong deletion costs a minute. That’s my risk tolerance, not advice. So instead of a gate I asked for a record: one line for every change, with the tool, whether it was a write or a delete, the outcome and a running count, and deliberately no meal text and no IDs. There’s also a cap of 60 changes and 10 deletes an hour, as a leash for a runaway loop.

The record earned its place the night I shipped it. I made three calls four seconds apart and each log line said the running count was 1. The count lived in a variable on the server, and I couldn’t count on a Worker keeping variables between requests, so the cap I’d just shipped wasn’t capping anything. All the tests had passed, because in a test the variable does survive. The fix was to move the counter into a small piece of storage that does persist, and the next run counted up.

Then the scheduled part. The Friday run happens on a schedule, with nobody there to say yes, so its rule is blunt: draft, post the text, stop. It never writes, because a write needs my yes to the exact text, and that text shows on devices around the house where I can’t recall it.

Scheduled task list: Weekly dinner plan, Fridays

The Friday task: it drafts and posts, but never writes.

Because Skylight’s API is unofficial, a change in what it returns could break a tool without any error. The first place that would show is the unattended Friday run, so the day before there’s a canary: every Thursday a scheduled Duet task runs five read-only checks, posts one line in its own channel, pass or fail, and emails me if one fails, so I know a day early that Friday’s plan won’t run and I need another way to plan that week. It uses the same read-only tools, so it needs no new credential. It shares fate with the server it checks, so a missing Thursday line is the signal.

Canary channel: first run passes

Duet conversation about the canary running.

It hasn’t caught a real failure yet, so the alarm half is still untested.

Lessons

After the first week, my notes said: not easier yet. Eight messages to plan six dinners is not the time savings I’d promised myself. The next Friday went better, though I still changed things no rule covers: a sick week, and a night of cooking whatever was already in the fridge.

By my estimate (not a stopwatch), doing it properly by hand takes two to four hours a week. In practice I never did it properly. I made a store run most mornings for whatever I’d found online that day. Now the meals show up on Friday, I review them, change what I want, send one prompt, and the week is on the calendar in under 10 minutes. Most nights we cook. Every week also has a date night and a takeout night, for when nobody wants to cook. Takeout always has a good pitch.

Two weeks of long days won’t pay back in hours any time soon. What I got back is the daily “what’s for dinner?” search, which was the part I hated.

LessonWhat taught me
“The UI doesn’t offer it” is weak evidence the API lacks it.As far as I could tell, the web app can’t delete labels (Skylight’s tags on events). The iOS app can, and the call behind it was already in my server.
A confident sentence is not a measurement.Duet told me the plan document matched the calendar, and that a Friday routine would pick up a queued meal. Both sounded right; I had checked neither. Reading the week back from Skylight is my job, and it’s cheap.

The one you can steal for your own project. State every assumption once, as a number or a date, and test it with a check that can fail. The week boundary, the portion size, the name length and the placeholder were all the same mistake: something I assumed, never wrote down, and found out about only when my family was about to read it. Whatever you hand to an agent that writes where other people can see, write down what it must never leave behind, then break your own check to see it fire.

Try it yourself

The server is open source (MIT) and unofficial: it talks to endpoints Skylight doesn’t document, so it may break without notice, and the README says so plainly. Skylight’s terms don’t allow access outside its supported interfaces and let it suspend accounts, so using this puts the account you sign in with at risk, not just the integration. If you can run a few commands, setup is covered there.

The part that made it worth it

The moment I knew it worked was small. My wife mentioned that tomorrow’s dinner looked good. I hadn’t told her; she’d seen it on the calendar. On Tuesday I cooked the green chicken enchiladas, and the family loved them. Left to me, it would have been one of our usual handful of meals again. Duet picked something we like and don’t cook often, and I didn’t have to think about it.

Update, November 17
I added a Dinner ratings page, built by Claude in Duet. After each dinner I mark it Keep, Maybe or Drop and jot a note, so I can see which meals worked and which we’d make again. Last week’s five rated dinners came out three Keep, one Maybe, one Drop. It’s separate from Skylight, which has no field for ratings.

Dinner ratings page for the week of Nov 8: three Keep, one Maybe, one Drop

Dinner ratings, week of Nov 8.