Agent skill · software engineering · aiskillstore

code-patterns-practices

React Native coding patterns, best practices, and common solutions for mobile development. Use when implementing features or refactoring code.

Why this skill is useful

Provides specific React Native coding patterns and best practices that enhance mobile development workflows.

What it needs

About 4k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

Code Patterns & Practices Common patterns and best practices for React Native development. When to Use Implementing new features Refactoring existing code Choosing architecture patterns Solving common problems Improving code quality Component Patterns Custom Hooks Compound Components Render Props State Management Patterns Local State Shared State (Context) Global State (Zustand) Data Fetching Patterns With Async/Await Performance Patterns Memoization Lazy Loading Error Handling Patterns Error Boundaries Try-Catch Pattern Mobile-Specific Patterns Safe Area Handling Keyboard Avoiding Best Practices 1. Keep Components Small: Single responsibility, easy to test 2. Extract Custom Hooks: Reuse logic across components 3. Use TypeScript: Catch errors early 4. Handle Loading & Error States: Better user experience 5. Clean Up Side Effects: Prevent memory leaks 6. Optimize Wisely: Profile before optimizing 7. Test Behavior: Focus on user interactions Anti-Patterns to Avoid ❌ Massive components (>300 lines) ❌ Prop drilling (use context/store instead) ❌ Missing cleanup in useEffect ❌ Inline function definitions in render ❌ Mutating state directly ❌ Over-optimization without measuring Resources React Patterns React Native Best Practices

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/code-patterns-practices

View the source on GitHub

Browse the @skills marketplace