flutter-china-deploy
- Repo stars 0
- Author updated Live
- Author repo skills-registry
- Domain
- DevOps
- Compatible agents
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- Trust score
- 88 / 100 · community maintained
- Author / version / license
- @tomevault-io · no license declared
- Token usage
- Lean
- Setup complexity
- Guided setup
- External API key
- Not required
- Operating systems
- macOS
- Runtime requirements
- No special requirements
- Permissions
-
- Read-only
- Shell exec
- Write / modify
- Network behavior
- Local-only
- Install commands
- 26 variants
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: flutter-china-deploy
description: 当用户需要部署 Flutter 项目时,按以下步骤执行: 在终端执行或写入 ~/.zshrc: export PUBHOSTEDURL=https://pub.flutter-io.cn ex…
category: devops
runtime: no special runtime
---
# flutter-china-deploy output preview
## PART A: Task fit
- Use case: 当用户需要部署 Flutter 项目时,按以下步骤执行: 在终端执行或写入 ~/.zshrc: export PUBHOSTEDURL=https://pub.flutter-io.cn export FLUTTERSTORAGEBASE_URL=https://storage.flutter-io.cn fvm install stable runs entirely locally. Works with Claude Code, Cursor, Cline and 23 more..
- Inputs: target material, constraints, expected output, and acceptance criteria.
- Evidence boundary: follow “快速开始 / 1. 设置环境变量镜像 / 2. 项目初始化 (FVM 版)” and do not present inference as author intent.
## PART B: Execution result
- **01** The card summarizes the use case; runtime output centers on “当用户需要部署 Flutter 项目时,按以下步骤执行: 在终端执行或写入 ~/.zshrc: export PUBHOSTEDURL=https://pub.flutter-io.cn export FLUTTERSTORAGEBASE_URL=https://storage.flutter-io.cn fvm install stable runs entirely locally. Works with Claude Code, Cursor, Cline and 23 more.”.
- **02** When the source has headings, the agent prioritizes “快速开始 / 1. 设置环境变量镜像 / 2. 项目初始化 (FVM 版)” so the result follows the author’s structure.
- **03** Typical output includes task judgment, concrete steps, required commands or file edits, validation, and follow-up options.
- **04** Risk context follows the fingerprint: read files, run shell commands, write/modify files; mostly runs locally; usually needs no extra API key.
## Running Rules
- read files, run shell commands, write/modify files; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding scope.
- Return the result, validation criteria, and next iteration options. The source mentions slash commands such as `/path`; use them first when your agent supports command triggers.
Name target files or source material, expected output, forbidden changes, and whether network or shell access is allowed. Permission fingerprint: read files, run shell commands, write/modify files.
Start with a small task and check whether the result follows “快速开始 / 1. 设置环境变量镜像 / 2. 项目初始化 (FVM 版)”. Inspect diffs, logs, previews, or tests before expanding scope.
Confirm the final output includes a concrete result, evidence, and next action. If it stays generic, tighten inputs, boundaries, and acceptance criteria.
---
name: flutter-china-deploy
description: 当用户需要部署 Flutter 项目时,按以下步骤执行: 在终端执行或写入 ~/.zshrc: export PUBHOSTEDURL=https://pub.flutter-io.cn ex…
category: devops
source: tomevault-io/skills-registry
---
# flutter-china-deploy
## When to use
- 当用户需要部署 Flutter 项目时,按以下步骤执行: 在终端执行或写入 ~/.zshrc: export PUBHOSTEDURL=https://pub.flutter-io.cn export FLUTTERSTORAGEBAS…
- Use it when the task has clear inputs, repeatable steps, and validation criteria.
## What to provide
- Target material, scope, expected result, and forbidden changes.
- Whether network, commands, file writes, or external services are allowed.
## Execution rules
- Organize steps around “快速开始 / 1. 设置环境变量镜像 / 2. 项目初始化 (FVM 版)” and keep inference separate from source facts.
- read files, run shell commands, write/modify files; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding the task.
## Output requirements
- Return the deliverable, key evidence, validation method, and next action.
- Mark missing information as unknown; do not invent commands, platforms, or dependencies. The author source anchors workflow facts; repository files anchor sources and commands; Fluxly only adds fit, limitations, and quality judgment.
skill "flutter-china-deploy" {
input -> user goal + target files + boundaries + acceptance criteria
context -> 快速开始 / 1. 设置环境变量镜像 / 2. 项目初始化 (FVM 版)
rules -> SKILL.md triggers / order / output contract
runtime -> no special runtime | read files, run shell commands, write/modify files | mostly runs locally
guardrails -> usually needs no extra API key + small-sample validation + diff/log review
output -> copyable result + checklist + next iteration
} Flutter 中国环境部署加速
快速开始
当用户需要部署 Flutter 项目时,按以下步骤执行:
1. 设置环境变量镜像
在终端执行或写入 ~/.zshrc:
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
2. 项目初始化 (FVM 版)
fvm install stable
fvm use stable --force
fvm flutter pub get
Gradle 配置优化
gradle-wrapper.properties
修改 android/gradle/wrapper/gradle-wrapper.properties:
distributionUrl=https\://mirrors.cloud.tencent.com/gradle/gradle-8.10.2-all.zip
settings.gradle.kts
在 android/settings.gradle.kts 的 repositories 块添加:
repositories {
maven { url = uri("https://storage.flutter-io.cn/download.flutter.io") }
maven { url = uri("https://maven.aliyun.com/repository/google") }
maven { url = uri("https://maven.aliyun.com/repository/public") }
maven { url = uri("https://maven.aliyun.com/repository/gradle-plugin") }
google()
mavenCentral()
}
build.gradle.kts
在 android/build.gradle.kts 同样配置 Maven 镜像。
gradle.properties
在 android/gradle.properties 添加优化配置:
kotlin.compiler.execution.strategy=in-process
org.gradle.daemon=false
android.useAndroidX=true
android.enableJetifier=true
Android SDK 配置
local.properties
创建或修改 android/local.properties:
sdk.dir=/Volumes/MacOS/Android/sdk
环境变量
在 ~/.zshrc 添加:
export ANDROID_HOME=/Volumes/MacOS/Android/sdk
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
运行项目
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn && \
export PUB_HOSTED_URL=https://pub.flutter-io.cn && \
fvm flutter run -d <设备ID>
常见问题排查
| 错误信息 | 解决方案 |
|---|---|
| Timeout waiting to lock build logic queue | pkill -f gradle 并删除 android/.gradle |
| Could not find io.flutter:... | 检查 settings.gradle.kts 是否包含 download.flutter.io 镜像 |
| Operation not permitted | 检查 GRADLE_USER_HOME 路径权限 |
配置脚本
使用 scripts/configure_mirrors.py 自动配置:
# 检查当前配置状态
python3 scripts/configure_mirrors.py --check
# 配置 Shell 环境变量
python3 scripts/configure_mirrors.py --shell
# 配置 Gradle 镜像 (指定项目路径)
python3 scripts/configure_mirrors.py --project /path/to/flutter/project --gradle
# 执行所有配置
python3 scripts/configure_mirrors.py --project /path/to/flutter/project --all
Source: boshi-xixixi/TraeSkill — distributed by TomeVault.
Decide Fit First
Design Intent
How To Use It
Boundaries And Review