@buivietphi/skill-mobile-mt 1.0.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of @buivietphi/skill-mobile-mt might be problematic. Click here for more details.
- package/AGENTS.md +54 -25
- package/README.md +195 -42
- package/SKILL.md +5 -3
- package/bin/install.mjs +437 -5
- package/package.json +7 -2
- package/shared/architecture-intelligence.md +416 -0
package/AGENTS.md
CHANGED
|
@@ -6,16 +6,16 @@
|
|
|
6
6
|
|
|
7
7
|
## Agent Compatibility Matrix
|
|
8
8
|
|
|
9
|
-
| Agent |
|
|
10
|
-
|
|
11
|
-
| Claude Code | `~/.claude/skills
|
|
12
|
-
| Codex | `~/.codex/skills
|
|
13
|
-
| Gemini CLI | `~/.gemini/skills
|
|
14
|
-
| Kimi | `~/.kimi/skills
|
|
15
|
-
| Cursor |
|
|
16
|
-
| Copilot |
|
|
17
|
-
| Windsurf |
|
|
18
|
-
| Antigravity | `~/.agents/skills
|
|
9
|
+
| Agent | How it loads rules | Setup | Think Block |
|
|
10
|
+
|-------|-------------------|-------|-------------|
|
|
11
|
+
| Claude Code | `~/.claude/skills/` (auto) | `npx skill-mobile-mt --claude` | `<think>...</think>` |
|
|
12
|
+
| Codex | `~/.codex/skills/` (auto) | `npx skill-mobile-mt --codex` | `<think>...</think>` |
|
|
13
|
+
| Gemini CLI | `~/.gemini/skills/` (auto) | `npx skill-mobile-mt --gemini` | `## Thinking:` block |
|
|
14
|
+
| Kimi | `~/.kimi/skills/` (manual) | `npx skill-mobile-mt --kimi` | `【思考】` or markdown |
|
|
15
|
+
| **Cursor** | **`.cursorrules` in project root** | **`npx skill-mobile-mt --init cursor`** | Inline reasoning |
|
|
16
|
+
| **Copilot** | **`.github/copilot-instructions.md`** | **`npx skill-mobile-mt --init copilot`** | `// PLAN:` comments |
|
|
17
|
+
| **Windsurf** | **`.windsurfrules` in project root** | **`npx skill-mobile-mt --init windsurf`** | Inline reasoning |
|
|
18
|
+
| Antigravity | `~/.agents/skills/` (auto) | `npx skill-mobile-mt --antigravity` | Agent-native format |
|
|
19
19
|
|
|
20
20
|
---
|
|
21
21
|
|
|
@@ -53,6 +53,7 @@ skill-mobile-mt/
|
|
|
53
53
|
├── platform-excellence.md ← iOS 18+ vs Android 15+ UX (1,500 tokens)
|
|
54
54
|
├── version-management.md ← SDK compat matrix + release testing (3,500 tokens)
|
|
55
55
|
├── observability.md ← Sessions as 4th pillar (3,000 tokens)
|
|
56
|
+
├── architecture-intelligence.md ← Patterns from 30+ production repos (4,500 tokens)
|
|
56
57
|
├── common-pitfalls.md ← Known issue patterns (1,160 tokens)
|
|
57
58
|
├── release-checklist.md ← App Store/Play Store checklist (587 tokens)
|
|
58
59
|
│
|
|
@@ -136,7 +137,7 @@ The agent reads the task, then decides which extra file to load:
|
|
|
136
137
|
```yaml
|
|
137
138
|
skill:
|
|
138
139
|
name: skill-mobile-mt
|
|
139
|
-
version: "1.
|
|
140
|
+
version: "1.2.0"
|
|
140
141
|
author: buivietphi
|
|
141
142
|
category: engineering
|
|
142
143
|
tags:
|
|
@@ -298,10 +299,23 @@ Priority 6 (ON-DEMAND): shared/common-pitfalls.md — Known issue patterns
|
|
|
298
299
|
- Supports both Chinese and English prompts
|
|
299
300
|
- Think blocks use `【思考】` format
|
|
300
301
|
|
|
301
|
-
### Cursor
|
|
302
|
-
-
|
|
303
|
-
-
|
|
304
|
-
-
|
|
302
|
+
### Cursor
|
|
303
|
+
- **Does NOT read from `~/.cursor/skills/`** — reads `.cursorrules` from project root
|
|
304
|
+
- Run `npx @buivietphi/skill-mobile-mt --init cursor` in your project to generate `.cursorrules`
|
|
305
|
+
- The generated file includes auto-detected framework, rules, and security patterns
|
|
306
|
+
- Think blocks embedded as inline reasoning in Composer
|
|
307
|
+
|
|
308
|
+
### GitHub Copilot
|
|
309
|
+
- **Does NOT read from `~/.copilot/skills/`** — reads `.github/copilot-instructions.md`
|
|
310
|
+
- Run `npx @buivietphi/skill-mobile-mt --init copilot` in your project to generate the file
|
|
311
|
+
- The generated file includes code patterns, required templates, and rules
|
|
312
|
+
- Think blocks as `// PLAN:` comments before code
|
|
313
|
+
|
|
314
|
+
### Windsurf
|
|
315
|
+
- **Does NOT read from `~/.windsurf/skills/`** — reads `.windsurfrules` from project root
|
|
316
|
+
- Run `npx @buivietphi/skill-mobile-mt --init windsurf` in your project to generate `.windsurfrules`
|
|
317
|
+
- The generated file includes coding rules, security rules, and architecture patterns
|
|
318
|
+
- Think blocks as inline reasoning
|
|
305
319
|
|
|
306
320
|
### Antigravity
|
|
307
321
|
- Orchestrator loads based on detected project type
|
|
@@ -339,6 +353,8 @@ Copy the relevant section to your project to enable auto-check rules in every se
|
|
|
339
353
|
|
|
340
354
|
## Installation Paths
|
|
341
355
|
|
|
356
|
+
### Skill directory install (agents that read from skills/)
|
|
357
|
+
|
|
342
358
|
```bash
|
|
343
359
|
# Claude Code (global)
|
|
344
360
|
~/.claude/skills/skill-mobile-mt/
|
|
@@ -355,15 +371,6 @@ Copy the relevant section to your project to enable auto-check rules in every se
|
|
|
355
371
|
# Kimi
|
|
356
372
|
~/.kimi/skills/skill-mobile-mt/
|
|
357
373
|
|
|
358
|
-
# Cursor
|
|
359
|
-
~/.cursor/skills/skill-mobile-mt/
|
|
360
|
-
|
|
361
|
-
# Windsurf
|
|
362
|
-
~/.windsurf/skills/skill-mobile-mt/
|
|
363
|
-
|
|
364
|
-
# Copilot
|
|
365
|
-
~/.copilot/skills/skill-mobile-mt/
|
|
366
|
-
|
|
367
374
|
# Antigravity (shared agent directory)
|
|
368
375
|
~/.agents/skills/skill-mobile-mt/
|
|
369
376
|
|
|
@@ -371,6 +378,28 @@ Copy the relevant section to your project to enable auto-check rules in every se
|
|
|
371
378
|
npx @buivietphi/skill-mobile-mt --path /your/custom/path
|
|
372
379
|
```
|
|
373
380
|
|
|
381
|
+
### Project-level files (agents that read from project root)
|
|
382
|
+
|
|
383
|
+
These agents read rules from project-level files, NOT from a skills directory.
|
|
384
|
+
Use `--init` to generate them:
|
|
385
|
+
|
|
386
|
+
```bash
|
|
387
|
+
# Generate all project-level files (interactive selector)
|
|
388
|
+
npx @buivietphi/skill-mobile-mt --init
|
|
389
|
+
|
|
390
|
+
# Generate specific agent file
|
|
391
|
+
npx @buivietphi/skill-mobile-mt --init cursor # → .cursorrules
|
|
392
|
+
npx @buivietphi/skill-mobile-mt --init copilot # → .github/copilot-instructions.md
|
|
393
|
+
npx @buivietphi/skill-mobile-mt --init windsurf # → .windsurfrules
|
|
394
|
+
npx @buivietphi/skill-mobile-mt --init all # → all three files
|
|
395
|
+
```
|
|
396
|
+
|
|
397
|
+
**What `--init` does:**
|
|
398
|
+
1. Auto-detects your project (framework, language, state management, etc.)
|
|
399
|
+
2. Generates rules files pre-filled with your detected stack
|
|
400
|
+
3. Includes all mobile best practices, security rules, and quality gates
|
|
401
|
+
4. Won't overwrite existing files (safe to run multiple times)
|
|
402
|
+
|
|
374
403
|
---
|
|
375
404
|
|
|
376
405
|
## Metadata
|
|
@@ -379,7 +408,7 @@ npx @buivietphi/skill-mobile-mt --path /your/custom/path
|
|
|
379
408
|
{
|
|
380
409
|
"id": "skill-mobile-mt",
|
|
381
410
|
"name": "skill-mobile-mt",
|
|
382
|
-
"version": "1.
|
|
411
|
+
"version": "1.2.0",
|
|
383
412
|
"author": "buivietphi",
|
|
384
413
|
"category": "engineering",
|
|
385
414
|
"description": "Master Senior Mobile Engineer. Pre-built patterns from 18 production apps + project adaptation. Auto-detects language and framework. React Native, Flutter, iOS, Android.",
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
**Master Senior Mobile Engineer** — AI skill for Claude Code, Codex, Gemini CLI, Kimi, Cursor, Copilot, Windsurf, and Antigravity.
|
|
4
4
|
|
|
5
|
-
Pre-built architecture patterns from **
|
|
5
|
+
Pre-built architecture patterns from **30+ production repos (200k+ GitHub stars)** including Ignite, Expensify, Mattermost, Immich, AppFlowy, Now in Android, TCA + auto-adaptation to your current project.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -10,20 +10,38 @@ Pre-built architecture patterns from **18 production mobile apps + 4 production
|
|
|
10
10
|
npx @buivietphi/skill-mobile-mt
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
Interactive
|
|
13
|
+
Interactive checkbox UI — detects which AI agents are installed, lets you select with arrow keys + space.
|
|
14
14
|
|
|
15
15
|
### Install to specific agents
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
npx @buivietphi/skill-mobile-mt --claude # Claude Code
|
|
19
|
-
npx @buivietphi/skill-mobile-mt --codex # Codex
|
|
20
|
-
npx @buivietphi/skill-mobile-mt --gemini # Gemini CLI
|
|
21
|
-
npx @buivietphi/skill-mobile-mt --kimi # Kimi
|
|
22
|
-
npx @buivietphi/skill-mobile-mt --antigravity # Antigravity
|
|
23
|
-
npx @buivietphi/skill-mobile-mt --all # All
|
|
18
|
+
npx @buivietphi/skill-mobile-mt --claude # Claude Code
|
|
19
|
+
npx @buivietphi/skill-mobile-mt --codex # Codex
|
|
20
|
+
npx @buivietphi/skill-mobile-mt --gemini # Gemini CLI
|
|
21
|
+
npx @buivietphi/skill-mobile-mt --kimi # Kimi
|
|
22
|
+
npx @buivietphi/skill-mobile-mt --antigravity # Antigravity
|
|
23
|
+
npx @buivietphi/skill-mobile-mt --all # All agents
|
|
24
24
|
npx @buivietphi/skill-mobile-mt --path ./dir # Custom directory
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
+
### Generate project-level rules (Cursor, Copilot, Windsurf)
|
|
28
|
+
|
|
29
|
+
Cursor, Copilot, and Windsurf read rules from **project-level files**, not from a skills directory. Run `--init` inside your project to generate them:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
npx @buivietphi/skill-mobile-mt --init # Interactive selector
|
|
33
|
+
npx @buivietphi/skill-mobile-mt --init cursor # .cursorrules
|
|
34
|
+
npx @buivietphi/skill-mobile-mt --init copilot # .github/copilot-instructions.md
|
|
35
|
+
npx @buivietphi/skill-mobile-mt --init windsurf # .windsurfrules
|
|
36
|
+
npx @buivietphi/skill-mobile-mt --init all # All three files
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
**What `--init` does:**
|
|
40
|
+
1. Auto-detects your project (framework, language, state management, navigation, API client, package manager)
|
|
41
|
+
2. Generates rules files pre-filled with your detected stack
|
|
42
|
+
3. Includes mobile best practices, security rules, and quality gates
|
|
43
|
+
4. Won't overwrite existing files (safe to run multiple times)
|
|
44
|
+
|
|
27
45
|
## Usage
|
|
28
46
|
|
|
29
47
|
### Mode 1: Pre-Built Architecture (default)
|
|
@@ -32,11 +50,11 @@ npx @buivietphi/skill-mobile-mt --path ./dir # Custom directory
|
|
|
32
50
|
@skill-mobile-mt
|
|
33
51
|
```
|
|
34
52
|
|
|
35
|
-
Uses battle-tested patterns
|
|
36
|
-
- **
|
|
37
|
-
- **
|
|
38
|
-
- **
|
|
39
|
-
- **
|
|
53
|
+
Uses battle-tested patterns from 30+ production repos:
|
|
54
|
+
- **React Native** — Ignite (19.7k stars), Obytes Template, Expensify/App, Mattermost Mobile, Artsy Eigen
|
|
55
|
+
- **Flutter** — Immich (93.5k stars), AppFlowy (68.2k), Spotube (44.6k), Hiddify, Ente Photos
|
|
56
|
+
- **iOS** — TCA / Point-Free (14.4k), Clean Arch SwiftUI, Modern Clean Arch
|
|
57
|
+
- **Android** — Now in Android (20.7k), Android Showcase, Mihon (18.8k)
|
|
40
58
|
|
|
41
59
|
### Mode 2: Adapt to Your Project (project)
|
|
42
60
|
|
|
@@ -47,8 +65,123 @@ Uses battle-tested patterns extracted from real production apps:
|
|
|
47
65
|
Reads your current project first, then follows **your** conventions:
|
|
48
66
|
- Detects framework, language, package manager, state management, navigation
|
|
49
67
|
- Matches your naming, imports, file structure, patterns
|
|
68
|
+
- Clones the most similar existing feature when scaffolding new ones
|
|
50
69
|
- Never suggests migrations or imposes different architecture
|
|
51
70
|
|
|
71
|
+
## Quick Start Examples
|
|
72
|
+
|
|
73
|
+
### Step 1: Install the skill
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
# Install globally (one-time setup)
|
|
77
|
+
npx @buivietphi/skill-mobile-mt
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
You'll see an interactive checkbox — use arrow keys to navigate, space to select, Enter to confirm:
|
|
81
|
+
|
|
82
|
+
```
|
|
83
|
+
Select agents to install:
|
|
84
|
+
↑↓ navigate Space toggle A select all Enter confirm Q cancel
|
|
85
|
+
|
|
86
|
+
› ◉ Claude Code [detected]
|
|
87
|
+
◯ Cursor [detected]
|
|
88
|
+
◯ Windsurf [not found]
|
|
89
|
+
◯ Copilot [not found]
|
|
90
|
+
◯ Codex [not found]
|
|
91
|
+
◉ Gemini CLI [detected]
|
|
92
|
+
◯ Kimi [not found]
|
|
93
|
+
◯ Antigravity [not found]
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Step 2 (Cursor/Copilot/Windsurf only): Generate project rules
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
# cd into your mobile project first
|
|
100
|
+
cd ~/projects/my-app
|
|
101
|
+
|
|
102
|
+
# Generate rules for your agents
|
|
103
|
+
npx @buivietphi/skill-mobile-mt --init all
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Output:
|
|
107
|
+
|
|
108
|
+
```
|
|
109
|
+
📁 Project directory: /Users/you/projects/my-app
|
|
110
|
+
🔍 Detected: Expo (React Native) (TypeScript)
|
|
111
|
+
|
|
112
|
+
✓ .cursorrules → Cursor (auto-detected: Expo (React Native))
|
|
113
|
+
✓ .github/copilot-instructions.md → GitHub Copilot
|
|
114
|
+
✓ .windsurfrules → Windsurf
|
|
115
|
+
|
|
116
|
+
✅ Done! → 3 file(s) generated
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### Step 3: Use in your AI agent
|
|
120
|
+
|
|
121
|
+
#### Claude Code
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
# In Claude Code terminal, type:
|
|
125
|
+
@skill-mobile-mt
|
|
126
|
+
|
|
127
|
+
# Then ask anything:
|
|
128
|
+
> Create auth feature with login and register screens
|
|
129
|
+
|
|
130
|
+
# Or with project mode (reads YOUR code first):
|
|
131
|
+
@skill-mobile-mt project
|
|
132
|
+
> Add cart feature following the same pattern as ProductList
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
#### Cursor
|
|
136
|
+
|
|
137
|
+
After running `--init cursor`, Cursor auto-loads `.cursorrules` every session. Just open your project and code — Cursor follows the rules automatically.
|
|
138
|
+
|
|
139
|
+
```
|
|
140
|
+
# In Cursor Composer, just ask:
|
|
141
|
+
> Create a login screen with email/password
|
|
142
|
+
> Fix the crash in ProductDetail when images is null
|
|
143
|
+
> Review this PR for mobile best practices
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
#### GitHub Copilot
|
|
147
|
+
|
|
148
|
+
After running `--init copilot`, Copilot reads `.github/copilot-instructions.md` as workspace context.
|
|
149
|
+
|
|
150
|
+
```
|
|
151
|
+
# In VS Code with Copilot Chat:
|
|
152
|
+
> Add pagination to the product list
|
|
153
|
+
> Handle offline mode for the cart feature
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
#### Windsurf
|
|
157
|
+
|
|
158
|
+
After running `--init windsurf`, Windsurf auto-loads `.windsurfrules`. Just code normally.
|
|
159
|
+
|
|
160
|
+
#### Gemini CLI
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
# In Gemini CLI:
|
|
164
|
+
@skill-mobile-mt
|
|
165
|
+
> Setup a new Flutter project with Riverpod + clean architecture
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
#### Codex / Kimi / Antigravity
|
|
169
|
+
|
|
170
|
+
Same as Claude Code — the skill is loaded from the skills directory.
|
|
171
|
+
|
|
172
|
+
### Example Prompts (all agents)
|
|
173
|
+
|
|
174
|
+
| What you want | What to type |
|
|
175
|
+
|--------------|-------------|
|
|
176
|
+
| New feature | `Create auth feature with login, register, forgot password` |
|
|
177
|
+
| New screen | `Add settings screen with profile, notifications, theme toggle` |
|
|
178
|
+
| Fix bug | `Fix crash when product.images is undefined` |
|
|
179
|
+
| Code review | `Review src/features/cart/ for mobile best practices` |
|
|
180
|
+
| Performance | `Optimize ProductList — it's janky when scrolling 100+ items` |
|
|
181
|
+
| Architecture | `Setup project structure for a new Expo app with Zustand + TanStack Query` |
|
|
182
|
+
| Release | `Prepare the app for App Store submission` |
|
|
183
|
+
| Security | `Audit the auth flow for security vulnerabilities` |
|
|
184
|
+
|
|
52
185
|
## Auto-Detect
|
|
53
186
|
|
|
54
187
|
The skill automatically detects before any action:
|
|
@@ -102,6 +235,7 @@ iOS only?
|
|
|
102
235
|
| `shared/code-review.md` | 865 |
|
|
103
236
|
| `shared/bug-detection.md` | 499 |
|
|
104
237
|
| `shared/prompt-engineering.md` | 3,927 |
|
|
238
|
+
| `shared/architecture-intelligence.md` | 4,500 |
|
|
105
239
|
| `shared/common-pitfalls.md` | 1,160 |
|
|
106
240
|
| `shared/error-recovery.md` | 2,435 |
|
|
107
241
|
| `shared/document-analysis.md` | 1,200 |
|
|
@@ -111,36 +245,51 @@ iOS only?
|
|
|
111
245
|
| `shared/platform-excellence.md` | 1,500 |
|
|
112
246
|
| `shared/version-management.md` | 3,500 |
|
|
113
247
|
| `shared/observability.md` | 3,000 |
|
|
114
|
-
|
|
|
248
|
+
| `shared/claude-md-template.md` | ~500 |
|
|
249
|
+
| `shared/agent-rules-template.md` | ~2,500 |
|
|
250
|
+
| **Total** | **~46,000** |
|
|
115
251
|
|
|
116
252
|
## Installed Structure
|
|
117
253
|
|
|
118
254
|
```
|
|
119
255
|
~/.claude/skills/ (or ~/.gemini/skills/, ~/.agents/skills/, etc.)
|
|
120
256
|
└── skill-mobile-mt/
|
|
121
|
-
├── SKILL.md
|
|
122
|
-
├── AGENTS.md
|
|
257
|
+
├── SKILL.md Entry point + auto-detect + quality gates
|
|
258
|
+
├── AGENTS.md Multi-agent compatibility
|
|
123
259
|
├── react-native/
|
|
124
|
-
│ └── react-native.md
|
|
260
|
+
│ └── react-native.md React Native + Expo patterns
|
|
125
261
|
├── flutter/
|
|
126
|
-
│ └── flutter.md
|
|
262
|
+
│ └── flutter.md Flutter + Dart patterns
|
|
127
263
|
├── ios/
|
|
128
|
-
│ └── ios-native.md
|
|
264
|
+
│ └── ios-native.md iOS Swift patterns
|
|
129
265
|
├── android/
|
|
130
|
-
│ └── android-native.md
|
|
266
|
+
│ └── android-native.md Android Kotlin patterns
|
|
131
267
|
└── shared/
|
|
132
|
-
├── code-review.md
|
|
133
|
-
├── bug-detection.md
|
|
134
|
-
├── prompt-engineering.md
|
|
135
|
-
├──
|
|
136
|
-
├──
|
|
137
|
-
├──
|
|
138
|
-
├──
|
|
139
|
-
├──
|
|
140
|
-
├──
|
|
141
|
-
├──
|
|
142
|
-
├──
|
|
143
|
-
|
|
268
|
+
├── code-review.md Senior review checklist
|
|
269
|
+
├── bug-detection.md Auto bug scanner
|
|
270
|
+
├── prompt-engineering.md Auto-think + prompt templates
|
|
271
|
+
├── architecture-intelligence.md Patterns from 30+ production repos
|
|
272
|
+
├── common-pitfalls.md Problem → Symptoms → Solution
|
|
273
|
+
├── error-recovery.md 16 build/runtime error fixes
|
|
274
|
+
├── document-analysis.md Parse docs/images → code
|
|
275
|
+
├── anti-patterns.md PII, cardinality, payload detection
|
|
276
|
+
├── performance-prediction.md Frame budget, FPS prediction
|
|
277
|
+
├── platform-excellence.md iOS 18+ vs Android 15+ guidelines
|
|
278
|
+
├── version-management.md SDK compatibility matrix
|
|
279
|
+
├── observability.md Sessions as 4th pillar
|
|
280
|
+
├── release-checklist.md Pre-release verification
|
|
281
|
+
├── claude-md-template.md CLAUDE.md template for projects
|
|
282
|
+
└── agent-rules-template.md Rules templates for all agents
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
### Project-level files (generated by `--init`)
|
|
286
|
+
|
|
287
|
+
```
|
|
288
|
+
your-project/
|
|
289
|
+
├── .cursorrules Cursor rules (auto-detected stack)
|
|
290
|
+
├── .windsurfrules Windsurf rules (auto-detected stack)
|
|
291
|
+
└── .github/
|
|
292
|
+
└── copilot-instructions.md Copilot rules (auto-detected stack)
|
|
144
293
|
```
|
|
145
294
|
|
|
146
295
|
## What's Included
|
|
@@ -183,6 +332,10 @@ iOS only?
|
|
|
183
332
|
- Requirements Extraction: user stories, screen flows, data models, business rules
|
|
184
333
|
- Document → Code pipeline: read → extract → map features → scaffold
|
|
185
334
|
|
|
335
|
+
### Architecture Intelligence (from 30+ production repos)
|
|
336
|
+
|
|
337
|
+
- **Architecture Intelligence** (`architecture-intelligence.md`): Cross-platform patterns from Ignite, Immich, AppFlowy, TCA, Now in Android and more. Includes: dual state management, feature-based modules, bootstrap/startup pattern, functional error handling, architecture validation (Konsist), production folder structure templates, and decision matrices for state/nav/testing.
|
|
338
|
+
|
|
186
339
|
### Production Patterns (from Senaiverse, Mhuxain, VoltAgent, Nexus)
|
|
187
340
|
|
|
188
341
|
- **Anti-Pattern Detection** (`anti-patterns.md`): Detect PII leaks (CRITICAL), high cardinality tags, unbounded payloads, unstructured logs, sync telemetry on main thread — with auto-fix suggestions
|
|
@@ -208,16 +361,16 @@ iOS only?
|
|
|
208
361
|
|
|
209
362
|
## Supported Agents
|
|
210
363
|
|
|
211
|
-
| Agent |
|
|
212
|
-
|
|
213
|
-
| Claude Code | `~/.claude/skills
|
|
214
|
-
| Codex | `~/.codex/skills
|
|
215
|
-
| Gemini CLI | `~/.gemini/skills
|
|
216
|
-
| Kimi | `~/.kimi/skills
|
|
217
|
-
|
|
|
218
|
-
|
|
|
219
|
-
|
|
|
220
|
-
|
|
|
364
|
+
| Agent | How it works | Setup command |
|
|
365
|
+
|-------|-------------|---------------|
|
|
366
|
+
| **Claude Code** | Reads from `~/.claude/skills/` | `npx skill-mobile-mt --claude` |
|
|
367
|
+
| **Codex** | Reads from `~/.codex/skills/` | `npx skill-mobile-mt --codex` |
|
|
368
|
+
| **Gemini CLI** | Reads from `~/.gemini/skills/` | `npx skill-mobile-mt --gemini` |
|
|
369
|
+
| **Kimi** | Reads from `~/.kimi/skills/` | `npx skill-mobile-mt --kimi` |
|
|
370
|
+
| **Antigravity** | Reads from `~/.agents/skills/` | `npx skill-mobile-mt --antigravity` |
|
|
371
|
+
| **Cursor** | Reads `.cursorrules` from project root | `npx skill-mobile-mt --init cursor` |
|
|
372
|
+
| **Copilot** | Reads `.github/copilot-instructions.md` | `npx skill-mobile-mt --init copilot` |
|
|
373
|
+
| **Windsurf** | Reads `.windsurfrules` from project root | `npx skill-mobile-mt --init windsurf` |
|
|
221
374
|
|
|
222
375
|
## License
|
|
223
376
|
|
package/SKILL.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: skill-mobile-mt
|
|
3
|
-
description: "Master Senior Mobile Engineer. Use when: building mobile features, fixing mobile bugs, reviewing mobile code, mobile architecture, React Native, Flutter, iOS Swift, Android Kotlin, mobile performance, mobile security audit, mobile code review, app release. Two modes: (1) default = pre-built production patterns, (2) 'project' = reads current project and adapts."
|
|
4
|
-
version: "1.
|
|
3
|
+
description: "Master Senior Mobile Engineer. Patterns from 30+ production repos (200k+ GitHub stars: Ignite, Expensify, Mattermost, Immich, AppFlowy, Now in Android, TCA). Use when: building mobile features, fixing mobile bugs, reviewing mobile code, mobile architecture, React Native, Flutter, iOS Swift, Android Kotlin, mobile performance, mobile security audit, mobile code review, app release. Two modes: (1) default = pre-built production patterns, (2) 'project' = reads current project and adapts."
|
|
4
|
+
version: "1.2.0"
|
|
5
5
|
author: buivietphi
|
|
6
6
|
priority: high
|
|
7
7
|
user-invocable: true
|
|
@@ -72,7 +72,9 @@ USER REQUEST → ACTION (Read tool required)
|
|
|
72
72
|
|
|
73
73
|
"Add X to existing Y" → MODIFY existing files, don't create new structure
|
|
74
74
|
|
|
75
|
-
"Setup project / architecture" → Read
|
|
75
|
+
"Setup project / architecture" → Read: shared/architecture-intelligence.md
|
|
76
|
+
then: Read platform file (see Smart Loading below)
|
|
77
|
+
then: suggest structure based on project size + stack
|
|
76
78
|
|
|
77
79
|
"Fix / debug X" → Read: shared/bug-detection.md
|
|
78
80
|
then: read code → find root cause → fix → verify
|