Web Artifacts Builder
anthropics/skills
Builds multi-component claude.ai HTML artifacts as a small React, TypeScript and Tailwind project, then bundles it into one shareable HTML file.
Correct mental models for React re-renders and memoization. An agent skill from stellar/laboratory.
$ npx skills add stellar/laboratory --skill react-rerender-mental-models -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install stellar/laboratory react-rerender-mental-models --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/stellar/laboratory.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/react-rerender-mental-models .claude/skills/react-rerender-mental-models && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "react-rerender-mental-models" agent skill from https://github.com/stellar/laboratory/tree/main/.claude/skills/react-rerender-mental-models into .claude/skills/react-rerender-mental-models/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-rerender-mental-models", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/stellar/laboratory/tree/main/.claude/skills/react-rerender-mental-modelsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add stellar/laboratory --skill react-rerender-mental-models -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install stellar/laboratory react-rerender-mental-models --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/stellar/laboratory.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/react-rerender-mental-models .agents/skills/react-rerender-mental-models && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "react-rerender-mental-models" agent skill from https://github.com/stellar/laboratory/tree/main/.claude/skills/react-rerender-mental-models into .agents/skills/react-rerender-mental-models/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-rerender-mental-models", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add stellar/laboratory --skill react-rerender-mental-models -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install stellar/laboratory react-rerender-mental-models --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/stellar/laboratory.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/react-rerender-mental-models .cursor/skills/react-rerender-mental-models && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "react-rerender-mental-models" agent skill from https://github.com/stellar/laboratory/tree/main/.claude/skills/react-rerender-mental-models into .cursor/skills/react-rerender-mental-models/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-rerender-mental-models", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/stellar/laboratory.git --path .claude/skills/react-rerender-mental-models--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add stellar/laboratory --skill react-rerender-mental-models -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install stellar/laboratory react-rerender-mental-models --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/stellar/laboratory.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/react-rerender-mental-models .gemini/skills/react-rerender-mental-models && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "react-rerender-mental-models" agent skill from https://github.com/stellar/laboratory/tree/main/.claude/skills/react-rerender-mental-models into .gemini/skills/react-rerender-mental-models/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-rerender-mental-models", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install stellar/laboratory react-rerender-mental-modelsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add stellar/laboratory --skill react-rerender-mental-models -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/stellar/laboratory.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/react-rerender-mental-models .github/skills/react-rerender-mental-models && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "react-rerender-mental-models" agent skill from https://github.com/stellar/laboratory/tree/main/.claude/skills/react-rerender-mental-models into .github/skills/react-rerender-mental-models/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-rerender-mental-models", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add stellar/laboratory --skill react-rerender-mental-models -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install stellar/laboratory react-rerender-mental-models --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/stellar/laboratory.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/react-rerender-mental-models .opencode/skills/react-rerender-mental-models && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "react-rerender-mental-models" agent skill from https://github.com/stellar/laboratory/tree/main/.claude/skills/react-rerender-mental-models into .opencode/skills/react-rerender-mental-models/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "react-rerender-mental-models", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
react-rerender-mental-modelsCorrect mental models for React re-renders and memoization. An agent skill from stellar/laboratory.
React Rerender Mental Models is an agent skill from stellar/laboratory. Correct mental models for React re-renders and memoization. Use this skill when writing, reviewing, or optimizing React components to avoid common misconceptions about performance. Debunks the myth that "props cause re-renders" and teaches when memoization actually helps.
Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files (for example `rules/anti-pattern-memoization-trap.md`, `rules/anti-pattern-premature-memo.md` and `rules/architecture-composition.md`).
It sits in Frontend & Design, covering React components. It works with React. The repository describes itself as: A set of tools that enables developers to try out and learn about the Stellar network. The licence is MIT.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit b4b6465. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
React Rerender Mental Models loads about 1.1k tokens when it runs. Until then it costs about 75 tokens; SKILL.md has 429 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from stellar/laboratory at commit b4b6465, republished under its MIT licence (© stellar). 429 words, ~1,085 tokens.
.claude/skills/react-rerender-mental-models/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.A practical guide to understanding how React re-renders actually work, debunking common misconceptions, and knowing when optimization is truly needed.
"Trust React to be fast. Write simple code. Measure when something actually feels slow. Optimize based on data, not fear."
Reference these guidelines when:
| Category | Prefix | Description |
|---|---|---|
| Mental Models | mental-model- | Correct understanding of how React works |
| Anti-Patterns | anti-pattern- | Common mistakes to avoid |
| When to Memoize | when-to-memo- | Profile-driven optimization guidance |
| Architecture | architecture- | Component structure patterns |
mental-model-parent-triggers - Props don't trigger re-renders; parent re-renders domental-model-render-vs-commit - Render ≠ Commit; renders are cheap, commits touch DOManti-pattern-premature-memo - Don't memoize without profiling firstanti-pattern-memoization-trap - Real bottlenecks are often not re-renderswhen-to-memo-context-values - Stabilize context object referenceswhen-to-usecallback - Only needed when child is already memoizedarchitecture-local-state - Keep state close to where it's usedarchitecture-composition - Component structure prevents re-renders naturallyProps are NOT on this list. Props are inputs to a render that's already happening—they don't schedule one.
1. Something feels slow
2. Open React DevTools Profiler
3. Record the interaction
4. Look for components with 50ms+ render times
5. If found → consider memoization
6. If not found → the problem is elsewhere:
- API calls firing too often
- Unoptimized images
- Too many DOM nodes
- CSS animations triggering layoutThis project runs React 19. The React Compiler (formerly React Forget) is
an opt-in build-time tool that statically analyzes components and automatically
inserts the equivalent of useMemo, useCallback, and React.memo. It is
not enabled by default — it requires babel-plugin-react-compiler (or the
SWC equivalent) to be installed and configured.
Regardless of compiler status, the mental models and architecture rules in this skill still apply — composition and local state are always better than relying on memoization (auto or manual). Re-render triggers remain the same either way.
Read individual rule files for detailed explanations and code examples:
rules/mental-model-parent-triggers.md
rules/anti-pattern-premature-memo.md
rules/architecture-local-state.mdEach rule file contains:
© stellar, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 8 other files in .claude/skills/react-rerender-mental-models of stellar/laboratory.
Open the folder on GitHubat commit b4b6465
React Rerender Mental Models next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| React Rerender Mental Models this skillstellar/laboratory | 112 | — | ~1.1k | Automated safety check: Pass | MIT | |
| Web Artifacts Builderanthropics/skills | 180k | 41 repos | ~769 | Automated safety check: Pass | Apache-2.0 | |
| React Router Developmentremix-run/react-router | 57k | 1 repos | ~1.5k | Automated safety check: Pass | MIT | |
| React UI State PatternsChrisWiles/claude-code-showcase | 6.1k | 8 repos | ~1.6k | Automated safety check: Pass | None | |
| Chakra UI v3 Builderchakra-ui/chakra-ui | 41k | — | ~3.1k | Automated safety check: Pass | MIT | |
| React Component PerformanceDimillian/Skills | 4k | 5 repos | ~1.2k | Automated safety check: Pass | MIT |
anthropics/skills
Builds multi-component claude.ai HTML artifacts as a small React, TypeScript and Tailwind project, then bundles it into one shareable HTML file.
remix-run/react-router
Guides work on React Router apps by first identifying whether the app uses Framework, Data or Declarative mode, then loading the matching reference and the installed package docs.
ChrisWiles/claude-code-showcase
Sets patterns for React interfaces: when to show loading spinners or skeletons, how to surface errors, how to disable buttons during async work and how to handle empty lists.
chakra-ui/chakra-ui
Builds responsive, accessible Chakra UI v3 components and layouts, sets up Chakra in new or existing projects, and designs themes with tokens, semantic tokens and recipes.
Dimillian/Skills
Analyze and optimize React component performance issues (slow renders, re-render thrash, laggy lists, expensive computations).
vercel-labs/next-beats
Guides implementing animated page and state transitions in React with the native View Transition API, covering shared elements, list reorders and directional navigation.
stellar/laboratory
Guide for building React components using @stellar/design-system and project SCSS conventions.
stellar/laboratory
Reference for the two Zustand store patterns in Stellar Lab — main store (querystring) and transaction flow store (sessionStorage).
stellar/laboratory
Commit a logical unit of work with a descriptive message. An agent skill from stellar/laboratory.
stellar/laboratory
Bridge Figma MCP output to Stellar Lab code conventions. An agent skill from stellar/laboratory.
stellar/laboratory
Run e2e and unit tests related to files changed on the current branch.
Works with
Categories
Correct mental models for React re-renders and memoization. An agent skill from stellar/laboratory. React Rerender Mental Models is an agent skill from stellar/laboratory. Correct mental models for React re-renders and memoization.
React Rerender Mental Models fits situations like: optimizing React components to avoid common misconceptions about performance; tasks that involve React components.
Run `npx skills add stellar/laboratory --skill react-rerender-mental-models -a claude-code`. Or copy the skill folder (.claude/skills/react-rerender-mental-models in stellar/laboratory) into .claude/skills/react-rerender-mental-models in your project. Claude Code loads it when a task matches its description.
Run `npx skills add stellar/laboratory --skill react-rerender-mental-models -a codex`. Or copy the skill folder (.claude/skills/react-rerender-mental-models in stellar/laboratory) into .agents/skills/react-rerender-mental-models in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add stellar/laboratory --skill react-rerender-mental-models -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/react-rerender-mental-models, .gemini/skills/react-rerender-mental-models, .github/skills/react-rerender-mental-models and .opencode/skills/react-rerender-mental-models in your project.
SKILL.md names no scripts, command-line tools or credentials: React Rerender Mental Models is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
React Rerender Mental Models is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.1k tokens (SKILL.md is roughly 4.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with React Rerender Mental Models: Web Artifacts Builder (anthropics/skills, 180k stars), React Router Development (remix-run/react-router, 57k stars), React UI State Patterns (ChrisWiles/claude-code-showcase, 6.1k stars) and Chakra UI v3 Builder (chakra-ui/chakra-ui, 41k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
stellar (a GitHub organization) maintains it in stellar/laboratory, which has 112 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on October 3, 2026.
Source: stellar/laboratory on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.