Claude Code for Product Designers
Lesson 42 of 49, 0 of 49 lessons completed
Sign in
Watch on YouTubePlay

Plays from YouTube. Google's privacy policy (opens in a new tab) applies.

Up next

4.5 Your own code review

Next lesson in 8 s

4.4 Reviews and shared blind spots

Adam explains who reviews your PR once you work with a team, and why an AI review bot that mixes models from other providers catches what a second Claude session misses. He then describes how he has Claude check each bot finding before acting on it, and how review rounds lead to a merge.

What you'll learn

  1. After you open a PR, a human reviewer or an AI review bot comments on it, depending on the team.
  2. Common review bots: CodeRabbit, Graphite, Greptile, Cubic.
  3. Why a reviewer with a different model catches different things than Claude reviewing Claude's code.
  4. Don't take AI review findings at face value; have Claude check each one against the code first.
  5. A skill can triage bot findings with one sub-agent per finding and explain each in plain terms.
  6. Review is a loop: fix, commit, push, reply in the thread, ask for a re-review; two or three rounds are normal.
  7. Some bots give a merge-safety rating, and teams may set a threshold.
  8. Tell the team when the PR is ready, and get it merged quickly to avoid merge conflicts.

Chapters

  1. 00:00Who reviews your PR
  2. 01:29Why a different model helps
  3. 02:56Always check AI review findings
  4. 04:31A skill to triage findings
  5. 05:42Review rounds and merge ratings
  6. 07:41Getting merged before conflicts
  1. 00:00PR is raised. Um so what's next?
  2. 00:03Well, you might remember from module two that the next step on the PR life cycle is doing a code review.
  3. 00:11Now, doing a code review in a solo developer project versus doing a code review when you work with other engineers, especially when you come in as a designer, that
  4. 00:20might [snorts] be a totally different story.
  5. 00:22So let's see how this might be different this time around.
  6. 00:25So in module two, we talked about running that code review skill um directly within Claude Code.
  7. 00:32That is still totally an option and that is still totally something that you can do even before you merge or before you raise your first PR.
  8. 00:41Uh that would be a very nice touch.
  9. 00:43Um however, when the PR is raised, um depending on your uh depending on your team's rituals and processes and what you agree on, chances are you will either need
  10. 00:55to um attach over here a different GitHub user, just a different engineer as a reviewer, um and that person will just go through this PR, read or skim through
  11. 01:05the code and come back with findings to fix.
  12. 01:08Or, and I believe this is a bit more likely these days, you're going to see very shortly a new comment from an external bot, AI reviewing bot.
  13. 01:18And these bots can be tools such as CodeRabbit or Graphite or Cryptile or this one, which we as Tonik also helped uh contribute to uh Cubic.
  14. 01:29Now, the reason these AI code reviewer uh reviewing bots are perhaps a little bit better option than reviewing the code in a new session of Claude Code, especially when
  15. 01:40you created or when you wrote this code with the help of um Anthropic's models, is because all of these tools tend to use a combination of different AI models
  16. 01:52to review work. And the reason this is so nice and so important is because um you know, when you have the same model the work written by that same
  17. 02:02model, you know, they are going to be sharing the same blind spots.
  18. 02:06Uh, it's exactly as if you try to read or evaluate your own work.
  19. 02:11Even when you spawn a sub session or a totally new session of in Claude to review your PR written with Claude models as well, it would be more like
  20. 02:19you waking up the next day.
  21. 02:21Perhaps you are a little bit more rested and you are going to have a bit of a fresh perspective on the work you did the previous day, but it's
  22. 02:28not that your your knowledge is going to change dramatically.
  23. 02:31You're still going to be you're still very likely to be making the same mistakes.
  24. 02:37So when these external integrations shine is because they often time bring in models from providers such as OpenAI or Google or you know, Grok for example.
  25. 02:49Um, and you know, these models can genuinely bring in a totally new way of looking at the code to the table.
  26. 02:57And so when you inevitably receive code review in this PR from either these AI bots, the AIJ agents or a human reviewer, well, what you can do as a
  27. 03:09designer is can go back to Claude to first of all, before you act on anything, evaluate these code review findings.
  28. 03:16Especially when you work with AI bots, it's not that everything they are going to list here should be, you know, should be taken at a face value.
  29. 03:25Always validate all of the findings, especially when they are coming from these AI reviewers.
  30. 03:31Um, in one of the previous projects that I've been working on, um, the AI bot reviewer that was installed over there was Graptile.
  31. 03:40And Graptile were Graptile was really given us really fresh and interesting findings.
  32. 03:46I couldn't, of course, me myself being a designer truly evaluate whether they are true or false.
  33. 03:52Um, and so what I ended up doing after a while when I had these comments, you know, because like initially I was just coming back to my, you know,
  34. 03:59main session in which I opened up this PR assuming that I still had some context window left.
  35. 04:05And I would just ask it to pull up comments from from GitHub and know Claude can do this because you have that GitHub integration now installed.
  36. 04:13Uh so I would ask it to pull up these comments and uh basically reflect on them and see if there like there are false positives or whether there is
  37. 04:23anything like genuinely um worth acting on.
  38. 04:27But then with the time you know comments made by these AI bots started growing and you know they started finding these more serious items.
  39. 04:35So what I ended up doing is I ended up writing a skill um like that we use internally.
  40. 04:40The skill that basically uh worked like this um for each finding that uh Greptile or any other AI reviewer would post spawn a sub agent that was an instruction
  41. 04:52to the um to Claude.
  42. 04:53So spawn a sub agent uh one per each finding to evaluate it like see if it if it can be backed up from uh from the current state of
  43. 05:02code and uh whether we should fix it.
  44. 05:05And so what I would uh what I would see in the um in response after a couple of minutes was just a simple review.
  45. 05:13Okay finding number one this is a false positive finding number two false positive as well but the not finding number three is something that's genuinely worth acting on.
  46. 05:22What I also had in that skill was an ask to basically summarize each finding to me and lay it down in plain simple terms so that I as a
  47. 05:31designer can can follow it.
  48. 05:33And that really helped me become more aware of the types of mistakes that some of my AI Claude AI coding agents uh were prone to making more often.
  49. 05:43Um and so that would be the process that I would really recommend uh you try to adopt unless unless there is a different path or there is a different
  50. 05:52recommendation coming directly from the team you are working with.
  51. 05:56So you get a code review from a human reviewer or from a Greptile agent.
  52. 06:01You go and find these fixes and you post a response on here like in here in that grep-tile I'm sorry in that PR thread and of course for each
  53. 06:11finding or each bug that you fix you commit and you push these changes back to this PR.
  54. 06:17When you are done with round one you would often times either reach back to this code to this human code reviewer and ask it for another pass or in
  55. 06:27the case of these AI coding tools there is often times command that you can initialize that you can type over here in the thread.
  56. 06:35So in the grep-tile that would be I believe grep-tile bots or something along these lines and that would basically let grep-tile know that the code is ready to be
  57. 06:45re-reviewed. And you know depending on how large your PR is sometimes you can get everything everything right from the like right on the first try.
  58. 06:57Sometimes it can take two maybe three rounds before your PR is genuinely safe to be merged.
  59. 07:03Most of these AI coding reviewers will often time come with a rating on a scale.
  60. 07:09Grep-tile does the five scale rating which is really nice and easy to read.
  61. 07:13You basically learn whether like how safe your PR is to be merged on a scale from from zero to five and depending on your team your your like on
  62. 07:24what you agree on within your teams you might have for example a rule that says we don't merge unless we have a rating of four out of five from
  63. 07:34grep-tile or five five out of five.
  64. 07:37So you so you wait for this AI code reviewer to come back with the findings to deal with those and when this PR is safe to be merged what
  65. 07:49you do next is you basically have to let someone know that this PR is good to be merged.
  66. 07:55Again this is assuming you're working with AI code reviewers.
  67. 07:58And there might be a Slack channel there might be a different way to notify someone that this PR has been raised has been reviewed has been fixed and it's
  68. 08:07be ready it's now ready be And you want to make sure that this happens as fast as possible because especially in fast-moving teams, you might be looking at many
  69. 08:19many PRs raised every single day.
  70. 08:21With each new PR raised by your other, you know, engineering colleagues, uh your PR might start accumulating these merge conflicts, which we also saw in one of the previous
  71. 08:32videos, uh which is not the end of the world, but it is a little bit annoying to keep coming back to Claude asking it to um deal with these
  72. 08:40uh conflicts, especially because each conflict that we fix comes with a risk of there like being a new uh error that we would have to um we would have
  73. 08:50to later go and address.
  74. 08:52So you go and fix these findings, you let someone know, and you hope your PR is merged as quickly as possible without you doing it manually, but instead relying
  75. 09:03on your other colleagues.
  76. 09:05Now over here, we are alone.
  77. 09:08So what we are going to do is we are going to basically repeat the same process we did in module two.
  78. 09:13We are going to go back to Claude, and in the next video, we are going to handle the code review part ourselves.
  79. 09:19So I'll see you there.

The cheat sheet is for signed-in viewers. Inside: the lesson's prompts ready to reuse, the commands and shortcuts, useful links and what to watch out for.

Sign in to get the cheat sheet

Loading the cheat sheet…