用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/xuelongqy/flutter_easy_refresh --skill flutter-environment-setup-macos命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | flutter-environment-setup-macos |
| description | Set up a macOS environment for Flutter development |
| metadata | {"model":"models/gemini-3.1-pro-preview","last_modified":"Thu, 26 Feb 2026 23:40:36 GMT"} |
Configures a macOS development environment for building, running, and deploying Flutter applications. Validates tooling dependencies including Xcode and CocoaPods, and ensures the environment passes Flutter's diagnostic checks for macOS desktop development. Assumes the host operating system is macOS and the user has administrative privileges.
Verify Flutter Installation Check if Flutter is installed and accessible in the current environment.
flutter --version
Decision Logic:
Verify Xcode Installation Ensure Xcode is installed on the macOS system.
xcodebuild -version
Decision Logic:
Configure Xcode Command-Line Tools Link the Xcode command-line tools to the installed version of Xcode and run the first-launch setup. STOP AND ASK THE USER: "I need to configure Xcode command-line tools. This requires administrative privileges. Please run the following command in your terminal and confirm when done:"
sudo sh -c 'xcode-select -s /Applications/Xcode.app/Contents/Developer && xcodebuild -runFirstLaunch'
(Note: If the user installed Xcode in a non-standard directory, instruct them to replace /Applications/Xcode.app with their custom path).
Accept Xcode Licenses The Xcode license agreements must be accepted before compilation can occur. STOP AND ASK THE USER: "Please run the following command to review and accept the Xcode license agreements:"
sudo xcodebuild -license
Install CocoaPods CocoaPods is required for Flutter plugins that utilize native macOS code. Check if CocoaPods is installed:
pod --version
Decision Logic:
sudo gem install cocoapods
Validate Setup (Validate-and-Fix Loop) Run the Flutter diagnostic tool to check for any remaining macOS toolchain issues.
flutter doctor -v
Decision Logic:
flutter doctor -v.Verify Device Availability Ensure Flutter can detect the macOS desktop as a valid deployment target.
flutter devices
Verify that at least one entry in the output has "macos" listed as the platform. If it is missing, instruct the user to enable macOS desktop support:
flutter config --enable-macos-desktop
sudo commands automatically; always pause and provide the exact command for the user to execute.flutter doctor Xcode section is completely clear of errors before considering the skill complete.