jpskill.com
🛠️ 開発・MCP コミュニティ

ios-swift-development

Develop native iOS apps with Swift. Covers MVVM architecture, SwiftUI, URLSession for networking, Combine for reactive programming, and Core Data persistence.

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o ios-swift-development.zip https://jpskill.com/download/21454.zip && unzip -o ios-swift-development.zip && rm ios-swift-development.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/21454.zip -OutFile "$d\ios-swift-development.zip"; Expand-Archive "$d\ios-swift-development.zip" -DestinationPath $d -Force; ri "$d\ios-swift-development.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して ios-swift-development.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → ios-swift-development フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
5

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

iOS Swift 開発

目次

概要

SwiftUI、Combine、async/await パターンなどの最新フレームワークを使用して、Swift で高性能なネイティブ iOS アプリケーションを構築します。

使用場面

  • 最適なパフォーマンスを持つネイティブ iOS アプリケーションを作成する場合
  • iOS 固有の機能と API を活用する場合
  • ハードウェアとの密接な統合を必要とするアプリを構築する場合
  • 宣言型 UI 開発に SwiftUI を使用する場合
  • 複雑なアニメーションとトランジションを実装する場合

クイックスタート

最小限の動作例:

import Foundation
import Combine

struct User: Codable, Identifiable {
  let id: UUID
  var name: String
  var email: String
}

class UserViewModel: ObservableObject {
  @Published var user: User?
  @Published var isLoading = false
  @Published var errorMessage: String?

  private let networkService: NetworkService

  init(networkService: NetworkService = .shared) {
    self.networkService = networkService
  }

  @MainActor
  func fetchUser(id: UUID) async {
    isLoading = true
    errorMessage = nil

// ... (see reference guides for full implementation)

リファレンスガイド

references/ ディレクトリ内の詳細な実装:

ガイド 内容
MVVM Architecture Setup MVVM アーキテクチャのセットアップ
Network Service with URLSession URLSession を使用したネットワークサービス
SwiftUI Views SwiftUI ビュー

ベストプラクティス

✅ 実施すべきこと

  • 最新の UI 開発には SwiftUI を使用する
  • MVVM アーキテクチャを実装する
  • async/await パターンを使用する
  • 機密データを Keychain に保存する
  • エラーを適切に処理する
  • ViewModel には @StateObject を使用する
  • API レスポンスを適切に検証する
  • 永続化には Core Data を実装する
  • 複数の iOS バージョンでテストする
  • 依存性注入を使用する
  • Swift のスタイルガイドラインに従う

❌ 実施すべきでないこと

  • トークンを UserDefaults に保存する
  • メインスレッドでネットワーク呼び出しを行う
  • 非推奨の UIKit パターンを使用する
  • メモリリークを無視する
  • エラー処理をスキップする
  • 強制アンラップ (!) を使用する
  • パスワードをコードに保存する
  • アクセシビリティを無視する
  • テストされていないコードをデプロイする
  • API URL をハードコードする
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

iOS Swift Development

Table of Contents

Overview

Build high-performance native iOS applications using Swift with modern frameworks including SwiftUI, Combine, and async/await patterns.

When to Use

  • Creating native iOS applications with optimal performance
  • Leveraging iOS-specific features and APIs
  • Building apps that require tight hardware integration
  • Using SwiftUI for declarative UI development
  • Implementing complex animations and transitions

Quick Start

Minimal working example:

import Foundation
import Combine

struct User: Codable, Identifiable {
  let id: UUID
  var name: String
  var email: String
}

class UserViewModel: ObservableObject {
  @Published var user: User?
  @Published var isLoading = false
  @Published var errorMessage: String?

  private let networkService: NetworkService

  init(networkService: NetworkService = .shared) {
    self.networkService = networkService
  }

  @MainActor
  func fetchUser(id: UUID) async {
    isLoading = true
    errorMessage = nil

// ... (see reference guides for full implementation)

Reference Guides

Detailed implementations in the references/ directory:

Guide Contents
MVVM Architecture Setup MVVM Architecture Setup
Network Service with URLSession Network Service with URLSession
SwiftUI Views SwiftUI Views

Best Practices

✅ DO

  • Use SwiftUI for modern UI development
  • Implement MVVM architecture
  • Use async/await patterns
  • Store sensitive data in Keychain
  • Handle errors gracefully
  • Use @StateObject for ViewModels
  • Validate API responses properly
  • Implement Core Data for persistence
  • Test on multiple iOS versions
  • Use dependency injection
  • Follow Swift style guidelines

❌ DON'T

  • Store tokens in UserDefaults
  • Make network calls on main thread
  • Use deprecated UIKit patterns
  • Ignore memory leaks
  • Skip error handling
  • Use force unwrapping (!)
  • Store passwords in code
  • Ignore accessibility
  • Deploy untested code
  • Use hardcoded API URLs

同梱ファイル

※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。