用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/oimiragieo/agent-studio --skill flutter-expert命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
Agent frontmatter enhancements — disallowedTools, mcpServers scoping, fork_eligible field
Context management — pre-compact persistence, threshold alignment, microcompact/circuit breaker detection
Hook enhancements — updatedInput for bash safety prefixes, suppressOutput for verbose blocks, denial-based routing feedback
| name | flutter-expert |
| version | 1.1.0 |
| category | Mobile |
| agents | ["developer","expo-mobile-developer"] |
| tags | ["flutter","dart","mobile","cross-platform","widgets"] |
| description | Flutter and Dart expert including widgets, state management, and platform integration |
| model | sonnet |
| invoked_by | both |
| user_invocable |
| true |
| tools | ["Read","Write","Edit","Bash","Grep","Glob"] |
| consolidated_from | 1 skills |
| best_practices | ["Follow domain-specific conventions","Apply patterns consistently","Prioritize type safety and testing"] |
| error_handling | graceful |
| streaming | supported |
| verified | true |
| lastVerifiedAt | "2026-02-22T00:00:00.000Z" |
| source | builtin |
| trust_score | 100 |
| provenance_sha | 049d6e12292ac1e4 |
When reviewing or writing code, apply these guidelines:
When reviewing or writing code, apply these guidelines:
When reviewing or writing code, apply these guidelines:
When reviewing or writing code, apply these guidelines:
When reviewing or writing code, apply these guidelines:
This expert skill consolidates 1 individual skills:
const constructors for widgets that don't depend on mutable state — non-const widgets rebuild on every parent rebuild, causing unnecessary repaints and dropped frames.build() — async calls in build() fire on every rebuild, causing duplicate network requests, race conditions, and unpredictable UI state.setState for shared state that spans multiple widgets — setState only rebuilds the local widget subtree; shared state must be lifted to a state management layer.! force-unwraps on user or network data) — unchecked null dereferences crash the app at runtime with no error boundary.| Anti-Pattern | Why It Fails | Correct Approach |
|---|---|---|
| Non-const stateless widgets | Rebuilt on every parent setState; wastes frame budget | Add const to all stateless widget constructors and their instantiation |
Calling Future in build() | Re-fires on every rebuild; duplicates API calls and causes flickering | Use FutureBuilder with a stored Future field initialized in initState |
| Business logic in widgets | Untestable; coupled to widget lifecycle; duplicated across screens | Move logic to BLoC/Cubit or Riverpod providers; widgets observe state only |
setState for cross-widget state | Only rebuilds local subtree; sibling widgets stay stale | Use InheritedWidget, Provider, or BLoC streams for shared state |
| Force-unwrapping nullable API data | Runtime null crash with no recovery path | Use null-aware operators (?., ??) and handle null states explicitly in UI |
Before starting:
cat .claude/context/memory/learnings.md
After completing: Record any new patterns or exceptions discovered.
ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.