<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Saveez Irfan</title>
    <description>The latest articles on DEV Community by Saveez Irfan (@saveezirfan0cloud).</description>
    <link>https://dev.to/saveezirfan0cloud</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4262532%2Fa07e1998-dc7c-41a6-ba15-c872c6206ac3.png</url>
      <title>DEV Community: Saveez Irfan</title>
      <link>https://dev.to/saveezirfan0cloud</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/saveezirfan0cloud"/>
    <language>en</language>
    <item>
      <title>Setting up Claude Code for a team without losing track of what it changed</title>
      <dc:creator>Saveez Irfan</dc:creator>
      <pubDate>Tue, 24 Nov 2026 11:34:36 +0000</pubDate>
      <link>https://dev.to/saveezirfan0cloud/setting-up-claude-code-for-a-team-without-losing-track-of-what-it-changed-hj0</link>
      <guid>https://dev.to/saveezirfan0cloud/setting-up-claude-code-for-a-team-without-losing-track-of-what-it-changed-hj0</guid>
      <description>&lt;p&gt;Claude Code is quick to install and slow to trust. One developer using it on a side branch is easy. A team using it on a codebase that runs a business needs more than a &lt;code&gt;CLAUDE.md&lt;/code&gt; file and good intentions.&lt;/p&gt;

&lt;p&gt;This is the setup we use. It treats Claude Code like a new contributor with fast hands and no context: it gets a written brief, limited access and a reviewer.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. CLAUDE.md is the brief, not the rulebook
&lt;/h2&gt;

&lt;p&gt;Put your conventions, commands and off-limits areas in a &lt;code&gt;CLAUDE.md&lt;/code&gt; at the repository root and commit it. Say how to run the tests, which folders are generated, and which modules nobody touches without asking.&lt;/p&gt;

&lt;p&gt;Anthropic's documentation treats this file as context. The model reads it and usually follows it, but nothing enforces it. Anything that must hold every time belongs in the next three layers.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Permissions in a committed settings file
&lt;/h2&gt;

&lt;p&gt;Commit &lt;code&gt;.claude/settings.json&lt;/code&gt; so everyone on the team starts from the same rules:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"permissions"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"allow"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
      &lt;span class="s2"&gt;"Bash(npm run lint)"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="s2"&gt;"Bash(npm run test:*)"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="s2"&gt;"Bash(npx tsc --noEmit)"&lt;/span&gt;
    &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"deny"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
      &lt;span class="s2"&gt;"Read(./.env)"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="s2"&gt;"Read(./.env.*)"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="s2"&gt;"Read(./secrets/**)"&lt;/span&gt;
    &lt;span class="p"&gt;]&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Allow the commands you'd happily let anyone run: lint, type checks, tests. Deny reading environment files and secrets outright. Everything else falls back to asking.&lt;/p&gt;

&lt;p&gt;One detail catches teams out. Deny rules apply straight away. Allow rules only take effect once each person has trusted the folder, so a fresh clone still asks before running your test command.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Hooks that run checks after every edit
&lt;/h2&gt;

&lt;p&gt;A hook can run your linter or tests after Claude Code edits a file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"hooks"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"PostToolUse"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
      &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nl"&gt;"matcher"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Edit|Write"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="nl"&gt;"hooks"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"npm run lint --silent"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;]&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two things to know before relying on them. A hook that fails doesn't block by default. And command hooks run with your full user permissions, so review a hook change as carefully as a deploy script.&lt;/p&gt;

&lt;p&gt;Hooks shorten the feedback loop. They aren't the gate.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. CI and branch protection are the gate
&lt;/h2&gt;

&lt;p&gt;The control that doesn't depend on anyone's laptop is the pull request. Run lint, types and tests in CI, protect the main branch, and require a human approval on every merge.&lt;/p&gt;

&lt;p&gt;Then make the diffs small enough to read. Most "nobody read this" changes come from a process that lets a 2,000-line diff through, not from the tool. What has worked for us:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;One task per pull request, scoped before Claude Code starts.&lt;/li&gt;
&lt;li&gt;Tests written or approved by a person first, then the change.&lt;/li&gt;
&lt;li&gt;Extra scrutiny for any edit to the guardrails themselves: settings, hooks, CI config.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where it helps, and where to slow down
&lt;/h2&gt;

&lt;p&gt;In an operations codebase, it's strongest at integration glue, reading inherited code, writing characterisation tests before a refactor, and drafting migrations for a person to check.&lt;/p&gt;

&lt;p&gt;Slow down around money, permissions and migration logic, and around business rules nobody has written down. Those are the places where a plausible change is the dangerous one.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this looks like in practice
&lt;/h2&gt;

&lt;p&gt;We built a school management system with Claude Code. A Claude co-author trailer sits on 136 of its 242 commits. Changes arrive as pull requests that must pass lint, tests and a build in CI before they merge, and one project command runs seven review agents in parallel, from security to accounting. The write-up is at &lt;a href="https://skofi.tech/work/school-erp" rel="noopener noreferrer"&gt;https://skofi.tech/work/school-erp&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The longer version of this guide, with what it doesn't cover, is on our site: &lt;a href="https://skofi.tech/insights/claude-code-for-business-teams" rel="noopener noreferrer"&gt;https://skofi.tech/insights/claude-code-for-business-teams&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Saveez Irfan runs Skofi, a small studio that builds custom software, AI integrations and automation for operations teams.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>claudecode</category>
      <category>ai</category>
      <category>devops</category>
      <category>codereview</category>
    </item>
  </channel>
</rss>
