react-native-gen

react-native-gen is a skill for Claude Code, Codex from memi-design/design-skills. It costs 23 tokens per session (927 once invoked), scanned A, original, MIT.

A code generator that turns Mémoire specifications into React Native components for mobile apps. It includes NativeWind styling and Expo-compatible, platform-specific patterns.

In plain words
What is it for?
Use it to generate mobile buttons, cards, inputs, dialogs, lists, tabs, forms, and other React Native interface components.
Why use it?
It reduces the manual work of translating web interface components into native mobile equivalents while accounting for platform differences.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to generate mobile buttons, cards, inputs, dialogs, lists, tabs, forms, and other React Native interface components.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/memi-design/design-skills/react-native-gen
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add memi-design/design-skills --skill react-native-gen
Clone the repo
git clone --depth 1 https://github.com/memi-design/design-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for react-native-gen

README.md
[![agentmods](https://agentmods.dev/badge/skills/memi-design/design-skills/react-native-gen/github.svg)](https://agentmods.dev/skills/memi-design/design-skills/react-native-gen)
Your own site
<a href="https://agentmods.dev/skills/memi-design/design-skills/react-native-gen"><img src="https://agentmods.dev/badge/skills/memi-design/design-skills/react-native-gen/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for react-native-gen

Your own site · 80×15
<a href="https://agentmods.dev/skills/memi-design/design-skills/react-native-gen"><img src="https://agentmods.dev/badge/skills/memi-design/design-skills/react-native-gen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 927 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00023 $0.00927
Opus 5.5 $0.00009 $0.00371
Sonnet 5.5 $0.00005 $0.00185
Haiku 4.5 $0.00002 $0.00093

Measured 1mo ago against content hash 2291c53334e9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

react-native-gen scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/react-native-gen/SKILL.md · 125 lines

How it starts

The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.

React Native Generator — Memoire Codegen Skill

Translates Memoire specs into production React Native components. Maintains atomic design hierarchy and maps web primitives to native equivalents.


Mapping Rules

shadcn/ui to React Native

shadcn Component RN Equivalent Notes
Button Pressable + Text Use Pressable over TouchableOpacity
Card View with shadow styles NativeWind shadow-md rounded-lg
Input TextInput Add returnKeyType, autoCapitalize
Badge View + Text Fixed height, rounded-full
Avatar Image with fallback View borderRadius: 9999
Dialog Modal Use RN Modal with transparent
Select Custom ActionSheet or Picker Platform-specific
Separator View with h-px bg-border
Tabs Custom with Pressable row Horizontal scroll for overflow
Table FlatList with header row Virtualized by default
Switch RN Switch Map trackColor, thumbColor
Checkbox Pressable + icon toggle No native checkbox on RN
ScrollArea ScrollView Add showsVerticalScrollIndicator
Sheet Modal + Animated.View Bottom sheet pattern
Skeleton Animated View with shimmer Use Animated opacity loop

Tailwind to NativeWind

  • Web Tailwind classes map 1:1 in NativeWind 4.x
  • Exceptions: hover:, focus-visible: — replace with active: states
  • Grid: Use flex layout — RN has no CSS Grid
  • gap-* works in NativeWind, prefer over margin hacks

Atomic Folders (React Native)

Level Output Path
atom components/ui/
molecule components/molecules/
organism components/organisms/
template components/templates/
page screens/

Component Template

import { View, Text, Pressable } from "react-native";
import type { ComponentProps } from "react";

interface {Name}Props {
  // Generated from spec.props
}

export function {Name}({ ...props }: {Name}Props) {
  return (
    <View className="...">
      {/* Component content */}
    </View>
  );
}

Read the full file on GitHub · 125 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 125 lines · 23 tokens per session scan A 2291c53334e9

Subscribe to this mod's changes

react-native-gen is a skill published in the GitHub repository memi-design/design-skills (7 stars, last pushed 27d ago), licensed MIT. It adds 23 tokens to every session and 927 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

react-native

React Native mobile patterns, platform-specific code.

alinaqi/maggy · 11 tokens

react-native-cursor-rules

React Native development best practices for TypeScript, functional components, performance optimization, and styling guidelines.

Mindrally/skills · 26 tokens

animate-expo

Build animation and gestures in React Native and Expo with Reanimated worklets on the UI thread — sheets, drawers, screen transitions, swipe, drag, press feedback, haptics. Use when adding gestures to an Expo app, or when motion stutters, janks or drops frames on a real Android or iOS device.

ericrisco/rsc-harness · 70 tokens

swiftui-native-first

The single most important quality skill. Enforces native SwiftUI components and rejects unnecessary custom code. Use this skill as a reference throughout the entire build process. Include its core rules in every CLAUDE.md. This is what prevents Claude Code from building janky custom UI when a native component exists.

troyjthomas/ios-agent-skills · 65 tokens

uikit-bridging

How to bridge UIKit into a SwiftUI app correctly when SwiftUI's API is genuinely insufficient. Covers UIViewRepresentable lifecycle, sizeThatFits, font-design inheritance, animation suppression, and the small set of legitimate use cases. Use this skill whenever the swiftui-native-first skill points you here for a…

troyjthomas/ios-agent-skills · 70 tokens

dark-mode-legibility

Test every screen in BOTH light and dark mode every iteration. The most common iOS legibility bugs only show in one mode, including a specific class of vibrancy-on-pastel-tint failures that produce illegible labels on glass buttons. Use this skill alongside polish-and-refinement during the polish phase, and as a…

troyjthomas/ios-agent-skills · 84 tokens