plugins/solid/skills/solid-generic/SKILL.md
SOLID principles for generic TypeScript, Bun, and Node.js projects. Files < 100 lines, interfaces separated, JSDoc mandatory. Use when: building CLI tools, libraries, scripts, hooks, or non-framework TypeScript code.
npx skillsauth add fusengine/agents solid-genericInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Before ANY implementation, use TeamCreate to spawn 3 agents:
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/modules/[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 | Max Lines | |----------|-------|-----------| | module.md | TypeScript/Bun module | 80 | | service.md | Service with DI | 60 | | interface.md | TypeScript interfaces | - | | validator.md | Zod validation schemas | 40 | | factory.md | Factory pattern | 60 | | error.md | Custom error classes | 40 | | test.md | Bun test / Vitest | - |
any typetesting
Copy self-audit and ban-lists — filler verbs/hype adjectives, slop placeholder names, fake-precise numbers, Title Case headlines, humor in error copy ('Oops!'), em-dash crutch, one copy register per page.
development
Logged-in web apps — dashboards, auth flows, settings, onboarding, data tables, command palettes, modals, toasts. Register `product`: density and glance-speed over marketing polish, no hero/CTA-tricks, every data surface covers empty/loading/error explicitly, tables and dataviz follow preattentive-processing rules.
development
Marketing sites, landing pages, campaign pages — register `brand` (design IS the product). Structure comes from the register's POV + a macrostructure pick, never from copying an inspiration site's section flow. Hero discipline, deviated section order, asymmetric grids, and a silhouette lookalike-test gate before ship.
development
Token-strategy core — OKLCH color rules, neutral tinting, accent-commitment levels, type scale, 8pt spacing grid, touch targets, and the canonical output format of design-system.md (the file the harness gates on). This is routing step 1 of design-method/SKILL.md — read it before design-web/design-webapp/design-ios/design-android, before picking or auditing a single color/type/spacing value.