Watch on YouTubePlayPlays from YouTube. Google's privacy policy (opens in a new tab) applies.
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
- Update CLAUDE.md every now and then, ideally after each longer session, with what Claude found surprising.
- You can ask in your own words, or use Anthropic's
claude-md-managementplugin and itsrevise-claude-mdskill. - Install plugins from the Customize tab; plugins can run code, so the app asks you to confirm.
- Run the skill in the session where the work happened, so it can learn from it.
- If a new plugin's skill doesn't appear, restart the app.
- The project CLAUDE.md is shared with everyone who clones the repo; personal rules stay in your personal file.
- Keep CLAUDE.md to roughly 200–250 lines at most, or Claude may forget what's in it.
- Claude's suggested next prompt can be accepted with Tab.
Chapters
- 00:00Why keep CLAUDE.md up to date
- 01:08Installing Anthropic's CLAUDE.md plugin
- 02:36Running the revise-claude-md skill
- 04:04Applying and committing the additions
- 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.
- 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,
- 00:21ideally after each longer session.
- 00:24You see, there might be things that um our Claude agent might have stumbled upon and found as uh like found surprising.
- 00:32Um and it's good for future AI agents to have that knowledge as well.
- 00:37And this is exactly the type of things that we would want to keep in our CLAUDE.md file.
- 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
- 00:52there is anything worth updating.
- 00:54Perhaps there is a stale reference that we need to update or remove.
- 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.
- 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.
- 01:14And the plugin that we are looking for is the one made by Anthropic.
- 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
- 01:27run code. I'm going to hit Continue.
- 01:30And then with that plugin installed, I'm going to go back to our original session.
- 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
- 01:44the work here. And I'm going to first of all go with the reload plugins slash command.
- 01:51Um and then I 'm going to do CLAUDE.md um or is it revise?
- 02:01Um. Let's see. Perhaps I should do reload skills as well.
- 02:11Um. Okay, it doesn't show up here.
- 02:15So, you know what I'm going to do?
- 02:17I'm going to I'm going to uh close and restart my Claude application.
- 02:23Actually, let me do this properly.
- 02:25I'm going to force quit and I'm going to um Okay, let me launch this again.
- 02:35Let me go back to my bookings view design and then I'm going to type in revise.
- 02:40There it is. CLAUDE.md management revise CLAUDE.md.
- 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
- 02:54with sessions uh or with learnings from this session.
- 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.
- 03:08Okay, um our Claude agent has, first of all, reread the CLAUDE.md files.
- 03:15Um. And then it's coming back with suggestions for things to add.
- 03:22And let's see what it says.
- 03:23So, the project has one instruction file, which is shared with your team through Git.
- 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.
- 03:37There are there is no personal local copy.
- 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.
- 03:46Um below are the additions I would make all in the shared file because they describe the project rather than your personal preferences.
- 03:53Your rule um about never committing without approval is already in your personal file for all projects, so it isn't repeated here.
- 04:01That is indeed something we did a few videos ago.
- 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
- 04:15suggest adding a little bit more instruction and structure into our CLAUDE.md file.
- 04:23Right. So here is an interesting finding.
- 04:28So the my bookings is empty confused testing until we understood how your my bookings are matched.
- 04:34So this is something that really relates to my own setup.
- 04:37And of course, again, we are working with the AI.
- 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.
- 04:49Okay, these would add about 15 lines.
- 04:51I'm okay with this.
- 04:51I'm going to apply all of them.
- 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.
- 05:08Anything larger than that will come at a risk of like Claude just simply forgetting what's in there.
- 05:16Okay, perfect. Now I'm going to ask it to commit the CLAUDE.md update.
- 05:21I actually have this already.
- 05:22So I'm just going to hit tab to confirm this suggestion and I'm going to hit enter.
- 05:27And in a second, we should see a new comment being added here.
- 05:30And right here it is.
- 05:32And wonderful. And with that, I believe we are good to go to raise our first PR in the next video.