本文へ移動
cccskills
無料GitHub で公開

build-verify

Build/test/lint verification pass for this Flutter app — runs codegen, analyze, test, then iOS + Android native builds in parallel, then `dart format`. Does NOT commit anything; leaves the working tree dirty so the user can review and commit on demand. Used at the end of the prd → techspec → tasks → implement-tasks-sequence flow before `pr-review`, and can also be invoked manually when the user says "verify build", "run full verification", or "check everything".

インストール方法を見る

含まれるファイル(2)

  • SKILL.md6.6 KB
  • scripts/verify.sh13.2 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Build Verify

Run the full verification suite once after all implementation work is done. This replaces per-task verification — the implementation flow is uninterrupted and centralizes all build / test / analyze / format checks here.

Usage

Run the orchestrator script:

.claude/skills/build-verify/scripts/verify.sh

It runs the Dart phase (codegen + analyze + test) sequentially with fail-fast, then runs the iOS and Android native builds in parallel, then dart format once both have passed.

By default the script auto-scopes based on what changed (committed vs ${BASE_REF:-main} plus uncommitted). Auto-scoping skips irrelevant work so small, single-platform changes aren't forced to build everything:

Diff shapeAuto-behavior
All changes under ios/ onlySkip Android native build
All changes under android/ onlySkip iOS native build
All changes under test/ onlySkip both native builds
No annotation- or pubspec-relevant changesSkip make gen codegen
Mixed, empty, or no diffRun everything

The auto-scope decision is printed at the top of the run so it's never silent.

Flags

FlagWhat it does
--fullDisable auto-scoping — run everything regardless of diff
--skip-genExplicitly skip make gen (assume codegen is current — also disables auto-scope)
--skip-buildsSkip native iOS + Android builds (only run Dart phase + format)
--ios-onlyRun only the iOS native build (still runs Dart phase; also disables auto-scope)
--android-onlyRun only the Android native build (still runs Dart phase; also disables auto-scope)

Environment

VarDefaultUsed for
FLAVORdevelopFlutter build flavor + entrypoint (lib/main_$FLAVOR.dart)
BASE_REFauto-detectedBranch to diff against for auto-scoping

Example: FLAVOR=staging ./.claude/skills/build-verify/scripts/verify.sh.

What each phase does

Dart phase — sequential, fail-fast (runs from the repo root):

  1. fvm flutter pub get (always — cheap and ensures deps are in sync).
  2. make gen — unless --skip-gen or auto-skipped. Runs flutter gen-l10n and dart run build_runner build --delete-conflicting-outputs.
  3. fvm flutter analyze.
  4. fvm flutter test.

Native builds — both run in parallel after the Dart phase passes:

  • iOS: fvm flutter build ios --no-codesign --flavor "$FLAVOR" -t "lib/main_$FLAVOR.dart"
  • Android: fvm flutter build apk --debug --flavor "$FLAVOR" -t "lib/main_$FLAVOR.dart"

Both verify compilation on each platform; iOS skips codesigning so it doesn't need provisioning profiles, and Android uses the debug variant so it doesn't need a release keystore.

On non-macOS hosts, the script skips the iOS native build automatically unless --ios-only was explicitly requested. Explicit iOS-only verification fails fast off macOS because flutter build ios requires Darwin/Xcode.

Format — runs after native builds pass: fvm dart format lib test. This auto-rewrites files; the script reports how many files changed so the user can review.

Output

Each native track writes to its own log under a temp directory. On success, only a short summary is printed. On failure, the last 150 lines of the failing track's log are printed and the full log path is included for inspection.

Report a concise summary to the user:

  • Pub get / codegen: [OK] / [SKIPPED]
  • Analyze: [OK] / [FAIL]
  • Test: [OK] / [FAIL]
  • iOS build: [OK] / [FAIL] / [SKIPPED]
  • Android build: [OK] / [FAIL] / [SKIPPED]
  • Format: [OK] (and how many files were auto-formatted, if any)

Remind the user that nothing has been committed — they can now run pr-review, review and commit manually, or invoke create-pr when ready.

Failure Handling

If the script exits non-zero:

  1. Read the printed log tail carefully; open the full log if needed.
  2. Fix the underlying issue in the source code. Do NOT disable checks, skip tests, or paper over the issue.
  3. Re-run. If only one native track failed, you can re-run just that track with --ios-only / --android-only to save time — but always do a full verify.sh run before declaring done.

If a step fails repeatedly (3+ attempts) and the fix is not obvious, stop and report the failure to the user rather than continuing.

Rules

  • Never commit. Even if format auto-rewrites files, leave them uncommitted.
  • Never skip phases silently. The script prints its auto-scope decision; include that line in the summary you report to the user so they know what ran vs. what was skipped. If you use explicit flags (--ios-only / --android-only / --skip-gen / --skip-builds / --full), say so explicitly as well.
  • Trust the auto-scope default. Don't reach for --full unless you actually need to validate cross-platform or you've changed shared infra (e.g. pubspec.yaml, theming, routing) the auto-scoper can't classify.
  • Root-cause fixes only. Don't suppress warnings with // ignore: or dynamic, and don't disable a test to make verification pass.
  • Use FVM. All Flutter / Dart invocations go through fvm so the pinned SDK in .fvmrc is used. The script checks for fvm and exits early if it isn't on PATH.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

create-pr

無料

Create or update a GitHub PR for this Flutter repository using gh CLI. Verifies the work with build-verify and pr-review, generates an inline PR description, commits pending changes when approved, pushes, and opens or updates the PR. Supports stacked PRs by asking for the base branch when detection is ambiguous. Use when the user says "create PR", "open PR", "push PR", or wants to submit their work for review.

日本語の概要は準備中です。原文の説明を表示しています。

strvcom/flutter-template242026年6月18日 更新

Build a full feature in this Flutter repository that includes backend or storage data flow: read API schema, create DTOs, map DTOs to entities, add Riverpod use cases, connect feature state, and render UI data. Use when a task goes beyond a screen and needs real data integration.

日本語の概要は準備中です。原文の説明を表示しています。

strvcom/flutter-template242026年6月18日 更新

Create a new Flutter screen in this repository using the existing feature structure, AutoRoute setup, Riverpod state pattern, and code generation workflow. Use when adding a new page, route, stateful screen, or feature folder in this template.

日本語の概要は準備中です。原文の説明を表示しています。

strvcom/flutter-template242026年6月18日 更新

implement

無料

Implement a single Flutter task following this repository's Riverpod, Freezed, AutoRoute, DTO/entity, codegen, and verification conventions. Reads the task definition, PRD, and tech spec, then executes the implementation. When invoked standalone, verifies the change; when invoked by implement-tasks-sequence, writes code only and leaves verification to start-job/build-verify. Use when the user says "implement task X", "work on task X", or wants to execute a specific task from the task list.

日本語の概要は準備中です。原文の説明を表示しています。

strvcom/flutter-template242026年6月18日 更新

Orchestrates implementation of all tasks for a feature using an agent team. Respects task dependencies, runs tasks in correct order, parallelizes independent tasks. Does NOT build, run tests, or commit at any point — verification is delegated to the caller (typically `/start-job`, which runs `build-verify` and `pr-review uncommitted` afterwards). Use when the user says "implement all tasks", "run the task sequence", "implement the feature", or wants to execute multiple tasks from a task list end-to-end.

日本語の概要は準備中です。原文の説明を表示しています。

strvcom/flutter-template242026年6月18日 更新

Diagnose and fix Flutter layout, overflow, unbounded constraint, scroll, and responsive rendering issues in this repository while preserving the template's existing feature, theme, localization, and shared widget patterns. Use when UI overflows, text clips, widgets disappear, layouts fail on mobile/tablet/desktop, or a feature needs responsive behavior.

日本語の概要は準備中です。原文の説明を表示しています。

strvcom/flutter-template242026年6月18日 更新

strvcom のスキルをすべて見る

このスキルの問題を報告する