tolyfx/fx/fx-boot-starter-usage
Claude Code and agent skill by tolyfx/fx
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
使用 fx_boot_starter 接入 App 启动流程。适用于需要闪屏页、初始化异步任务、启动状态管理的场景。
Install
npx vskill@latest install tolyfx/fx/fx-boot-starter-usageSKILL.md
fx_boot_starter 使用指南
适用版本
fx_boot_starter: 0.2.0
环境检测
检查项目是否包含 fx_boot_starter 依赖。
- 没有 → 添加依赖
- 有但版本不同 → 提示用户升级
核心概念
| 概念 | 说明 | |
|---|---|---|
| AppStartRepository\<S\> | 启动数据仓库,实现 initApp() 返回配置 | |
| AppStartAction\<S\> | 生命周期回调(onLoaded/onStartSuccess/onStartError) | |
| FxStarter\<T\> | 应用入口 mixin,组合 Repository + Action + 全局异常捕获 | |
| AppStartScope\<S\> | Widget tree 注入,提供 AppStartBloc | |
| AppStartListener\<S\> | 监听状态变化,触发 Action 回调 | |
| AppStatus | sealed class(Starting/LoadDone/Success/Failed) |
使用流程
代码模板
#[[file:references/boot_starter.md]]
API 速查
| API | 作用 | |
|---|---|---|
MyApp().run() | 启动应用(FxStarter mixin) | |
AppStartScope.of<S>(context) | 获取 AppStartBloc 实例 | |
context.startApp<S>() | 手动触发启动 | |
AppStartScope(minStartDurationMs: 800) | 自定义最小闪屏时间 |
生成指导
- 配置类用
const构造 - Repository 的
initApp()内自由组织初始化顺序 - 无依赖的任务可用
Future.wait并行 onStartSuccess中做页面跳转onStartError中引导用户处理错误onGlobalError中上报未捕获异常- 显式声明所有类型
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingmodules/core/fx_boot_starter/skills/fx-boot-starter-usage/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tolyfx/fx/fx-boot-starter-usage)