npx skills add smithery/mindrally --skill react-native-r3f
mindrally/skills
react-native-r3f
Expert guidance for React Three Fiber development with React, Vite, Tailwind CSS, and three.js
Installation
$
npx skills add mindrally/skills --skill react-native-r3f
Similar popular skills
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
vercel-react-best-practices
Shared topics
vercel-labs/agent-skills
697.8K installs
azure-hosted-copilot-sdk
Shared topics
microsoft/azure-skills
440.4K installs
vercel-composition-patterns
Shared topics
vercel-labs/agent-skills
326.5K installs
vercel-react-native-skills
Shared topics
vercel-labs/agent-skills
205.5K installs
building-native-ui
Similar name
expo/skills
59.2K installs
native-data-fetching
Similar name
expo/skills
47.2K installs
Also in this package
Other skills from mindrally/skills · top by installs.
npx skills add mindrally/skills
More details
Agent compatibility
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Claude Code
Not declared
Cursor
Not declared
Codex
Not declared
GitHub Copilot
Not declared
Windsurf
Not declared
Gemini CLI
Not declared
Cline
Not declared
OpenCode
Not declared
Also listed on
Alternate registries and mirrors of this skill.
Repository health
Stars
258
Default branch
main
Open issues
0
Status
Active
Package contents
Files included with this skill beyond the listing page.
-
skill md
SKILL.md2,863 B -
docs
SUMMARY.md2,732 B
History
- First seen on skills.sh
- First recorded snapshot · 609 installs
SKILL.md
React Native R3F (React Three Fiber)
You are an expert in React, Vite, Tailwind CSS, three.js, React Three Fiber, and Next UI.
Core Principles
- Write concise, technical responses with accurate React examples
- Employ functional, declarative programming paradigms; avoid class-based approaches
- Prioritize iteration and modularity over code duplication
- Use descriptive variable names incorporating auxiliary verbs (e.g.,
isLoading,hasError) - Directory naming: lowercase with dashes (e.g.,
components/auth-wizard) - Favor named exports for all components
JavaScript/TypeScript Standards
- Use
functionkeyword for pure functions; omit semicolons - TypeScript mandatory for all code; prefer interfaces over type aliases
- Avoid enums; use maps instead
- File organization: exported component -> subcomponents -> helpers -> static content -> types
- Omit unnecessary braces in single-line conditionals
Error Handling
- Address errors and edge cases at function entry points
- Employ early returns for error conditions
- Position happy path logic last for enhanced readability
- Use guard clauses for preconditions and invalid states
React-Specific Practices
- Functional components exclusively
- Use
functionsyntax, notconst, for component declarations - Leverage Next UI and Tailwind CSS for styling
- Implement responsive design throughout
- Wrap client components in Suspense with fallbacks
- Use dynamic loading for non-critical components
- Return expected errors as values; avoid try/catch for anticipated errors
- Implement error boundaries using
error.tsxandglobal-error.tsx
React Three Fiber Best Practices
- Use declarative 3D scene composition with React components
- Leverage hooks like
useFrame,useThree,useLoaderfor animations and scene access - Implement proper cleanup in useEffect for 3D resources
- Use drei library helpers for common 3D patterns
- Optimize performance with instancing for repeated geometries
- Handle window resize and device pixel ratio appropriately
Example Component Structure
import { Canvas } from '@react-three/fiber'
import { OrbitControls, Environment } from '@react-three/drei'
import { Suspense } from 'react'
interface SceneProps {
isAnimating: boolean
}
function Scene({ isAnimating }: SceneProps) {
return (
<Canvas>
<Suspense fallback={null}>
<ambientLight intensity={0.5} />
<directionalLight position={[10, 10, 5]} />
<mesh>
<boxGeometry args={[1, 1, 1]} />
<meshStandardMaterial color="orange" />
</mesh>
<OrbitControls />
<Environment preset="studio" />
</Suspense>
</Canvas>
)
}
export { Scene }