agent-creator
Use when creating expert agents. Generates agent.md with frontmatter, hooks, required sections, and skill references.
Use when applying SOLID principles to React architecture — file-size limits, hook separation, src/interfaces/, JSDoc.
$ npx -y skills add fusengine/agents --skill solid-react --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/solid-reactContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when applying SOLID principles to React architecture — file-size limits, hook separation, src/interfaces/, JSDoc.
name: solid-react description: Use when applying SOLID principles to React architecture — file-size limits, hook separation, src/interfaces/, JSDoc. version: 1.0.0 user-invocable: true references: references/solid-principles.md, references/single-responsibility.md, references/open-closed.md, references/liskov-substitution.md, references/interface-segregation.md, references/dependency-inversion.md, references/architecture-patterns.md, references/templates/component.md, references/templates/hook.md, references/templates/service.md, references/templates/store.md, references/templates/interface.md, references/templates/validator.md, references/templates/factory.md, references/templates/adapter.md, references/templates/error.md, references/templates/test.md
<objective> Enforces SOLID and DRY architecture on React 19 projects: files under 100 lines (components < 50, hooks < 30, services < 40), types isolated in `modules/[feature]/src/interfaces/` (never in component files), mandatory JSDoc on exports, no class components, and mandatory grepping for existing logic/utilities before writing new code (with `jscpd` duplication checks).
Provides a dedicated reference guide per SOLID letter (SRP file-splitting, OCP composition/render-props, LSP contract compliance, ISP role-based props/context, DIP constructor injection via Context) plus 10 ready-to-copy templates covering components, hooks, services, stores, validators, factories, and tests. This is a cross-cutting code-quality skill, not a feature skill — for the React APIs themselves see react-19, react-state, react-forms, and react-tanstack-router. </objective>
**Before ANY implementation:** 1. Explore project structure to understand architecture 2. Read existing related files to follow established patterns 3. Identify naming conventions, coding style, and patterns used 4. Understand data flow and dependencies
**Before writing ANY new code:** 1. **Grep the codebase** for similar function names, patterns, or logic 2. Check shared locations: `modules/cores/lib/`, `modules/cores/components/`, `modules/cores/hooks/` 3. If similar code exists → extend/reuse instead of duplicate 4. If code will be used by 2+ features → create it in `modules/cores/` directly 5. Extract repeated logic (3+ occurrences) into shared helpers 6. Run `npx jscpd ./src --threshold 3` after creating new files
---
Before ANY implementation, spawn 3 agents in parallel, one `Agent` call each with a `name`:
1. **fuse-ai-pilot:explore-codebase** - Analyze project structure and existing patterns 2. **fuse-ai-pilot:research-expert** - Verify latest docs for all stack technologies 3. **mcp__context7__query-docs** - Check integration compatibility
After implementation, run **fuse-ai-pilot:sniper** for validation.
---
See `references/architecture-patterns.md` for complete structure with feature modules and cores directory.
/** * Fetch user by ID from API. * * @param id - User unique identifier * @returns User object or null if not found */ export async function getUserById(id: string): Promise<User | null>
modules/[feature]/src/interfaces/ ├── user.interface.ts ├── post.interface.ts └── api.interface.ts
**NEVER put interfaces in component files.**
---
Each SOLID principle has a dedicated reference guide:
1. **`references/single-responsibility.md`** - One function = one reason to change
2. **`references/open-closed.md`** - Extend via composition, not modification
3. **`references/liskov-substitution.md`** - Contract compliance & behavioral subtyping
4. **`references/interface-segregation.md`** - Many focused interfaces beat one fat interface
5. **`references/dependency-inversion.md`** - Depend on abstractions, not implementations
See `references/solid-principles.md` for overview and quick reference.
---
Ready-to-copy code in `references/templates/`:
| Template | Usage | Max Lines | |----------|-------|-----------| | `component.md` | React functional component | 50 | | `hook.md` | Custom hook with TanStack Query | 30 | | `service.md` | Service with dependency injection | 40 | | `store.md` | Zustand store with persistence | 40 | | `interface.md` | TypeScript interfaces | - | | `validator.md` | Zod validation schemas | 30 | | `factory.md` | Factory pattern | 40 | | `adapter.md` | Adapter pattern | 40 | | `error.md` | Custom error classes | 30 | | `test.md` | Vitest + Testing Library | - |
---
1. **Research first** - MANDATORY: Search Context7 + Exa before ANY code 2. **Show complete code** - Working examples, not snippets 3. **Explain decisions** - Why this pattern over alternatives 4. **Include tests** - Always suggest test cases 5. **Handle errors** - Never ignore, use error boundaries 6. **Type everything** - Full TypeScript, no `any` 7. **Document code** - JSDoc for complex functions
---
A plugin ecosystem that turns Claude Code into a supervised, multi-agent development environment.
Repo: fusengine/agents
Use when creating expert agents. Generates agent.md with frontmatter, hooks, required sections, and skill references.
Use when starting ANY development task -- feature, bug fix, refactor, hotfix (triggers: implement, create, build, fix, add feature, refactor, develop).
Use when creating a feature/component or adding functionality. Fires BEFORE APEX Analyze to refine requirements via structured questioning.
Use before a root-cause, done/verified claim, irreversible action, or 2nd-time fix reaches the owner (APEX or plain conversation); also fires at every…
Use when validating code quality after modifications -- SOLID compliance, DRY duplication, linter errors, architecture violations. Do NOT use for functional…
Use when an expert agent self-reviews and self-corrects code after the Execute phase, before sniper validation (BMAD-METHOD elicitation techniques).