Example 移动端 Patt
- 作者仓库星标 0
- 作者仓库 skills-registry
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
// 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
// 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)
// Example: SwiftUI with @State
struct ContentView: View {
@State private var data: String = ""
var body: some View {
Text(data)
}
}
Option D: Native Android (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 templates and structure
- state-management.md - State management patterns
- navigation-patterns.md - Navigation flows
- testing-patterns.md - Testing strategies
Common Anti-Patterns to Avoid (CUSTOMIZE THIS)
Add framework-specific anti-patterns here:
- ❌ [Anti-pattern 1 for your framework]
- ❌ [Anti-pattern 2 for your framework]
- ❌ [Anti-pattern 3 for your framework]
Dependencies Reference (CUSTOMIZE THIS)
{
"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
- Copy this directory to a new skill (e.g.,
mobile-react-native-patterns) - Update frontmatter with your skill name and description
- Replace all examples with your framework's patterns
- Create detailed guides in separate .md files
- Update the architect subagent to reference this skill
- Delete this template or move it to
drafts/skills/
<!-- tomevault:4.0:skill_md:2026-05-22 -->Source: CarlosDanielDev/maestro — distributed by TomeVault.
- 流狐分类
- 通用
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @tomevault-io · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 即装即用
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- 未声明
- 底层运行要求
- 未声明
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 Aspect · Details Consumer · subagent-mobile-architect Purpose · Code patterns and examples for mobile implementation
Replace this section with your framework-specific requirements:
Option A: React Native
Option B: Flutter
Option C: Native iOS (Swift)
Option D: Native Android (Kotlin)
# 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] |
… 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Skill Usage → Step 1: Choose Your Framework → Option A: React Native → Option B: Flutter → Option C: Native iOS (Swift) → Option D: Native Android (Kotlin)
要点 -> Consumer · Purpose · Invocation · How to Customize · State · Navigation · UI · Testing
文件/命令 -> subagent-mobile-architect · mobile-react-native-patterns · drafts/skills/ · component-patterns.md · state-management.md · navigation-patterns.md · testing-patterns.md · drafts/skills
内容 SHA-256 -> 70f185845588
方法与流程
适用与边界
原文中的明确线索
subagent-mobile-architect、mobile-react-native-patterns、drafts/skills/、component-patterns.md、state-management.md、navigation-patterns.md、testing-patterns.md、drafts/skills