移动模式示例
- 作者仓库星标 0
- 作者仓库 skills-registry
- 领域
- 通用
- 作者声明的智能体
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 运行环境证据
- 未执行;当前没有隔离运行测试证据
- 作者 / 版本 / 许可证
- @tomevault-io · 未声明许可证
- 上下文用量评级
- 低消耗
- 接入复杂程度
- 即装即用
- 是否需要外部接口密钥
- 不需要
- 兼容的系统
- 未声明(默认跨平台)
- 运行环境要求
- 未检出明确要求
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
需要注意: 未声明工具权限范围;实际权限由运行环境决定。
第 1 步:选择您的框架
将此部分替换为您的框架特定要求:
# Mobile Patterns (TEMPLATE)
**This is a TEMPLATE skill. Copy this directory and customize it for your mobile framework.**
Quick reference for mobile development patterns. For detailed examples, see linked guides.
## Skill Usage
| Aspect | Details |
|--------|---------|
| **Consumer** | `subagent-mobile-architect` |
| **Purpose** | Code patterns and examples for mobile implementation |
| **Invocation** | Subagents read this skill; NOT directly invocable by users |
| **How to Customize** | Replace examples below with your framework's patterns |
---
## Step 1: Choose Your Framework
Replace this section with your framework-specific requirements:
### Option A: React Native
```typescript
// Example: Redux with hooks
import { useSelector, useDispatch } from 'react-redux'
const MyComponent = () => {
const data = useSelector(state => state.feature.data)
const dispatch = useDispatch()
return <View>...</View>
}
```
### Option B: Flutter
```dart
// Example: Provider pattern
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
final data = Provider.of<DataModel>(context);
return Container(...);
}
}
```
### Option C: Native iOS (Swift)
```swift
// Example: SwiftUI with @State
struct ContentView: View {
@State private var data: String = ""
var body: some View {
Text(data)
}
}
```
### Option D: Native Android (Kotlin)
```kotlin
// Example: Jetpack Compose
@Composable
fun MyScreen(viewModel: MyViewModel = viewModel()) {
val data by viewModel.data.collectAsState()
Text(text = data)
}
```
---
## Critical Stack Requirements (CUSTOMIZE THIS)
| Feature | Your Pattern | Not Allowed |
|---------|--------------|-------------|
| **State** | [Your state management] | [What to avoid] |
| **Navigation** | [Your navigation library] | [What to avoid] |
| **UI** | [Your UI library] | [What to avoid] |
| **Testing** | [Your testing framework] | [What to avoid] |
---
## Quick Patterns Reference (CUSTOMIZE THIS)
### Component Structure
```
[Your framework's component structure example]
```
### State Management
```
[Your state management pattern example]
```
### Navigation
```
[Your navigation pattern example]
```
### Testing
```
[Your testing pattern example]
```
---
## Detailed Guides
When you need specific implementation details, read:
- **[component-patterns.md](component-patterns.md)** - Component templates and structure
- **[state-management.md](state-management.md)** - State management patterns
- **[navigation-patterns.md](navigation-patterns.md)** - Navigation flows
- **[testing-patterns.md](testing-patterns.md)** - Testing strategies
---
## Common Anti-Patterns to Avoid (CUSTOMIZE THIS)
Add framework-specific anti-patterns here:
1. ❌ [Anti-pattern 1 for your framework]
2. ❌ [Anti-pattern 2 for your framework]
3. ❌ [Anti-pattern 3 for your framework]
---
## Dependencies Reference (CUSTOMIZE THIS)
```json
{
"your-framework": "Core framework",
"your-state-library": "State management",
"your-navigation-library": "Navigation",
"your-testing-framework": "Testing"
}
```
---
## When to Consult This Skill
- Designing mobile component architecture
- Implementing state management
- Creating navigation flows
- Setting up mobile testing
- Platform-specific implementations
---
## Customization Instructions
1. **Copy this directory** to a new skill (e.g., `mobile-react-native-patterns`)
2. **Update frontmatter** with your skill name and description
3. **Replace all examples** with your framework's patterns
4. **Create detailed guides** in separate .md files
5. **Update the architect subagent** to reference this skill
6. **Delete this template** or move it to `drafts/skills/`
---
> Source: [CarlosDanielDev/maestro](https://github.com/CarlosDanielDev/maestro) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-05-22 -->
章节与文件索引
按说明文件中的顺序排列。
技能使用
第 1 步:选择您的框架
关键堆栈要求(自定义)
详细指南
要避免的常见反模式(自定义)
文件/命令 -> subagent-mobile-architect · mobile-react-native-patterns · drafts/skills/ · component-patterns.md · state-management.md · navigation-patterns.md · testing-patterns.md · drafts/skills
内容校验值 -> 70f185845588
当前原文的自动摘译,尚未人工审校。
技能使用
方面·详细信息消费者·
subagent-mobile-architect目的·移动实现的代码模式和示例调用·子代理阅读此技能;用户不能直接调用 如何自定义 · 将下面的示例替换为您的框架的模式关键堆栈要求(自定义)
功能 · 你的模式 · 不允许的状态 · [你的状态管理] · [要避免什么] 导航 · [你的导航库] · [要避免什么] UI · [你的 UI 库] · [要避免什么] 测试 · [你的测试框架] · [要避免什么]
详细指南
当您需要具体的实现细节时,请阅读:component-patterns.md - 组件模板和结构 state-management.md - 状态管理模式 navigation-patterns.md - 导航流程testing-patterns.md - 测试策略
要避免的常见反模式(自定义)
在此处添加特定于框架的反模式: ❌ [您的框架的反模式 1] ❌ [您的框架的反模式 2] ❌ [您的框架的反模式 3]