smithery.ai

creating-screens

Add new screens and routes to Eigen React Native app.

First seen Mar 20, 2026

Installation

$ npx skills add https://smithery.ai

Summary

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

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,276 B
  • docs SUMMARY.md 360 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

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 @relaytestoperation 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