/fuse-solid:solid-genericfrom fuse-solid
Enforces SOLID principles for plain TypeScript/Bun/Node.js code (CLI tools, libraries, scripts, hooks). Mandates interface separation, file size limits, JSDoc, and DRY checks before implementation.
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 across modules/cores/lib, modules/cores/interfaces, and modules/cores/errors, extracting anything repeated 3+ times into a shared helper. Each of the 5 SOLID principles has its own detailed reference (single-responsibility.md through dependency-inversion.md), plus copy-paste-ready templates for modules, services, interfaces, validators, factories, errors, and tests.
Before ANY implementation, spawn 3 agents in parallel, one Agent call each with a name:
After implementation, run fuse-ai-pilot:sniper for validation.
Before writing ANY new code:
modules/cores/lib/, modules/cores/interfaces/, modules/cores/errors/modules/cores/FUSE_SOLID_MAX_LINESmodules/[feature]/src/interfaces/ # Feature types
|- user.interface.ts
\- service.interface.ts
modules/cores/interfaces/ # Shared types
\- shared.interface.ts
NEVER put interfaces in implementation files.
NEVER use flat src/ structure - always modules/.
/**
* Parse configuration from file path.
*
* @param filePath - Absolute path to config file
* @returns Parsed configuration object
* @throws ConfigError if file is invalid
*/
export function parseConfig(filePath: string): Config
| # | Principle | Reference | Key Rule |
|---|---|---|---|
| S | Single Responsibility | single-responsibility.md | One file = one reason to change |
| O | Open/Closed | open-closed.md | Extend via composition, not modification |
| L | Liskov Substitution | liskov-substitution.md | Implementations honor interface contracts |
| I | Interface Segregation | interface-segregation.md | Many focused interfaces > one fat interface |
| D | Dependency Inversion | dependency-inversion.md | Depend on abstractions, inject dependencies |
See solid-principles.md for overview and architecture-patterns.md for project structure.
| Template | Usage |
|---|---|
| module.md | TypeScript/Bun module |
| service.md | Service with DI |
| interface.md | TypeScript interfaces |
| validator.md | Zod validation schemas |
| factory.md | Factory pattern |
| error.md | Custom error classes |
| test.md | Bun test / Vitest |
FUSE_SOLID_MAX_LINESany typereferences/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/error.md (opens in a new tab)references/templates/factory.md (opens in a new tab)references/templates/interface.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)references/templates/validator.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub fusengine/claude-plugins --plugin fuse-solid8 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-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