solidjs
Skill15 starsChanged 42 days agoMITView on GitHub
Expert SolidJS assistance covering fine-grained reactivity, signals, zero Virtual DOM, and SolidStart. Use when building high-performance reactive web applications.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- suryavirkapur/skillstheir own version, first seen Oct 20, 2026
- fjrevoredo/mini-diariumtheir own version, first seen Oct 8, 2026
- emeraldwalk/skillstheir own version, first seen Mar 28, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- fjrevoredo/mini-diarium★ 318same name
- suryavirkapur/skills★ 1same name
- emeraldwalk/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository350 other files it gives its agents.
- airflowSkill
- catboostSkill
- claudeSkill
- comfyuiSkill
- cursor-aiSkill
- dalleSkill
- daskSkill
- dbtSkill
- deepseekSkill
- fastaiSkill
- geminiSkill
- github-copilotSkill
- huggingfaceSkill
- jaxSkill
- jupyterSkill
- kerasSkill
- langchainSkill
- lightgbmSkill
- llamaindexSkill
- llamaSkill
- matplotlibSkill
- midjourneySkill
- mistralSkill
- mlflowSkill
- nltkSkill
- numpySkill
- ollamaSkill
- openai-gptSkill
- opencvSkill
- pandasSkill
- perplexitySkill
- plotlySkill
- polarsSkill
- pytorchSkill
- raySkill
- scikit-learnSkill
- seabornSkill
- spacySkill
- sparkSkill
- stable-diffusionSkill
- tensorflowSkill
- vaexSkill
- weights-biasesSkill
- whisperSkill
- xgboostSkill
- api-gatewaySkill
- clean-architectureSkill
- cqrsSkill
- domain-driven-designSkill
- event-drivenSkill
- event-sourcingSkill
- graphqlSkill
- grpcSkill
- hexagonalSkill
- microservicesSkill
- modular-monolithSkill
- monolithSkill
- rest-apiSkill
- sagaSkill
- serverlessSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 1 is distinctive, and 5 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 131
Use createStore for deep nested mutations:
- Very specific: line 168
Use <For> and <Show> instead of .map() or ternary operators to minimize unnecessary DOM recreations.
- Very specific: line 170
Use createResource for async data loading with <Suspense>.
- Very specific: line 171
Call onCleanup inside effects and primitives to clear timers and event listeners.
- Very specific: line 176
Update signals inside createMemo.
- Distinctive: line 177
Use Virtual DOM assumptions (like re-rendering whole component trees).
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SolidJS
SolidJS is a declarative JavaScript library for building user interfaces without a Virtual DOM, compiling templates to direct DOM operations powered by fine-grained Signals reactivity.
When to Use
- High-Performance Reactive Web Applications: Fine-grained reactivity without Virtual DOM overhead.
- Real-Time Dashboards & Data Streaming: Rapid UI updates directly mapped to granular DOM mutations.
- Low-Memory Resource-Constrained Devices: Embedded screens, smart TVs, and low-end mobile devices.
- SolidStart Full-Stack Web Development: Building SSR/SSG full-stack applications with JSX simplicity.
Quick Start
import { createSignal, onCleanup } from "solid-js";
export function Counter() {
const [count, setCount] = createSignal(0);
const timer = setInterval(() => setCount((c) => c + 1), 1000);
onCleanup(() => clearInterval(timer));
return <div>Count: {count()}</div>;
}Core Concepts
Fine-Grained Reactive Primitives: Signals & Memos
Components execute only once; signals trigger targeted DOM node updates:
import { createSignal, createMemo, createEffect, onCleanup } from "solid-js";
export function Counter() {
const [count, setCount] = createSignal(0);
const doubleCount = createMemo(() => count() * 2);
createEffect(() => {
console.log(`Current count: ${count()}, Doubled: ${doubleCount()}`);
});
const timer = setInterval(() => setCount((c) => c + 1), 1000);
onCleanup(() => clearInterval(timer));
return (
<div class="p-4 border rounded">
<h3>Count: {count()}</h3>
<p>Double: {doubleCount()}</p>
<button onClick={() => setCount((c) => c + 1)}>Increment</button>
</div>
);
}Asynchronous Data with createResource & Suspense
Declarative async data fetching with Suspense boundaries:
import { createResource, Suspense } from "solid-js";
interface UserProfile {
id: number;
name: string;
}
const fetchUser = async (id: number): Promise<UserProfile> => {
const res = await fetch(`https://jsonplaceholder.typicode.com/users/${id}`);
return res.json();
};
export function UserView(props: { userId: number }) {
const [user] = createResource(() => props.userId, fetchUser);
return (
<Suspense fallback={<p>Loading user profile...</p>}>
<div>
<h3>{user()?.name}</h3>
<p>User ID: {user()?.id}</p>
</div>
</Suspense>
);
}Control Flow with For, Show, and Switch
Optimized DOM rendering primitives replacing array .map():
import { For, Show } from "solid-js";
export function ProductList(props: {
products: { id: number; name: string; inStock: boolean }[];
}) {
return (
<div>
<Show
when={props.products.length > 0}
fallback={<p>No products found.</p>}
>
<ul>
<For each={props.products}>
{(product) => (
<li>
{product.name} -{" "}
{product.inStock ? "Available" : "Out of Stock"}
</li>
)}
</For>
</ul>
</Show>
</div>
);
}Common Patterns
Fine-Grained Reactive Store for Complex Objects
Problem: Re-rendering an entire list when only a single property of one item changed.
Solution:
Use createStore for deep nested mutations:
import { createStore } from "solid-js/store";
export function TodoApp() {
const [todos, setTodos] = createStore([
{ id: 1, text: "Learn SolidJS", done: false },
{ id: 2, text: "Build App", done: false },
]);
const toggleTodo = (id: number) => {
setTodos(
(todo) => todo.id === id,
"done",
(done) => !done
);
};
return (
<ul>
<For each={todos}>
{(todo) => (
<li onClick={() => toggleTodo(todo.id)}>
{todo.text} - {todo.done ? "✓" : "○"}
</li>
)}
</For>
</ul>
);
}Best Practices
Do:
- Use
<For>and<Show>instead of.map()or ternary operators to minimize unnecessary DOM recreations. - Remember that Solid components run only once; never destructure
propsdirectly (useprops.titleormergeProps). - Use
createResourcefor async data loading with<Suspense>. - Call
onCleanupinside effects and primitives to clear timers and event listeners.
Don't:
- Destructure props in component argument signatures; it breaks fine-grained reactivity tracking.
- Update signals inside
createMemo; memos must remain pure derivation functions. - Use Virtual DOM assumptions (like re-rendering whole component trees).
Troubleshooting
| Error | Cause | Solution |
Signal value not updating in UI | Destructuring props or signals, breaking reactive tracking. | Access props directly (props.name) or use splitProps(). |
TypeError: count is not a function | Accessing signal as a raw value instead of calling getter count(). | Call signal as function: count(). |
Component function executes only once | Solid components are setup functions, not render functions. | Place reactive logic inside effects or JSX getters, not bare component body. |
References
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

