three-tomato
4
总安装量
2
周安装量
#49134
全站排名
安装命令
npx skills add https://github.com/trsoliu/three-tomato --skill three-tomato
Agent 安装分布
opencode
2
antigravity
2
github-copilot
2
codex
2
gemini-cli
2
kimi-cli
1
Skill 文档
Three-Tomato
å°éæ±ææ¡£è½¬æ¢ä¸ºå¤ç«¯åçå¼å代ç ï¼æ¯æ AndroidãiOSã鸿èãå°ç¨åºãå¿«åºç¨ãH5ãWebãmacOSãWindows ç 17 个平å°ã
æ ¸å¿ååï¼åçä¼å ï¼AI åå¥½ææ¯æ ï¼æ°æ®éå¤§ãææ¡£ä¸°å¯ï¼
Overview
This skill enables AI Agents to analyze requirement documents and generate native platform-specific code using AI-friendly tech stacks with large training datasets.
Supported Platforms
| Platform | Code | Language/Framework | AI-Friendly Reason |
|---|---|---|---|
| åçç§»å¨ç«¯ | |||
| Android | android |
Kotlin + Jetpack Compose | Kotlin æ°æ®é大ï¼Compose 声æå¼ UI |
| iOS | ios |
Swift + SwiftUI | Swift ç°ä»£è¯æ³ï¼SwiftUI 声æå¼ |
| HarmonyOS | harmony |
ArkTS + ArkUI | TypeScript è¶ éï¼AI çæ |
| å°ç¨åº | |||
| WeChat Mini Program | wechat-mp |
TypeScript + åç WXML | TS ç±»åå®å ¨ï¼ææ¡£ä¸°å¯ |
| Alipay Mini Program | alipay-mp |
TypeScript + åç AXML | åä¸ |
| Baidu Mini Program | baidu-mp |
TypeScript + åç Swan | åä¸ |
| Quick App | quick-app |
TypeScript | ç±» Vue è¯æ³ |
| Web | |||
| H5 Mobile | h5 |
TypeScript + React | React ä¼å ï¼æ°æ®éæå¤§ |
| Web Desktop | web |
TypeScript + React + Next.js | SSR/SSGï¼ä¼ä¸çº§é¦é |
| æ¡é¢åç | |||
| macOS | macos |
Swift + SwiftUI | åç Apple çæ |
| Windows | windows |
C# + WinUI 3 | .NET çææçï¼AI å好 |
| è·¨ç«¯ç§»å¨ | |||
| Flutter | flutter |
Dart + Riverpod | 髿§è½ï¼å£°æå¼ UI |
| React Native | react-native |
TypeScript + Zustand | React çæï¼AI å好 |
| Uni-app | uni-app |
Vue 3 + TypeScript | ä¸å¥ä»£ç å¤ç«¯è¿è¡ |
| Taro | taro |
React + TypeScript | 京ä¸åºåï¼React çæ |
| 跨端æ¡é¢ | |||
| Electron | electron |
React + TypeScript | Web ææ¯æ ï¼æçç¨³å® |
| Tauri | tauri |
Rust + React | 髿§è½ï¼ä½ç§¯å° |
Trigger Commands
Code Generation
ð¤ "transform to [platform]"
ð¤ "generate [platform] code"
ð¤ "convert requirement to multi-platform"
ð¤ "create platform specs"
ð¤ "转æ¢ä¸º[å¹³å°]代ç "
ð¤ "çæå¤ç«¯ä»£ç "
Self-Evolution
𧬠"3T evolve" / "3T æ»ç»å½çº³è¿å"
𧬠"3T log issue [description]" / "3T è®°å½é®é¢ [æè¿°]"
𧬠"3T show evolution log" / "3T æ¥çè¿åæ¥å¿"
Workflow
Evolution Workflow (3T evolve / 3T æ»ç»å½çº³è¿å)
When 3T evolve command is triggered, AI Agent executes:
Step 1: Collect Feedback
- Scan
.three-tomato/feedback/issues/for issue records - Analyze compile/runtime errors in
.three-tomato/output/ - Identify patterns from user’s manual code fixes
Step 2: Categorize Issues
- Group by platform (Android/iOS/Mini Programs, etc.)
- Group by type (syntax error/API changes/best practices/architecture)
- Calculate issue frequency
Step 3: Update Knowledge
- Update
references/patterns/known-issues.yaml– known issues database - Update
references/patterns/best-practices.yaml– best practices - Update platform-specific
plugins/[platform]-generator/PLUGIN.md - Log changes to
.three-tomato/evolution/changelog.md
Step 4: Validate Improvements
- Generate test cases for high-frequency issues
- Verify improved templates resolve the issues
- Output evolution report to
.three-tomato/evolution/reports/
Phase 1: Requirement Analysis
- Read requirement document from
.three-tomato/requirements/or specified path - Parse and extract:
- Feature specifications
- UI/UX requirements
- Data models
- API interfaces
- Business logic flows
Phase 2: Platform Selection
- Read
.three-tomato/config.yamlfor target platforms - Check enabled plugins in
plugins/_registry.yaml - Determine output platforms based on user command or config
Phase 3: Code Generation
For each target platform:
- Load platform-specific templates from
references/templates/[platform]/ - Apply tech stack configurations
- Generate:
- Project structure
- UI components
- Data models
- API clients
- Business logic
- Platform-specific configurations
Phase 4: Output & Validation
- Write generated code to
.three-tomato/output/[platform]/ - Generate comparison matrix
- Create migration guides between platforms
Configuration
Read configuration from .three-tomato/config.yaml:
# Target platforms to generate
platforms:
- android
- ios
- wechat-mp
- h5
# AI-Friendly Tech Stack (åçä¼å
ï¼æ°æ®é大)
tech_stack:
android:
language: kotlin # AI æ°æ®é大
ui: compose # 声æå¼ï¼AI å好
architecture: mvvm
di: hilt
network: retrofit + okhttp
async: coroutines
ios:
language: swift # ç°ä»£è¯æ³ï¼AI çæ
ui: swiftui # 声æå¼ UI
architecture: mvvm
network: urlsession # åçä¼å
async: async-await
harmony:
language: arkts # TypeScript è¶
é
ui: arkui
architecture: mvvm
wechat-mp:
language: typescript # ç±»åå®å
¨ï¼AI å好
framework: native # åçå¼å
alipay-mp:
language: typescript
framework: native
baidu-mp:
language: typescript
framework: native
quick-app:
language: typescript
h5:
language: typescript
framework: react # React ä¼å
ï¼æ°æ®éæå¤§
ui: antd-mobile
bundler: vite
web:
language: typescript
framework: react # React ä¼å
meta_framework: nextjs # SSR/SSG æ¯æ
ui: antd / shadcn-ui
state: zustand
macos:
language: swift
ui: swiftui
architecture: mvvm
windows:
language: csharp # C# AI æ°æ®é大
ui: winui3 # ç°ä»£ Windows UI
architecture: mvvm
# Output settings
output:
directory: .three-tomato/output
include_tests: true
include_docs: true
language: zh-CN
Plugin System
Hook Points
Plugins can extend functionality at these hooks:
before_analyze– Pre-process requirement documentsafter_analyze– Post-process extracted requirementsbefore_generate– Modify generation parameterson_generate– Custom code generation logicafter_generate– Post-process generated codeon_export– Custom export formats
Plugin Commands
ð "list platform plugins"
ð¦ "install plugin <source>"
â
"enable plugin <name>"
â "disable plugin <name>"
Built-in Plugins
| Plugin | Description |
|---|---|
| åçå¹³å° | |
android-generator |
Android åç (Kotlin + Compose) |
ios-generator |
iOS åç (Swift + SwiftUI) |
harmony-generator |
HarmonyOS (ArkTS + ArkUI) |
wechat-mp-generator |
微信å°ç¨åº (TypeScript) |
alipay-mp-generator |
æ¯ä»å®å°ç¨åº (TypeScript) |
baidu-mp-generator |
ç¾åº¦æºè½å°ç¨åº (TypeScript) |
quick-app-generator |
å¿«åºç¨ (TypeScript) |
h5-generator |
H5 ç§»å¨ç«¯ (React + TypeScript) |
web-generator |
Web æ¡é¢ç«¯ (Next.js + React) |
macos-generator |
macOS åç (Swift + SwiftUI) |
windows-generator |
Windows åç (C# + WinUI 3) |
| è·¨ç«¯æ¡æ¶ | |
flutter-generator |
Flutter (Dart + Riverpod) |
rn-generator |
React Native (TypeScript + Zustand) |
uni-app-generator |
Uni-app (Vue 3 + TypeScript) |
taro-generator |
Taro (React + TypeScript) |
electron-generator |
Electron (React + TypeScript) |
tauri-generator |
Tauri (Rust + React) |
| å·¥å ·ç±» | |
api-sync |
è·¨å¹³å° API å®ä¹åæ¥ |
ui-converter |
UI ç»ä»¶è·¨å¹³å°è½¬æ¢ |
i18n-sync |
å½é åèµæºåæ¥ |
diff-report |
å¹³å°å·®å¼æ¥åçæ |
Output Structure
.three-tomato/
âââ config.yaml # Main configuration
âââ requirements/ # Input requirement documents
â âââ PRD.md # Product requirement document
â âââ api.yaml # API specifications
â âââ ui-specs/ # UI design specs
âââ cache/ # Incremental cache
âââ output/ # Generated code
â âââ android/ # Kotlin + Compose
â âââ ios/ # Swift + SwiftUI
â âââ harmony/ # ArkTS + ArkUI
â âââ wechat-mp/ # TypeScript åç
â âââ alipay-mp/ # TypeScript åç
â âââ baidu-mp/ # TypeScript åç
â âââ quick-app/ # TypeScript
â âââ h5/ # React + TypeScript
â âââ web/ # Next.js + React
â âââ macos/ # Swift + SwiftUI
â âââ windows/ # C# + WinUI 3
â âââ _shared/ # å
±äº«èµæº
â âââ models/ # æ°æ®æ¨¡åå®ä¹
â âââ api/ # API æ¥å£å®ä¹
â âââ assets/ # å
±äº«èµæºæä»¶
âââ reports/ # Analysis reports
â âââ comparison.md # Platform comparison
â âââ migration.md # Migration guide
â âââ compatibility.md # Compatibility matrix
âââ i18n/ # Multi-language docs
âââ en/
âââ zh/
Important Instructions
For AI Agent:
- Always read config first: Check
.three-tomato/config.yamlbefore generation - Respect tech stack: Use configured frameworks and libraries
- Maintain consistency: Ensure data models and API calls are consistent across platforms
- Platform idioms: Follow each platform’s best practices and conventions
- Protocol Retention:
- If requirement/legacy uses gRPC:
- Supported Platforms (iOS, Android, Windows, macOS, Flutter): MUST use gRPC to maintain high performance and type safety.
- Restricted Platforms (Mini Programs, H5): Fallback to HTTP/JSON (via Envoy/Gateway).
- If requirement uses REST/GraphQL: Use standard HTTP clients.
- If requirement/legacy uses gRPC:
- Incremental updates: Only regenerate changed parts using cache
- Preserve user content: Content marked with
<!-- user-content -->must not be overwritten
Code Quality Standards:
- Follow platform-specific coding guidelines
- Include proper error handling
- Add necessary comments (in configured language)
- Generate unit tests when
include_tests: true - Create platform-specific README with setup instructions
Cross-Platform Consistency:
- Unified data model definitions
- Consistent API interface naming
- Shared business logic documentation
- Synchronized i18n resources
References
- Templates:
references/templates/ - Prompts:
references/prompts/ - Examples:
references/examples/ - Platform Guides:
docs/platforms/
Version
- Skill Version: 1.0.1
- Last Updated: 2026-01-30
- Author: three-tomato