Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

frontend-react-best-practices

Skill by modelscope

Provides React performance and composition guidelines for writing, reviewing, and refactoring components. Covers re-renders, bundle size, hooks, and rendering patterns. Built for developers working on React code.

  • Score 93
  • 4.4k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install frontend-react-best-practices

Built from the published package, never by AI.

git clone --depth 1 https://github.com/modelscope/ms-agent /tmp/ms-agent && mkdir -p ~/.claude/skills && cp -r /tmp/ms-agent/.agents/skills/frontend-react-best-practices ~/.claude/skills/frontend-react-best-practices

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install frontend-react-best-practices in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill is a set of React best practice guidelines published by modelscope. It contains 33 rules across 6 categories: bundle size optimization, re-render optimization, rendering performance, client patterns, hooks, and composition patterns. Each rule has a short description and code examples marked as bad or good.

The skill is meant to be used when writing, reviewing, or refactoring React components. Its description says it triggers on tasks involving React components, hooks, memoization, or bundle optimization. Each rule is also linked to its own file, such as bundle-barrel-imports or rerender-memo. It suits developers who want components to render efficiently and keep bundles lean.

Written from the project's SKILL.md and checked against it.

What it can do

  • Bundle size optimizationCovers importing directly from source, loading modules conditionally, and preloading on hover or focus.
  • Re-render optimizationCovers functional setState, deriving state during render, lazy state init, and memoization patterns.
  • Rendering performanceCovers conditional rendering, hoisting static JSX, content-visibility, and SVG precision.
  • Client patternsCovers passive event listeners and versioned localStorage data.
  • Hooks guidanceCovers limiting useEffect use and naming effect functions for easier debugging.
  • Composition patternsCovers avoiding boolean props, compound components, state providers, and explicit variants.

Try asking

  • Review this React component for unnecessary re-renders
  • Refactor this useEffect to avoid deriving state in an effect
  • Suggest ways to reduce the bundle size of this React page

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/frontend-react-best-practices/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md13 KB
  • rules/bundle-barrel-imports.md2 KB
  • rules/bundle-conditional.md966 B
  • rules/bundle-preload.md1 KB
  • rules/client-localstorage-schema.md2 KB
Show all 37 files
  • rules/client-passive-event-listeners.md2 KB
  • rules/composition-avoid-boolean-props.md3 KB
  • rules/composition-avoid-overabstraction.md2 KB
  • rules/composition-children-over-render-props.md4 KB
  • rules/composition-compound-components.md4 KB
  • rules/composition-explicit-variants.md4 KB
  • rules/composition-state-provider.md5 KB
  • rules/composition-typescript-namespaces.md5 KB
  • rules/fault-tolerant-error-boundaries.md1 KB
  • rules/hooks-limit-useeffect.md5 KB
  • rules/hooks-useeffect-named-functions.md4 KB
  • rules/rendering-animate-svg-wrapper.md1 KB
  • rules/rendering-client-only.md553 B
  • rules/rendering-conditional-render.md938 B
  • rules/rendering-content-visibility.md817 B
  • rules/rendering-hoist-jsx.md770 B
  • rules/rendering-hydration-no-flicker.md2 KB
  • rules/rendering-hydration-suppress-warning.md826 B
  • rules/rendering-svg-precision.md588 B
  • rules/rendering-use-hydrated.md650 B
  • rules/rendering-usetransition-loading.md2 KB
  • rules/rerender-dependencies.md833 B
  • rules/rerender-derived-state-no-effect.md1 KB
  • rules/rerender-derived-state.md726 B
  • rules/rerender-functional-setstate.md3 KB

And 7 more files on GitHub.

Alternatives to frontend-react-best-practices

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

frontend-react-best-practices: common questions

How many rules does the React best practices skill include?

The skill says it contains 33 rules across 6 categories. Those categories cover bundle size, re-renders, rendering, client patterns, hooks, and composition.

When should the assistant use this skill?

The description says it should be used when writing, reviewing, or refactoring React components. It also triggers on tasks involving hooks, memoization, or bundle optimization.

Does the skill cover server rendering?

Yes, it includes rendering rules for hydration, such as suppressing expected hydration mismatches. It also covers ClientOnly and useHydrated for SSR and CSR divergence.

How do I install frontend-react-best-practices?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is frontend-react-best-practices free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is frontend-react-best-practices safe to use?

It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to frontend-react-best-practices?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

frontend-react-best-practices Install

Add to stack

Loading.