← スキル一覧に戻る

dev-server
by masuidrive
⭐ 1🍴 0📅 2026年1月15日
SKILL.md
name: dev-server description: Start or stop the Expo development server. Use when the user mentions "dev server", "start server", "expo start", "stop server", "stop dev-server", or wants to start/stop the development environment. user-invocable: true
/dev-server - Expo Development Server Control
Start or stop the Expo development server for local development.
Execution Requirements
IMPORTANT: Execute commands from the app root directory (APPNAME directory, not the .git root).
Usage
- Start server:
/dev-serveror/dev-server start - Stop server:
/dev-server stop
Instructions for Claude
When this skill is invoked:
1. Determine Action
Check if the user wants to start or stop the server:
- If args contain "stop" OR user message contains "止め" or "stop": STOP the server
- Otherwise: START the server
2. Starting the Server
cd APPNAME # Move to app directory from project root
npx expo start
Important:
- Run the command in background mode (
run_in_background: true) - Save the task ID for future reference
- Inform the user that the server is running in the background
- Provide instructions for scanning the QR code with Expo Go app
Output to user:
Expo 開発サーバーを起動しました(バックグラウンド実行中)
次のステップ:
1. 端末で Expo Go アプリを起動
2. QR コードをスキャン(ターミナルで新しいウィンドウを開いて確認できます)
停止するには `/dev-server stop` を実行してください
3. Stopping the Server
To stop the server:
-
Find running expo start tasks:
ps aux | grep "[e]xpo start" | awk '{print $2}' -
Kill the processes:
pkill -f "expo start"
Alternative method if you have the task ID:
- Use
KillShelltool with the background task ID
Output to user:
Expo 開発サーバーを停止しました
4. Error Handling
- Already running: If server is already running, inform user and ask if they want to restart
- Not found when stopping: Inform user that no server is currently running
- Port in use: Suggest killing the existing process or using a different port
Common Scenarios
Scenario 1: User says "start the dev server"
- Navigate to app directory
- Run
npx expo startin background - Display next steps
Scenario 2: User says "dev-serverを止めて" or "/dev-server stop"
- Find and kill expo start processes
- Confirm server stopped
Scenario 3: Server already running
- Inform user
- Ask if they want to restart or continue with existing server
Success Indicators
Starting:
- Command executed in background
- Task ID returned
- No error messages
Stopping:
- Process killed successfully
- Confirmation message shown
Common Issues
- Not in app directory: Remind user that command must be run from APPNAME directory
- Port already in use: Another process may be using port 8081
- Metro bundler cache issues: Suggest
npx expo start -cto clear cache
スコア
総合スコア
45/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
○言語
プログラミング言語が設定されている
0/5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です