> ## Content Index
> Fetch the complete content index at: https://exindel.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Grilling, Prototyping and Retro: Shipping a 21,000-Line Feature with Agent Skills
- URL: https://exindel.com/grilling-prototyping-and-retro-shipping-a-21-000-line-feature-with-agent-skills/
- Published: 2026-11-21T00:45:22.000Z
- Updated: 2026-11-21T00:45:22.000Z
- Author: Exindel
- Tags: #daily-brief, #pick, AI Agents

Matt Pocock walks through a full feature build in his personal software, a video and thumbnail manager he uses to produce his courses and videos, using agent skills he maintains. The walkthrough concentrates on two: a "grill with docs" skill, which he treats as domain modeling in the classic DDD sense, and a "retro" skill, which reviews a large batch of past agent sessions and proposes improvements. The feature is a thumbnail creator he can draw on directly, with his cut-out face in the frame. The finished pull request adds 21,000 lines of code.

## The starting point and the problem

The application handles video editing, thumbnails, an AI writer, scheduling and shorts. The thumbnail creator captures his face, removes the background through an API, and lets him position the cutout. Diagrams are built in TL Draw and a custom diagram playground, then screenshotted and pasted into the thumbnail with Ctrl+V. He finds this manual: swapping to the diagram view, screenshotting, pasting, and repeating the loop whenever the positioning is wrong. He wants to draw directly on the thumbnail surface, with the diagram integrated next to his face. He has no idea how to build it, only that he wants it, which makes it a good candidate for showing the process end to end.

## Choosing a skill: the decision tree

When starting new work he thinks through which skill to use. The thing being created is a diff between the old and new codebase. If the diff is small, he can one-shot it and skip grilling. If it is large, he uses grill with docs. If it turns out much larger than expected, he can bail out into a skill called Wavefinder, which spreads initial grilling across multiple sessions to develop a large concept and then works until it is reached. He prefers starting with grill with docs because if the work turns out smaller, he avoids the overhead of a Wavefinder session.

The session runs inside his personal wiki, a "home repo" (he points to a separate video explaining the concept). The agent is Claude Code, which he subscribes to; he is on the Claude Ultra plan with Opus 5.5 at medium effort. He has his public skills installed plus custom skills inside the home repo, which is not open source; most of the skills shown are open source at aihero.dev/skills.

## Dictating the problem: lead with the why

He describes the problem by dictation using Whisper Flow. The thumbnail creator is fine, since it forces him to put his face on screen, but attaching a diagram is a rigmarole. Most diagrams are built in TL Draw and the custom diagram playground, and he wants the diagram editable in the scene he is viewing, with his face visible and the drawing editable beside it. He does not know how that should look UI-wise and says there are many questions to answer.

He flags two things about the prompt. First, he focuses on the why, the problem to solve, rather than a precise what. Giving the why empowers the agent to produce a solution itself or discuss one; coming with a what ("do X, Y, Z") tends to produce a less creative answer.

## The grilling questions and the loose language

The agent returns a batch of grilling questions. Q1 asks what the rigmarole is and which part of attaching a diagram hurts most; he answers that leaving the thumbnail creator, and two other parts, are all annoying. Q2 asks whether the thumbnail's diagram is the same as the video's diagram and whether edits should flow back to the diagram the video uses, essentially where the diagram is stored and whether it should be inspired by existing diagrams, which can be searched in the app (he finds a Wavefinder diagram by searching). He is unsure of the tradeoffs and what the use case for association is. Q3 asks whether you should be able to draw a new diagram straight in the thumbnail with no existing diagram; yes, and he also wants to search existing diagrams and add components already built, or copy from one TL Draw board to another.

He notes how loose the language is at this point: no right names yet, lots of verbosity and shortcuts, the idea not yet clear in his head. As grilling proceeds the idea sharpens until a good set of words exists, and once the words exist, the feature is essentially built.

Q4 asks whether there is one editing mode or two (edit-the-diagram versus arrange). He wants: take the photo of the face first, arrange it on the canvas, then build the diagram around the face, with the option to retake. Q5 asks whether the face is fixed; he wants to move it horizontally for flexibility. Q6 asks whether this is only about diagrams; yes, diagram only for now, since "we don't want to build a second Figma," just make this flow easier. While he answered, the agent spun up a background agent to find supporting information and changed two of the questions. Q7 asks whether editing in place means a live TL Draw editor clipped to the thumbnail frame with the camera locked so the visible area is the thumbnail; he worries that cramping into the smaller space makes editing painful and says a few approaches should be prototyped.

He contrasts this with plan mode: the skill aligns on what is being built before building, giving more predictable output and a stronger understanding, and this early moment is where he can align with teammates on what it is and what words to use. From there to human review at the end, the work is fairly on rails.

## The glossary and the domain language

Q2 is reframed as: is the thumbnail's diagram a real diagram? The project has a glossary.mmd of about 560 lines defining the main concepts. In the diagrams section: a diagram is a group of diagram snapshots; a snapshot is a copy of the drawing at the moment a clip is filmed, so the editor can show which diagram was used at each point; the active diagram is the one the author is drawing on; "restore to head" loads an older snapshot back as the active diagram; preserved snapshots are kept in a diagram's timeline even when no clip uses them. The new feature has to be placed in this existing landscape.

He answers Q2: the existing setup makes sense, but what goes into the thumbnail is not really a diagram, it is more like a single snapshot. He notes this sounds like jargon to an outsider, but the glossary in context lets him communicate something rich the model understands. Q8 (three items) sounds valuable; Q9: when the face moves, the diagram stays put; Q10: on retake, background removal runs and the photo is replaced. The agent then asks whether to prototype several editing surfaces, which he welcomes: Q1 is a question of feel, and the tradeoffs only become clear when the differences are laid out and tried. He has a prototype skill that produces multiple options for such decisions; Q11 approves it. He adds that building something you dislike often tells you more than something you like, so exploring many options gives the agent a rich view of what you want.

The agent proposes glossary entries: a thumbnail (the image shown for a video on YouTube) and a cutout (the author's face with background removed, placed over the diagram), plus a third term, thumbnail diagram; Q12 approves. He then addresses how long to grill: you drive the conversation, the agent is not grilling you, and you can say "we've talked enough, let's write code." The agent updates the thumbnails section and pings a sub-agent to prototype thumbnail diagrams while grilling continues.

More language work: the thumbnail's drawing is neither a diagram nor a diagram snapshot, since the glossary defines a snapshot as a copy at the moment a clip was filmed. The agent proposes "thumbnail drawing," the drawing belonging to one thumbnail, edited in place, startable from a diagram snapshot or another thumbnail's drawing, and says to avoid "thumbnail diagram." Knowing the glossary well lets him contribute: he points out the preserved snapshot concept and asks whether a thumbnail should represent a preserved snapshot, since snapshots are not always defined as the moment a clip was filmed. He also demonstrates a technique for focusing: "For now, let's just focus on this question. Ask me one question at a time until I say otherwise."

The agent is also reading an architectural decision record (ADR 3, "diagrams as first-class entities with per-clip snapshots") that explains why the glossary is the way it is. The glossary and code describe the app as it is now; ADRs explain why. This is a Chesterton's fence situation, do not remove a fence until you know why it was put up, and he quotes the fence passage: the modern reformer says "I don't see the use of this. Let us clear it away," and the intelligent reformer answers that if you don't see the use, it will not be cleared away until you do. The ADRs track why the fences exist.

The agent concedes it was wrong to rule the preserved-snapshot idea out and asks which diagram a thumbnail's snapshot belongs to: the thumbnail pins a snapshot of some diagram's head, and the question is which head you edit in the thumbnail creator. He finds the options clunky, choose a diagram to create a snapshot in or choose an existing snapshot to edit, and the agent suggests each thumbnail might need a diagram of its own, keeping the teaching diagram's head safe while you simplify for the thumbnail and still start from the teaching version.

He thinks aloud: tie into the mature diagram/snapshot code, or extend the work onto a different data model under a different name, mix the streams or not. He leans toward not mixing, but fears wishing later that the models could be linked, though he cannot see a concrete use case. He says this is the moment he would ask colleagues for help, since it feels like a large, consequential decision. The agent recommends his instinct: keep them separate, because both sides store the same scene format (so copying either direction is trivial and starting from a diagram or snapshot works without joined models), and the link you are likely to want is where a drawing came from, not one model, answered by a nullable "started from snapshot" reference recorded when you copy. He accepts, liking the flexibility not to decide the data model now and the tracking of the source snapshot, and says it does not matter how it is modeled as long as it is not lossy and all links are preserved.

He describes good grilling as rubber ducking with a respected colleague who knows the codebase well: talking out your thoughts gets you to a concrete solution before any code. The agent then writes a glossary entry for "thumbnail drawing," which he dislikes: drawing and diagram conflict, and "thumbnail diagram" is fine. He asks why it created an ADR without asking, since he prefers that decision to be his during the session. The agent renames it to thumbnail diagram everywhere (glossary, ADR, file name) and notes a catch: an active diagram is a diagram, but a thumbnail diagram is not, so maybe "diagram" is the wrong word. It explains the ADR: the decision is non-obvious and surprising without context, involves a real tradeoff, and is not hard to reverse. He agrees with the reasoning and says the investment pays off because future runs understand the context for every decision; being lazy here would make the next run worse.

He asks for naming options and scenario testing against diagram and diagram snapshot, leaning toward "thumbnail diagram snapshot" despite its length. Scenario testing tests domain language: a table of candidate terms (thumbnail diagram snapshot, thumbnail diagram, thumbnail scene) checked against sentences. "I started the thumbnail from the agent loop snapshot used in clip 14, then I simplified it": all three fine. "You open the agent loop in the playground. Is the thumbnail in its timeline?": if it is a snapshot you would expect it there; if a thumbnail diagram you might look at the top level, so calling it a diagram or snapshot makes it feel linked to the other stuff. "I dragged an arrow in the diagram snapshot" fails because snapshots cannot change. "You tell an agent to tweak the thumbnail's diagram snapshot" does not really work. Thumbnail scene passes most rows but fails "does it match my actual mental model": it is coding vocabulary, not what he says, and he searches the glossary and finds a scene concept already exists. The agent's summary: scene is clearest technically but not how he talks and puts a code word in the domain language; thumbnail diagram's one weakness is that it reads as a kind of diagram. He concludes thumbnail diagram is right, with an ADR saying it is a diagram but not a diagram, and that scene is poor because the term exists elsewhere.

He then widens out to multiple questions at once, addressing why the ceremony matters: from almost nothing they now have a fully realized concept and the data model going into it, a thumbnail and a thumbnail diagram that is not technically a diagram, more like a scene, but the word scene is taken. Q2C: starting from a diagram's head should save that head as an unpreserved diagram snapshot, correct. On search order, he wants to start from an empty canvas and search existing diagrams to plop on, not a start-from list. Q15: one thumbnail diagram per thumbnail, yes. Q16: no user images in the thumbnail diagram, yes. Q17: pitches (with a YouTube thumbnail description and alt text) are soft-deprecated and not worth integrating. Q18: keep existing thumbnails as they are. Q19: give the thumbnail editor parity with the diagram editor for saving and inserting components, possibly a shared component.

He notices an awkward term: the glossary's "component" (reusable diagrams plugged into any diagram) collides with React components, so it should be prefixed as "diagram component." He is now getting a real sense of the build and the questions are still high quality. Q20: do not change search, the diagram playground and thumbnail editor should work identically, with one search for components and separate searches for diagrams and snapshots; two subtly different editors would cause constant paper cuts. Q21: inserting a diagram or snapshot brings in the whole drawing, yes. Q22: tracking the source snapshot when pasting is too much complexity for a feature he will rarely use, no. Q23: one diagram component library and one UI, so a component saved from the thumbnail shows in the playground and vice versa, yes. Q24: deleting a video cascades and hard-deletes its thumbnails, which would break links if a thumbnail diagram copied shapes from it, violating the not-lossy rule, so thumbnails should be archived instead of deleted, and soft delete should be the rule everywhere. He explains soft delete (marking a record, e.g. archive true, so it does not show in the UI) versus hard delete (gone from the system); because the data is valuable he almost always soft-deletes and has no cleanup mechanism, though in an app with many users he would purge soft-deleted data on something like a 30-day cycle.

Q25: parity should come from extracting the playground's editor into one shared diagram editor component, yes, a single source of truth. Q26 claims the step of searching for a diagram or snapshot or dropping it in does not exist; he says that is untrue, a find-diagram feature exists and should be reused. Q27: navigation results in the thumbnail editor, yes. Q28: soft delete everywhere as separate work, he is fairly sure it already exists in most places and says not to over-scope. He notes grilling also surfaces improvements to the system that become backlog issues, and is a ritual for staying in touch with the codebase. Q26 again: add a new action to the existing search, yes. Q29: past thumbnail diagrams should show up in the same search, and diagrams and snapshots should be searchable from the thumbnail editor, a smart idea that matters for the data model, which their current model likely supports since thumbnail diagrams will be a separate table or an entry on the thumbnail.

## Prototyping the editing surface

The prototype is ready. Variant A has a movable face (a little too fast), a composited preview top-left, and a "ghost face" feature where his hand disappears when the pointer is in the frame, freaky but nice. Variant B puts the face inside the canvas and is worse than expected: too large, with a view bar on the left he hates. The split view is garbage because he has to look left and watch the right update and cannot see his finger to line it up. So A wins. He also notes a "get license for production" message even though he has a license.

He dictates likes and dislikes: A is nailed, the ghost face is good, face movement is too sensitive and should be bumped down, there is a little white line outside the main block in the composite, composites should display below the thumbnail editor, and much of what was grilled is missing, including inserting components, dropping things in, and parity with the diagram playground. They abandon B and C and iterate on A. The agent asks follow-ups: which surface (Q31: inside the thumbnail page, shown in the next prototype so it can be arranged); whether moving the face and retaking share the drawing's undo history (Q32: yes, which he calls genius, since his current editor has no undo history, but TL Draw bakes it into its data model). The prototype agent is sent back to drop B and C and put A inside the real thumbnail page.

He stresses that prototyping stamps how the product will look before an agent builds it: human-in-the-loop time here reduces the decision space so the agent only has to plug the data model and the UI together when it runs AFK. Seeing the prototype is exciting even after grilling feels onerous; this is personal software meant to make his life more delightful.

The next version lives inside the thumbnail editor with YouTube previews at the bottom, a resizable face in frame, a command palette for inserting components, and diagram search (he inserts Wavefinder). The white bar persists on the right of the export. He agrees with Q34 to Q38; the agent is making decisions as if it were him. The white bar is a bug that could have reached production but was caught. The agent tries to verify its own findings: build a harness, reproduce the bar in its own browser, read pixel colors along the right edge of the export and each preview to find where the white comes from. He says this generation of agents is very good at verifying its own work, possibly due to steering files in his home repo but possibly of its own accord. He notes the sub-agent is at 260k tokens, deep in its "dumb zone," and would have preferred a fresh sub-agent with a clean context for this problem.

On the smart zone and dumb zone: he credits Dex Horthy (Human Layer, now Factory) with the idea that around 150k tokens an agent starts acting stupider and the risk of hallucination slowly rises, because the number of relationships between tokens grows quadratically and the model must find signal in noise. He says making models better at this is an engineering problem others are working on. Asked where the dumb zone begins, he says earlier generations (e.g. Sonnet 3.5) needed clearing at 120k or even 80k tokens, but now it is a cost and optimization matter: the agent is smarter with fewer tokens, so it is less about hallucinations and more about producing worse work, and operating at 750k tokens is very expensive because all previous tokens are re-run each time.

The next prototype still has the white bar but reports it is not an issue: it comes from the browser at Windows 125% scaling, where Chrome shrinking a 120-wide image into the previews left the last pixel column only partly painted. He agrees with Q39 and Q40 (drawing edits should autosave the thumbnail) and asks for a write-up. He invokes the "to spec" skill, which must be at the start of the input in Claude Code (a limitation he has long wanted changed); it creates a specification, asks a couple of questions about where to test, and then implementation can follow. He already has robust reducers, front-end places holding lots of state, which he finds good with agents because they can extend existing ones. He also invokes "to ticket" to add tickets in one batch.

Spec and tickets give the agent what it needs for a long-running session: the spec is a destination document for work across sessions, and each ticket scopes one session, handed to one sub-agent. The proposed breakdown starts with a prefactor, extracting the shared diagram editor into a shared component, and each ticket lists what blocks it. He does not review closely; nine tickets seem fine. The plan is to compact the grilling session, then run "implement spec" to work AFK and merge into a single PR. He argues the job will be easy for the agent: an updated glossary, a full spec, tickets, a prototype to copy for the UI, and code already written. By implementation he tries to give the agent no decision space, because every decision it is asked to make might be a bad one.

The spec lands as a GitHub issue with about 47 user stories, implementation decisions, out-of-scope items, a reference to the prototype on a local branch, and sub-issues as individual tickets that can be parallelized. He compacts the conversation; he has been using compact more, finding it more reliable, though auto-compact is still dodgy because timing can drop something important. Compacting a conversation already turned into a document is safe and almost free, taking about a minute and returning to roughly the starting context. Implement spec (from v1.3) takes the spec and tickets and implements them locally; for work like this it might take an hour or 45 minutes and end with a mergeable PR. He steps away and trusts it to run AFK, starting the three tickets that can begin now with rich context from the compacted conversation.

## Reviewing the 21,000-line PR

He returns to a massive PR, "edit a thumbnail diagram in place beside the face," adding 21,000 lines, plus a code review that found one hard violation and a couple of cases of scope creep and is fixing them. Implement spec reviews everything with an agent against existing coding standards (he points to the code review skill). He decides to review this one on camera and asks for the PR to be broken into smaller chunks using stacked diffs, each reviewable on its own, each a bunch of two-way doors finishing in a final one-way door (definitions in the PR skill). A two-way door can be merged and reverted any time; a one-way door is hard to unmerge because it might touch data, speak to an external service, or open a security window. Agents are good at splitting massive PRs. He asks for line estimates per PR and whether feature flags could make the thumbnail diagram available and then pull it back. He is cosplaying a production system: normally he merges personal software without much care, but with many users he would want production close to the change and a seamless flick-on. The agent turns the last, massive PR into four smaller ones that run both implementations side by side until the final PR turns the flag on. He approves, but only after the review fixes its items, and asks for the work to be delegated to sub-agents because of context limits.

The first of seven PRs is just the glossary terms (diagram component) and ADR-060; it looks fine and he enables automerge, which merges when CI passes. The next extracts the shared diagram editor from the diagram playground, a few files. He explains his approach to human review: he reviews every line here because viewers are interested, but does not think you must. For production he would clone it locally or use a playground to check it works; as the only user he will merge everything and review at the end. The point of reading code is not only what it does but the system that produced it: if something is wrong or a pattern is disliked, he wants a lint rule so it does not recur, with a hypothesis that it negatively affects the environment the agent operates in.

Specific review comments:

- A large comment beside the command palette (command-K mounted inside the shared diagram editor over its canvas): he dislikes large comments because they are surface the agent must update and add little beyond the code; he asks for a coding-standards addition making such comments rarer and a conversation about banning comments in parts of the codebase.
- The TypeScript **as** keyword, which can cheat the type system: he asks for a helper function and a ban on **as** outside shared utilities.
- Gnarly docs that are mostly code comments in the diff.
- In a small PR with reducer tests he likes, more comments to kill, and a dislike of **Pick** and intersections; prefer interface extends. He asks for a lint rule to ratchet up over time.
- Code not touched by the PR calling fetch and ignoring the result: a reusable function is needed.
- A useSearchParams hook with magic strings that could silently break on a rename: a more type-safe design, a lint rule banning useSearchParams, and a ratchet strategy.

He calls himself harsh, trying to force APIs that remove nuance and decisions from the agent, and ambitious in wanting to lint everything out of existence. A roughly 500-line PR is clean apart from comments: it replaces magic conditionals with a single source of truth for isDiagramSearch. A \~2,500-line PR is still a two-way door. He says none of these comments are blocking; the only PR he would consider mandatory to review is the additive migration for thumbnail diagrams, where he checks schema.ts adds the thumbnail diagram to thumbnails. He notes comments can be session-specific notes the agent writes for itself that then live forever, uselessly. The one-way work looks solid.

He compacts and asks the agent to merge all PRs in order, ignoring review comments for now, and to run the merge in a background sub-agent so they can keep chatting. He assumes a viewer would clone locally and check the final branch; he will check in a minute.

## The retro

He runs the retro skill on all agent sessions from the work plus his review comments. Retro runs a retrospective on the process; even after compact, it can access all prior sessions because they are saved locally on disk, and it uses the GitHub CLI to pull in his comments. He usually runs retro after a big chunk of work or regularly to check on sessions, and suggests that a software-factory setup could save sessions to the cloud for retro to examine. Agents go through the 30-odd session transcripts and 12 review comments and return a ranked list, throwing tokens at the environment to find improvements. They did not watch the implementers run or look at sub-agent traces; this is the chance to apply tokens to that.

The retro finds all 12 review comments share one root cause: nothing in the written standards covers his points, and existing code and docs model the opposite. coding-standards.mmd and docs frontend state show the rejected patterns, and main already has thousands of instances. He calls it turning an oil tanker around, and notes the prototype branch was copied. Recommendations:

- Turn the comments into ratcheted checks: ban **as** outside shared utilities (about 2,000 instances); intersections to interface extends (Oxlint has no rule, so a small custom pass); kill useEffect, turned off for a specific directory (about 230 useEffects in 140 files); useSearchParams and magic strings, pointing at a new typed search-params helper; ban raw fetch in favor of a typed API client module; and too many comments, for which no lint rule fits.
- Fix the docs that teach the rejected patterns.
- Prototype code was copied, not reimplemented, a change to the prototype and implement-spec skills; he asks for an issue on the mattpocock/skills repo, which is how his skills get improved.
- The reviewer cannot cover a big diff with one agent, the code review skill at its limits; raise an issue or add to an existing one. He notes reviewing every ticket instead of the spec is extraordinarily slow, and the code review skill appears to be under a 400-word limit, so it may need to divide work into more sub-agents.
- Implement spec creates a merger agent too early; it should try to merge directly.
- Raise an issue to hill-climb toward a faster suite.
- Add the verify-CVM skill (which runs code in a browser to verify implementations) as an issue.
- All smaller items as separate issues.

He calls the retro extremely good, perhaps 20 issues, things that need no grilling and can be passed to agents for PRs that slowly improve the repo. Meanwhile the merge agent waits for CI checks and merges each PR in turn.

A comment audit returns: of about 2,000 lines of comments, about 940 can go now, about 1,000 explain a reason not visible in the code, seven are already stale, and there are no eslint-disable or ts-expect-error directives to worry about. He argues comments let workarounds proliferate, a fig leaf saying "this is fine because there is an explanatory comment," and cites Lauren Tan's view that comments are a safety valve used too often; if banned, you might not take the workaround. He asks which comments could move into ADRs, which could become non-workarounds needing no comment, and which could disappear as inferable from code, and to be more aggressive. The agent agrees: a comment next to a workaround often marks where the code should have been designed differently, not explained. TL Draw and command-K quirks mostly become adapter wrappers; race constraints mostly become test names, a legitimate place for free text. The mega PR stack has merged to production: he captures his face, adds text and a big box his hand points to, toggles a dark panel behind the drawing, exits to see the thumbnail ready, selects it for YouTube, clicks back to edit, and inserts an icon on his finger. He notes high fidelity to the prototype and some follow-up feedback.

Asked to be more aggressive, the agent reports 22 comments can simply be deleted, 18 workarounds need changing, and three ADRs are warranted: CVM custom shapes are a persistence contract; facecam centering is tuned by diagram pixels rendered in the running app; and one more he agrees with. He muses about a skill that treats comments as smells: sniff each comment, see what workaround it describes, remove the workaround and the comment. He asks for all findings in one umbrella issue.

## Where he adds value, and what comes next

Next he would QA what he built, file issues for improvements, and slam them through with an agent, probably without grilling, then have an agent turn the issues into codebase improvements with very small diffs he can one-shot. He says he is most valuable early in alignment, talking everything through, understanding what is being built, creating a prototype, and at the end, where his technical expertise imposes coding standards and says "that looks bad, do this instead." Grilling and retro are the two main points where he interacts with the system, plus QA and taste. The video runs nearly 70 minutes.

[Source: Matt Pocock on YouTube](https://www.youtube.com/watch?v=jVBlkOF8sHk&ref=exindel.com)