publish

Build Flutter release archives for multiple platforms into build/publish.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/LarryHsiao/Skadi --skill publish-larryhsiao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: publish
Source: https://github.com/LarryHsiao/Skadi/tree/main/skills/publish
Command: npx skills add https://github.com/LarryHsiao/Skadi --skill publish-larryhsiao

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates building Flutter release archives for multiple platforms and collects them into build/publish.

Core Features & Use Cases

  • Validates Flutter project by checking pubspec.yaml exists before building.
  • Builds for multiple platforms using fvm flutter and collects artifacts into build/publish.
  • Provides safeguards like sequential builds, input validation, and clear error reporting for failed platforms.
  • Use Case: A mobile team needs to produce Android and iOS release artifacts for distribution in a CI pipeline.

Quick Start

Invoke /publish with one or more platforms to build and collect release archives.

Frequently Asked Questions about publish

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build Flutter release archives for multiple platforms into a single directory?

To build Flutter release archives for multiple platforms, you need to validate the project's pubspec.yaml, execute sequential fvm flutter builds, and collect the resulting artifacts into build/publish with a clean start each run.

Can I build Flutter web, macos, windows, and linux release artifacts at the same time?

Yes, you can build Flutter web, macos, windows, and linux release artifacts concurrently. The process enforces platform validation and collects the output archives from each target into the build/publish directory.

Do I need fvm flutter to build release archives for android and ios?

Yes, fvm flutter is required to build release archives for android and ios. The process uses fvm flutter for building platform-specific artifacts and provides clear error reporting if any platform build fails.

What is the best way to automate collecting platform-specific Flutter artifacts in a CI pipeline?

The best way to automate collecting platform-specific Flutter artifacts in a CI pipeline is to run a process that validates pubspec.yaml, sequentially builds target platforms using fvm flutter, and outputs the resulting archives into build/publish.

Why does my Flutter build process check for pubspec.yaml before producing release archives?

Checking for pubspec.yaml before producing release archives validates that the directory is a legitimate Flutter project. This safeguard prevents errors by ensuring platform-specific builds only execute in valid project environments.

Are there limitations when building Flutter release archives across platforms?

Limitations when building Flutter release archives across platforms include sequential build execution to prevent conflicts, strict input validation, and build failures for unsupported platforms that halt the collection of artifacts into build/publish.