TraeSkill: Skill for Claude Code

.trae/Skills/03_Mobile_FlutterChinaDeploy/SKILL.md

flutter-china-deploy is a skill for Claude Code, Codex from boshi-xixixi/TraeSkill. It costs 75 tokens per session (808 once invoked), scanned A, original, MIT.

A guide for setting up and deploying Flutter projects in mainland China with package and build-tool mirrors. Mirrors are alternate download locations that can make dependency and SDK downloads more accessible or faster.

In plain words
What is it for?
Use it to configure Flutter and Gradle mirrors, initialize a Flutter version with FVM, set Android build repositories, and prepare a Flutter app to run or deploy in China.
Why use it?
It helps when Flutter packages, Gradle, or Android dependencies are slow to download or time out because of network access problems.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

This is boshi-xixixi/TraeSkill's own configuration. It tells Claude Code and Codex how to work on TraeSkill itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything TraeSkill configures →

Reuse

Borrowing it

Nothing to install: this file belongs to boshi-xixixi/TraeSkill. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/boshi-xixixi/TraeSkill/main/.trae/Skills/03_Mobile_FlutterChinaDeploy/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/boshi-xixixi/TraeSkill

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for flutter-china-deploy

README.md
[![agentmods](https://agentmods.dev/badge/skills/boshi-xixixi/traeskill/03_mobile_flutterchinadeploy/github.svg)](https://agentmods.dev/skills/boshi-xixixi/traeskill/03_mobile_flutterchinadeploy)
Your own site
<a href="https://agentmods.dev/skills/boshi-xixixi/traeskill/03_mobile_flutterchinadeploy"><img src="https://agentmods.dev/badge/skills/boshi-xixixi/traeskill/03_mobile_flutterchinadeploy/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for flutter-china-deploy

Your own site · 80×15
<a href="https://agentmods.dev/skills/boshi-xixixi/traeskill/03_mobile_flutterchinadeploy"><img src="https://agentmods.dev/badge/skills/boshi-xixixi/traeskill/03_mobile_flutterchinadeploy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 808 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00075 $0.00808
Opus 5.5 $0.00030 $0.00323
Sonnet 5.5 $0.00015 $0.00162
Haiku 4.5 $0.00007 $0.00081

Measured 8d ago against content hash 00bb21a948be, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

flutter-china-deploy scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/configure_mirrors.py, scripts/quick_deploy.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.trae/Skills/03_Mobile_FlutterChinaDeploy/SKILL.md · 121 lines

How it starts

The opening of the file, as written. The whole thing — 121 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 自动配置:

Read the full file on GitHub · 121 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 121 lines · 75 tokens per session scan A 00bb21a948be

Subscribe to this mod's changes

flutter-china-deploy is a skill published in the GitHub repository boshi-xixixi/TraeSkill (288 stars, last pushed 9d ago), licensed MIT. It adds 75 tokens to every session and 808 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-22.

Related

flutter-china-deploy compared with skills from other repositories

flutter-china-deploy next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
flutter-china-deployboshi-xixixi/TraeSkillSkill2889d agoMITA75Claude Code, Codex
expo-app-initializerichkuo/rk-skillsSkill50todayMITA70Claude Code, Codex
t-flutter-demo-run-alltimzaak/web-dev-skillsSkill107yesterdayApache-2.0A20Claude Code
android_ui_verificationranbot-ai/awesome-skillsSkill15yesterdaynoneA22Claude Code, Codex
cocos-creator-adaptationWade-DevCode/awesome-coding-skills-cnSkill75mo agoMITA30Claude Code, Codex
<skill-name>Lion-1209/Lion-SkillsSkill55mo agoMITA82Claude Code
build-mobileSarthib7/agentsmithSkill111mo agononeB69Codex