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.
npx skills add lukedj78/dev-flow --skill rn-stylinggit clone --depth 1 https://github.com/lukedj78/dev-flowWrote 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.
[](https://agentmods.dev/skills/lukedj78/dev-flow/rn-styling)<a href="https://agentmods.dev/skills/lukedj78/dev-flow/rn-styling"><img src="https://agentmods.dev/badge/skills/lukedj78/dev-flow/rn-styling/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.
<a href="https://agentmods.dev/skills/lukedj78/dev-flow/rn-styling"><img src="https://agentmods.dev/badge/skills/lukedj78/dev-flow/rn-styling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00195 | $0.01155 |
| Opus 5.5 | $0.00078 | $0.00462 |
| Sonnet 5.5 | $0.00039 | $0.00231 |
| Haiku 4.5 | $0.00019 | $0.00115 |
Grade A, and why
rn-styling 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 7d 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.
How it starts
The opening of the file, as written. The whole thing — 47 lines — stays where its author put it; the contents beside it link to each section on GitHub.
rn-styling — guardrail for styling in React Native + Expo
The 5 rules (non-negotiable)
- NativeWind v4 is the default.
StyleSheetonly for performance-critical paths (per-frame animations etc.). - No magic numbers. Every spacing/color/radius/font value comes from
tailwind.config.js(which mirrors the project's DESIGN.md tokens). - SafeArea mandatory on every root screen. Use
SafeAreaViewfromreact-native-safe-area-context(NOT the one fromreact-native). - Dark mode via
useColorScheme+ Tailwinddark:variant. NeverAppearance.getColorScheme()at module top-level. - Optimized primitives:
expo-imageinstead ofImage;@shopify/flash-listfor any list > 20 items.
Quick decision tree
- "Should I style this with NativeWind or StyleSheet?" →
references/decision-tree.md - "How do I set up NativeWind v4 from scratch?" →
references/nativewind-setup.md - "Why does Flexbox behave differently than on the web?" →
references/concepts.md - "What are the common patterns and anti-patterns?" →
references/patterns.md - "Show me a real example" →
references/examples/ - "I need this screen to feel native, not just look styled" (grouped settings, native toggle/picker/slider, real bottom sheet) → this isn't a styling question, it's
references/expo-ui.md(@expo/ui) — real SwiftUI/Jetpack Compose components, not RN primitives.
NativeWind vs @expo/ui — two different tools
- NativeWind (this skill's default) styles RN's own primitives (
View,Text, …) with utility classes. It changes how things look. @expo/ui(seereferences/expo-ui.md; import paths verified against@expo/[email protected]) renders actual native components — SwiftUI on iOS, Jetpack Compose on Android — not styled primitives. Reach for it when a screen needs to genuinely behave like a native settings/picker/sheet screen, not when it just needs the right colors and spacing.- They compose: an
@expo/uitree can sit inside a NativeWind-styled screen. Don't use@expo/uias a general-purpose styling system, and don't expect NativeWind classes to apply inside its native components.
What ships with it
9 files 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.
- references/concepts.md 2.7 KB
- references/decision-tree.md 1.7 KB
- references/examples/.gitkeep 0 B
- references/examples/dark-mode-toggle.tsx 811 B
- references/examples/responsive-card.tsx 1.0 KB
- references/examples/safe-area-layout.tsx 710 B
- references/expo-ui.md 7.2 KB
- references/nativewind-setup.md 2.6 KB
- references/patterns.md 2.4 KB
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.
- 7d ago Changed 7f3db01631c9
- 1mo ago First seen · 47 lines · 195 tokens per session scan A 08efdbc8f303
rn-styling is a skill published in the GitHub repository lukedj78/dev-flow (6 stars, last pushed 3d ago), licensed MIT. It adds 195 tokens to every session and 1,155 once invoked, about $0.0008 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-08-31.
Other skills, from other repositories
uniwind
Uniwind — Tailwind CSS v4 styling for React Native. Use when adding, building, or debugging components in a React Native project that uses Uniwind classNames. Covers setup, Metro config, global.css, theming, className props, accent- color props, platform/data/state/responsive variants, CSS variables, custom utilities…
unistyles-v2-to-v3-migration
Migrate react-native-unistyles from v2 to v3. Triggers on: "migrate unistyles", "upgrade unistyles", "v2 to v3", "unistyles migration", "update unistyles", "convert unistyles v2". Covers all API changes including StyleSheet.create, useStyles removal, theme configuration, variants, withUnistyles, Babel plugin setup…
react-native-unistyles-v3
Guide for using react-native-unistyles v3. Triggers on: "unistyles", "StyleSheet.create", "create stylesheet", "add theme", "breakpoints", "variants", "withUnistyles", "useUnistyles", "ScopedTheme", "UnistylesRuntime", "style component", "responsive styles", "media queries", "dynamic styles", "scoped theme", "adaptive…
agent-spec-mobile-react-native
Agent skill for spec-mobile-react-native - invoke with $agent-spec-mobile-react-native.
moai-design-tools
Design tool integration specialist covering Figma MCP, Pencil renderer, and Pencil-to-code export. Use when fetching design context from Figma, rendering Pencil designs, or exporting to React/Tailwind code.
writing-react-native-storybook-stories
Create and edit React Native Storybook stories using Component Story Format (CSF). Use when writing .stories.tsx files, adding stories to React Native components, configuring Storybook addons (controls, actions, backgrounds, notes), setting up argTypes, decorators, parameters, or working with portable stories for…