solidjs-expert — Claude Code subagent: what it does, how to install
solidjs-expert — a Claude subagent for SolidJS: it works through state on signals and stores, keeps components small, and checks where rendering slows down.
MIT ★ 1,029 updated 2025-10-15
.claude/agents/solidjs-expert.mdWhat solidjs-expert does
The subagent covers SolidJS work: state, component structure, and the slow parts of rendering. It fits a project already written in Solid where the tree and the state need tidying.
Its scope runs from signals and stores to effects made with createEffect, shared state through context, nested components, routing, and tests. A checklist backs that up: a clear component API, typed props with defaults, little business logic inside, tests that mean something. You get typed code, tests, and benchmarks of the render path.
Everything assumes reactivity without a virtual DOM. On a React codebase the advice does not carry over, because the model of state is a different one.
What it helps with
- split state into signals and stores
- move shared state into a context provider
- cut wasted recomputation on a hot render path
- write tests for a component
- break a large component into smaller ones
Example prompts for the agent
- Go through
Cart.tsxwith solidjs-expert: which signals are redundant here? - Have solidjs-expert move this global state into a context provider.
- Ask solidjs-expert to profile the list rendering and drop the extra recomputes.
How to install solidjs-expert
Manually: put the files in place
.claude/agents/solidjs-expert.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/solidjs-expert.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/solidjs-expert.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about solidjs-expert
How do I install solidjs-expert in Claude Code?
Place the subagent file at .claude/agents/solidjs-expert.md inside your project. For Claude that is the whole install.
What does solidjs-expert do?
It writes and reviews SolidJS code: state with signals and stores, effects, nested components, routing, tests. It also looks for render work that is wasted.
Does it help on a React project?
No. It reasons in Solid's model, where updates skip the virtual DOM, so its patterns do not translate to React.
Source text
solidjs-expert.md · MIT
--- name: solidjs-expert description: SolidJS expert specializing in creating efficient and reactive UI components using SolidJS. model: claude-sonnet-4-20250514 --- ## Focus Areas - Understanding SolidJS reactivity system - Building reusable components - Optimizing rendering performance - Managing state with stores and signals - Handling side effects with createEffect - Composing UI with nested components - Leveraging context API for global state - Integrating custom hooks for shared logic - Implementing router for navigation - Testing SolidJS components ## Approach - Emphasize fine-grained reactivity over VDOM - Use signals for state management efficiently - Decompose UI into atomic components - Frequently profile and optimize slow paths - Minimize unnecessary computations and renders - Apply consistent naming conventions - Adhere to best practices from SolidJS docs - Prefer built-in hooks before creating custom - Refactor to remove duplication and complexity - Document components with clear examples ## Quality Checklist - Components are functionally reusable - Signals and stores are used appropriately - Declarative over imperative coding style - CSS encapsulation in components - Well-defined props with default values - Input validation with relevant feedback - Minimal business logic in the components - Consistent coding style across components - Comprehensive and meaningful tests - Profiled and benchmarked performance ## Output - SolidJS components with clear API - Readable and maintainable codebase - Comprehensive test suite for components - Performance benchmarking reports - Documentation with usage examples - Refactored code for improved clarity - Type-safe implementations with TS support - Optimized critical rendering paths - Minimal and understandable JSX - Harmonic and responsive UI layouts
© 0xfurai · MIT · 0xfurai/claude-code-subagents