Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
7
0〜1歳の乳幼児とその保護者が一緒に楽しめるAR(拡張現実)を活用した宝探しゲームアプリの開発。
Sign in to like and favorite skills
0〜1歳の乳幼児とその保護者が一緒に楽しめるAR(拡張現実)を活用した宝探しゲームアプリの開発。
Web検索やAI支援が必要な際は
geminiコマンドを使用する。
# 基本的な使い方 echo "質問内容" | gemini -p "詳しく説明してください" # モデル指定(デフォルト: gemini-2.5-pro) echo "質問内容" | gemini -m "gemini-2.5-pro" -p "要約してください" # デバッグモード echo "質問内容" | gemini -d -p "説明してください"
-m, --model: 使用するモデル(デフォルト: "gemini-2.5-pro")-p, --prompt: プロンプト(標準入力に追加される)-s, --sandbox: サンドボックスモードで実行-d, --debug: デバッグモード-a, --all_files: すべてのファイルをコンテキストに含める-y, --yolo: すべてのアクションを自動的に承認(YOLOモード)# Flutter環境確認 flutter doctor # 依存関係インストール flutter pub get # iOSシミュレーター起動 open -a Simulator # アプリ実行 flutter run # ビルド(リリース) flutter build ios --release
# PATHが通らない場合は~/.config/fish/config.fishに追加 set -gx PATH $PATH /opt/homebrew/bin/flutter/bin # 設定反映 source ~/.config/fish/config.fish
// 悪い例 class TreasureBox { final String status; // "hidden", "found", "opened" } // 良い例 sealed class TreasureBoxState {} class HiddenTreasureBox extends TreasureBoxState { final Vector3 position; } class FoundTreasureBox extends TreasureBoxState { final Vector3 position; final DateTime foundAt; } class OpenedTreasureBox extends TreasureBoxState { final Vector3 position; final DateTime foundAt; final DateTime openedAt; }
# テスト関連 test: flutter test test-unit: flutter test test/unit test-widget: flutter test test/widget test-integration: flutter test integration_test test-coverage: flutter test --coverage genhtml coverage/lcov.info -o coverage/html open coverage/html/index.html # 静的解析・フォーマット lint: flutter analyze dart format --set-exit-if-changed . format: dart format . fix: dart fix --apply # ビルド関連 build-ios: flutter build ios --release build-debug: flutter build ios --debug # 総合チェック check: lint test build-debug check-full: lint test test-integration build-ios test-coverage # 依存関係管理 pub-get: flutter pub get pub-upgrade: flutter pub upgrade pub-outdated: flutter pub outdated # 環境セットアップ setup: pub-get cd ios && pod install # クリーンアップ clean: flutter clean cd ios && rm -rf Pods && rm Podfile.lock reset: clean setup # TDDワークフロー tdd-cycle: test-unit format check
flutter test --coverage genhtml coverage/lcov.info -o coverage/html
# 1. RED: テスト作成(失敗するテスト) # 例:宝箱配置機能のテスト vim test/unit/domain/treasure_box_test.dart # 2. GREEN: 最小限の実装でテストを通す vim lib/domain/entities/treasure_box.dart # 3. テスト実行(単体テスト) make test-unit # 4. REFACTOR: リファクタリング make tdd-cycle # テスト + フォーマット + チェック # 5. 統合テスト(必要に応じて) make test-integration # 6. 最終チェック make check # 7. コミット git add . git commit -m "feat: add treasure box placement domain logic"
feat: 新機能fix: バグ修正test: テスト追加・修正refactor: リファクタリングdocs: ドキュメント更新style: フォーマット修正perf: パフォーマンス改善lib/ ├── main.dart ├── presentation/ │ ├── pages/ │ ├── widgets/ │ └── providers/ ├── application/ │ └── use_cases/ ├── domain/ │ ├── entities/ │ ├── value_objects/ │ └── repositories/ └── infrastructure/ ├── ar/ └── repositories/ test/ ├── unit/ ├── widget/ └── fixtures/ integration_test/