How my team stopped shipping broken code
As an AI developer, there's one thing I did that helped my whole team push code that wasn't broken (on screen: how my team stopped shipping broken code, with one Claude plugin)
Claude Code plugins stopped my team pushing broken PRs to GitHub.
We had a lot of PRs going up with errors and bugs. The fix was one Claude plugin: a backpack of tools and rules Claude loads every session.
Now when anyone on the team commits, the plugin kicks in, verifies and checks everything works as intended, and only then does the PR go to GitHub.
Plugins are guardrails. They make sure your implementation is correct before anyone else has to review it.
How would you use a Claude plugin in your workflow?
How to build it
This page shows how a Claude Code plugin checks every commit and stops broken pull requests reaching GitHub, so you can build the same guardrail for your own workflow.
The setup
Claude Code plugin: a bundle of tools and rules ("a backpack") that Claude loads every time a session is active.
Commit-time check: when anyone on the team commits code, the plugin activates automatically.
Verification step: the plugin checks and confirms that everything works as intended and as expected.
Gate before GitHub: only once the checks pass does the pull request (PR) go to GitHub.
Shared by the whole team: the plugin is used by everyone on the team, including the person who built it, so every PR gets the same checks.
Guardrail purpose: it makes sure the implementation is correct before anyone else has to review it.
The problem it fixed: a lot of PRs were going into production with errors and bugs.
How to set it up
Write down the errors and bugs that keep showing up in your team's PRs, so you know what the plugin must catch.
Create a Claude Code plugin that bundles the tools and rules needed to check for those problems.
Add a rule that the plugin activates whenever someone commits code.
Make the plugin verify that everything works as intended and as expected, using your tests, linting or build checks.
Stop the pull request from being opened on GitHub until those checks pass.
Install the plugin for everyone on the team, including yourself, so the checks are the same for every commit.
Review the next batch of PRs to see whether fewer errors and bugs reach review.
Watch out: the plugin only helps if it runs on every commit for everyone on the team, so install it for the whole team rather than leaving it as a personal tool.
Prompt to build your own
You are helping me build a Claude Code plugin that acts as a guardrail for my team's pull requests.
Goal: whenever anyone on the team commits code, the plugin activates, verifies that everything works as intended and as expected, and only then lets the pull request go to GitHub.
My setup:
- Language and framework: <your language and framework>
- How we run tests: <your test command>
- Other checks we use: <linting, type checking, build command>
- Common problems in our PRs: <the errors and bugs we keep seeing>
Constraints:
- The plugin must load automatically in every Claude Code session.
- It must run on every commit, for every team member, with no manual step.
- The pull request must not be created until all checks pass.
- If a check fails, show a short, plain-English explanation of what failed and how to fix it.
- Keep it simple and use only the tools I have listed.
Return:
1. The plugin's file structure and the contents of each file.
2. The rules and checks it applies, matched to my common problems.
3. Step-by-step instructions to install it for my whole team.
4. A short way to test that it blocks a deliberately broken commit.