@shaykec/app-agent 1.0.9 → 1.0.11
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.
- package/.claude/agents/catalog-analyzer.md +57 -0
- package/.claude/skills/android-customizer/SKILL.md +23 -10
- package/.claude/skills/bug-fixer/SKILL.md +59 -0
- package/.claude/skills/catalog-analyzer/SKILL.md +96 -0
- package/.claude/skills/customization-planner/SKILL.md +44 -5
- package/.claude/skills/design-selector/SKILL.md +3 -1
- package/.claude/skills/design-system/SKILL.md +1 -1
- package/.claude/skills/exploratory-tester/SKILL.md +82 -0
- package/.claude/skills/ios-customizer/SKILL.md +29 -8
- package/.claude/skills/module-integrator/SKILL.md +1 -1
- package/.claude/skills/react-native-customizer/SKILL.md +22 -10
- package/.claude/skills/test-planner/SKILL.md +72 -0
- package/.cursor/agents/README.md +3 -1
- package/.cursor/agents/catalog-analyzer.md +83 -0
- package/.cursor/rules/safety-guardrails.mdc +1 -1
- package/.cursor/rules/workflow.mdc +52 -18
- package/.cursor/skills/android-customizer/SKILL.md +43 -19
- package/.cursor/skills/bug-fixer/SKILL.md +189 -0
- package/.cursor/skills/catalog-analyzer/SKILL.md +222 -0
- package/.cursor/skills/customization-planner/SKILL.md +55 -8
- package/.cursor/skills/design-selector/SKILL.md +6 -5
- package/.cursor/skills/design-system/SKILL.md +8 -7
- package/.cursor/skills/exploratory-tester/SKILL.md +223 -0
- package/.cursor/skills/ios-customizer/SKILL.md +47 -12
- package/.cursor/skills/module-integrator/SKILL.md +2 -2
- package/.cursor/skills/output-validator/SKILL.md +1 -1
- package/.cursor/skills/react-native-customizer/SKILL.md +46 -16
- package/.cursor/skills/test-planner/SKILL.md +199 -0
- package/.cursor/skills/web-analyzer/SKILL.md +310 -0
- package/.cursor/skills/web-crawler/SKILL.md +252 -0
- package/AGENTS.md +32 -11
- package/CLAUDE.md +78 -33
- package/README.md +77 -11
- package/designs/DESIGN_CATALOG.md +17 -15
- package/designs/DESIGN_PRINCIPLES.md +53 -0
- package/designs/brands/accessible-high-contrast.md +14 -0
- package/designs/brands/corporate-professional.md +14 -0
- package/designs/brands/dark-luxe.md +14 -0
- package/designs/brands/kids-playful.md +14 -0
- package/designs/brands/medical-clinical.md +14 -0
- package/designs/brands/modern-minimal.md +14 -0
- package/designs/brands/nature-organic.md +14 -0
- package/designs/brands/neo-brutalist.md +14 -0
- package/designs/brands/retro-vintage.md +14 -0
- package/designs/brands/soft-gradient.md +14 -0
- package/designs/brands/sport-athletic.md +14 -0
- package/designs/brands/tech-dynamic.md +14 -0
- package/designs/brands/vibrant-playful.md +14 -0
- package/dist/cli.d.ts +4 -2
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +123 -11
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +8 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +6 -1
- package/dist/config.js.map +1 -1
- package/dist/engines/claude-engine.d.ts.map +1 -1
- package/dist/engines/claude-engine.js +16 -4
- package/dist/engines/claude-engine.js.map +1 -1
- package/dist/engines/types.d.ts +1 -1
- package/dist/engines/types.d.ts.map +1 -1
- package/dist/engines/types.js +31 -2
- package/dist/engines/types.js.map +1 -1
- package/dist/github.d.ts +3 -0
- package/dist/github.d.ts.map +1 -1
- package/dist/github.js +47 -4
- package/dist/github.js.map +1 -1
- package/dist/index.js +294 -16
- package/dist/index.js.map +1 -1
- package/dist/prompt-builder.d.ts +17 -1
- package/dist/prompt-builder.d.ts.map +1 -1
- package/dist/prompt-builder.js +272 -1
- package/dist/prompt-builder.js.map +1 -1
- package/dist/validator.d.ts +7 -2
- package/dist/validator.d.ts.map +1 -1
- package/dist/validator.js +61 -41
- package/dist/validator.js.map +1 -1
- package/dist/workspace.js +2 -2
- package/dist/workspace.js.map +1 -1
- package/package.json +2 -4
- package/prompts/agent-prompt.md +35 -18
- package/prompts/deep-test-agent-prompt.md +122 -0
- package/prompts/fix-agent-prompt.md +90 -0
- package/prompts/quick-agent-prompt.md +32 -2
- package/prompts/scratch-agent-prompt.md +5 -8
- package/prompts/web-clone-agent-prompt.md +179 -0
- package/templates/android/BookTemplate/app/src/main/kotlin/com/appship/book/core/animation/AnimatedTransitionsModifiers.kt +188 -0
- package/templates/android/ChatTemplate/app/src/main/kotlin/com/appship/chat/core/animation/AnimatedTransitionsModifiers.kt +188 -0
- package/templates/android/ChatTemplate/app/src/main/kotlin/com/appship/chat/features/conversations/ConversationsScreen.kt +1 -1
- package/templates/android/DashTemplate/app/src/main/kotlin/com/appship/dash/core/animation/AnimatedTransitionsModifiers.kt +188 -0
- package/templates/android/DashTemplate/app/src/main/kotlin/com/appship/dash/features/navigation/MainScreen.kt +1 -0
- package/templates/android/FamilyTemplate/app/src/main/java/com/appship/family/core/animation/AnimatedTransitionsModifiers.kt +188 -0
- package/templates/android/FamilyTemplate/app/src/main/java/com/appship/family/features/navigation/MainNavigation.kt +5 -1
- package/templates/android/FinanceTemplate/app/src/main/kotlin/com/appship/finance/core/animation/AnimatedTransitionsModifiers.kt +188 -0
- package/templates/android/GameTemplate/app/src/main/kotlin/com/appship/game/core/animation/AnimatedTransitionsModifiers.kt +188 -0
- package/templates/android/GameTemplate/app/src/main/kotlin/com/appship/game/core/animation/MotionPreferencesScreen.kt +3 -3
- package/templates/android/GameTemplate/app/src/main/kotlin/com/appship/game/features/navigation/Navigation.kt +1 -1
- package/templates/android/GameTemplate/app/src/main/kotlin/com/appship/game/features/settings/SettingsScreen.kt +1 -1
- package/templates/android/HealthTemplate/app/src/main/kotlin/com/appship/health/core/animation/AnimatedTransitionsModifiers.kt +188 -0
- package/templates/android/LearnTemplate/app/src/main/kotlin/com/appship/learn/core/animation/AnimatedTransitionsModifiers.kt +188 -0
- package/templates/android/MapTemplate/app/src/main/kotlin/com/appship/map/core/animation/AnimatedTransitionsModifiers.kt +188 -0
- package/templates/android/MediaTemplate/app/src/main/kotlin/com/appship/media/core/animation/AnimatedTransitionsModifiers.kt +188 -0
- package/templates/android/MediaTemplate/app/src/main/kotlin/com/appship/media/features/settings/SettingsScreen.kt +3 -2
- package/templates/android/ReferenceTemplate/app/src/main/kotlin/com/appship/reference/core/animation/AnimatedTransitionsModifiers.kt +188 -0
- package/templates/android/ReferenceTemplate/app/src/main/kotlin/com/appship/reference/features/settings/SettingsScreen.kt +1 -1
- package/templates/android/ShopTemplate/app/src/main/kotlin/com/appship/shop/core/animation/AnimatedTransitionsModifiers.kt +188 -0
- package/templates/android/ShopTemplate/app/src/main/kotlin/com/appship/shop/features/cart/CartScreen.kt +3 -2
- package/templates/android/Skeleton/app/src/main/kotlin/com/appship/skeleton/core/animation/AnimatedTransitionsModifiers.kt +188 -0
- package/templates/android/Skeleton/tests/03_detail_screen.yaml +1 -1
- package/templates/android/Skeleton/tests/04_favorites.yaml +1 -1
- package/templates/android/Skeleton/tests/08_full_e2e.yaml +7 -1
- package/templates/android/SocialTemplate/app/src/main/kotlin/com/appship/social/core/animation/AnimatedTransitionsModifiers.kt +188 -0
- package/templates/android/TaskTemplate/app/src/main/kotlin/com/appship/task/core/animation/AnimatedTransitionsModifiers.kt +188 -0
- package/templates/android/TaskTemplate/app/src/main/kotlin/com/appship/task/features/settings/SettingsScreen.kt +3 -2
- package/templates/android/TrackTemplate/app/src/main/kotlin/com/appship/track/core/animation/AnimatedTransitionsModifiers.kt +188 -0
- package/templates/ios/BookTemplate/BookTemplate/Core/Animation/AnimatedTransitionsView.swift +201 -0
- package/templates/ios/ChatTemplate/ChatTemplate/Core/Animation/AnimatedTransitionsView.swift +201 -0
- package/templates/ios/DashTemplate/DashTemplate/App/AppConfig.swift +1 -0
- package/templates/ios/DashTemplate/DashTemplate/Core/Animation/AnimatedTransitionsView.swift +201 -0
- package/templates/ios/DashTemplate/DashTemplate/Core/Strings.swift +13 -0
- package/templates/ios/DashTemplate/DashTemplate.xcodeproj/project.pbxproj +32 -20
- package/templates/ios/FamilyTemplate/FamilyTemplate/Core/Animation/AnimatedTransitionsView.swift +201 -0
- package/templates/ios/FinanceTemplate/FinanceTemplate/Core/Animation/AnimatedTransitionsView.swift +201 -0
- package/templates/ios/FinanceTemplate/FinanceTemplate/Core/Strings.swift +42 -0
- package/templates/ios/FinanceTemplate/FinanceTemplate.xcodeproj/project.pbxproj +36 -30
- package/templates/ios/GameTemplate/GameTemplate/Core/Animation/AnimatedTransitionsView.swift +201 -0
- package/templates/ios/HealthTemplate/HealthTemplate/Core/Animation/AnimatedTransitionsView.swift +201 -0
- package/templates/ios/LearnTemplate/LearnTemplate/Core/Animation/AnimatedTransitionsView.swift +201 -0
- package/templates/ios/MapTemplate/MapTemplate/Core/Animation/AnimatedTransitionsView.swift +201 -0
- package/templates/ios/MediaTemplate/MediaTemplate/Core/Animation/AnimatedTransitionsView.swift +201 -0
- package/templates/ios/ReferenceTemplate/ReferenceTemplate/Core/Animation/AnimatedTransitionsView.swift +201 -0
- package/templates/ios/ReferenceTemplate/ReferenceTemplate/Core/Strings.swift +12 -0
- package/templates/ios/ReferenceTemplate/ReferenceTemplate/Features/SkeletonLoading/SkeletonLoadingView.swift +2 -37
- package/templates/ios/ShopTemplate/ShopTemplate/Core/Animation/AnimatedTransitionsView.swift +201 -0
- package/templates/ios/Skeleton/Skeleton/Core/Animation/AnimatedTransitionsView.swift +201 -0
- package/templates/ios/Skeleton/tests/08_full_e2e.yaml +4 -0
- package/templates/ios/SocialTemplate/SocialTemplate/Core/Animation/AnimatedTransitionsView.swift +201 -0
- package/templates/ios/TaskTemplate/TaskTemplate/Core/Animation/AnimatedTransitionsView.swift +201 -0
- package/templates/ios/TrackTemplate/TrackTemplate/Core/Animation/AnimatedTransitionsView.swift +201 -0
- package/templates/react-native/BookTemplate/src/animation/useAnimatedList.ts +219 -2
- package/templates/react-native/BookTemplate/src/animation/useMotionPreferences.ts +23 -9
- package/templates/react-native/BookTemplate/src/screens/Profile/ProfileScreen.tsx +1 -1
- package/templates/react-native/ChatTemplate/src/animation/useAnimatedList.ts +219 -2
- package/templates/react-native/ChatTemplate/src/animation/useMotionPreferences.ts +23 -9
- package/templates/react-native/ChatTemplate/src/screens/Profile/ProfileScreen.tsx +1 -1
- package/templates/react-native/DashTemplate/src/animation/useAnimatedList.ts +219 -2
- package/templates/react-native/DashTemplate/src/animation/useMotionPreferences.ts +23 -9
- package/templates/react-native/DashTemplate/src/screens/Profile/ProfileScreen.tsx +1 -1
- package/templates/react-native/FamilyTemplate/src/animation/useAnimatedList.ts +219 -2
- package/templates/react-native/FamilyTemplate/src/animation/useMotionPreferences.ts +23 -9
- package/templates/react-native/FamilyTemplate/src/screens/Profile/ProfileScreen.tsx +1 -1
- package/templates/react-native/FinanceTemplate/src/animation/useAnimatedList.ts +219 -2
- package/templates/react-native/FinanceTemplate/src/animation/useMotionPreferences.ts +23 -9
- package/templates/react-native/FinanceTemplate/src/screens/Profile/ProfileScreen.tsx +1 -1
- package/templates/react-native/GameTemplate/src/animation/useAnimatedList.ts +219 -2
- package/templates/react-native/GameTemplate/src/animation/useMotionPreferences.ts +23 -9
- package/templates/react-native/GameTemplate/src/screens/GameDetail/GameDetailScreen.tsx +2 -1
- package/templates/react-native/GameTemplate/src/screens/Profile/ProfileScreen.tsx +1 -1
- package/templates/react-native/HealthTemplate/src/animation/useAnimatedList.ts +219 -2
- package/templates/react-native/HealthTemplate/src/animation/useMotionPreferences.ts +23 -9
- package/templates/react-native/HealthTemplate/src/screens/Profile/ProfileScreen.tsx +1 -1
- package/templates/react-native/HealthTemplate/src/screens/WorkoutDetail/WorkoutDetailScreen.tsx +1 -1
- package/templates/react-native/LearnTemplate/src/animation/useAnimatedList.ts +219 -2
- package/templates/react-native/LearnTemplate/src/animation/useMotionPreferences.ts +23 -9
- package/templates/react-native/LearnTemplate/src/screens/Profile/ProfileScreen.tsx +1 -1
- package/templates/react-native/MapTemplate/src/animation/useAnimatedList.ts +219 -2
- package/templates/react-native/MapTemplate/src/animation/useMotionPreferences.ts +23 -9
- package/templates/react-native/MapTemplate/src/screens/Map/MapScreen.tsx +14 -0
- package/templates/react-native/MapTemplate/src/screens/Profile/ProfileScreen.tsx +1 -1
- package/templates/react-native/MediaTemplate/src/animation/useAnimatedList.ts +219 -2
- package/templates/react-native/MediaTemplate/src/animation/useMotionPreferences.ts +23 -9
- package/templates/react-native/MediaTemplate/src/screens/PlaylistDetail/PlaylistDetailScreen.tsx +1 -1
- package/templates/react-native/MediaTemplate/src/screens/Profile/ProfileScreen.tsx +1 -1
- package/templates/react-native/ReferenceTemplate/src/animation/useAnimatedList.ts +219 -2
- package/templates/react-native/ReferenceTemplate/src/animation/useMotionPreferences.ts +23 -9
- package/templates/react-native/ReferenceTemplate/src/screens/Settings/SettingsScreen.tsx +1 -1
- package/templates/react-native/ShopTemplate/src/animation/useAnimatedList.ts +219 -2
- package/templates/react-native/ShopTemplate/src/animation/useMotionPreferences.ts +23 -9
- package/templates/react-native/ShopTemplate/src/screens/Profile/ProfileScreen.tsx +1 -1
- package/templates/react-native/Skeleton/TESTING_MANIFEST.md +1 -1
- package/templates/react-native/Skeleton/src/animation/useAnimatedList.ts +219 -2
- package/templates/react-native/Skeleton/src/animation/useMotionPreferences.ts +23 -9
- package/templates/react-native/Skeleton/src/screens/Profile/ProfileScreen.tsx +1 -1
- package/templates/react-native/Skeleton/tests/07_profile.yaml +3 -2
- package/templates/react-native/Skeleton/tests/08_full_e2e.yaml +12 -1
- package/templates/react-native/SocialTemplate/src/animation/useAnimatedList.ts +219 -2
- package/templates/react-native/SocialTemplate/src/animation/useMotionPreferences.ts +23 -9
- package/templates/react-native/SocialTemplate/src/screens/Feed/FeedScreen.tsx +1 -0
- package/templates/react-native/SocialTemplate/src/screens/Profile/ProfileScreen.tsx +1 -1
- package/templates/react-native/TaskTemplate/src/animation/useAnimatedList.ts +219 -2
- package/templates/react-native/TaskTemplate/src/animation/useMotionPreferences.ts +23 -9
- package/templates/react-native/TaskTemplate/src/screens/Profile/ProfileScreen.tsx +1 -1
- package/templates/react-native/TrackTemplate/src/animation/useAnimatedList.ts +219 -2
- package/templates/react-native/TrackTemplate/src/animation/useMotionPreferences.ts +23 -9
- package/templates/react-native/TrackTemplate/src/screens/Settings/SettingsScreen.tsx +1 -1
- package/templates/shared/ios/AnimatedTransitions/AnimatedTransitionsView.swift +233 -93
- package/.claude/agents/template-selector.md +0 -39
- package/.claude/skills/module-selector/SKILL.md +0 -81
- package/.claude/skills/template-selector/SKILL.md +0 -44
- package/.cursor/agents/template-selector.md +0 -52
- package/.cursor/skills/module-selector/SKILL.md +0 -135
- package/.cursor/skills/template-selector/SKILL.md +0 -123
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
# Web Analyzer Skill
|
|
2
|
+
|
|
3
|
+
Analyze the web crawl report and website screenshots to produce a structured app specification (web-to-app manifest) that drives the rest of the build pipeline.
|
|
4
|
+
|
|
5
|
+
## Inputs
|
|
6
|
+
|
|
7
|
+
- **Web crawl report**: `output/{app-name}/reports/02-web-crawl-report.md`
|
|
8
|
+
- **Website screenshots**: `output/{app-name}/web-crawl/screenshots/*.png` (passed as image attachments)
|
|
9
|
+
- **Focus directive** (optional): User's description of what to prioritize
|
|
10
|
+
- **Platform**: ios, android, or react-native
|
|
11
|
+
|
|
12
|
+
## Process
|
|
13
|
+
|
|
14
|
+
### 1. Read the Crawl Report
|
|
15
|
+
|
|
16
|
+
Read `reports/02-web-crawl-report.md` to understand:
|
|
17
|
+
- Site map (all pages discovered)
|
|
18
|
+
- Navigation structure
|
|
19
|
+
- Brand palette (colors, typography, layout patterns)
|
|
20
|
+
- Content model (entities, fields, categories)
|
|
21
|
+
- Functionality inventory (search, forms, filters, auth, CRUD)
|
|
22
|
+
|
|
23
|
+
### 2. View the Screenshots
|
|
24
|
+
|
|
25
|
+
Examine all saved screenshots to visually verify and refine:
|
|
26
|
+
- Color accuracy (screenshots show the actual rendered colors)
|
|
27
|
+
- Layout patterns (card grids, list styles, hero sections, spacing)
|
|
28
|
+
- Visual hierarchy (what's prominent, what's secondary)
|
|
29
|
+
- Overall brand "feel" (modern, classic, playful, corporate, etc.)
|
|
30
|
+
- Typography style (even if exact fonts can't be extracted)
|
|
31
|
+
|
|
32
|
+
### 3. Map Pages to Mobile Screens
|
|
33
|
+
|
|
34
|
+
Apply these mapping rules:
|
|
35
|
+
|
|
36
|
+
| Web Pattern | Mobile Pattern |
|
|
37
|
+
|-------------|---------------|
|
|
38
|
+
| Home/landing page | Home tab (main tab) |
|
|
39
|
+
| List/catalog page (products, articles) | List screen (scrollable, searchable) |
|
|
40
|
+
| Detail page (product detail, article) | Detail screen (push navigation) |
|
|
41
|
+
| Search page / search results | Search/Explore tab or search overlay |
|
|
42
|
+
| Category/filter page | Filter sheet or Explore tab |
|
|
43
|
+
| User profile / account | Profile tab |
|
|
44
|
+
| Favorites / wishlist / saved | Favorites tab |
|
|
45
|
+
| Contact / about / info | Info section in Profile or separate screen |
|
|
46
|
+
| Form (create, submit) | Create/Compose screen (modal or push) |
|
|
47
|
+
| Cart / checkout | Cart tab or sheet (if e-commerce) |
|
|
48
|
+
| Settings / preferences | Settings screen (in Profile tab) |
|
|
49
|
+
|
|
50
|
+
**Tab Bar Strategy** (max 4-5 tabs):
|
|
51
|
+
1. **Home** — always the first tab (mirrors home page)
|
|
52
|
+
2. **Explore/Search** — if the site has search, catalog, or browse functionality
|
|
53
|
+
3. **Favorites** — if the site has save/wishlist/bookmark functionality
|
|
54
|
+
4. **Profile** — if the site has user accounts, settings, or contact info
|
|
55
|
+
5. **Extra tab** — only if the site has a major section that doesn't fit above (e.g., Cart for e-commerce)
|
|
56
|
+
|
|
57
|
+
### 4. Map Navigation
|
|
58
|
+
|
|
59
|
+
| Web Navigation | Mobile Navigation |
|
|
60
|
+
|----------------|-------------------|
|
|
61
|
+
| Top nav bar links | Tab bar items |
|
|
62
|
+
| Sub-menu / dropdown | Navigation stack (push screens) |
|
|
63
|
+
| Breadcrumbs | Back button (automatic in nav stack) |
|
|
64
|
+
| Pagination | Infinite scroll or load-more |
|
|
65
|
+
| Modal / popup | Sheet or modal presentation |
|
|
66
|
+
| Sidebar / drawer | Not recommended — flatten into tabs |
|
|
67
|
+
|
|
68
|
+
### 5. Extract Brand Tokens
|
|
69
|
+
|
|
70
|
+
From the crawl report and screenshots, produce exact brand tokens:
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
Primary Color: #XXXXXX (main CTA / button color)
|
|
74
|
+
Secondary Color: #XXXXXX (accent / highlight color)
|
|
75
|
+
Background: #XXXXXX (page background)
|
|
76
|
+
Surface: #XXXXXX (card / section background)
|
|
77
|
+
Text Primary: #XXXXXX (headings, main text)
|
|
78
|
+
Text Secondary: #XXXXXX (captions, secondary text)
|
|
79
|
+
Error: #FF3B30 (default if not visible on site)
|
|
80
|
+
Success: #34C759 (default if not visible on site)
|
|
81
|
+
|
|
82
|
+
Corner Radius: {small/medium/large} → {4/8/12}pt
|
|
83
|
+
Shadow Style: {none/subtle/prominent}
|
|
84
|
+
Spacing Scale: {tight/medium/generous}
|
|
85
|
+
|
|
86
|
+
Typography Style: {sans-serif/serif/rounded} → map to system fonts
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### 6. Define Data Model
|
|
90
|
+
|
|
91
|
+
From the content model in the crawl report:
|
|
92
|
+
- Map each entity to a Swift struct / Kotlin data class / TypeScript interface
|
|
93
|
+
- Define fields with types (String, Int, Double, URL, Date, Bool)
|
|
94
|
+
- Identify primary entity (the main "item" the app displays)
|
|
95
|
+
- Identify relationships (entity A has many entity B)
|
|
96
|
+
|
|
97
|
+
### 7. Generate Content Brief
|
|
98
|
+
|
|
99
|
+
Adapt website copy for mobile:
|
|
100
|
+
- App display name (from website name/logo)
|
|
101
|
+
- Tab labels (short, 1-2 words)
|
|
102
|
+
- Screen titles
|
|
103
|
+
- Empty state messages
|
|
104
|
+
- Search placeholder text
|
|
105
|
+
- CTA button labels
|
|
106
|
+
- Onboarding text (if the site has a value proposition)
|
|
107
|
+
- Category names
|
|
108
|
+
|
|
109
|
+
### 8. Decide: Template or Scratch
|
|
110
|
+
|
|
111
|
+
Compare the web-to-app mapping against available templates in CATALOG.md:
|
|
112
|
+
- If a template matches 70%+ of the required screens/features → use template mode
|
|
113
|
+
- If no template is a good fit → recommend scratch mode
|
|
114
|
+
- Always prefer template mode for reliability
|
|
115
|
+
|
|
116
|
+
### 9. Generate Parallel Batches
|
|
117
|
+
|
|
118
|
+
Divide screens into 2-3 batches for parallel customization and testing:
|
|
119
|
+
- **Batch 1**: Home + Explore/Search screens
|
|
120
|
+
- **Batch 2**: Detail + Create/Form screens
|
|
121
|
+
- **Batch 3**: Profile + Settings + Favorites screens
|
|
122
|
+
|
|
123
|
+
## Output
|
|
124
|
+
|
|
125
|
+
Write `output/{app-name}/reports/03-web-to-app-manifest.md` with this structure:
|
|
126
|
+
|
|
127
|
+
```markdown
|
|
128
|
+
# Web-to-App Manifest
|
|
129
|
+
|
|
130
|
+
## Source
|
|
131
|
+
- **URL**: {url}
|
|
132
|
+
- **App Name**: {derived from website name}
|
|
133
|
+
- **Bundle ID**: com.appship.{appname}
|
|
134
|
+
- **Platform**: {platform}
|
|
135
|
+
- **Build Mode**: {template/scratch}
|
|
136
|
+
- **Selected Template**: {template name or "N/A for scratch mode"}
|
|
137
|
+
|
|
138
|
+
## Screen Mapping
|
|
139
|
+
|
|
140
|
+
| # | Web Page | Mobile Screen | Tab | Navigation |
|
|
141
|
+
|---|----------|--------------|-----|------------|
|
|
142
|
+
| 1 | Home | HomeView | Home | Root |
|
|
143
|
+
| 2 | Products | ProductListView | Explore | Root |
|
|
144
|
+
| 3 | Product Detail | ProductDetailView | — | Push from ProductList |
|
|
145
|
+
| 4 | Search Results | SearchView | Explore | Overlay |
|
|
146
|
+
| 5 | Cart | CartView | Cart | Root |
|
|
147
|
+
| 6 | Profile | ProfileView | Profile | Root |
|
|
148
|
+
|
|
149
|
+
## Tab Bar
|
|
150
|
+
|
|
151
|
+
| # | Tab | Label | Icon (SF Symbol / Material) | Root Screen |
|
|
152
|
+
|---|-----|-------|---------------------------|-------------|
|
|
153
|
+
| 1 | Home | Home | house.fill / home | HomeView |
|
|
154
|
+
| 2 | Explore | Explore | magnifyingglass / search | ProductListView |
|
|
155
|
+
| 3 | Favorites | Saved | heart.fill / favorite | FavoritesView |
|
|
156
|
+
| 4 | Profile | Profile | person.fill / person | ProfileView |
|
|
157
|
+
|
|
158
|
+
## Brand Tokens
|
|
159
|
+
|
|
160
|
+
### Colors (Light Mode)
|
|
161
|
+
- primary: #{hex}
|
|
162
|
+
- secondary: #{hex}
|
|
163
|
+
- background: #{hex}
|
|
164
|
+
- surface: #{hex}
|
|
165
|
+
- textPrimary: #{hex}
|
|
166
|
+
- textSecondary: #{hex}
|
|
167
|
+
- error: #{hex}
|
|
168
|
+
- success: #{hex}
|
|
169
|
+
|
|
170
|
+
### Colors (Dark Mode)
|
|
171
|
+
- primary: #{hex} (lightened for dark bg)
|
|
172
|
+
- secondary: #{hex}
|
|
173
|
+
- background: #1C1C1E
|
|
174
|
+
- surface: #2C2C2E
|
|
175
|
+
- textPrimary: #FFFFFF
|
|
176
|
+
- textSecondary: #8E8E93
|
|
177
|
+
|
|
178
|
+
### Layout
|
|
179
|
+
- cornerRadius: {value}
|
|
180
|
+
- shadowStyle: {none/subtle/prominent}
|
|
181
|
+
- spacingScale: {tight/medium/generous}
|
|
182
|
+
|
|
183
|
+
### Typography
|
|
184
|
+
- fontStyle: {sans-serif/serif/rounded}
|
|
185
|
+
- iOS: {system font recommendation}
|
|
186
|
+
- Android: {font recommendation}
|
|
187
|
+
|
|
188
|
+
## Data Model
|
|
189
|
+
|
|
190
|
+
### {PrimaryEntity} (e.g., Product)
|
|
191
|
+
```
|
|
192
|
+
id: String (UUID)
|
|
193
|
+
name: String
|
|
194
|
+
description: String
|
|
195
|
+
imageUrl: URL
|
|
196
|
+
price: Double (optional)
|
|
197
|
+
category: String
|
|
198
|
+
rating: Double (optional)
|
|
199
|
+
isFavorite: Bool
|
|
200
|
+
createdAt: Date
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### Categories
|
|
204
|
+
- {Category 1}
|
|
205
|
+
- {Category 2}
|
|
206
|
+
- ...
|
|
207
|
+
|
|
208
|
+
## Content Brief
|
|
209
|
+
|
|
210
|
+
### App Name & Branding
|
|
211
|
+
- **Display Name**: {name}
|
|
212
|
+
- **Tagline**: {from website}
|
|
213
|
+
|
|
214
|
+
### Tab Labels
|
|
215
|
+
- Home, Explore, Saved, Profile
|
|
216
|
+
|
|
217
|
+
### Screen Titles
|
|
218
|
+
- Home: "{title}"
|
|
219
|
+
- Explore: "{title}"
|
|
220
|
+
- ...
|
|
221
|
+
|
|
222
|
+
### Empty States
|
|
223
|
+
- No items: "{message}"
|
|
224
|
+
- No favorites: "{message}"
|
|
225
|
+
- No search results: "{message}"
|
|
226
|
+
|
|
227
|
+
### CTAs
|
|
228
|
+
- Primary CTA: "{label}"
|
|
229
|
+
- Secondary CTA: "{label}"
|
|
230
|
+
|
|
231
|
+
## Mock Data Spec
|
|
232
|
+
|
|
233
|
+
### {PrimaryEntity} (generate 12-15 items)
|
|
234
|
+
Use realistic content observed on the website:
|
|
235
|
+
- Item 1: {name}, {category}, {description snippet}
|
|
236
|
+
- Item 2: ...
|
|
237
|
+
(list 5-6 examples, agent generates the rest)
|
|
238
|
+
|
|
239
|
+
### Categories (4-6)
|
|
240
|
+
- {name}: {description}
|
|
241
|
+
|
|
242
|
+
## AppConfig Values
|
|
243
|
+
|
|
244
|
+
Map to CUSTOMIZE markers in the template:
|
|
245
|
+
- `appName`: "{value}"
|
|
246
|
+
- `primaryColor`: "#{hex}"
|
|
247
|
+
- `accentColor`: "#{hex}"
|
|
248
|
+
- `tabTitles`: ["{tab1}", "{tab2}", "{tab3}", "{tab4}"]
|
|
249
|
+
- `categories`: ["{cat1}", "{cat2}", ...]
|
|
250
|
+
- `entityName`: "{name}"
|
|
251
|
+
- `entityNamePlural`: "{names}"
|
|
252
|
+
(continue for all CUSTOMIZE markers)
|
|
253
|
+
|
|
254
|
+
## Screen Changes
|
|
255
|
+
|
|
256
|
+
### HomeView
|
|
257
|
+
- Replace hero section with: {description from website}
|
|
258
|
+
- Cards should display: {entity fields}
|
|
259
|
+
- Style: {layout pattern from website}
|
|
260
|
+
- Reference screenshot: page-home.png
|
|
261
|
+
|
|
262
|
+
### {ScreenName}
|
|
263
|
+
- Changes: {description}
|
|
264
|
+
- Reference screenshot: page-{slug}.png
|
|
265
|
+
|
|
266
|
+
(repeat for each screen)
|
|
267
|
+
|
|
268
|
+
## Parallel Batches
|
|
269
|
+
|
|
270
|
+
### Screen Customization Batches
|
|
271
|
+
- **Batch 1** (Simulator 1): HomeView, ExploreView, SearchView
|
|
272
|
+
- **Batch 2** (Simulator 2): DetailView, CreateView, FavoritesView
|
|
273
|
+
- **Batch 3** (Simulator 3): ProfileView, SettingsView
|
|
274
|
+
|
|
275
|
+
### UI Testing Batches
|
|
276
|
+
- **Batch 1** (Simulator 1): Home tab, Explore tab
|
|
277
|
+
- **Batch 2** (Simulator 2): Detail screen, Create flow, Favorites tab
|
|
278
|
+
- **Batch 3** (Simulator 3): Profile tab, Settings
|
|
279
|
+
|
|
280
|
+
### Maestro Test Batches
|
|
281
|
+
- **Batch 1**: launch.yaml, home-tab.yaml, explore-tab.yaml
|
|
282
|
+
- **Batch 2**: detail-screen.yaml, create-flow.yaml, search-flow.yaml
|
|
283
|
+
- **Batch 3**: profile-tab.yaml, favorites-tab.yaml, e2e-navigation.yaml
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
## Template Selection Heuristics
|
|
287
|
+
|
|
288
|
+
When deciding which template to use, consider:
|
|
289
|
+
|
|
290
|
+
| Website Type | Best Template Match |
|
|
291
|
+
|-------------|-------------------|
|
|
292
|
+
| E-commerce / Shop | ShopTemplate |
|
|
293
|
+
| Blog / News / Content | SocialTemplate |
|
|
294
|
+
| Booking / Appointments | BookTemplate |
|
|
295
|
+
| Fitness / Health tracking | TrackTemplate |
|
|
296
|
+
| Finance / Banking | FinanceTemplate |
|
|
297
|
+
| Social / Community | SocialTemplate |
|
|
298
|
+
| Chat / Messaging | ChatTemplate |
|
|
299
|
+
| General / Mixed | Skeleton (or scratch) |
|
|
300
|
+
|
|
301
|
+
If the web-to-app manifest matches a template at 70%+ screen overlap, use it. Otherwise, recommend scratch mode or the Skeleton template.
|
|
302
|
+
|
|
303
|
+
## Key Principles
|
|
304
|
+
|
|
305
|
+
1. **Mobile-first thinking**: websites have infinite scroll space; mobile apps need concise, focused screens
|
|
306
|
+
2. **Tab bar is the backbone**: map the site's main sections to 4-5 tabs maximum
|
|
307
|
+
3. **Progressive disclosure**: detail pages are push-navigated from list pages, not shown inline
|
|
308
|
+
4. **Brand fidelity**: match the website's colors, typography feel, and card/layout patterns as closely as the native platform allows
|
|
309
|
+
5. **Content fidelity**: use actual content from the website (entity names, categories, descriptions) not generic placeholders
|
|
310
|
+
6. **Platform conventions**: respect iOS HIG and Material Design guidelines even while matching the web brand
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
# Web Crawler Skill
|
|
2
|
+
|
|
3
|
+
Systematically crawl a website using ai-tester MCP tools to capture its structure, brand, content, and functionality. Produce a structured crawl report that feeds into the web-analyzer skill.
|
|
4
|
+
|
|
5
|
+
## Inputs
|
|
6
|
+
|
|
7
|
+
- **URL**: The website URL to crawl
|
|
8
|
+
- **Focus directive** (optional): Which sections to prioritize
|
|
9
|
+
|
|
10
|
+
## Tools
|
|
11
|
+
|
|
12
|
+
Use ONLY ai-tester MCP tools for all web interaction:
|
|
13
|
+
- `inspect({ platform: "web", url: "...", saveBaseline: "...", label: "..." })` — load page, get screenshot + element tree
|
|
14
|
+
- `navigate({ url: "..." })` — navigate to a page
|
|
15
|
+
- `act({ action: "tap", selector: "..." })` — click elements (menus, dropdowns, modals)
|
|
16
|
+
- `act({ action: "swipe", direction: "down" })` — scroll the page
|
|
17
|
+
- `wait({ for: "duration", duration: 2000 })` — wait for content to load
|
|
18
|
+
|
|
19
|
+
## Crawl Strategy
|
|
20
|
+
|
|
21
|
+
### Phase 1: Home Page Analysis
|
|
22
|
+
|
|
23
|
+
1. Load the home page:
|
|
24
|
+
```
|
|
25
|
+
inspect({ platform: "web", url: "{url}", saveBaseline: "page-home", label: "Home" })
|
|
26
|
+
```
|
|
27
|
+
2. Save the screenshot path: `output/{app-name}/web-crawl/screenshots/page-home.png`
|
|
28
|
+
3. Analyze the element tree for:
|
|
29
|
+
- **Navigation elements**: `<nav>`, header links, hamburger menus, footer links
|
|
30
|
+
- **Hero/banner sections**: main call-to-action areas
|
|
31
|
+
- **Content sections**: cards, lists, grids
|
|
32
|
+
- **Brand signals**: logo, primary colors in buttons/headers, font styles
|
|
33
|
+
|
|
34
|
+
### Phase 2: Navigation Discovery
|
|
35
|
+
|
|
36
|
+
From the home page element tree, identify all major navigation links:
|
|
37
|
+
- Primary navigation (top nav bar, main menu)
|
|
38
|
+
- Secondary navigation (sidebar, sub-menus)
|
|
39
|
+
- Footer navigation (about, contact, legal)
|
|
40
|
+
- Call-to-action links (sign up, get started, shop now)
|
|
41
|
+
|
|
42
|
+
Build a **page queue** of URLs to visit. Prioritize:
|
|
43
|
+
1. Primary nav links (always visit)
|
|
44
|
+
2. Pages mentioned in the focus directive (if provided)
|
|
45
|
+
3. Secondary nav links (visit if under 10 pages total)
|
|
46
|
+
4. Skip: external links, auth/login pages, legal/privacy pages
|
|
47
|
+
|
|
48
|
+
### Phase 3: Page-by-Page Crawl
|
|
49
|
+
|
|
50
|
+
For each page in the queue (max 10 pages, depth 2 from home):
|
|
51
|
+
|
|
52
|
+
1. Navigate to the page:
|
|
53
|
+
```
|
|
54
|
+
navigate({ url: "{pageUrl}" })
|
|
55
|
+
```
|
|
56
|
+
2. Wait for content to load:
|
|
57
|
+
```
|
|
58
|
+
wait({ for: "duration", duration: 2000 })
|
|
59
|
+
```
|
|
60
|
+
3. Capture screenshot + element tree:
|
|
61
|
+
```
|
|
62
|
+
inspect({ saveBaseline: "page-{slug}", label: "{Page Title}" })
|
|
63
|
+
```
|
|
64
|
+
4. Scroll down to capture below-fold content:
|
|
65
|
+
```
|
|
66
|
+
act({ action: "swipe", direction: "down" })
|
|
67
|
+
wait({ for: "duration", duration: 1000 })
|
|
68
|
+
inspect({ saveBaseline: "page-{slug}-scroll", label: "{Page Title} (scrolled)" })
|
|
69
|
+
```
|
|
70
|
+
5. Check for interactive elements:
|
|
71
|
+
- **Forms**: identify input fields, textareas, submit buttons
|
|
72
|
+
- **Dropdowns/modals**: tap to open, capture expanded state
|
|
73
|
+
- **Tabs/accordions**: click to reveal hidden content
|
|
74
|
+
- **Search**: identify search inputs and their behavior
|
|
75
|
+
|
|
76
|
+
Record for each page:
|
|
77
|
+
- URL
|
|
78
|
+
- Page title
|
|
79
|
+
- Screenshot file paths (above-fold + scrolled)
|
|
80
|
+
- Element tree summary (interactive elements count, content sections)
|
|
81
|
+
- Content type (list page, detail page, form page, informational page)
|
|
82
|
+
- Key entities displayed (products, articles, users, events, etc.)
|
|
83
|
+
|
|
84
|
+
### Phase 4: Brand Extraction
|
|
85
|
+
|
|
86
|
+
From the collected screenshots and element trees, extract:
|
|
87
|
+
|
|
88
|
+
**Colors**:
|
|
89
|
+
- Primary color: dominant color in buttons, headers, and CTAs
|
|
90
|
+
- Secondary color: accent color used for highlights, links, hover states
|
|
91
|
+
- Background: main page background color
|
|
92
|
+
- Surface: card/section background color
|
|
93
|
+
- Text colors: heading color, body text color
|
|
94
|
+
- Error/success colors if visible in any forms
|
|
95
|
+
|
|
96
|
+
**Typography**:
|
|
97
|
+
- Heading font style (serif, sans-serif, monospace)
|
|
98
|
+
- Body text font style
|
|
99
|
+
- Relative sizes (large headings, medium subheads, regular body)
|
|
100
|
+
|
|
101
|
+
**Layout Patterns**:
|
|
102
|
+
- Card style (rounded corners, shadows, borders)
|
|
103
|
+
- Grid layout (2-column, 3-column, masonry)
|
|
104
|
+
- List layout (compact, spacious, with thumbnails)
|
|
105
|
+
- Spacing rhythm (tight, medium, generous)
|
|
106
|
+
|
|
107
|
+
**Logo & Imagery**:
|
|
108
|
+
- Logo description (text-based, icon, combination mark)
|
|
109
|
+
- Image style (photos, illustrations, icons)
|
|
110
|
+
- Hero section pattern (full-width image, gradient, video)
|
|
111
|
+
|
|
112
|
+
### Phase 5: Functionality Inventory
|
|
113
|
+
|
|
114
|
+
Catalog all interactive functionality discovered:
|
|
115
|
+
|
|
116
|
+
- **Search**: search bar location, search behavior (instant, page-based)
|
|
117
|
+
- **Forms**: sign up, contact, create/edit forms — list all fields
|
|
118
|
+
- **Filters**: category filters, sort options, tag filters
|
|
119
|
+
- **Navigation patterns**: pagination, infinite scroll, back/forward
|
|
120
|
+
- **Authentication**: login/signup forms (note: do NOT attempt to log in)
|
|
121
|
+
- **CRUD indicators**: create buttons, edit icons, delete actions
|
|
122
|
+
- **E-commerce**: cart, checkout, product selection
|
|
123
|
+
- **Social**: comments, likes, sharing, user profiles
|
|
124
|
+
|
|
125
|
+
## Output
|
|
126
|
+
|
|
127
|
+
Write `output/{app-name}/reports/02-web-crawl-report.md` with this structure:
|
|
128
|
+
|
|
129
|
+
```markdown
|
|
130
|
+
# Web Crawl Report
|
|
131
|
+
|
|
132
|
+
## Source
|
|
133
|
+
- **URL**: {url}
|
|
134
|
+
- **Crawl date**: {date}
|
|
135
|
+
- **Pages crawled**: {count}
|
|
136
|
+
- **Focus directive**: {description or "none"}
|
|
137
|
+
|
|
138
|
+
## Site Map
|
|
139
|
+
|
|
140
|
+
| # | Page | URL | Type | Screenshot |
|
|
141
|
+
|---|------|-----|------|------------|
|
|
142
|
+
| 1 | Home | {url} | Landing | page-home.png |
|
|
143
|
+
| 2 | Products | {url}/products | List | page-products.png |
|
|
144
|
+
| ... | | | | |
|
|
145
|
+
|
|
146
|
+
## Navigation Structure
|
|
147
|
+
|
|
148
|
+
### Primary Navigation
|
|
149
|
+
- Home
|
|
150
|
+
- Products → /products
|
|
151
|
+
- About → /about
|
|
152
|
+
- Contact → /contact
|
|
153
|
+
|
|
154
|
+
### Secondary Navigation
|
|
155
|
+
(sub-menus, sidebar links)
|
|
156
|
+
|
|
157
|
+
### Footer Navigation
|
|
158
|
+
(footer links)
|
|
159
|
+
|
|
160
|
+
## Brand Palette
|
|
161
|
+
|
|
162
|
+
### Colors
|
|
163
|
+
- **Primary**: #{hex} (from: buttons, headers)
|
|
164
|
+
- **Secondary**: #{hex} (from: links, accents)
|
|
165
|
+
- **Background**: #{hex}
|
|
166
|
+
- **Surface**: #{hex} (cards, sections)
|
|
167
|
+
- **Text Primary**: #{hex}
|
|
168
|
+
- **Text Secondary**: #{hex}
|
|
169
|
+
|
|
170
|
+
### Typography
|
|
171
|
+
- **Headings**: {font style description}
|
|
172
|
+
- **Body**: {font style description}
|
|
173
|
+
- **Size scale**: {relative sizes}
|
|
174
|
+
|
|
175
|
+
### Layout Patterns
|
|
176
|
+
- **Cards**: {description — rounded corners, shadow, border}
|
|
177
|
+
- **Grid**: {column count, gap}
|
|
178
|
+
- **Spacing**: {tight/medium/generous}
|
|
179
|
+
|
|
180
|
+
### Logo & Imagery
|
|
181
|
+
- **Logo**: {description}
|
|
182
|
+
- **Image style**: {photos/illustrations/icons}
|
|
183
|
+
|
|
184
|
+
## Content Model
|
|
185
|
+
|
|
186
|
+
### Entities
|
|
187
|
+
1. **{Entity Name}** (e.g., Product)
|
|
188
|
+
- Fields: name, price, image, description, category, rating
|
|
189
|
+
- Seen on: /products, /products/{id}
|
|
190
|
+
- Count: ~{n} items visible
|
|
191
|
+
|
|
192
|
+
2. **{Entity Name}** (e.g., Blog Post)
|
|
193
|
+
- Fields: title, author, date, excerpt, image
|
|
194
|
+
- Seen on: /blog, /blog/{slug}
|
|
195
|
+
|
|
196
|
+
### Categories
|
|
197
|
+
- {Category 1}: {description}
|
|
198
|
+
- {Category 2}: {description}
|
|
199
|
+
|
|
200
|
+
## Functionality Inventory
|
|
201
|
+
|
|
202
|
+
### Search
|
|
203
|
+
- Location: {header/page}
|
|
204
|
+
- Type: {instant/page-based}
|
|
205
|
+
|
|
206
|
+
### Forms
|
|
207
|
+
1. **{Form Name}** (e.g., Contact Form)
|
|
208
|
+
- Fields: name, email, message
|
|
209
|
+
- Location: /contact
|
|
210
|
+
|
|
211
|
+
### Filters & Sorting
|
|
212
|
+
- {description of filter/sort options}
|
|
213
|
+
|
|
214
|
+
### Authentication
|
|
215
|
+
- Login: {yes/no, location}
|
|
216
|
+
- Sign up: {yes/no, location}
|
|
217
|
+
|
|
218
|
+
### Other Features
|
|
219
|
+
- {feature}: {description}
|
|
220
|
+
|
|
221
|
+
## Page Details
|
|
222
|
+
|
|
223
|
+
### Page: {Page Name}
|
|
224
|
+
- **URL**: {url}
|
|
225
|
+
- **Type**: {list/detail/form/landing}
|
|
226
|
+
- **Screenshot**: page-{slug}.png
|
|
227
|
+
- **Key elements**: {description}
|
|
228
|
+
- **Interactive elements**: {count} buttons, {count} links, {count} inputs
|
|
229
|
+
- **Content**: {summary of what's displayed}
|
|
230
|
+
|
|
231
|
+
(repeat for each page)
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
## Limits & Safety
|
|
235
|
+
|
|
236
|
+
- **Max pages**: 10 (prioritize primary nav and focus directive pages)
|
|
237
|
+
- **Max depth**: 2 levels from home page
|
|
238
|
+
- **Timeout**: 5 seconds per page load — skip pages that don't load
|
|
239
|
+
- **No authentication**: do NOT attempt to log in or create accounts
|
|
240
|
+
- **No form submission**: inspect forms but do NOT submit them
|
|
241
|
+
- **No payments**: do NOT interact with payment flows
|
|
242
|
+
- **External links**: skip links to other domains
|
|
243
|
+
- **Rate limiting**: wait 1-2 seconds between page navigations
|
|
244
|
+
|
|
245
|
+
## Focus Directive Handling
|
|
246
|
+
|
|
247
|
+
If a focus directive is provided:
|
|
248
|
+
1. Still crawl the home page first (for brand extraction)
|
|
249
|
+
2. Prioritize pages related to the directive
|
|
250
|
+
3. Explore those sections more deeply (depth 2)
|
|
251
|
+
4. Other sections: capture at depth 1 only (screenshot + basic element tree)
|
|
252
|
+
5. In the crawl report, mark which pages are "primary" (from directive) vs "secondary"
|
package/AGENTS.md
CHANGED
|
@@ -29,8 +29,8 @@ flowchart TD
|
|
|
29
29
|
S6 -->|Build fails| S6fix["Fix errors"]
|
|
30
30
|
S6fix --> S6
|
|
31
31
|
|
|
32
|
-
S6 -->|Build succeeds| S7["Step 7: PARALLEL —
|
|
33
|
-
S7 --> S8["Step 8:
|
|
32
|
+
S6 -->|Build succeeds| S7["Step 7: PARALLEL — Audits + Boot Sims"]
|
|
33
|
+
S7 --> S8["Step 8: Install App"]
|
|
34
34
|
S8 --> S9["Step 9: PARALLEL — Interactive UI Testing (2-3 simulators)"]
|
|
35
35
|
|
|
36
36
|
S9 -->|Bug found| S9fix["Fix + rebuild"]
|
|
@@ -45,18 +45,18 @@ flowchart TD
|
|
|
45
45
|
|
|
46
46
|
| Step | Name | Parallelism | What Happens |
|
|
47
47
|
|------|------|-------------|-------------|
|
|
48
|
-
| 0 | Analysis Phase | **
|
|
48
|
+
| 0 | Analysis Phase | **3 parallel tasks** | Validate prompt + catalog analysis (template + modules) + design brand concurrently. Abort if validation fails. |
|
|
49
49
|
| 1 | Clone Template | — | Copy the template into `output/{app-name}/`. |
|
|
50
50
|
| 2 | Rename App | — | Update display name, bundle ID, package name, all code references. Uses script if available. |
|
|
51
51
|
| 3 | Customization Planning | — | Produce a manifest with design brief, content brief, AppConfig values, mock data spec, module integration plan, per-screen changes, and parallel batches. |
|
|
52
52
|
| 4 | Update Shared Files + Integrate Modules | — | Apply manifest to AppConfig, MockDataProvider, Theme/Colors. Integrate selected modules by reading references from `templates/shared/` and writing adapted code into the app. |
|
|
53
53
|
| 5 | Screen Customization | **2-3 parallel subagents** | Each subagent runs the platform customizer skill (ios-customizer, android-customizer, or react-native-customizer) on its assigned batch of screen files from the manifest. |
|
|
54
54
|
| 6 | Build | — | Compile the app. Fix errors and rebuild until it succeeds. Save the artifact path. |
|
|
55
|
-
| 7 |
|
|
56
|
-
| 8 |
|
|
55
|
+
| 7 | Audits + Boot Sims | **3 parallel tasks** | Security audit + output validation + boot simulators run concurrently (sim boot is independent, saves ~30-60s). |
|
|
56
|
+
| 8 | Install App | — | Install the build artifact on all (already booted) simulators. |
|
|
57
57
|
| 9 | Interactive Testing | **2-3 parallel subagents** | Each subagent tests its screen batch on its own simulator. Fix bugs if found. |
|
|
58
58
|
| 10 | Maestro Tests | **2-3 parallel subagents** | Each subagent runs its YAML test batch on its own simulator. All must pass. |
|
|
59
|
-
| 11 |
|
|
59
|
+
| 11 | Screenshots + Cleanup | — | Capture one clean screenshot per main tab using ai-tester. Shut down simulators. |
|
|
60
60
|
|
|
61
61
|
### Quick Build Workflow
|
|
62
62
|
|
|
@@ -81,19 +81,38 @@ When `--scratch` is used, the workflow changes. The agent reads templates as ref
|
|
|
81
81
|
|
|
82
82
|
| Step | Name | Parallelism | What Happens |
|
|
83
83
|
|------|------|-------------|-------------|
|
|
84
|
-
| 0 | Analysis Phase | **
|
|
84
|
+
| 0 | Analysis Phase | **3 parallel tasks** | Same as template mode: validate prompt + catalog analysis (1-3 reference templates + modules) + design brand. |
|
|
85
85
|
| 1 | Architecture + Content Planning | -- | Read reference templates and module list. Plan screens, models, navigation. Produce content brief with all user-facing strings. Account for which features modules provide. |
|
|
86
86
|
| 2 | Project Scaffolding | -- | Create a new Xcode/Gradle/React Native project from scratch. Verify it compiles. |
|
|
87
87
|
| 3 | Module Integration | -- | Read shared module references from `templates/shared/` and write adapted code into the project. Done before custom code so the agent builds on module APIs. |
|
|
88
88
|
| 4 | Write All Code + Design | -- | Write screens, viewmodels, models, mock data, theme. Apply design brand. Use content brief for all strings. |
|
|
89
89
|
| 5 | Build | -- | Same as template mode. |
|
|
90
|
-
| 6 |
|
|
91
|
-
| 7 |
|
|
90
|
+
| 6 | Audits + Boot Sims | **3 parallel tasks** | Same as template mode. |
|
|
91
|
+
| 7 | Install App | -- | Same as template mode. |
|
|
92
92
|
| 8 | Interactive Testing | **2-3 parallel subagents** | Same as template mode. |
|
|
93
93
|
| 9 | Maestro Tests | **2-3 parallel subagents** | Same as template mode. |
|
|
94
94
|
|
|
95
95
|
Key differences: no clone/rename steps, modules read from `templates/shared/` as reference and adapted into the project, content planned before implementation, agent has full architectural freedom.
|
|
96
96
|
|
|
97
|
+
### Deep Test Workflow
|
|
98
|
+
|
|
99
|
+
When `--deep-test <app-name>` is used, AppAgent runs a comprehensive 4-phase testing pipeline on a previously built app. Optionally auto-fixes discovered bugs with `--fix`.
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
appagent --deep-test my-app # test only
|
|
103
|
+
appagent --deep-test my-app --fix # test + auto-fix
|
|
104
|
+
appagent --fix my-app # standalone fix from existing bug report
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
| Phase | Name | Parallelism | What Happens |
|
|
108
|
+
|-------|------|-------------|-------------|
|
|
109
|
+
| 1 | Test Plan Generation | -- | Analyze source code offline (Views, ViewModels, AppConfig, MockDataProvider). Produce `10-test-plan.md`. |
|
|
110
|
+
| 2 | Exploratory Testing | **Parallel with Phase 3** | Screenshot + a11y tree driven testing on Simulator 1. Does NOT read source code. Finds visual, a11y, UX, content bugs. |
|
|
111
|
+
| 3 | Structured Testing | **Parallel with Phase 2** | Follows test plan from Phase 1 on Simulator 2+. Marks each test case pass/fail. |
|
|
112
|
+
| 4 | Auto-Fix (optional) | -- | Reads merged bug report, fixes each bug, rebuilds, verifies. Only runs with `--fix`. |
|
|
113
|
+
|
|
114
|
+
Key differences from `--test`: generates a test plan before testing, adds exploratory testing driven by screenshots + accessibility tree, produces a structured bug report, supports standalone fix mode.
|
|
115
|
+
|
|
97
116
|
### Update Workflow
|
|
98
117
|
|
|
99
118
|
When `--update <source>` is used, AppAgent modifies an existing app instead of creating a new one. The source can be a GitHub URL, a local path, or an app name from `output/`.
|
|
@@ -127,9 +146,8 @@ Skills are self-contained documents the agent reads when it reaches a workflow s
|
|
|
127
146
|
| Step | Skill | Report File |
|
|
128
147
|
|------|-------|------------|
|
|
129
148
|
| 0 | prompt-validator | `01-prompt-validation.md` |
|
|
130
|
-
| 0 |
|
|
149
|
+
| 0 | catalog-analyzer | `02-catalog-analysis.md` |
|
|
131
150
|
| 0 | design-selector | `03-design-brand.md` |
|
|
132
|
-
| 0 | module-selector | `02b-module-selection.md` |
|
|
133
151
|
| 4 | module-integrator | -- |
|
|
134
152
|
| 2 | app-renaming | -- |
|
|
135
153
|
| 3 | customization-planner | `customization-manifest.md` |
|
|
@@ -144,6 +162,9 @@ Skills are self-contained documents the agent reads when it reaches a workflow s
|
|
|
144
162
|
| 7 | code-auditor | `07-security-audit.md` |
|
|
145
163
|
| 7 | output-validator | `08-validation.md` |
|
|
146
164
|
| 8-10 | ui-tester | `09-ui-testing.md` |
|
|
165
|
+
| deep-test (Phase 1) | test-planner | `10-test-plan.md` |
|
|
166
|
+
| deep-test (Phase 2) | exploratory-tester | `11-bug-report.md` |
|
|
167
|
+
| deep-test (Phase 4) | bug-fixer | `12-fix-report.md` |
|
|
147
168
|
|
|
148
169
|
Skills that share a step with other activities (e.g., Steps 4's multiple skills all contribute to shared file updates) run sequentially within that step. The `customization-planner` (Step 3) is the key enabler — it produces a manifest that drives all subsequent steps and enables parallel screen customization (Step 5) and parallel UI testing (Steps 8-10).
|
|
149
170
|
|