notque/vexjoy-agent / skills/frontend/frontend
frontend
UnverifiedFrontend: UI design, distinctive visual styles, HTML artifacts, Three.js 3D, TypeScript/React/Next.js apps, e-commerce, portfolios, React Native, web performance.
references/react-native/monorepo-config.md
View on GitHub# Monorepo Config Reference
<!-- Loaded via react-native.md when task involves monorepo, fonts, imports, design system, dependency versions, autolinking -->
## Install Native Dependencies in the App Directory
**Impact:** CRITICAL — required for autolinking
Autolinking only scans the native app's `node_modules`. Native deps in shared packages but missing from the app directory won't link.
**Instead of:**
```
packages/
ui/
package.json ← has react-native-reanimated
app/
package.json ← missing react-native-reanimated ← autolinking fails
```
**Use:**
```json
// packages/app/package.json
{
"dependencies": {
"react-native-reanimated": "3.16.1"
}
}
```
Even if only the shared package uses the native dep, the app must declare it.
---
## Use Single Dependency Versions Across the Monorepo
**Impact:** MEDIUM — avoids duplicate bundles and version conflicts
**Instead of:**
```json
// packages/app: "react-native-reanimated": "^3.0.0"
// packages/ui: "react-native-reanimated": "^3.5.0"
```
**Use:**
```json
// package.json (root)
{
"pnpm": {
"overrides": { "react-native-reanimated": "3.16.1" }
}
}
// npm: "overrides", yarn: "resolutions"
```
Use exact versions (no `^` or `~`). Use `syncpack` to audit consistency.
---
## Load Fonts at Build Time with Expo Config Plugin
**Impact:** LOW — fonts available at launch, no loading state
**Instead of:**
```tsx
const [fontsLoaded] = useFonts({ 'Geist-Bold': require('./assets/fonts/Geist-Bold.otf') })
if (!fontsLoaded) return null
```
**Use:**
```json
// app.json
{
"expo": {
"plugins": [
["expo-font", { "fonts": ["./assets/fonts/Geist-Bold.otf"] }]
]
}
}
```
Run `npx expo prebuild` after adding fonts. Requires Expo (managed or bare with config plugins).
---
## Re-export Dependencies Through a Design System Folder
**Impact:** LOW — single point of change for component swaps
**Instead of:**
```tsx
import { View, Text } from 'react-native'
import { Button } from '@ui/button'
```
**Use:**
```tsx
// components/view.tsx
export function View(props: Pick<React.ComponentProps<typeof RNView>, 'style' | 'children'>) {
return <RNView {...props} />
}
// App code
import { View } from '@/components/view'
```
Start with re-exports. Customize prop shapes later without changing app code.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |