From the information available, ArchSpec appears to be a robust tool for enforcing architectural conventions in Ruby and Rails projects. It transforms specifications into static analysis checks that run in CI, ensuring that both human developers and AI agents adhere to the defined structure. The inclusion of pre-built architectures like Rails, layered, hexagonal, clean, and modular monoliths provides a strong foundation. Additionally, the ability to compose custom rules in plain Ruby offers flexibility. The use of Rubydex and Prism for indexing without app booting suggests good performance. While the exact scope of included features beyond boundaries and dependencies would need verification, the approach seems sound for teams prioritizing consistent code structure.
Questions about Architecture linter for Ruby and Rails
What is Architecture linter for Ruby and Rails?
ArchSpec is a static architecture linter for Ruby and Rails applications that allows developers to declare components and boundaries in a configuration file and enforces conventions through static analysis checks that run in continuous integration on every change.
How does ArchSpec analyze code without needing a running application?
The tool reads code using the Prism parser without booting the application or requiring a database, supporting allowed and forbidden references between layers and packs, enforcing dependency direction, preventing cycles, and specifying component-level rules such as required methods or forbidden constants.
Which architecture presets are included out of the box?
ArchSpec ships with a set of predefined architecture presets including Rails, vanilla Rails, layered, hexagonal, clean, modular monolith, CQRS, and event-driven, or users can compose their own rules in plain Ruby.
What does a typical ArchSpec configuration file look like?
The configuration file uses syntax like `controllers.can_only_use :models, :services` and `services.cannot_call :render, :redirect_to` to define boundaries and dependencies between components.
How does ArchSpec achieve fast performance for continuous integration?
ArchSpec indexes code with Rubydex and a small Prism syntax pass, making it fast enough for CI, a git hook, and every change an agent makes.
What do users on Reddit say about ArchSpec 1.0?
Some reviewers on Reddit say ArchSpec 1.0 helps ensure agents and teams follow conventions, noting that tests and RuboCop do not tell you if code still follows the architecture.
What is the current rating and review history for ArchSpec?
The business has a Trustburn rating of 4.4 out of 5 from 5 reviews, and the feedback is recent as of August 2026.
Who created ArchSpec?
ArchSpec is brought to you by Carmine Paolino, who is also the maker of other tools mentioned on the site.
What is the official website of Architecture linter for Ruby and Rails?
The official website of Architecture linter for Ruby and Rails is archspecrb.dev.
Post your question publicly — other visitors, and whoever manages this page, can answer. It will be visible on this page.
Want to hear about this company again? Follow it and we’ll email you when a new review appears.
Based on reviews, listing data and the company's website. Verify anything important with the company directly.
The speed of ArchSpec is impressive since it indexes code with Rubydex and a small Prism syntax pass, avoiding the need to boot the application. This makes it efficient enough for CI, git hooks, and every change an agent makes. It reliably guarantees that teams and agents follow conventions through static analysis checks.
Love how ArchSpec uses Rubydex for fast indexing without app booting! The ability to compose custom rules in plain Ruby is a huge plus for our specific needs.
ArchSpec provides executable architecture specifications for Ruby and Rails. It functions as a static analysis tool that runs in CI to check for conventions, dependencies, and cycles. It includes built-in architectures like layered and hexagonal, allowing teams to enforce rules without AI involvement. The tool indexes code using Rubydex and Prism for speed, making it viable for every change. It supports custom rule composition in plain Ruby, offering flexibility for various project structures.
ArchSpec looks like a solid solution for anyone who struggles with keeping their Ruby and Rails architecture consistent across a growing team. The idea of turning architectural conventions into static analysis checks that run in CI is exactly what we need. It handles boundaries, dependencies, and even specific method protocols without requiring an AI component, which keeps things straightforward. Having pre-built architectures for Rails, layered, hexagonal, clean, and modular monoliths gives a great starting point. The fact that it uses Rubydex and Prism for fast indexing without booting the app makes it suitable for every commit. For teams wanting to guarantee agents and developers follow conventions, this seems like a reliable choice.
Questions & Answers
No questions yet — be the first to ask.
Sign in to post
Your text is saved — you'll come right back to post.
Don't have an account? Create one
News & Press
No news yet. This is where the business shares its own updates and press.
Photos
No photos yet. Photos shared by reviewers will show up here.
About Architecture linter for Ruby and Rails
ArchSpec is a static architecture linter for Ruby and Rails applications. It allows developers to declare components and boundaries in a configuration file and then enforces those conventions through static analysis checks that run in continuous integration on every change. The tool is presented as an alternative to Packwerk and reads code using the Prism parser, without booting the application or requiring a database. It supports defining allowed and forbidden references between layers and packs, enforcing dependency direction, preventing cycles, and specifying component-level rules such as required methods or forbidden constants. ArchSpec ships with a set of predefined architecture presets, including Rails, layered, hexagonal, clean, modular monolith, CQRS, and event-driven, and also supports custom rules written in plain Ruby.
- Website
- archspecrb.dev
- Categories
- Computer software
