“I Audited My Claude Code Config and Found 32% Was Wasted”의 전체 스크립트입니다. 타임스탬프를 클릭하면 해당 장면부터 영상이 열려요. 다른 영상이 필요하다면 유튜브 스크립트 추출기를 이용하세요.
0:00 I just ran a new skill on my cloud code config and it found one new feature I didn't realize I was missing and three things I didn't know were broken. Most of us set up our cloud MD once and forget about it. Or we start adding things over time. As time passes, we end up with duplicate settings, redundant callouts, and overly verbose content that we don't even remember why it's there in the first place. At best, it wastes context, and at worst, it's leading to context rot. But there's an agent skill I just recently found that will audit your whole setup in about 10 minutes. Let me show you. The plugin is called Claudit and it's by Anthony Castano. It does a comprehensive audit that is researchbacked of your cloud setup. It looks through all of your configuration from top to bottom. Looks out for potential overengineering and looking out for things like overly verbose cloud MD files, excessive hooks,
0:46 and MCP sprawl. It also uses a persistent memory to save findings across audit runs to help it get faster and become more accurate over time. It does this in a four-phased approach. First, it spins up three research agents to fetch the official anthropic documentation. It does this to make sure that on each audit run, it's referencing up-to-date material. This helps make sure you are following up-to-date best practices, and it can identify new features that you may have been missing out on. Second, it spawns three audit agents to analyze your global config, project config, and ecosystem config against the expert knowledge it's built up. Third, it synthesizes its findings and provides a score. Lastly, it provides an interactive enhancement loop where you can select recommendations to apply. If you select any changes, it
1:32 will show you the before and after scoring when you're done. Let's install the plugin and give it a run into one of my first personal cloud code projects. So, the first thing we need to do to get started is to add the plug-in marketplace. Now that the plug-in marketplace is installed, we can go ahead and install the actual plugin. Here we can choose what scope we want to install the plugin. I'm going to choose for my user scope because this will be useful across many projects. Once we've installed it, now we need to exit and restart cloud code so that it's available in our session. Now with a fresh session, we can just run the /cloud command and it'll go ahead and kick off the audit. The first thing it's doing is determining where it's located and where
2:19 the userdefined configurations can be found. Now it's kicking off its phased approach. First phase doing its research using three agents. One doing the research core, the other doing research ecosystem and finally the research optimization. So each of these will go through and do an audit of the existing anthropic documentation. Now that phase one is complete, it's going to go ahead and move on to phase two. This is where it goes ahead and analyzes my configuration against the knowledge that it just learned using the research. As part of phase two, it's kicked off three research agents. One is doing an audit for global. The second is doing the project audit and the third is doing an audit of the ecosystem as a whole.
3:04 Now that that's done, it's presenting to us its report. So we can see that for 20% of the score is the overengineering category and we've scored fairly poorly uh with a score of 15. My cloud MD is quite large. It has 2500 tokens. It has some restated for built-ins. It has some redundant and duplicate instructions. Uh and there is also some instruction conflict. So not necessarily surprising. This is one of my first cloud code projects and it had a lot of things get added into the cloud MD over time. So, um, good to see that it found that. Then we can see in the cloud MD quality as a whole. That one scored 80. It does have some still references. Uh, there is some full content duplication against our docs. H, but it does have well
3:49 structured sections with a table of contents and links to some reference files. Next is security posture. Uh, scoped bash permissions for project commands is included. So that's a plus 10. Um, and so we've done fairly well there. For MCP configuration, we see that SSE is transport is deprecated. That's the linear MCP. Not sure that there's much we can do there right now. All the servers are healthy. There's minimal tool service. And so we got a score at 100. We can see that there's some plug-in health issues. Again, not ones that I necessarily control, but the front-end design plugin doesn't have a version field. It does note that we have a clean structure for plug-in structure. Context efficiency, we got we did pretty well. We have an score of 80. The total
4:35 combined config is greater than 5,000 tokens. And so that's what's stinging us some points there. We can see here on the bottom that there is a visual report. Uh so it's nice to see easily what how things stand. Again, we can see we got an F for overeng engineering, a B for cloud and equality, A+ for security posture, MCP configuration and plug-in health, and a B for context efficiency. And so now it's going ahead and it's outlining the critical issues that it's found. CloudMD over engineering. Basically, the CloudMD is 449 lines, which is about 3,566 tokens. That's well past what it says the 2026 community standard is, which is about 50 to 100 lines. and 2500 tokens uh which is over
5:20 the overengineering threshold and according to its analysis roughly 32% of its content buys nothing then there are some specific findings so we have eight restated built-ins design principles Ruby naming conventions write clean code guidance things like that there are four redundant duplications so our spec testing skill describes is described in two sections the docs thoughtbot conventions MD is referenced three times. Bin lint instruction appears multiple times. So I have some duplicate content inside of my cloud MD. There's some instruction conflict on line 379 which says to use the result pattern for expected failures. But then on lines 247 to 285 it says to use it
6:06 sparingly and instead to default to Rails conventions. This makes sense because at one point I had wanted to use the result pattern and I think I moved away from it or wanted to move away from it and I had instructed claw to do that. Uh but instead of like overwriting its decision, it just appended a new section. Uh so it's leading to that confusion there. It also caught two stale references which causes confusion for devs. The get workree manager skill is referenced but actually doesn't exist and the linear implement skill command is referenced uh but no command file exists. though some things got lost since uh things got shuffled into skills and things like that. So uh there are some still references in the cloud MD. Lastly, I was testing out a manage cloud MD. So that can go in the for Mac OS
6:52 library application support cloud code that just has the word test uh mainly because I was just trying to test it. And so it noticed that and says that it should be it's currently getting injected into every session and should be cleared if it's left over from testing. So I do need to do that. Now we can see below it has some top recommendations. So the first one is to prune the cloud MD, remove restitated built-ins, dduplicate the RSpec testing section, replace error handling section with a reference link. It mentions fixing the get work tree manager and the linear scale reference. It mentions resolving the result pattern contradiction which makes sense. Also for a high priority is to remove and clear the library application support
7:38 cloud code cloud MD mentions adding some timeouts for the MCP servers to prevent hanging which I'm not sure how necessary that would be updating the linear MCP to use HTTP so I need to take a look at that instead of the SSC it also mentions that we should maybe document five undiscovered skills in the cloud MD which is the custom form builder the dev environment onboarding linear method and rails backend patterns. It's interesting that that one's recommended. Um I guess it's for team usability is the estimated impact. I guess to let other people know about it. Also has identified some features that I should potentially adopt. So it mentions tool search with only two MCP servers. it doesn't think I
8:24 need it today, but if I add enable tool search auto now, that means that as more MCPS get added, uh it can help deliver some context cost reduction there. So again, right now, not necessarily needed for this project, but at least if I set it now, I don't have to remember to do it later if I do grow the number of MCPS I have installed. Then it also mentions a feature for cloud rules. This is another way to basically load in written instructions for cloud code. Uh these can be set with YAML front matter with some paths and path scoped rules and you can then basically map uh specific rules that you want to apply when cloud code is working in specific files. So that's nice to know about uh a feature that's not being currently used in this project. Um but
9:10 it's a recommendation to that it might be something worth checking out. So user level permission rules. It's mentioning that we should add some common commands making sure that bundle exec rspec is there bin lint git um are all in the home directory cloud settings so that they're autoall allowed across all of my projects so I don't necessarily have to remember to do that every time I move into a new project or start a new project. So not a bad recommendation um there either. So here we can see now we have an option through the uh ask question tool to pick which improvements we want to do. So I'm going to go ahead and pick the prune cloudmd definitely makes sense. I'm going to go ahead and fix the stale references resolve the results pattern
9:56 conflict. But for now I'm not going to go ahead and have the mcp server timeout. So that is what I'm going to select and go ahead and run submit. And now cloud code is going to go ahead and make those changes. So now we can see the report now that it's gone ahead and made those changes. So we take a look, we can see the over overengineering rescored. We went up from a 15 all the way up to a 70. And the Claude MD quality went from an 80 up to 100. And so overall, we've moved from a grade of a 76 all the way up to a 90 based off its changes. And if we scroll down a little bit further, we can see that visual graph again representation of our health report uh with a breakdown of everything
10:42 and now a summarized set of changes of everything that uh it went through and changed. And it also mentions the some other things remaining to tackle on my own. That is the library cloud code u cloud MD file. The timeouts for an MCP server. consider removing the linear server from SSE to HTTP and a few other things like enabling tool search auto. If we take a look at the diff, we can see all the changes that it made. We can see that it's moved workflow commands linear to a skill. And here's all of the excessive things that it removed some pointing to uh some docs instead of referencing things and duplicating them inside the cloud MD. And we can go ahead
11:29 and commit this update and we are all set. As you can see, over time, a cloud MD can gain croft that needs to be cleaned up. Cloud makes it easy to do that. Run it, get a report, and make some changes. If you want to try it out, I'll have a link in the description below.