Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By wfbcargov0.1.1MITIn 1 marketplace
Makes an architecture's layer, container and contract boundaries mechanically enforceable — and makes every coding agent inherit them. A declared container map drives a zero-dependency import checker that runs as a hook: a violating edit is fed straight back to the agent, and no agent may finish a turn with a violating tree.
You run one by typing its /name in Claude Code.
1 caution to review before installing
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
architecture, boundaries, layers, containers, fitness-function, dependency-direction, hooks, lint
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Declare your architecture's layers, containers and contracts in one file. The plugin turns that file into a check that runs with no project dependencies, and wires it into hooks so every coding agent working in the repo inherits the rules — states them at session start, gets a violating edit handed straight back, and cannot finish a turn while a violation stands.
/plugin marketplace add wfbcargo/PaulClaudePlugins
/plugin install claude-boundaries@paul-claude-plugins
Then, in a repo: /boundaries:init.
Projects with no map are unaffected by all of it — every hook is a silent no-op.
The usual ways of holding an architecture together both fail, in opposite ways. A README saying "the domain layer must not import the database" is read once and outlived by the first deadline. A linter rule is real but invisible to the agent writing the code, which finds out at build time if it runs the build at all.
An agent that sees a build failure fixes it. An agent that reads "please don't cross layer boundaries" may cross them anyway. So: state the rules in the agent's context, check every edit against them mechanically, and refuse to let a turn end dirty. Nothing here relies on the agent choosing to care.
Layers, ordered top-down, with dependency direction running downward and no skipping. The default three, top to bottom: surface (the doorways in and out — HTTP handlers, CLI commands, queue consumers), orchestration (the business logic, grouped by capability), and engine (the granular connectors to other systems — database, third-party APIs, auth, storage). You name your own; these are the starting point. Inside a layer, a container is one folder — or one workspace package — that owns one capability, declares which other containers it may call, and exposes exactly one importable entry file.
src/orchestration/auth/ <- container `orchestration/auth`
index.ts <- the ONLY file another container may import
usecases/ <- sequencing, transactions, calls the layer below
domain/ <- pure rules; imports NOTHING outside this folder
Terminology. In C4, "container" means a separately deployable unit; what this plugin calls a container, C4 calls a component. Both that sense and Docker's are common in training data, so agents receive
layer:andcontainer:as structured fields and never as prose to interpret.
Two topologies, because real repos come in two shapes:
folders | packages | |
|---|---|---|
| A container is | a folder under policy.root | a workspace package |
| Imports cross by | relative path or alias | the package name |
| Extra rules | — | R6 (no relative escape), R8 (manifest agreement) |
| Rule | |
|---|---|
| R1 | Direction — never import an upper layer |
| R2 | No skipping — the top layer may not reach the bottom directly |
| R3 | Declared edges — the target must be listed in consumes |
| R4 | Public surface — a cross-container import lands on the entry file, not internals |
| R5 | Purity — a pure_paths folder imports nothing outside itself, not even the rest of its own container |
| R6 | Escape — a relative import may not leave its own package (packages) |
| R7 | External — third-party imports obey the layer's external: rule |
| R8 | Manifest — package.json dependencies agree with the map (packages) |
| R9 | Owned types — import type is an edge like any other |
Plus R0, the fail-closed guard: source that belongs to no container. That one is not pedantry. An unclassified package is also an unclassified import target, so anything may import it with no edge to check — which makes it the one reliable way to launder a forbidden dependency past every other rule.
One import produces one finding, most-specific first. Reporting a relative cross-layer import into a private file as four violations tells the reader nothing the first one did, and an agent handed four findings tries to fix four things.
domain/ has to be pureThe middle layer merges two roles that classical DDD separates: application (sequencing, transactions, no business rules) and domain (invariants, calculations, no I/O). Merged in one folder they interleave, and the diagnostic is sharp: if you cannot unit-test a business rule without stubbing an I/O call, the layers have collapsed.
pure_paths is what keeps three layers rather than four. Note the asymmetry —
orchestration/auth may call engine/token, but orchestration/auth/domain
may not. The purity rule is stricter than its own container's edges.
npx claudepluginhub wfbcargo/paulclaudeplugins --plugin claude-boundariesBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground