Our review
Creates a React Native screen component with a consistent template.
Strengths
- Automatically handles naming conventions.
- Ensures full-screen layout with flex: 1.
- Includes common imports and styles.
Limitations
- Assumes Expo and React Navigation are used.
- Does not generate custom logic or styling.
- Limited to basic boilerplate without advanced configuration.
When adding a new screen to a React Native project.
When the screen logic is very specific or requires complex state management that should be generated differently.
Security analysis
SafeThe skill only creates a directory and writes a static React Native screen template to a file under src/screens/. No network, destructive commands, or handling of secrets. The Bash usage is limited to safe 'mkdir -p' and file creation via Write tool, with no user input injected into the executed commands.
No concerns found
Examples
Ajoute un écran d'accueil avec un titre et un bouton de connexion.Create a Profile screen with the user's name and avatar placeholder.Ajoute un écran de paramètres avec des options de base.name: screen description: React Nativeの画面(Screen)コンポーネントを作成する。「画面を追加して」「ホーム画面を作って」などのリクエストで使用する。 allowed-tools: Read, Write, Edit, Glob, Grep, Bash argument-hint: [画面名]
画面コンポーネント作成
src/screens/ に画面用コンポーネントを作成する。
手順
src/screens/ディレクトリが存在しなければ作成する- PascalCase のファイル名で
.tsxファイルを作成する(例:$ARGUMENTS.tsxまたは${ARGUMENTS}Screen.tsx) - 画面名が "Screen" で終わっていなければ自動でサフィックスを付ける
テンプレート
import React from 'react';
import { StyleSheet, View, Text } from 'react-native';
import { StatusBar } from 'expo-status-bar';
export const ScreenNameScreen: React.FC = () => {
return (
<View style={styles.container}>
<Text style={styles.title}>ScreenName</Text>
<StatusBar style="auto" />
</View>
);
};
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
title: {
fontSize: 24,
fontWeight: 'bold',
},
});
ルール
- 画面コンポーネントは
flex: 1でフルスクリーンにする SafeAreaViewやStatusBarを適切に使う- ナビゲーションライブラリが導入済みなら、navigation props の型を適切に定義する
- ビジネスロジックが複雑な場合はカスタムフックに切り出す
Next.js App Router Expert
Development
A skill that turns Claude into a Next.js App Router expert.
README Generator
Development
Creates professional and comprehensive README.md files for your projects.
API Documentation Writer
Development
Generates comprehensive API documentation in OpenAPI/Swagger format.