Agent skill
component
React Nativeの再利用可能なUIコンポーネントを作成する。「コンポーネントを作って」「ボタンを作成」などのリクエストで使用する。
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/component
SKILL.md
コンポーネント作成
src/components/ に React Native の関数コンポーネントを作成する。
手順
src/components/ディレクトリが存在しなければ作成する- PascalCase のファイル名で
.tsxファイルを作成する(例:$ARGUMENTS.tsx) - 既存コンポーネントのスタイルと一貫性を保つ
テンプレート
import React from 'react';
import { StyleSheet, View, Text } from 'react-native';
interface Props {
// props をここに定義
}
export const ComponentName: React.FC<Props> = ({}) => {
return (
<View style={styles.container}>
<Text>ComponentName</Text>
</View>
);
};
const styles = StyleSheet.create({
container: {},
});
ルール
export defaultではなく名前付きエクスポートを使う- Props は
interfaceで定義する - スタイルは
StyleSheet.create()で定義する - React Native のコンポーネント(
View,Text,TouchableOpacity等)を使う(HTML 要素は使わない) - 不要な依存パッケージを追加しない
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?