/fuse-solid:solid-csharpfrom fuse-solid
Enforces SOLID modular architecture for C#/.NET projects with Modules/[Feature]/ layers, mandatory contracts, small interfaces, and DRY checks before writing new 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 -- grep the codebase and Core/Services/Core/Contracts for existing logic to reuse before creating something new. See principles.md for the 5 SOLID principles and patterns.md for directory layout, testing, and record usage.
Before ANY implementation, spawn 3 agents in parallel, one Agent call each with a name:
Before writing ANY new code:
Core/Services/, Core/Contracts/Core/| Layer | Location |
|---|---|
| Controllers | Modules/[Feature]/Controllers/ |
| Services | Modules/[Feature]/Services/ |
| Repositories | Modules/[Feature]/Repositories/ |
| Contracts | Modules/[Feature]/Contracts/ |
| Models | Modules/[Feature]/Models/ |
| Shared | Core/{Services,Contracts,Models}/ |
NEVER use flat structure - always Modules/[Feature]/
| Rule | Value |
|---|---|
| File limit | FUSE_SOLID_MAX_LINES |
| Controllers | Thin, delegate to services |
| Interfaces | Contracts/ directory ONLY |
| XML docs | Every public member documented |
| DI | Use Microsoft.Extensions.DependencyInjection |
| Small interfaces | 1-3 members max |
| Records | Prefer record for DTOs and value objects |
| Topic | Reference | When to consult |
|---|---|---|
| SOLID Principles | principles.md | Quick reference for all 5 principles |
| Patterns & Structure | patterns.md | Directory layout, testing, records |
| Anti-Pattern | Fix |
|---|---|
Files over FUSE_SOLID_MAX_LINES | Split by responsibility |
| Interfaces in impl files | Move to Contracts/ directory |
| Fat interfaces (4+ members) | Split into focused interfaces |
| Flat project structure | Use Modules/[Feature]/ |
new for dependencies | Use constructor injection + DI |
| Service Locator pattern | Use constructor injection |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub fusengine/claude-plugins --plugin fuse-solid8 skills in this plugin
/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)./solid-goUse when writing or refactoring Go code, structuring internal/modules/[feature]/ layers, or defining ports/ interfaces (SOLID, files within FUSE_SOLID_MAX_LINES).Other plugins' skills for the same job