Here is a story I keep hearing. A team buys an AI tool. A few enthusiasts write ten skills. Someone turns on an AI reviewer. Three months later the verdict is “it helps a bit, maybe ten percent”, and the conversation moves on.

The tool was not the problem. The problem was treating AI as a feature you switch on, instead of a system you build. One skill, one reviewer or one agent on its own gives you a small, flat gain. Connect them, so that what one piece produces improves the next, and the gains start to compound.

🧩 The pieces

Every team that gets real results from AI ends up with roughly the same parts:

  • Instructions and skills. A short CLAUDE.md that maps the repo, and skills for the judgment calls a tool cannot make.
  • An agent workflow. Ticket, plan, build, verify, pull request. The same steps every time, not a fresh conversation every morning.
  • Guardrails. The compiler, the formatter, the linter, Danger and hooks, the layers that catch mistakes before a human has to.
  • Verification and testing. The agent tests its own work first, proves its tests can fail, and leaves test artifacts behind for QA.
  • Code review. An AI reviewer first, a human last, on small pull requests.
  • Review mining. A weekly run that finds the comments you keep repeating and pushes each one down into a rule.
  • Background refactoring. Agents that clean the codebase 1% a day, one small PR at a time.

None of these is new or hard on its own. The value is in the arrows between them.

Instructions + skills CLAUDE.md, judgment calls Agent workflow ticket, plan, build Guardrails types, lint, Danger, hooks Verify + test /verify, video, regression Review AI first, human last Review mining weekly, pushes rules down The codebase cleaned 1% a day

Each part's output is the next part's input. The loop closes when review findings come back as better instructions and rules.

🔁 How the pieces feed each other

This is the part a single tool cannot give you. A few of the arrows, concretely:

  • Review feeds the rules. A comment you leave three times becomes a lint rule or a skill change through review mining. Next month nobody leaves it, human or bot.
  • Rules feed the agent. A lint error is the most precise prompt an agent ever gets. With hooks, it reads it seconds after the edit and fixes it before anyone sees the code.
  • Refactoring feeds everything. A codebase with one string API instead of two forces the agent to guess less. Fewer wrong guesses mean fewer corrections, fewer review comments and better results from every skill.
  • Guardrails protect the refactoring. When the migrator finishes moving the codebase off an old API, a lint rule stops new code from bringing it back. Without the rule, the migration is a treadmill.
  • Verification feeds review and QA. A /verify report with “tested” and “not tested” tells the reviewer where to look, and its regression cases tell QA what changed.
  • Good tickets feed the workflow. A ticket with acceptance criteria is a prompt with a definition of done. The agent plans better, and verification has something to check against.

Every arrow makes the next step a little cheaper. That is where the long-term effect comes from: not from one big jump, but from many small improvements that make each other bigger.

❌ What one piece alone gets you

Each part on its own is weaker than it looks, and some of them backfire:

  • Skills alone rot. Nobody notices a skill that never fires, nobody tests them, and after three months there are forty of them that contradict each other.
  • An AI reviewer alone adds noise. It leaves the same comments every week, because nothing turns its findings into rules.
  • Agents alone, without guardrails, produce volume. The review queue grows faster than the team can read, and reviewers start approving instead of reviewing.
  • A migration alone never ends. New code keeps adding the old pattern as fast as the agent removes it.
  • Testing alone, at the end, becomes the bottleneck. More code from agents means more for QA to click through, unless testing is part of how the code gets built.

If your team tried AI and saw ten percent, check which of these you built in isolation. It is usually most of them.

📈 Why it feels slow at first

The first weeks of building the system feel like overhead. You are writing a CLAUDE.md, turning on lint rules, recording baselines, adding Danger checks, and the agents are not visibly faster yet.

Then the loop closes. The weekly report gets shorter, because last month’s rules hold. The agent needs fewer corrections, because the codebase is more consistent. Review is faster, because the PRs are small and the boring comments are gone. Each of those is small. Together, a few months in, they are the difference between “it helps a bit” and a team that ships noticeably more without dropping quality.

It is the 1% rule applied to the whole development process, not only the code.

🔀 It pays off when you do many things at once

Let me be blunt about one thing. If you work on one task at a time and watch an agent run for four hours, you will be slower than doing it yourself, and this whole system will look like overhead.

The system pays off when you stop working that way. Several tasks in flight across different repos and projects. An agent left overnight on a well-briefed problem, so the morning is review instead of typing. Your job moves from writing every line to picking the work, writing good briefs and judging the results.

That is also why the pieces above matter. Reviewing three overnight pull requests over coffee is only safe if the guardrails caught the boring mistakes, the agent proved its own tests, and each PR comes with a recording of what was checked and what was not.

It changes the role too. You stay a specialist on your platform, because that depth is what makes your review worth something. But with agents doing most of the typing, contributing to the other platforms and to the backend stops being exotic. The title that fits is closer to “senior engineer” than “senior iOS engineer”.

🗺️ The order to build it

You do not need everything on day one. This is the order that has worked for me, with each step making the next one pay off:

  1. Shared instructions. One short CLAUDE.md in the repo, so every engineer’s agent starts from the same map.
  2. The bottom of the guardrails pyramid. Compiler settings, SwiftFormat, SwiftLint, Danger, and hooks that run them inside the agent’s loop.
  3. A fixed workflow. Ticket, plan, build, verify, small PR, as a skill every agent follows.
  4. Verification. The agent tests first and reports what it did not check. You test last.
  5. Review and review mining. AI reviewer on every PR, and a weekly run that turns repeated comments into rules.
  6. Background refactoring. A bucket of mechanical tasks and an agent per engineer that drains it, protected by the guardrails from step 2.
  7. Measure. Throughput and quality together: merged PRs, time to merge, review rounds, reverts, regression time.

🧑‍🔧 Somebody has to own it

A system needs an owner. Skills need curating, rules need deciding, the weekly report needs reading, the bucket needs filling. If that is everyone’s side job, it is nobody’s, and the loop quietly stops turning.

In the teams where this works, a staff or platform engineer owns it the way they would own CI: not doing all the work, but making sure the pieces stay connected. Treat AI like platform infrastructure, not like a plugin each engineer configures alone.

📌 Summary

  • The problem: teams adopt AI one piece at a time, a tool here and a few skills there, and get a small, flat gain.
  • The reframe: AI in a team is a system: instructions, workflow, guardrails, verification, review, review mining and background refactoring.
  • The mechanism: each part’s output improves the next. Review becomes rules, rules guide agents, cleaner code means fewer corrections, and the loop compounds.
  • The cost: the first weeks feel like overhead. The payoff comes when the loop closes.
  • The condition: it pays off when you run many things at once, across repos and overnight, and spend your time on briefs and review.
  • The owner: someone has to keep the pieces connected, like CI.