Guides the creation and registration of new screens and routes within the Eigen React Native codebase.
Install
mkdir -p .claude/skills/creating-screens && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/4068" && unzip -o skill.zip -d .claude/skills/creating-screens && rm skill.zipInstalls to .claude/skills/creating-screens
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Add new screens and routes to Eigen React Native app. Guides you through creating simple screens (no data fetching) or Relay screens (with GraphQL). Use this when adding screens, routes, or navigating components. Triggers on "add a screen", "create a new route", "add a Relay screen", "setup screen with data", or screen creation tasks.Key capabilities
- →Scaffolds simple React Native screens
- →Generates Relay-enabled screens with GraphQL
- →Registers routes in navigation configurations
- →Configures Android deep links
How it works
The skill provides templates for screen creation and enforces a checklist for route registration, testing, and code quality standards.
Inputs & outputs
When to use creating-screens
- →Add a new navigation screen
- →Setup a new Relay query screen
- →Register a route for a new feature
- →Configure deep links for a new screen
About this skill
Creating Screens in Eigen
Use this checklist to track your work:
- [ ] Confirm the component/folder name and the desired route
- [ ] Create the correct type of screen
- [ ] Write a test for the new screen (using `/eigen-testing` skill)
- [ ] Ensure the test passes (`yarn test [test file]`)
- [ ] Run linter (`yarn lint [pending files]`)
- [ ] Run formatter (`yarn prettier -w [pending files]`)
Simple Screen (No GraphQL)
- Create
/src/app/Scenes/FeatureName/ScreenName.tsxusingassets/simple-screen-template.tsx - Register route in
/src/app/Navigation/routes.tsx
Relay Screen (With GraphQL)
- Create
/src/app/Scenes/FeatureName/ScreenName.tsxusingassets/relay-screen-template.tsx - Register route in
routes.tsxwithqueriesandprepareVariables
Route Registration
// Simple screen
{
path: "/my-screen",
name: "MyScreen",
Component: MyScreen,
options: { screenOptions: { headerShown: false } },
}
// Relay screen
{
path: "/entity/:id",
name: "EntityScreen",
Component: EntityScreenQueryRenderer,
queries: [EntityScreenQuery],
prepareVariables: [({ id }) => ({ id })],
options: { screenOptions: { headerShown: false } },
}
Note: [Android only]: If you want to enable deep linking for your new screen, add the route to src/main/AndroidManifest.xml.
...
<data android:pathPrefix="/my-screen" />
...
Critical Rules
- Location:
/src/app/Scenes/FeatureName/ScreenName.tsx - Naming conventions:
Foo.tsxnotFooScreen.tsx - Route order: Specific routes before generic (e.g.,
/artist/:idbefore/:slug) - Relay queries: Include
@relay_test_operationdirective - Null check: Always check
if (!data.entity) return nullin QueryRenderer - Tests: Always ensure there is a passing test
- Code quality: Always ensure new files are linted and formatted
When not to use it
- →When naming conventions like FooScreen.tsx are used
- →When linting and formatting are skipped
Limitations
- →Requires specific file naming conventions
- →Requires passing tests and linting
How it compares
This skill provides a standardized checklist and templates for Eigen-specific navigation and Relay patterns, rather than manual component creation.
Compared to similar skills
creating-screens side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| creating-screens (this skill) | 1 | 6mo | No flags | Intermediate |
| frontend-mobile-development-component-scaffold | 1 | 4mo | No flags | Intermediate |
| react-native-architecture | 55 | 2mo | Review | Advanced |
| react-native-design | 33 | 2mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by artsy
View all by artsy →You might also like
frontend-mobile-development-component-scaffold
sickn33
You are a React component architecture expert specializing in scaffolding production-ready, accessible, and performant components. Generate complete component implementations with TypeScript, tests, s
react-native-architecture
wshobson
Build production React Native apps with Expo, navigation, native modules, offline sync, and cross-platform patterns. Use when developing mobile apps, implementing native integrations, or architecting React Native projects.
react-native-design
wshobson
Master React Native styling, navigation, and Reanimated animations for cross-platform mobile development. Use when building React Native apps, implementing navigation patterns, or creating performant animations.
heroui-native
heroui-inc
HeroUI Native component library for React Native (Tailwind v4 via Uniwind). Use when working with HeroUI Native components, installing HeroUI Native, customizing themes, or accessing component documentation. Keywords: HeroUI Native, heroui-native, React Native UI, Uniwind.
react-native
alinaqi
React Native mobile patterns, platform-specific code
json-render-react-native
vercel-labs
React Native renderer for json-render that turns JSON specs into native mobile UIs. Use when working with @json-render/react-native, building React Native UIs from JSON, creating mobile component catalogs, or rendering AI-generated specs on mobile.