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 mokevninMITIn 1 marketplace
Keeps new imports and files within the architecture rules in your easement.yml, checking before and after each change. Most languages also need a SCIP indexer and project dependencies installed for the easement CLI.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Architecture quality gate for polyglot codebases.
Catch changes that compile but break the architecture: a handler reaching storage directly, a feature importing another feature's internals, or a new dependency cycle.
Declare the components of your system and which of them may depend on which. easement extracts the real dependencies from the code, builds the graph and fails the build when the code drifts from the declared architecture.
Copy this prompt into Claude Code, Codex, Cursor or another coding agent opened in your project:
Set up easement (https://github.com/mokevnin/easement), an architecture quality gate, in this project. Read https://github.com/mokevnin/easement/blob/main/docs/README.md first. Use installation.md and languages.md for tools and indexers, configuration.md for rules, and adoption.md for baseline and CI setup; these pages are in the same docs directory.
1. Install easement the way this project installs its tools: a line in mise.toml if the project uses mise ("github:mokevnin/easement" = "latest"), otherwise Homebrew or the install script from installation.md.
2. Run `easement doctor --format json` and install every indexer it reports missing, again the way the project installs tools. Repeat until it exits 0.
3. Run `easement init`, then `easement check`. If the report says files are not covered by an indexer, fix the cause (a tsconfig include, a missing go.mod) or list them in `uncovered_ok` with a reason.
4. Study the code and turn the generated config into the intended architecture: remove the allowances that should not exist, give every rule a `because` that tells where the code should go instead, and use `layers`, `public`, `no_cycles` and `tests: auto` where they fit. Do not change application code to make the check pass. When the config is final, record the existing violations with `easement baseline`.
5. Add the check to CI: the GitHub Action from adoption.md with `diff` on pull requests if the project uses GitHub Actions, otherwise `easement check` in the existing pipeline (`easement check --suggest` on the default branch, so that unused allowances fail too). If the project has git hooks, run it on pre-push.
6. Install the easement skill into the project with `npx skills add mokevnin/easement`, for the agents this team uses, and commit the files it writes, so every agent that works here gets it.
7. Add these rules to the project's agent instructions (AGENTS.md, CLAUDE.md or whatever file the project already uses; create AGENTS.md if there is none):
- Use the easement skill before adding a file or an import and whenever `easement check` fails.
- After changing code, run `easement check`; it must exit 0.
- Never edit easement.yml, regenerate the baseline or add an `easement:disable` comment without asking a human.
8. Run `easement check` once more and report: the components and rules you chose and why, the number of baselined violations, and anything you were unsure about.
Review the rules it proposes: the agent sees the code as it is, and you decide which dependencies should be allowed. The setup installs the agent skill for everyday work; manual skill and Claude Code plugin installation are also available.
All languages share component boundaries, public APIs, layers, isolation, cycles and coupling rules. The table shows the analysis behind those rules and which additional checks are available:
| Language | Dependency analysis | Symbol rules | Type naming | Unused files | Package declarations |
|---|---|---|---|---|---|
| Go | SCIP | Yes | Yes | Yes | go.mod |
| TypeScript / JavaScript | SCIP | Yes | Yes | Yes | package.json |
| Python | SCIP | Yes | Yes | Yes | — |
| Rust | SCIP | Yes | Yes | Yes | Cargo.toml, features |
| Java | SCIP | Not yet | Yes | Yes | — |
| C# | SCIP | Not yet | Yes | Yes | — |
| PHP | SCIP | Not yet | Yes | Yes | — |
| Ruby | SCIP, constant references | Yes | Yes | No | — |
| Kotlin | Imports only | No | No | No | — |
| Swift | Imports only | No | No | No | — |
SCIP uses language indexers to resolve references to definitions; install the indexer and the project's dependencies. Kotlin and Swift use bundled tree-sitter adapters with approximate import resolution. Symbol rules restrict uses of specific types, functions or methods; type naming assigns matching type names to components. Package declarations checks imports against declared dependencies and applies component rules to dependencies in manifests.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub mokevnin/easement --plugin easementPlugins from other owners that cover similar ground