/fuse-solid:solid-rubyfrom fuse-solid
Enforces SOLID modular architecture for Ruby 4.0+/Rails 8.1+ with app/modules/[feature]/ layers, contracts, YARD docs, and DRY checks. Invoke when structuring or refactoring Ruby/Rails code.
Ships in fuse-solid. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Before writing any new code it requires a DRY check against app/modules/core/services and app/modules/core/contracts. See solid-principles.md for the overview, the per-principle references for SRP/OCP/LSP/ISP/DIP detail, and the templates for module/service/contract/model/error/test scaffolding.
Before ANY implementation, spawn 3 agents in parallel, one Agent call each with a name:
Before writing ANY new code:
app/modules/core/services/, app/modules/core/contracts/app/modules/core/| Layer | Location |
|---|---|
| Controllers | app/modules/[feature]/controllers/ |
| Services | app/modules/[feature]/services/ |
| Repositories | app/modules/[feature]/repositories/ |
| Contracts | app/modules/[feature]/contracts/ |
| Models | app/modules/[feature]/models/ |
| Shared | app/modules/core/{services,contracts,concerns}/ |
NEVER use flat app/ structure - always app/modules/[feature]/
| Rule | Value |
|---|---|
| File limit | FUSE_SOLID_MAX_LINES |
| Controllers | Thin, delegate to services |
| Contracts | contracts/ directory ONLY (duck typing modules) |
| YARD doc | Every public method documented |
| Frozen string | # frozen_string_literal: true in every file |
| Concerns | Use for shared behavior (like interfaces) |
| Topic | Reference | When to consult |
|---|---|---|
| SOLID Overview | solid-principles.md | Quick reference |
| SRP | single-responsibility.md | Fat classes |
| OCP | open-closed.md | Adding strategies |
| LSP | liskov-substitution.md | Contracts |
| ISP | interface-segregation.md | Fat modules |
| DIP | dependency-inversion.md | Injection |
| Architecture | architecture-patterns.md | Modular Rails |
| Template | When to use |
|---|---|
| module.md | Feature module structure |
| service.md | Business logic service |
| contract.md | Duck typing contracts |
| model.md | Active Record model |
| error.md | Custom exceptions |
| test.md | RSpec tests |
| Anti-Pattern | Fix |
|---|---|
Files over FUSE_SOLID_MAX_LINES | Split by responsibility |
| Business logic in models | Extract to service |
| Fat controllers | Delegate to services |
Flat app/ structure | Use app/modules/[feature]/ |
| God classes | Split by responsibility |
references/architecture-patterns.md (opens in a new tab)references/dependency-inversion.md (opens in a new tab)references/interface-segregation.md (opens in a new tab)references/liskov-substitution.md (opens in a new tab)references/open-closed.md (opens in a new tab)references/single-responsibility.md (opens in a new tab)references/solid-principles.md (opens in a new tab)references/templates/contract.md (opens in a new tab)references/templates/error.md (opens in a new tab)references/templates/model.md (opens in a new tab)references/templates/module.md (opens in a new tab)references/templates/service.md (opens in a new tab)references/templates/test.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
8 skills in this plugin
/solid-csharpUse when writing or refactoring C#/.NET code, structuring Modules/[Feature]/ layers, or defining Contracts/ interfaces (SOLID, files within FUSE_SOLID_MAX_LINES)./solid-detectionUse when determining which language-specific SOLID skill to load, detecting project type from config files, or resolving interface directory conventions./solid-genericUse when building CLI tools, libraries, scripts, hooks, or non-framework TypeScript code (Bun/Node.js -- SOLID, files within FUSE_SOLID_MAX_LINES, JSDoc mandatory).npx claudepluginhub fusengine/claude-plugins --plugin fuse-solidOther plugins' skills for the same job