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 for CLI tools, libraries, scripts, hooks, and 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 typedevelopment
Use when optimizing entity-based / semantic SEO 2026. Covers entity maps, Google Knowledge Graph resolution, salience scoring, passage-level ranking, about/sameAs/knowsAbout schema, Cloud Natural Language API validation.
development
Use when running SEO, GEO, schema, Core Web Vitals, sitemap, hreflang, E-E-A-T, AI Overviews, technical SEO, or structured data tasks. Covers full-site audits, single-page analysis, schema markup, content quality, AI search optimization, local SEO, sitemap/robots, internal linking, semantic clustering, and search experience.
development
Use when optimizing search experience (SXO). Covers intent matching, user personas, user stories, page-type analysis, dwell time, scroll depth, pogo-sticking prevention.
development
Use when optimizing local SEO. Covers Google Business Profile, NAP consistency, citations, reviews acquisition, Local Pack ranking, location pages, LocalBusiness schema.