一键导入
feature-scaffolder
Generates a standard Domain-Driven Design (DDD) feature-first directory structure inside the `lib` folder.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generates a standard Domain-Driven Design (DDD) feature-first directory structure inside the `lib` folder.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Sweeps the `assets/` folder and registers them in `pubspec.yaml`, preventing runtime "Asset not found" crashes.
Executes `dart run build_runner build -d` to generate code for packages like Freezed, JSON Serializable, and Riverpod.
Applies Dart fixes and formats Dart code according to standard guidelines.
Configures and runs the `flutter_launcher_icons` package to generate native app icons for iOS and Android.
Safely modifies `AndroidManifest.xml` and `Info.plist` to add native permissions (e.g., Camera, Location, Storage).
Cleans up the Flutter and iOS environments to recover from mysterious build errors and cached states.
| name | feature-scaffolder |
| description | Generates a standard Domain-Driven Design (DDD) feature-first directory structure inside the `lib` folder. |
When the developer asks to create a new screen, flow, or feature (e.g., 'auth', 'settings', 'shopping_cart'):
Create a clean DDD folder structure by running commands in the terminal with run_in_terminal or using the create_directory tools. Note that creating empty directories usually requires adding a .gitkeep file to ensure the folder is preserved by version control.
The structure should be placed inside lib/src/features/[feature_name].
Directories to create:
presentation/screenspresentation/widgetsapplication (For controllers/providers)domain (For models/entities)data (For repositories/data sources)Example PowerShell script to create feature directories:
$feature = "auth" # Replace with actual feature name
$dirs = @("presentation/screens", "presentation/widgets", "application", "domain", "data")
foreach ($d in $dirs) {
$path = "lib/src/features/$feature/$d"
New-Item -ItemType Directory -Force -Path $path
New-Item -ItemType File -Force -Path "$path/.gitkeep"
}
Once scaffolded, inform the user where the structure was created.