Xcode Cliのロゴ

Xcode Cli

コミュニティ
dazuiba
xcode-cli

Xcode IDE interaction skill. Uses the xcode-cli CLI to build, diagnose, test, preview, and edit Xcode projects via MCP. Use when the user asks to build an Xcode project, view build errors, run diagnostics, run tests, render SwiftUI previews, search Apple documentation, or manage project files.

概要

公開者dazuiba
リポジトリxcode-cli-skill
スキル名xcode-cli
スター
42
フォーク
4
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    dazuibaがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルXcode CliをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/dazuiba/xcode-cli-skill/tree/main/skills/xcode-cli
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dazuiba/xcode-cli-skill.git /tmp/xcode-cli-skill
mkdir -p .claude/skills
cp -r /tmp/xcode-cli-skill/skills/xcode-cli .claude/skills/xcode-cli
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでXcode Cliを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にXcode Cliを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Xcode Cliは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

xcode-cli Skill

Interact with Xcode through the xcode-cli CLI backed by the Xcode MCP bridge.

Prerequisites

  • Xcode 26.3 or later is installed and open with the target project
  • xcode-cli is installed: npm install -g xcode-cli
  • Bridge running: xcode-cli-ctl install (background) or xcode-cli-ctl run (foreground)

Commands

All commands: xcode-cli <cmd> [args]. When run from a project directory the matching Xcode tab is auto-selected. Use --tab <tabIdentifier> to override, or run xcode-cli windows to list available tabs. Add --json for JSON output.

CommandUsageNotes
windowswindowsList tabs/workspaces; get tabIdentifier
statusstatusQuick project status (windows + issues)
buildbuildBuild project
build-logbuild-log --severity errorView build errors
runrunBuild first, then run if build succeeds; returns JSON with build errors on failure
run-without-buildrun-without-buildRun without building (like Ctrl+Cmd+R)
issuesissues --severity errorNavigator issues
file-issuesfile-issues "MyApp/Sources/MyFile.swift"Single-file diagnostics, no full build
testtest all / test list [--json] / test some "Target::Class/method()"Run/list tests
previewpreview "MyApp/Sources/MyView.swift" --out ./outSwiftUI preview (requires #Preview macro)
snippetsnippet "MyApp/Sources/File.swift" "print(expr)" --purpose "Inspect value"Execute code snippet in file context; --purpose describes why
docdoc "SwiftUI NavigationStack" --frameworks SwiftUISearch Apple documentation
readread "path/to/file"Read file
lsls [-r] /List directory
grepgrep "TODO|FIXME"Search files
globglob "**/*.swift"Find files by pattern
writewrite "path/to/file" "content"Write file
updateupdate "path/to/file" "old" "new" [--replace-all]Edit file
mvmv "Old.swift" "New.swift"Move/rename file
mkdirmkdir "MyApp/Sources/Feature"Create directory
rmrm "MyApp/Sources/Unused.swift"Delete file

Notes

  • File paths are relative to the Xcode project structure, not absolute filesystem paths.
  • If the bridge is not responding: xcode-cli-ctl status then xcode-cli-ctl uninstall && xcode-cli-ctl install.
  • Use xcode-cli call <toolName> --args '{"key":"value"}' to invoke any MCP tool directly.
  • run builds via MCP first; if the build fails, it returns the build error JSON and exits with code 1. On success it triggers run-without-build via AppleScript and returns { buildResult, runTriggered }.
  • run-without-build uses AppleScript to send a keyboard shortcut to Xcode; ensure Accessibility access is granted to Terminal/iTerm in System Settings → Privacy & Security → Accessibility.
  • Testing: use targetName + identifier from test list --json for exact test targeting. test some only runs tests from the active scheme's active test plan — switch scheme in Xcode if a target is missing.

よくある質問

AIスキル「Xcode Cli」では何ができますか?

Xcode IDE interaction skill. Uses the xcode-cli CLI to build, diagnose, test, preview, and edit Xcode projects via MCP. Use when the user asks to build an Xcode project, view build errors, run diagnostics, run tests, render SwiftUI previews, search Apple documentation, or manage project files.

TypingMindでXcode Cliを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Xcode Cliはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにXcode Cliをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/dazuiba/xcode-cli-skill/tree/main/skills/xcode-cliを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Xcode Cliを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Xcode Cliは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもXcode Cliを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Xcode Cli」は無料ですか?

はい。dazuibaがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇