CR

creating-screens

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.zip

Installs 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.
336 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Intermediate

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

You give it
Screen name and route requirements
You get back
React Native screen file and route registration

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)

  1. Create /src/app/Scenes/FeatureName/ScreenName.tsx using assets/simple-screen-template.tsx
  2. Register route in /src/app/Navigation/routes.tsx

Relay Screen (With GraphQL)

  1. Create /src/app/Scenes/FeatureName/ScreenName.tsx using assets/relay-screen-template.tsx
  2. Register route in routes.tsx with queries and prepareVariables

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.tsx not FooScreen.tsx
  • Route order: Specific routes before generic (e.g., /artist/:id before /:slug)
  • Relay queries: Include @relay_test_operation directive
  • Null check: Always check if (!data.entity) return null in 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.

SkillInstallsUpdatedSafetyDifficulty
creating-screens (this skill)16moNo flagsIntermediate
frontend-mobile-development-component-scaffold14moNo flagsIntermediate
react-native-architecture552moReviewAdvanced
react-native-design332moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry