I built an AI tool that explains pull requests. The hard part was making it checkable. A developer built explain-diff-html, an agent skill that turns a pull request, branch, or commit range into a single HTML walkthrough page organized into background, intuition, code walkthrough, and quiz sections, following the code path a change takes. The project builds on Geoffrey Litt's explain-diff gist and Cat Hicks' learning-opportunities skill, and the developer says the hard part was making the page's claims checkable: early versions produced unlinked references like `fastapi/routing.py:1551`, and 34 such references across eight published pages linked nowhere. References now link to GitHub at the exact commit being explained so readers can verify each claim against the source. AI has definitely made writing code faster, but understanding that code is a different story. You open a pull request and see changes across controllers, services, utilities, tests, and configuration files. Git lists them file by file, which is rarely the order in which the code runs. Take jsdom v30.1.0. Its release notes read like a list of small fixes, yet the release changed 417 files, 127 of them under lib/ . Behind those fixes, jsdom had stopped storing its document tree in a general-purpose library and written its own. Where would you start if you wanted to understand that release https://github.com/jsdom/jsdom/releases/tag/v30.1.0 ? I've always found reviewing PRs a good way to learn a codebase. You can follow the changes, understand the decisions, and slowly build a mental model of how things work. I didn't want to lose that as AI-generated changes became more common. Why not just ask an agent to summarize the PR? You can. But I wanted something more structured: a walkthrough that follows the code as it runs, with each claim easy to check against the source. So I built explain-diff-html, an agent skill that writes that kind of walkthrough as a single HTML page. Generating the page turned out to be the easy part. Most of what I learned came from making its claims checkable. The skill takes a pull request, branch, or commit range and writes a single HTML page. It reads the diff and the code around it to follow the path the change takes, for example: request → handler → service → transformation → result The page has four sections. Background introduces the concepts the change depends on. Intuition explains the main idea, sometimes with a diagram or a small example. The code walkthrough follows the code paths, with references back to the source. The quiz checks whether you understood the reasoning behind the change. That format isn't my invention. The project started from Geoffrey Litt's explain-diff gist https://gist.github.com/geoffreylitt/a29df1b5f9865506e8952488eac3d524 , which introduced the four sections, the closing quiz, and the single HTML page. The name came from his work too. I also adapted some question patterns from Cat Hicks' learning-opportunities skill https://github.com/DrCatHicks/learning-opportunities . Here's a small example from TanStack Query PR 11305 https://github.com/TanStack/query/pull/11305 . The fix removes seven characters, ?.error , from one line. That check tested whether the error was truthy. So an error with a falsy value, such as Promise.reject with no reason, never reached React's error boundary. The explanation https://malav2110.github.io/explain-diff-html/samples/tanstack-query/2026-09-01-pr-11305-explanation.html walks through why. Each file:line reference in it links to the exact commit, so you can open the source and check it yourself. You can browse the nine published samples https://github.com/malav2110/explain-diff-html samples without installing anything. Setup is at the end. I used AI while building and maintaining the skill. It helped me write code, explore changes, and compare approaches. That made checking the output more important, because I couldn't assume something was correct just because an agent produced it. A generated page can look polished and still contain broken links, misleading statements, or wrong references. Over time, I added several layers of checks. Some validate the generated page. Others test whether those checks work. Each arrow names what one layer can miss and the next one can catch: Early versions of the skill wrote references such as fastapi/routing.py:1551 with no link. To check one, a reader had to open the repository, find the commit, navigate to the file, and find the line. When I checked the published samples, I found 34 of these references across eight pages, and none of them linked anywhere. Now each reference links to GitHub at the commit the page explains. A link to a branch would drift, because a branch keeps moving and the explanation doesn't. Markdown files needed one more fix. GitHub shows a Markdown file rendered by default, and the rendered view ignores a line anchor. A link to line 109 of FastAPI's docs/en/docs/tutorial/frontend.md opened at the top of the page. During one run, the agent added ?plain=1 to its Markdown links on its own, which opens the source view at the right line. A model that stumbles on the right fix once may not stumble on it again. So I made ?plain=1 a rule and added a check for it to the validator. A contributor found this problem. The skill builds GitHub links from the local repository's remote URL, and in some CI environments that URL carries an access token: https://x-access-token: