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

pr-review

Review pull requests, branch diffs, and uncommitted changes in this Flutter repository with a bug-finding mindset. Use when asked to review changes, review a PR, audit a diff, check standards, check compliance, or look for regressions, missing tests, release risks, or architecture mismatches.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md8.2 KB

SKILL.md(原文)

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

Flutter Template PR Review

Use this skill when reviewing a pull request, branch diff, or a set of code changes in this repository.

Review Goal

Prioritize finding:

  • bugs
  • regressions
  • broken assumptions
  • architecture drift
  • missing tests
  • upgrade or release risks

Do not treat the review as a style-polish exercise unless the user asks for that explicitly.

Read First

  • AGENTS.md
  • docs/PROJECT_OVERVIEW.md
  • docs/PROJECT_GUIDELINES.md
  • any changed files

Determine Review Scope

Parse the user's request and choose the smallest matching diff scope.

User asks forReview scope
default, branch review, PR reviewgit diff <default_branch>...HEAD
uncommitted changesgit diff plus git diff --cached
a specific commitgit show <commit>
last N commitsgit diff HEAD~N...HEAD
branch X vs Ygit diff X...Y
explicit commit rangegit diff <range>

Detect the default branch with:

git symbolic-ref refs/remotes/origin/HEAD | sed 's|refs/remotes/origin/||'

If that fails, try main, then master.

Gather:

git diff --name-status <range>
git diff --stat <range>
git diff --unified=5 <range>

For uncommitted reviews, gather both unstaged and staged diffs. If there are no changes, say so and stop. If there are more than 50 changed files, warn that it is a large review and ask whether to proceed or narrow the scope.

Classify Changed Files

Classify every non-deleted changed file before reviewing so the right standards are applied. A file can belong to multiple categories.

CategoryFile patternsReview focus
Feature UIlib/features/**/**_page.dart, lib/features/**/**_page_content.dartpage thinness, shared widgets, localization, theme extensions, user-facing states
Feature statelib/features/**/**_state.dart, lib/features/**/**_event.dartRiverpod orchestration, async gaps, freezed unions, one-off events
Navigationlib/app/navigation/**, changed @RoutePage() widgetsAutoRoute registration, generated route expectations, deep-link or shell behavior
Data and entitieslib/common/data/dto/**, lib/common/data/entity/**, lib/common/data/enum/**DTO/entity separation, JSON/freezed annotations, resilient mapping
Use cases and providerslib/common/usecase/**, lib/common/provider/**, lib/core/**IO boundaries, provider lifetimes, startup assumptions, service wiring
Theme and shared UIlib/app/theme/**, lib/common/component/**, lib/common/composition/**reuse, accessibility, edge-to-edge/system bar behavior, visual consistency
Localization and assetsassets/localization/**, pubspec.yaml, asset inputsgenerated accessors, context.locale, make gen expectations
Teststest/**, integration_test/**coverage quality, realistic assertions, Patrol vs widget-test boundaries
Platform filesandroid/**, ios/**, web/**, macos/**, linux/**, windows/**flavor config, Firebase, signing, native build risks
Release and CI.github/**, makefile, release_notes.txt, .fvmrc, pubspec.yamlversion alignment, workflow blast radius, release sequencing
Migration referenceimported Kotlin/Swift/KMP files, migration notes, copied source snippetsbehavior parity only; do not require KMP/iOS style rules in Flutter code

Skip deleted files, generated files, and generated asset files unless the source change suggests a generation problem. Generated examples include *.g.dart, *.freezed.dart, *.gr.dart, lib/assets/**, .generated. files, and platform build outputs.

Workflow

  1. Inspect the changed files and classify the behavioral surface area.
  2. Read the surrounding code, not just the diff hunk.
  3. Apply every relevant repo-specific check for each file category.
  4. Check whether the change matches existing repo patterns for:
    • feature structure
    • routing
    • Riverpod state handling
    • DTO/entity separation
    • codegen expectations
    • release/versioning workflow
  5. Look for risk in:
    • startup/setup code
    • generated-code assumptions
    • notification and Firebase wiring
    • secrets handling
    • build or CI config
    • platform-specific files
  6. Check whether tests should have changed.
  7. Only report issues introduced by added or modified lines in the reviewed diff. Use surrounding code to understand the bug, but do not report pre-existing unrelated issues.
  8. Only after reviewing findings, summarize the overall change briefly.

Parallel Review Lanes

When the environment supports parallel review agents and the user has asked for delegated or parallel agent work, split the diff by category and review lanes concurrently. Otherwise, perform the lanes yourself in sequence.

Use only lanes that have matching files:

LaneCategories
Flutter UIFeature UI, Theme and shared UI, Localization and assets
Riverpod architectureFeature state, Use cases and providers
Data flowData and entities, Use cases and providers
Navigation and startupNavigation, startup/setup-facing providers, Platform files
Tests and releaseTests, Release and CI
Migration parityMigration reference plus the Flutter files that implement the migrated behavior

Merge lane results by deduplicating identical file/line findings, then sort by severity.

Output Format

Present findings first, ordered by severity.

Each finding should include:

  • severity (IMPORTANT for must-fix defects or NIT for minor mechanical/style issues)
  • concise explanation of the problem
  • why it matters
  • file reference
  • suggested fix

After findings, optionally include:

  • open questions or assumptions
  • brief summary of what changed
  • passed checklist areas, when useful

If there are no findings, say so explicitly and mention any residual risk or untested area.

For standards-style reviews, use this structure:

Standards Review Report
Branch: <branch>
Compared against: <base or range>
Files reviewed: <count>
Review lanes: <lanes>

IMPORTANT Violations
...

NIT Violations
...

Passed Checklists
...

Auto-Fixing NITs

If the user explicitly asks for standards/compliance review with fixes, or asks to apply safe fixes after the report, mechanically auto-fix only unambiguous NIT violations.

Do:

  • touch only files included in the review scope
  • apply the smallest possible edit for each NIT
  • leave the working tree unstaged
  • list every applied NIT fix

Do not:

  • auto-fix IMPORTANT findings
  • auto-fix ambiguous suggestions
  • run broad formatting unless the NIT specifically requires it
  • stage or commit fixes

Repo-Specific Watch Outs

  • Some services in this template are scaffolded but not fully enabled, especially in lib/app/setup/setup_app.dart.
  • Changes to routes, @riverpod, @freezed, DTOs, localization, or assets often imply make gen.
  • Generated files may change as part of legitimate work, but review the source change first.
  • Workflow and release file edits can have impact beyond local code behavior.
  • Widget tests under test/ should run under flutter test; integration flows under integration_test/ are separate.
  • In KMP-to-Flutter migration work, check behavior parity against source material while still enforcing Flutter template architecture.
  • Avoid importing KMP/iOS concepts directly into Flutter names or layers unless the destination codebase already has the equivalent abstraction.

Good Review Questions

  • Does this change break the existing startup assumptions?
  • Does it bypass shared use cases or data mapping layers?
  • Does it introduce a mismatch between .fvmrc, pubspec.yaml, CI, or generated files?
  • Does it add behavior without adding or updating validation?
  • Does it change release, secrets, or notification behavior in a risky way?
  • Does migrated behavior preserve user-visible flows without leaking source-platform architecture into Flutter?

レビュー

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

同じリポジトリのスキル

概要と使いどころ

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".

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

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

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日 更新

strvcom のスキルをすべて見る

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