Letting Claude Teach Me
Now that I use AI regularly to help write code and complete tasks, I find myself in a position where Iām not learning as much as I used to. That feels a bit crummy.
Fairly often, Claude writes code I donāt fully understand. For example: I know enough TypeScript to be dangerous, but Iām definitely not an expert. Recently I had Claude take some typing I thought was overcomplicated and drastically simplify it. The new version was clearly better ā I just couldnāt tell you why. So I asked Claude to explain it in simple terms. Sure enough, it did.
I guess thatās a silver lining to using AI: it can at least explain why it did what it did. A coworker mentioned he has Claude write one-off explanations with examples whenever this happens, and I liked that idea. So I built a skill around it. The skill looks at my uncommitted code, breaks it down, and writes a short blog article for me to read. Iām a fan of Josh Comeauās blog and the way he uses interactive examples to teach a concept, so I made that part of the skill too ā Claude generates interactive examples alongside the explanation, then packages everything up in a small Vite environment.
The first iteration was expensive to run. At least 3 minutes, and roughly 10K tokens. Iām fine burning tokens, but Iām also thrifty š¬. The second iteration kept the Vite environment and styles already wired up, so Claude only had to write the article and the examples. That brought it down to about a minute and 7K tokens. Better ā though Iād still like to get the token usage lower.
The blog format is great, but itās a lot of work (for Claude) to generate all of this just to delete it when Iām done reading. Itād be nice to have these articles persist somewhere I could revisit later, or share with other people. That brought me to my current iteration.
Itās an Astro project that lives on GitHub. The skill works roughly the same way ā review uncommitted code, generate a post complete with interactive examples ā but now it publishes to a TIL subdomain where I can read the articles at my leisure or pass them along.
Itās all vibe coded, and that feels appropriate. Iām up front about it on the site itself: Things Claude changed that I didnāt understand ā explained⦠by Claude. Iāll probably keep tinkering to bring the token usage down further, but it was a fun project to put together, and Iām happy to let Claude teach me what itās doing.