Claude Code for Product Designers
Lesson 23 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

2.9 Your first pull request

Next lesson in 8 s

2.8 Keep CLAUDE.md up to date

Adam explains why CLAUDE.md should be updated after longer sessions, then installs Anthropic's claude-md-management plugin and has Claude add what it learned in the session to the project's CLAUDE.md and commit it.

What you'll learn

  1. Update CLAUDE.md every now and then, ideally after each longer session, with what Claude found surprising.
  2. You can ask in your own words, or use Anthropic's claude-md-management plugin and its revise-claude-md skill.
  3. Install plugins from the Customize tab; plugins can run code, so the app asks you to confirm.
  4. Run the skill in the session where the work happened, so it can learn from it.
  5. If a new plugin's skill doesn't appear, restart the app.
  6. The project CLAUDE.md is shared with everyone who clones the repo; personal rules stay in your personal file.
  7. Keep CLAUDE.md to roughly 200–250 lines at most, or Claude may forget what's in it.
  8. Claude's suggested next prompt can be accepted with Tab.

Chapters

  1. 00:00Why keep CLAUDE.md up to date
  2. 01:08Installing Anthropic's CLAUDE.md plugin
  3. 02:36Running the revise-claude-md skill
  4. 04:04Applying and committing the additions
  1. 00:00Okay, so with the my bookings view implemented and then later refined, with our comment history clean, it's a good moment for us to start thinking about raising a PR.
  2. 00:10Before we get there, however, it is a good habit to uh keep an eye and update on your CLAUDE.md file and to update it every now and then,
  3. 00:21ideally after each longer session.
  4. 00:24You see, there might be things that um our Claude agent might have stumbled upon and found as uh like found surprising.
  5. 00:32Um and it's good for future AI agents to have that knowledge as well.
  6. 00:37And this is exactly the type of things that we would want to keep in our CLAUDE.md file.
  7. 00:43I could simply just use my own words to ask this Claude agent to take a look at the CLAUDE.md file, review it against our session, and see if
  8. 00:52there is anything worth updating.
  9. 00:54Perhaps there is a stale reference that we need to update or remove.
  10. 00:59But there is actually a very neat plugin from uh Anthropic themselves that we can install that is going to give us a very nice skill to do this.
  11. 01:08So I'm going to head over to the Customize tab, and then in the search I'm going to type in CLAUDE.md.
  12. 01:14And the plugin that we are looking for is the one made by Anthropic.
  13. 01:18I 'm going to hit Add, and I'm going to acknowledge that yes, um this plugin comes with uh scripts that can be um or like something that like can
  14. 01:27run code. I'm going to hit Continue.
  15. 01:30And then with that plugin installed, I'm going to go back to our original session.
  16. 01:35This is important. I want to really launch this plugin from within this session in which we've been doing most of the work or actually like in the entirety of
  17. 01:44the work here. And I'm going to first of all go with the reload plugins slash command.
  18. 01:51Um and then I 'm going to do CLAUDE.md um or is it revise?
  19. 02:01Um. Let's see. Perhaps I should do reload skills as well.
  20. 02:11Um. Okay, it doesn't show up here.
  21. 02:15So, you know what I'm going to do?
  22. 02:17I'm going to I'm going to uh close and restart my Claude application.
  23. 02:23Actually, let me do this properly.
  24. 02:25I'm going to force quit and I'm going to um Okay, let me launch this again.
  25. 02:35Let me go back to my bookings view design and then I'm going to type in revise.
  26. 02:40There it is. CLAUDE.md management revise CLAUDE.md.
  27. 02:45So, as the description says, it's a skill that's just worth running every now and then, especially at the end of the session, to go and update uh CLAUDE.md
  28. 02:54with sessions uh or with learnings from this session.
  29. 02:57So, let us run this this um um this skill and let's see if there are any findings worth documenting uh in our CLAUDE.md file.
  30. 03:08Okay, um our Claude agent has, first of all, reread the CLAUDE.md files.
  31. 03:15Um. And then it's coming back with suggestions for things to add.
  32. 03:22And let's see what it says.
  33. 03:23So, the project has one instruction file, which is shared with your team through Git.
  34. 03:28That is correct. Everyone who is going to um clone this Git repository or fork it is going to have access to the exact same CLAUDE.md file.
  35. 03:37There are there is no personal local copy.
  36. 03:39Um well, there is no one there is no copy in this file, but we have our personal CLAUDE.md on the computer level.
  37. 03:46Um below are the additions I would make all in the shared file because they describe the project rather than your personal preferences.
  38. 03:53Your rule um about never committing without approval is already in your personal file for all projects, so it isn't repeated here.
  39. 04:01That is indeed something we did a few videos ago.
  40. 04:04Now because this is the first time I'm actually running this skill here in this repo, I'm somewhat okay with the fact that like this initial run is going to
  41. 04:15suggest adding a little bit more instruction and structure into our CLAUDE.md file.
  42. 04:23Right. So here is an interesting finding.
  43. 04:28So the my bookings is empty confused testing until we understood how your my bookings are matched.
  44. 04:34So this is something that really relates to my own setup.
  45. 04:37And of course, again, we are working with the AI.
  46. 04:40So chances are if you are following along and are running the same command right now, your findings might be a little bit different and that is totally okay.
  47. 04:49Okay, these would add about 15 lines.
  48. 04:51I'm okay with this.
  49. 04:51I'm going to apply all of them.
  50. 04:54And one thing to keep in mind about maintaining your CLAUDE.md file is that you typically want to keep it around 200 or 250 lines at most.
  51. 05:08Anything larger than that will come at a risk of like Claude just simply forgetting what's in there.
  52. 05:16Okay, perfect. Now I'm going to ask it to commit the CLAUDE.md update.
  53. 05:21I actually have this already.
  54. 05:22So I'm just going to hit tab to confirm this suggestion and I'm going to hit enter.
  55. 05:27And in a second, we should see a new comment being added here.
  56. 05:30And right here it is.
  57. 05:32And wonderful. And with that, I believe we are good to go to raise our first PR in the next video.

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…