From nextc-flutter
Build Flutter APK/IPA, update build log, and commit version bump. Use when the user wants to build the app, make a release, or create a build for testing. Handles platform selection, build mode, and artifact renaming.
How this skill is triggered — by the user, by Claude, or both
Slash command
/nextc-flutter:flutter-buildThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Interactive build pipeline: gather build parameters, spawn the flutter-builder agent to build, log, and commit.
Interactive build pipeline: gather build parameters, spawn the flutter-builder agent to build, log, and commit.
Run in parallel:
pubspec.yaml — extract current version: line (format: X.Y.Z+N).env file exists in project rootgit log --oneline -5 — show recent commits for contextParse the current version into:
current_version — the semantic version part (before +)current_build — the integer build number (after +)next_build — current_build + 1Present the current state and ask the user for build configuration in a single prompt:
Current version: {current_version}+{current_build}
Recent commits:
{last 5 commits}
Build configuration:
1. Platform: android / ios / both (default: both)
2. Mode: release / profile / debug (default: release)
3. Version: {current_version} (press enter to keep)
4. Build number: {next_build} (press enter to auto-increment)
5. Use .env: yes/no (default: yes if .env exists)
Please provide your choices (e.g., "android, release" or just press enter for defaults).
Wait for user response. Parse their choices — use defaults for anything not specified.
Show a summary:
Build plan:
Platforms : {platforms}
Mode : {mode}
Version : {version}+{build}
Env file : {.env or none}
Proceed?
Wait for user confirmation. If they say no or want changes, go back to Step 2.
Use the Agent tool:
Agent(
subagent_type: "flutter-builder",
description: "Build Flutter app",
run_in_background: false,
prompt: <see below>
)
Build the prompt with all confirmed parameters:
Build the Flutter app with the following configuration:
- Platform: {platforms}
- Build mode: {mode}
- Version: {version}
- Build number: {build}
- Env file: {path to .env or "none"}
- Project root: {absolute path to project}
Follow your full process: validate, bump version, build, rename artifacts, update buildlog, report, commit, and tag.
Do NOT run in background — the user needs to see build output and any errors.
After the agent completes, report:
Build report table:
| Platform | Status | Artifact | Path |
|----------|---------|----------------------------|-----------------------------------|
| Android | success | app_1.0.0_7.apk | build/app/outputs/apk/release/ |
| iOS | success | app_1.0.0_7.ipa | build/ios/ipa/ |
failed with a one-line error summary instead of artifact/pathAdditional info:
{version}+{build}build/{version}+{build} (only if build succeeded)git push && git push --tags when readyIf the flutter-builder agent is unavailable, execute the build steps inline:
flutter build commandsnpx claudepluginhub nextc/nextc-claude --plugin nextc-flutterGuides Flutter development for cross-platform iOS, Android, Web apps. Covers non-interactive CLI, project setup, state management, widgets, GoRouter navigation, platform channels, testing, CI/CD.
Builds and submits mobile apps using local fastlane pipelines with pre-submission checklists. Activates on queries about app builds, store submission, or mobile deployment.
Guides Capgo CLI workflows for native iOS/Android cloud builds: requesting builds, configuring credentials, updating signing, and managing output uploads. Use for hosted builds and signing artifacts.