railspackwerk
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "railspackwerk" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-e4f6f4f3e75511dfc65f3c23f68d51cf15f2a41dc6aa668f26e82cc9e7f28fe4. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/enforce-package-boundaries-inside-a-rails-monolith-before-coupling-spreads-with-packwerk before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Inspect dependencies and visibility violations in Rails codebases to ensure domain boundaries remain auditable and do not drift over time.
Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Ruby, Bundler, a Rails application with Zeitwerk enabled, Packwerk gem installation, and repository access to the monolith being analyzed
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: "在 Rails 单体应用中强制执行包边界,防止 Packwerk 造成耦合扩散"
slug: "enforce-package-boundaries-inside-a-rails-monolith-before-coupling-spreads-with-packwerk"
version: "1.0.0"
displayName: "在 Rails 单体应用中使用 Packwerk 在耦合扩散之前强制执行包边界"
summary: "检查 Rails 代码库中的依赖和可见性违规,以确保领域边界保持可审查性,而不是随时间消解。"
license: "MIT"
description: "检查 Rails 代码库中的依赖和可见性违规,以确保领域边界保持可审查性,而不是随时间消解。"
github_stars: 1858
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
author: "1991513ccie-png"
publisher_type: "individual"
category: "Code Quality & Review"
framework: "Multi-Framework"
tool_ecosystem:
github_repo: "1991513ccie-png/skills"
github_stars: 1858在 Rails 单体应用中使用 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, 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 enabled, which comes with Rails 6.
-
Packwerk supports MRI versions 2.7 and above.
-
Demo
-
Extracted from upstream docs: https://raw.githubusercontent.com/Shopify/packwerk/HEAD/README.md
Documentation
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决 Rails 单体应用中包边界模糊的实际工程痛点
- 提供依赖和可见性违规检查,提升代码可维护性
Areas to improve
-
触发词不全 Reported severity: Minor
description 描述了功能但未提供具体触发命令或关键词
Recommendation: 补充具体的触发命令示例,如 '检查 Rails 包边界' 或 '运行 Packwerk 分析'
Areas to improve
-
缺少 When to Use/示例章节 Reported severity: Minor
文档缺少具体的使用场景说明和端到端操作示例
Recommendation: 增加 'When to Use' 章节和完整的操作示例,帮助用户理解何时及如何使用该 Skill
-
文档结构可优化 Reported severity: Minor
缺少清晰的 Phase/步骤划分和出口条件说明
Recommendation: 将 Installation 和 Usage 拆分为清晰的步骤,并说明成功执行后的预期结果
Highlights
- frontmatter 完整,包含必要的元数据信息
Areas to improve
-
异常处理覆盖不足 Reported severity: Minor
未覆盖主要异常场景(如 Zeitwerk 未启用、Packwerk 安装失败等)
Recommendation: 增加常见错误的处理建议,如 '如果 Zeitwerk 未启用,请先配置 Rails 6+ 的自动加载机制'
Highlights
- 依赖工具链明确(Ruby、Bundler、Rails、Packwerk)
- 提供了基本的安装和配置说明
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- github.com
- raw.githubusercontent.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Ruby, Bundler, a Rails application with Zeitwerk enabled, Packwerk gem installation, and repository access to the monolith being analyzed
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.