Skip to content
Back to skills

Enforce Package Boundaries Inside A Rails Monolith Before Coupling Spreads With Packwerk

ASecurity

Check a Rails codebase for dependency and visibility violations so domain boundaries stay reviewable instead of dissolving over time.

  • 67 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added June 8, 2026
ai-agentsgorubyrailsgitsecuritydocumentation

Security analysis

A100/100

Scanned June 8, 2026

npx -y skills add agentskillexchange/skills --skill enforce-package-boundaries-inside-a-rails-monolith-before-coupling-spreads-with-packwerk --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Enforce Package Boundaries Inside A Rails Monolith Before Coupling Spreads With Packwerk?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Enforce Package Boundaries Inside A Rails Monolith Before Coupling Spreads With Packwerk
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agentskillexchange-enforce-package-boundaries-inside-a-rails-monolith/badge)](https://www.skillsdirectory.com/skills/agentskillexchange-enforce-package-boundaries-inside-a-rails-monolith)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "Enforce package boundaries inside a Rails monolith before coupling spreads with Packwerk"
slug: "enforce-package-boundaries-inside-a-rails-monolith-before-coupling-spreads-with-packwerk"
description: "Check a Rails codebase for dependency and visibility violations so domain boundaries stay reviewable instead of dissolving over time."
github_stars: 1858
verification: "security_reviewed"
source: "https://github.com/Shopify/packwerk"
author: "Shopify"
publisher_type: "organization"
category: "Code Quality & Review"
framework: "Multi-Framework"
tool_ecosystem:
  github_repo: "Shopify/packwerk"
  github_stars: 1858
---

# Enforce package boundaries inside a Rails monolith before coupling spreads with Packwerk

Check a Rails codebase for dependency and visibility violations so domain boundaries stay reviewable instead of dissolving over time.

## Prerequisites

Ruby, Bundler, a Rails application with Zeitwerk enabled, Packwerk gem installation, and repository access to the monolith being analyzed

## Installation

Use the upstream install or setup path that matches your environment:
- gem 'packwerk'
- $ gem install packwerk

Requirements and caveats from upstream:
- This is because we rely on [Zeitwerk's conventions](https://github.com/fxn/zeitwerk#file-structure), and code that is loaded differently (like through an explicit require) often doesn't follow these conventions.

Basic usage or getting-started notes:
- Packwerk needs [Zeitwerk](https://github.com/fxn/zeitwerk) enabled, which comes with Rails 6.
- Packwerk supports MRI versions 2.7 and above.
- ## Demo

- Source: https://github.com/Shopify/packwerk
- Extracted from upstream docs: https://raw.githubusercontent.com/Shopify/packwerk/HEAD/README.md

## Documentation

- https://github.com/Shopify/packwerk

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/enforce-package-boundaries-inside-a-rails-monolith-before-coupling-spreads-with-packwerk/)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.