{"id":628,"date":"2026-11-08T09:00:00","date_gmt":"2026-11-08T06:00:00","guid":{"rendered":"https:\/\/www.assemblyso.com\/?p=628"},"modified":"2026-11-26T16:46:26","modified_gmt":"2026-11-26T13:46:26","slug":"claude-md-skills-team","status":"publish","type":"post","link":"https:\/\/www.assemblyso.com\/en\/claude-md-skills-team\/","title":{"rendered":"How to Set Up CLAUDE.md and Skills for a Dev Team"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Write a short CLAUDE.md file that tells the agent only what it can&#8217;t discover by reading the code, and move knowledge needed for only some tasks into Skills. Manage both types like code that goes through review, and after every agent mistake, write the lesson into one of them.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is CLAUDE.md, and why is it the team&#8217;s rulebook?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A CLAUDE.md file lives in the repo, and every Claude Code session starts with what is written in it. It affects every task in the project, no matter which developer launched the agent.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The message you write to the agent is only a small part of what reaches it. Alongside it come the system prompt, meaning the standing instructions the tool sends to the model before every request, as well as Skills, CLAUDE.md files and auto-memory (details about the work and about you that Claude Code saves on its own and loads in later sessions). Planning all of this is called context engineering: deciding what the agent knows before you ask it for anything.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A request wording that works well is saved as a Skill, and any developer on the team can run it as a command that starts with a slash. Conventions the agent learned about the project are written in CLAUDE.md, so a new session doesn&#8217;t have to learn them again. This is how CLAUDE.md and Skills become the team&#8217;s rulebook: the rules every session receives, no matter who launched it. Our own development also runs on a <a href=\"https:\/\/www.assemblyso.com\/en\/how\/\">rulebook<\/a> of hundreds of rules accumulated over decades, and our AI agents write and review code according to the rules in it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What goes in CLAUDE.md, and what moves to a Skill?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In CLAUDE.md you write only what the agent needs in every task and can&#8217;t discover from the code. Other knowledge goes in separate files, which the agent opens only when the task requires them.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Open with a few lines on what the project does, and give most of the file to decisions that look strange to someone who doesn&#8217;t know the code, the things a new developer would miss in the first week. Say all your type definitions, the descriptions of object structures in the code, live in one file. An agent that doesn&#8217;t know this will define a new type in the file it is working on, and within a month you will have two different definitions of the same object. One line in CLAUDE.md prevents that. What the agent sees on its own is not written down: if the project is written in Angular, it will understand that from the files.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Knowledge needed only for some of the tasks moves to a Skill, a file that describes one method. Write a Skill only about knowledge that exists in your organization and not in the model. A Skill that explains how to write an Angular component is redundant, because the model already knows that. A Skill that details how to bring up your local environment and which tests are mandatory before a merge request is worth the effort.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is worth splitting a long Skill: the main file keeps a few sentences, and next to each topic it says which file holds the details and when they are needed. The agent reads the main file and opens another file only when the task reaches that topic. This way the details don&#8217;t take up space in the context window, the amount of text the model sees at once, until they are actually needed. At Anthropic this method is called progressive disclosure: the agent loads the right information at the moment it needs it, and not everything up front.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What changed in Claude 5 models, and what does it mean for your files?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">On July 24, 2026, Anthropic published that it deleted more than 80% of the Claude Code system prompt for models such as Claude Opus 5 and Claude Fable 5, with no measurable drop in its coding benchmarks. According to Anthropic, the agent was over-constrained, both by the tool&#8217;s instructions and by CLAUDE.md files and Skills, and it recommends simplifying those too.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">One of the problems found is contradictory instructions. In the same request the agent received &#8220;leave documentation as needed&#8221; and also &#8220;don&#8217;t add comments&#8221;, each instruction from a different place. Usually the model understands what you wanted, but part of its reasoning goes to resolving the contradiction instead of the task. In our view the bigger risk is that the agent picks the wrong instruction, and on a team where several developers add lines to the same file, contradictions pile up fast.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When you go over the team&#8217;s files, look for two things.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A rule that forbids something across the board is worth rewording so that it leaves the agent room for judgment. In Claude Code itself, the rule that forbade almost any code comment was replaced with a request to write code that resembles the code around it, including the number of comments.<\/li>\n\n<li>A long procedure needed only at one stage of the work is better moved to a separate file that loads when needed. That is what Claude Code did with testing and code review, which moved to Skills.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">How to point from CLAUDE.md to a Skill<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Say you have a Skill called verify-change that details how to check a change. In CLAUDE.md you don&#8217;t copy the procedure. You write one line, for example: &#8220;Before you announce that a task is done, run the verify-change Skill&#8221;. The line loads in every session and takes one sentence of the context window, while the full procedure loads only at the verification stage. Without the line, nothing tells the agent that in your project there is no finishing without a check.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Tools that explain themselves instead of usage examples<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">It used to be recommended to attach usage examples to every tool, meaning a script or command the agent runs. With the new models, examples make the agent stick to them, and it is better for the tool&#8217;s parameters to make clear how it is used. Say CLAUDE.md contains &#8220;to deploy to the test environment, run .\/deploy.sh staging&#8221;. The agent will copy the line as is, even when it needs something else.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For a script you can write help output: a short text inside the script itself that is printed when you run it with the &#8211;help flag. If the script has an env parameter that accepts only staging or production, and help output that explains each parameter in one sentence, a line like &#8220;deployment is done with .\/deploy.sh, details in its help output&#8221; is enough in CLAUDE.md. The agent runs the script with &#8211;help and picks the right parameter on its own.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Along with these recommendations, Claude Code gained the \/doctor command, which goes over your Skills and CLAUDE.md files and simplifies them according to the recommendations. We recommend running it on a separate branch and passing the changes through a regular merge request.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Every agent mistake should end with an update to the settings<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you only fix the code, next week the agent will make the same mistake on the same task. Boris Cherny, who built Claude Code, asks the agent itself to write the lesson in CLAUDE.md or turn it into a Skill, so next time the lesson loads together with the rest of the settings.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On a team, someone has to decide where the lesson is written. If it touches every task in the project, it goes into CLAUDE.md as a short line. If it touches a specific type of work, say migrations, it belongs in the Skill for that work. What you should not do is add, after every failure, another harsh prohibition with &#8220;never&#8221; and &#8220;under no circumstances&#8221;. Check first whether a rule on the same topic already exists, and fix it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How do you share settings across the team without pushing passwords to GitHub?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">CLAUDE.md files and Skills go into the repo like any other code. The .claude\/settings.local.json file must stay out of it, because it may contain passwords.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Researchers at Apiiro showed how this happens. When Claude Code runs a command that includes a password, and the developer answers &#8220;Yes, and don&#8217;t ask again&#8221; so the agent won&#8217;t ask again, the full command is saved in this file, password included. The researchers scanned 104,185 public copies of the file on GitHub and found at least one secret in 1,122 of them, 1,379 secrets in total. Among them were 379 database passwords, 43 SSH logins to public servers and 23 AWS keys.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Add .claude\/settings.local.json to the repo&#8217;s .gitignore, even if git already ignores it on your machine. The first time Claude Code writes the file, it adds it to git&#8217;s global exclude file, but that exclusion is stored on the developer&#8217;s machine and not in the project, so it doesn&#8217;t pass to a colleague who downloads the repo.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In version 2.0.26 a bug was reported on GitHub: when the developer had set up their own global exclude file (core.excludesFile), Claude Code wrote the line to the default file ~\/.config\/git\/ignore, which git doesn&#8217;t read in that situation, and the file was not excluded at all. If you work on that version, add the line yourself to the file that core.excludesFile points to as well.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the file has already been pushed, these are the steps in order.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Immediately replace every password, key or token that appeared in it. Once they reached GitHub, even once, they are no longer secret.<\/li>\n\n<li>Remove the file from git tracking with git rm &#8211;cached .claude\/settings.local.json, because adding it to gitignore has no effect on a file that was already committed.<\/li>\n\n<li>If the repo is public, clean the commit history with git-filter-repo or BFG. git also keeps files you deleted.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">So that this doesn&#8217;t happen in other projects as well, add the line to a global gitignore on every developer&#8217;s machine. Block only this file and not the whole .claude folder, so shared Skills keep reaching the whole team. In an organization, also add automatic secret scanning on every merge request.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Who owns the file, and how do you review changes to it?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Every settings file needs one person who owns it, usually the team lead or a senior developer, and every change to it goes through a merge request like a change to code. A line that enters CLAUDE.md affects all the code the agent writes from that moment for every developer, so it doesn&#8217;t go in without someone reading it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In review, we recommend asking the author of the change to attach the mistake it is meant to prevent, and checking that the new rule doesn&#8217;t contradict an existing one. Every so often, and certainly when a new model comes out, go over the files and delete rules the model no longer needs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In our <a href=\"https:\/\/www.assemblyso.com\/en\/agentic\/\">AI adoption for development teams<\/a> service, we install the tools on your repo, configure them, build the Skills and the development rulebook with you, and support the team over time. The service is opening as a first-partners program. You can start with a <a href=\"https:\/\/www.assemblyso.com\/en\/contact\/\">45-minute intro call<\/a>, free and with no commitment.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n\n\n\n<div class=\"a-faq\">\n  <details>\n    <summary>What is the difference between CLAUDE.md and a Skill?<\/summary>\n    <div class=\"a-faq__body\">A CLAUDE.md file loads in every session, so you write in it only what is always needed: a few lines about the project and the decisions the agent won&#8217;t understand from the code. A Skill documents one method, such as checking a change, and the agent loads it only when the task requires it.<\/div>\n  <\/details>\n  <details>\n    <summary>Should you push the .claude folder to GitHub?<\/summary>\n    <div class=\"a-faq__body\">Only part of it. Skills and shared settings go into the repo, but the .claude\/settings.local.json file can contain passwords from commands you approved. So add it to the repo&#8217;s .gitignore, block it in a global gitignore on every developer&#8217;s machine as well, and make sure it isn&#8217;t in git history.<\/div>\n  <\/details>\n  <details>\n    <summary>Do you need to rewrite your instructions for Claude 5 models?<\/summary>\n    <div class=\"a-faq__body\">It is worth going over them and simplifying. Anthropic deleted more than 80% of the Claude Code system prompt for the new models with no measurable drop in its coding benchmarks, and recommends simplifying CLAUDE.md files and Skills too. The \/doctor command is meant to help with that, and it is worth passing what it changes through a merge request.<\/div>\n  <\/details>\n  <details>\n    <summary>Who can help us set this up on our team?<\/summary>\n    <div class=\"a-faq__body\">We support teams with installing and configuring the tools on the repo, building Skills and writing the development rulebook. Details are on the <a href=\"https:\/\/www.assemblyso.com\/en\/agentic\/\">AI adoption for development teams<\/a> page.<\/div>\n  <\/details>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Sources<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n\n<li>Anthropic: <a href=\"https:\/\/claude.com\/blog\/the-new-rules-of-context-engineering-for-claude-5-generation-models\" rel=\"noopener\">The new rules of context engineering for Claude 5 generation models<\/a><\/li>\n\n\n<li>Claude Code Docs: <a href=\"https:\/\/code.claude.com\/docs\/en\/prompt-library\" rel=\"noopener\">Prompt library<\/a><\/li>\n\n\n<li>Claude Code IL group: <a href=\"https:\/\/www.facebook.com\/groups\/claudecodeil\/permalink\/2609216432917856\/\" rel=\"noopener\">The person who built Claude Code explains how he works with it today<\/a><\/li>\n\n\n<li>Claude users group: <a href=\"https:\/\/www.facebook.com\/groups\/cladue\/permalink\/1526870952832885\/\" rel=\"noopener\">For Claude users: important to read (Apiiro research on settings.local.json)<\/a><\/li>\n\n\n<li>ComputingForGeeks: <a href=\"https:\/\/computingforgeeks.com\/claude-code-settings-local-json-secrets-audit\/\" rel=\"noopener\">Claude Code settings.local.json secrets audit<\/a><\/li>\n\n\n<li>DEV Community: <a href=\"https:\/\/dev.to\/cole_halton_42f71d71b809b\/the-claudesettingslocaljson-gitignore-stops-working-the-moment-the-file-is-tracked-4acn\" rel=\"noopener\">The .claude\/settings.local.json gitignore stops working the moment the file is tracked<\/a><\/li>\n\n\n<li>GitHub: <a href=\"https:\/\/github.com\/anthropics\/claude-code\/issues\/10230\" rel=\"noopener\">anthropics\/claude-code issue 10230<\/a><\/li>\n\n\n<li>CSA: <a href=\"https:\/\/labs.cloudsecurityalliance.org\/research\/csa-research-note-claude-code-settings-secret-leak-20261108\/\" rel=\"noopener\">CSA Research Note: Claude Code settings.local.json secret leak<\/a><\/li>\n\n<\/ul>\n\n","protected":false},"excerpt":{"rendered":"<p>Write a short CLAUDE.md with only what the agent can&#8217;t discover from the code, and move knowledge needed for some tasks into Skills. Manage both like code: an owner, a review of every change, and an update after every agent mistake.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-628","post","type-post","status-publish","format-standard","hentry","category-ai-development"],"_links":{"self":[{"href":"https:\/\/www.assemblyso.com\/en\/wp-json\/wp\/v2\/posts\/628","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.assemblyso.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.assemblyso.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.assemblyso.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.assemblyso.com\/en\/wp-json\/wp\/v2\/comments?post=628"}],"version-history":[{"count":7,"href":"https:\/\/www.assemblyso.com\/en\/wp-json\/wp\/v2\/posts\/628\/revisions"}],"predecessor-version":[{"id":772,"href":"https:\/\/www.assemblyso.com\/en\/wp-json\/wp\/v2\/posts\/628\/revisions\/772"}],"wp:attachment":[{"href":"https:\/\/www.assemblyso.com\/en\/wp-json\/wp\/v2\/media?parent=628"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.assemblyso.com\/en\/wp-json\/wp\/v2\/categories?post=628"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.assemblyso.com\/en\/wp-json\/wp\/v2\/tags?post=628"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}