install
source · Clone the upstream repo
git clone https://github.com/mdbabumiamssm/LLMs-Universal-Life-Science-and-Clinical-Skills-
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/mdbabumiamssm/LLMs-Universal-Life-Science-and-Clinical-Skills- "$T" && mkdir -p ~/.claude/skills && cp -r "$T/Skills/Software_Engineering/Web_Development/React_Best_Practices" ~/.claude/skills/mdbabumiamssm-llms-universal-life-science-and-clinical-skills-react-best-practic-f9f7a6 && rm -rf "$T"
manifest:
Skills/Software_Engineering/Web_Development/React_Best_Practices/SKILL.mdsource content
<!--
# COPYRIGHT NOTICE
# This file is part of the "Universal Biomedical Skills" project.
# Copyright (c) 2026 MD BABU MIA, PhD <md.babu.mia@mssm.edu>
# All Rights Reserved.
#
# This code is proprietary and confidential.
# Unauthorized copying of this file, via any medium is strictly prohibited.
#
# Provenance: Authenticated by MD BABU MIA
-->
name: 'react-best-practices' description: 'A comprehensive guide and rule set for writing clean, performant, and maintainable React code.' measurable_outcome: Execute skill workflow successfully with valid output within 15 minutes. allowed-tools:
- read_file
- run_shell_command
- write_file
React Best Practices
This skill provides a set of architectural and coding standards for React applications. It is designed to be used by agents when generating, refactoring, or reviewing React code to ensure alignment with modern industry standards.
When to Use This Skill
- Code Generation: When asked to create new React components or hooks.
- Code Review: When analyzing existing React code for anti-patterns.
- Refactoring: When optimizing performance or improving readability.
- Migration: When upgrading from class components to functional components + hooks.
Core Capabilities
- Component Architecture: Enforces separation of concerns (Container/Presentational) or Composition patterns.
- Hooks Usage: Validates rules of hooks, custom hook extraction, and dependency array correctness.
- State Management: Guidance on
vsuseState
vs Context vs External Stores (Zustand/Redux).useReducer - Performance Optimization: Identifies unnecessary re-renders and suggests
/useMemo
usage appropriately.useCallback
Workflow
- Analyze Context: Determine if the task involves a single component or a complex feature.
- Consult Rules: Refer to
for specific guidelines on naming, file structure, and typing.references/rules.md - Generate/Refactor: Apply the rules to the code.
- Validate: Ensure no "prop drilling" or "huge components" are introduced.
Example Usage
User: "Create a user profile component that fetches data."
Agent Action:
- Reads
to check data fetching patterns (e.g., "Use React Query or SWR over useEffect for data").references/rules.md - Generates the component:
// user-profile.tsx import { useQuery } from '@tanstack/react-query'; // ... implementation following rules ...