Flutter China Environment Setup for Openclaw

A comprehensive automation skill designed to configure a fully functional Flutter development environment on macOS specifically optimized for developers in China.

wjneng
v0.0.1
Mar 24, 2026
0
810
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install flutter-cn-setup

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install flutter-cn-setup using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Flutter China Environment Setup?

The Flutter China Environment Setup is a robust Openclaw Skills integration designed to handle the complexities of installing Flutter in regions with restricted network access. It automates the configuration of essential Chinese mirrors for the Flutter SDK and Dart packages, ensuring high-speed downloads and reliable updates. Beyond simple installation, the skill manages the entire toolchain, including Android Studio, Xcode, CocoaPods, and system PATH variables.

By utilizing specialized bootstrap and validation scripts, this skill transforms the often tedious process of environment initialization into a predictable, repeatable workflow. It focuses on achieving a clean flutter doctor status, providing developers with a ready-to-code environment that bridges the gap between hardware setup and mobile application development.

Flutter China Environment Setup Use Cases

  • Initializing a high-performance Flutter development environment on a brand new macOS device.
  • Configuring official Chinese mirrors for stable Flutter and Dart package management to bypass network latency.
  • Resolving persistent flutter doctor issues related to Android toolchains or missing licenses.
  • Automating the setup of iOS and Android build environments for team-wide development consistency.
  • Validating existing installations to ensure all dependencies and system paths are correctly configured.

How Flutter China Environment Setup Works

  1. The skill performs a system diagnosis to identify chip architecture (Intel or Apple Silicon) and existing toolchain status.
  2. It configures persistent environment variables in the shell profile for PUB_HOSTED_URL and FLUTTER_STORAGE_BASE_URL.
  3. Essential CLI tools like git, curl, and xz are installed via Homebrew to support SDK operations.
  4. The Flutter SDK is cloned from the stable branch into the development directory and added to the system PATH.
  5. The skill executes precache and doctor commands to initialize the SDK and identify missing platform requirements.
  6. It provides guided steps or automated scripts to finalize Android SDK licenses and Xcode dependencies.
  7. A smoke test is performed by creating and running a sample project to ensure end-to-end functionality.

Flutter China Environment Setup Setup

To deploy this skill using Openclaw Skills, navigate to the skill directory and execute the bootstrap script:

cd .cursor/skills/flutter-cn-setup
bash scripts/bootstrap-flutter-cn.sh

For users only requiring Android development tools, use the following command:

NEED_IOS=no bash scripts/bootstrap-flutter-cn.sh

To verify the installation after setup:

bash scripts/validate-flutter-cn.sh

Flutter China Environment Setup Data Schema & Taxonomy

The skill organizes its operations and tracking using the following structure:

Component Path/Detail Purpose
SDK Location ~/development/flutter Default installation path for the Flutter SDK.
Config File ~/.zshrc Stores persistent mirror URLs and PATH exports.
Validation Script scripts/validate-flutter-cn.sh Generates a PASS/FAIL report for environment readiness.
Sample Project ~/hello_flutter_cn A generated project used for end-to-end smoke testing.

Flutter China Environment Setup Advanced Features

  • Idempotent configuration: Safely re-run scripts without duplicating PATH entries or corrupting existing profiles.
  • Custom Environment Variables: Override installation directories or shell profile locations using FLUTTER_DIR and SHELL_PROFILE.
  • Selective Toolchain Provisioning: Toggle iOS or Android requirements based on specific project needs using NEED_IOS and NEED_ANDROID flags.
  • Automated License Management: Batch processing of Android SDK licenses to reduce manual intervention.
  • Detailed Diagnostic Output: Comprehensive error logging with mapped troubleshooting steps for common Chinese network issues.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*