flutter-dart-code-review

A library-agnostic Flutter/Dart code review checklist covering widget best practices, state management patterns (BLoC, Riverpod, Provider, GetX, MobX, Signals), Dart idioms, performance, and accessibility.

Last repository push
GitHub Stars
313,646
Forks
46,046
Issues / PRs
100

Screenshots

A demonstration from skillπ Lab

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "flutter-dart-code-review" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-7e556f323d09ceb07355f0ec6c25cbb61a970866392d27189db830fa0806a77e. Verify the upstream source and version against https://github.com/affaan-m/ECC before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

A library-agnostic Flutter/Dart code review checklist covering widget best practices, state management patterns (BLoC, Riverpod, Provider, GetX, MobX, Signals), Dart idioms, performance, and accessibility.

0 Downloads

Introduction source: third_party · affaan-m · 0.0.1 Reference

SkillPi interpretation

Tasks
Library-agnostic Flutter/Dart code review checklist covering widget best practices, state management patterns (BLoC, Riverpod, Provider, GetX, MobX, Signals), Dart idioms, performance, accessibility, security, and clean architecture. Use when reviewing Flutter or Dart code, whatever state management library the project uses.
Audience
Not specified in the source documentation.
Inputs and outputs
[ ] All user input validated before sending to API [ ] Form validation uses proper validation patterns [ ] No raw SQL or string interpolation of user input [ ] Deep link URLs validated and sanitized before navigation
Software, accounts and paid services
[ ] Localization solution configured (Flutter's built-in ARB/l10n, easy_localization, or equivalent) [ ] Supported locales declared in app configuration
Limits and differences
[ ] Use caret syntax (`^1.2.3`) for dependencies — allows compatible updates [ ] Pin exact versions only when absolutely necessary [ ] Run `flutter pub outdated` regularly to track stale dependencies [ ] No dependency overrides in production `pubspec.yaml` — only for temporary fixes with a comment/issue link [ ] Minimize transitive dependency count — each dependency is an attack surface
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: flutter-dart-code-review
description: Library-agnostic Flutter/Dart code review checklist covering widget best practices, state management patterns (BLoC, Riverpod, Provider, GetX, MobX, Signals), Dart idioms, performance, accessibility, security, and clean architecture. Use when reviewing Flutter or Dart code, whatever state management library the project uses.
metadata:
  origin: ECC

Flutter/Dart Code Review Best Practices

Comprehensive, library-agnostic checklist for reviewing Flutter/Dart applications. These principles apply regardless of which state management solution, routing library, or DI framework is used.


1. General Project Health

  • [ ] Project follows consistent folder structure (feature-first or layer-first)
  • [ ] Proper separation of concerns: UI, business logic, data layers
  • [ ] No business logic in widgets; widgets are purely presentational
  • [ ] pubspec.yaml is clean — no unused dependencies, versions pinned appropriately
  • [ ] analysis_options.yaml includes a strict lint set with strict analyzer settings enabled
  • [ ] No print() statements in production code — use dart:developer log() or a logging package
  • [ ] Generated files (.g.dart, .freezed.dart, .gr.dart) are up-to-date or in .gitignore
  • [ ] Platform-specific code isolated behind abstractions

2. Dart Language Pitfalls

  • [ ] Implicit dynamic: Missing type annotations leading to dynamic — enable strict-casts, strict-inference, strict-raw-types
  • [ ] Null safety misuse: Excessive ! (bang operator) instead of proper null checks or Dart 3 pattern matching (if (value case var v?))
  • [ ] Type promotion failures: Using this.field where local variable promotion would work
  • [ ] Catching too broadly: catch (e) without on clause; always specify exception types
  • [ ] Catching Error: Error subtypes indicate bugs and should not be caught
  • [ ] Unused async: Functions marked async that never await — unnecessary overhead
  • [ ] late overuse: late used where nullable or constructor initialization would be safer; defers errors to runtime
  • [ ] String concatenation in loops: Use StringBuffer instead of + for iterative string building
  • [ ] Mutable state in const contexts: Fields in const constructor classes should not be mutable
  • [ ] Ignoring Future return values: Use await or explicitly call unawaited() to signal intent
  • [ ] var where final works: Prefer final for locals and const for compile-time constants
  • [ ] Relative imports: Use package: imports for consistency
  • [ ] Mutable collections exposed: Public APIs should return unmodifiable views, not raw List/Map
  • [ ] Missing Dart 3 pattern matching: Prefer switch expressions and if-case over verbose is checks and manual casting
  • [ ] Throwaway classes for multiple returns: Use Dart 3 records (String, int) instead of single-use DTOs
  • [ ] print() in production code: Use dart:developer log() or the project's logging package; print() has no log levels and cannot be filtered

3. Widget Best Practices

Widget decomposition:

  • [ ] No single widget with a build() method exceeding ~80-100 lines
  • [ ] Widgets split by encapsulation AND by how they change (rebuild boundaries)
  • [ ] Private _build*() helper methods that return widgets are extracted to separate widget classes (enables element reuse, const propagation, and framework optimizations)
  • [ ] Stateless widgets preferred over Stateful where no mutable local state is needed
  • [ ] Extracted widgets are in separate files when reusable

Const usage:

  • [ ] const constructors used wherever possible — prevents unnecessary rebuilds
  • [ ] const literals for collections that don't change (const [], const {})
  • [ ] Constructor is declared const when all fields are final

Key usage:

  • [ ] ValueKey used in lists/grids to preserve state across reorders
  • [ ] GlobalKey used sparingly — only when accessing state across the tree is truly needed
  • [ ] UniqueKey avoided in build() — it forces rebuild every frame
  • [ ] ObjectKey used when identity is based on a data object rather than a single value

Theming & design system:

  • [ ] Colors come from Theme.of(context).colorScheme — no hardcoded Colors.red or hex values
  • [ ] Text styles come from Theme.of(context).textTheme — no inline TextStyle with raw font sizes
  • [ ] Dark mode compatibility verified — no assumptions about light background
  • [ ] Spacing and sizing use consistent design tokens or constants, not magic numbers

Build method complexity:

  • [ ] No network calls, file I/O, or heavy computation in build()
  • [ ] No Future.then() or async work in build()
  • [ ] No subscription creation (.listen()) in build()
  • [ ] setState() localized to smallest possible subtree

4. State Management (Library-Agnostic)

These principles apply to all Flutter state management solutions (BLoC, Riverpod, Provider, GetX, MobX, Signals, ValueNotifier, etc.).

Architecture:

  • [ ] Business logic lives outside the widget layer — in a state management component (BLoC, Notifier, Controller, Store, ViewModel, etc.)
  • [ ] State managers receive dependencies via injection, not by constructing them internally
  • [ ] A service or repository layer abstracts data sources — widgets and state managers should not call APIs or databases directly
  • [ ] State managers have a single responsibility — no "god" managers handling unrelated concerns
  • [ ] Cross-component dependencies follow the solution's conventions:
    • In Riverpod: providers depending on providers via ref.watch is expected — flag only circular or overly tangled chains
    • In BLoC: blocs should not directly depend on other blocs — prefer shared repositories or presentation-layer coordination
    • In other solutions: follow the documented conventions for inter-component communication

Immutability & value equality (for immutable-state solutions: BLoC, Riverpod, Redux):

  • [ ] State objects are immutable — new instances created via copyWith() or constructors, never mutated in-place
  • [ ] State classes implement == and hashCode properly (all fields included in comparison)
  • [ ] Mechanism is consistent across the project — manual override, Equatable, freezed, Dart records, or other
  • [ ] Collections inside state objects are not exposed as raw mutable List/Map

Reactivity discipline (for reactive-mutation solutions: MobX, GetX, Signals):

  • [ ] State is only mutated through the solution's reactive API (@action in MobX, .value on signals, .obs in GetX) — direct field mutation bypasses change tracking
  • [ ] Derived values use the solution's computed mechanism rather than being stored redundantly
  • [ ] Reactions and disposers are properly cleaned up (ReactionDisposer in MobX, effect cleanup in Signals)

State shape design:

  • [ ] Mutually exclusive states use sealed types, union variants, or the solution's built-in async state type (e.g. Riverpod's AsyncValue) — not boolean flags (isLoading, isError, hasData)
  • [ ] Every async operation models loading, success, and error as distinct states
  • [ ] All state variants are handled exhaustively in UI — no silently ignored cases
  • [ ] Error states carry error information for display; loading states don't carry stale data
  • [ ] Nullable data is not used as a loading indicator — states are explicit
// BAD — boolean flag soup allows impossible states
class UserState {
  bool isLoading = false;
  bool hasError = false; // isLoading && hasError is representable!
  User? user;
}

// GOOD (immutable approach) — sealed types make impossible states unrepresentable
sealed class UserState {}
class UserInitial extends UserState {}
class UserLoading extends UserState {}
class UserLoaded extends UserState {
  final User user;
  const UserLoaded(this.user);
}
class UserError extends UserState {
  final String message;
  const UserError(this.message);
}

// GOOD (reactive approach) — observable enum + data, mutations via reactivity API
// enum UserStatus { initial, loading, loaded, error }
// Use your solution's observable/signal to wrap status and data separately

Rebuild optimization:

  • [ ] State consumer widgets (Builder, Consumer, Observer, Obx, Watch, etc.) scoped as narrow as possible
  • [ ] Selectors used to rebuild only when specific fields change — not on every state emission
  • [ ] const widgets used to stop rebuild propagation through the tree
  • [ ] Computed/derived state is calculated reactively, not stored redundantly

Subscriptions & disposal:

  • [ ] All manual subscriptions (.listen()) are cancelled in dispose() / close()
  • [ ] Stream controllers are closed when no longer needed
  • [ ] Timers are cancelled in disposal lifecycle
  • [ ] Framework-managed lifecycle is preferred over manual subscription (declarative builders over .listen())
  • [ ] mounted check before setState in async callbacks
  • [ ] BuildContext not used after await without checking context.mounted (Flutter 3.7+) — stale context causes crashes
  • [ ] No navigation, dialogs, or scaffold messages after async gaps without verifying the widget is still mounted
  • [ ] BuildContext never stored in singletons, state managers, or static fields

Local vs global state:

  • [ ] Ephemeral UI state (checkbox, slider, animation) uses local state (setState, ValueNotifier)
  • [ ] Shared state is lifted only as high as needed — not over-globalized
  • [ ] Feature-scoped state is properly disposed when the feature is no longer active

5. Performance

Unnecessary rebuilds:

  • [ ] setState() not called at root widget level — localize state changes
  • [ ] const widgets used to stop rebuild propagation
  • [ ] RepaintBoundary used around complex subtrees that repaint independently
  • [ ] AnimatedBuilder child parameter used for subtrees independent of animation

Expensive operations in build():

  • [ ] No sorting, filtering, or mapping large collections in build() — compute in state management layer
  • [ ] No regex compilation in build()
  • [ ] MediaQuery.of(context) usage is specific (e.g., MediaQuery.sizeOf(context))

Image optimization:

  • [ ] Network images use caching (any caching solution appropriate for the project)
  • [ ] Appropriate image resolution for target device (no loading 4K images for thumbnails)
  • [ ] Image.asset with cacheWidth/cacheHeight to decode at display size
  • [ ] Placeholder and error widgets provided for network images

Lazy loading:

  • [ ] ListView.builder / GridView.builder used instead of ListView(children: [...]) for large or dynamic lists (concrete constructors are fine for small, static lists)
  • [ ] Pagination implemented for large data sets
  • [ ] Deferred loading (deferred as) used for heavy libraries in web builds

Other:

  • [ ] Opacity widget avoided in animations — use AnimatedOpacity or FadeTransition
  • [ ] Clipping avoided in animations — pre-clip images
  • [ ] operator == not overridden on widgets — use const constructors instead
  • [ ] Intrinsic dimension widgets (IntrinsicHeight, IntrinsicWidth) used sparingly (extra layout pass)

6. Testing

Test types and expectations:

  • [ ] Unit tests: Cover all business logic (state managers, repositories, utility functions)
  • [ ] Widget tests: Cover individual widget behavior, interactions, and visual output
  • [ ] Integration tests: Cover critical user flows end-to-end
  • [ ] Golden tests: Pixel-perfect comparisons for design-critical UI components

Coverage targets:

  • [ ] Aim for 80%+ line coverage on business logic
  • [ ] All state transitions have corresponding tests (loading → success, loading → error, retry, etc.)
  • [ ] Edge cases tested: empty states, error states, loading states, boundary values

Test isolation:

  • [ ] External dependencies (API clients, databases, services) are mocked or faked
  • [ ] Each test file tests exactly one class/unit
  • [ ] Tests verify behavior, not implementation details
  • [ ] Stubs define only the behavior needed for each test (minimal stubbing)
  • [ ] No shared mutable state between test cases

Widget test quality:

  • [ ] pumpWidget and pump used correctly for async operations
  • [ ] find.byType, find.text, find.byKey used appropriately
  • [ ] No flaky tests depending on timing — use pumpAndSettle or explicit pump(Duration)
  • [ ] Tests run in CI and failures block merges

7. Accessibility

Semantic widgets:

  • [ ] Semantics widget used to provide screen reader labels where automatic labels are insufficient
  • [ ] ExcludeSemantics used for purely decorative elements
  • [ ] MergeSemantics used to combine related widgets into a single accessible element
  • [ ] Images have semanticLabel property set

Screen reader support:

  • [ ] All interactive elements are focusable and have meaningful descriptions
  • [ ] Focus order is logical (follows visual reading order)

Visual accessibility:

  • [ ] Contrast ratio >= 4.5:1 for text against background
  • [ ] Tappable targets are at least 48x48 pixels
  • [ ] Color is not the sole indicator of state (use icons/text alongside)
  • [ ] Text scales with system font size settings

Interaction accessibility:

  • [ ] No no-op onPressed callbacks — every button does something or is disabled
  • [ ] Error fields suggest corrections
  • [ ] Context does not change unexpectedly while user is inputting data

8. Platform-Specific Concerns

iOS/Android differences:

  • [ ] Platform-adaptive widgets used where appropriate
  • [ ] Back navigation handled correctly (Android back button, iOS swipe-to-go-back)
  • [ ] Status bar and safe area handled via SafeArea widget
  • [ ] Platform-specific permissions declared in AndroidManifest.xml and Info.plist

Responsive design:

  • [ ] LayoutBuilder or MediaQuery used for responsive layouts
  • [ ] Breakpoints defined consistently (phone, tablet, desktop)
  • [ ] Text doesn't overflow on small screens — use Flexible, Expanded, FittedBox
  • [ ] Landscape orientation tested or explicitly locked
  • [ ] Web-specific: mouse/keyboard interactions supported, hover states present

9. Security

Secure storage:

  • [ ] Sensitive data (tokens, credentials) stored using platform-secure storage (Keychain on iOS, EncryptedSharedPreferences on Android)
  • [ ] Never store secrets in plaintext storage
  • [ ] Biometric authentication gating considered for sensitive operations

API key handling:

  • [ ] API keys NOT hardcoded in Dart source — use --dart-define, .env files excluded from VCS, or compile-time configuration
  • [ ] Secrets not committed to git — check .gitignore
  • [ ] Backend proxy used for truly secret keys (client should never hold server secrets)

Input validation:

  • [ ] All user input validated before sending to API
  • [ ] Form validation uses proper validation patterns
  • [ ] No raw SQL or string interpolation of user input
  • [ ] Deep link URLs validated and sanitized before navigation

Network security:

  • [ ] HTTPS enforced for all API calls
  • [ ] Certificate pinning considered for high-security apps
  • [ ] Authentication tokens refreshed and expired properly
  • [ ] No sensitive data logged or printed

10. Package/Dependency Review

Evaluating pub.dev packages:

  • [ ] Check pub points score (aim for 130+/160)
  • [ ] Check likes and popularity as community signals
  • [ ] Verify the publisher is verified on pub.dev
  • [ ] Check last publish date — stale packages (>1 year) are a risk
  • [ ] Review open issues and response time from maintainers
  • [ ] Check license compatibility with your project
  • [ ] Verify platform support covers your targets

Version constraints:

  • [ ] Use caret syntax (^1.2.3) for dependencies — allows compatible updates
  • [ ] Pin exact versions only when absolutely necessary
  • [ ] Run flutter pub outdated regularly to track stale dependencies
  • [ ] No dependency overrides in production pubspec.yaml — only for temporary fixes with a comment/issue link
  • [ ] Minimize transitive dependency count — each dependency is an attack surface

Monorepo-specific (melos/workspace):

  • [ ] Internal packages import only from public API — no package:other/src/internal.dart (breaks Dart package encapsulation)
  • [ ] Internal package dependencies use workspace resolution, not hardcoded path: ../../ relative strings
  • [ ] All sub-packages share or inherit root analysis_options.yaml

11. Navigation and Routing

General principles (apply to any routing solution):

  • [ ] One routing approach used consistently — no mixing imperative Navigator.push with a declarative router
  • [ ] Route arguments are typed — no Map<String, dynamic> or Object? casting
  • [ ] Route paths defined as constants, enums, or generated — no magic strings scattered in code
  • [ ] Auth guards/redirects centralized — not duplicated across individual screens
  • [ ] Deep links configured for both Android and iOS
  • [ ] Deep link URLs validated and sanitized before navigation
  • [ ] Navigation state is testable — route changes can be verified in tests
  • [ ] Back behavior is correct on all platforms

12. Error Handling

Framework error handling:

  • [ ] FlutterError.onError overridden to capture framework errors (build, layout, paint)
  • [ ] PlatformDispatcher.instance.onError set for async errors not caught by Flutter
  • [ ] ErrorWidget.builder customized for release mode (user-friendly instead of red screen)
  • [ ] Global error capture wrapper around runApp (e.g., runZonedGuarded, Sentry/Crashlytics wrapper)

Error reporting:

  • [ ] Error reporting service integrated (Firebase Crashlytics, Sentry, or equivalent)
  • [ ] Non-fatal errors reported with stack traces
  • [ ] State management error observer wired to error reporting (e.g., BlocObserver, ProviderObserver, or equivalent for your solution)
  • [ ] User-identifiable info (user ID) attached to error reports for debugging

Graceful degradation:

  • [ ] API errors result in user-friendly error UI, not crashes
  • [ ] Retry mechanisms for transient network failures
  • [ ] Offline state handled gracefully
  • [ ] Error states in state management carry error info for display
  • [ ] Raw exceptions (network, parsing) are mapped to user-friendly, localized messages before reaching the UI — never show raw exception strings to users

13. Internationalization (l10n)

Setup:

  • [ ] Localization solution configured (Flutter's built-in ARB/l10n, easy_localization, or equivalent)
  • [ ] Supported locales declared in app configuration

Content:

  • [ ] All user-visible strings use the localization system — no hardcoded strings in widgets
  • [ ] Template file includes descriptions/context for translators
  • [ ] ICU message syntax used for plurals, genders, selects
  • [ ] Placeholders defined with types
  • [ ] No missing keys across locales

Code review:

  • [ ] Localization accessor used consistently throughout the project
  • [ ] Date, time, number, and currency formatting is locale-aware
  • [ ] Text directionality (RTL) supported if targeting Arabic, Hebrew, etc.
  • [ ] No string concatenation for localized text — use parameterized messages

14. Dependency Injection

Principles (apply to any DI approach):

  • [ ] Classes depend on abstractions (interfaces), not concrete implementations at layer boundaries
  • [ ] Dependencies provided externally via constructor, DI framework, or provider graph — not created internally
  • [ ] Registration distinguishes lifetime: singleton vs factory vs lazy singleton
  • [ ] Environment-specific bindings (dev/staging/prod) use configuration, not runtime if checks
  • [ ] No circular dependencies in the DI graph
  • [ ] Service locator calls (if used) are not scattered throughout business logic

15. Static Analysis

Configuration:

  • [ ] analysis_options.yaml present with strict settings enabled
  • [ ] Strict analyzer settings: strict-casts: true, strict-inference: true, strict-raw-types: true
  • [ ] A comprehensive lint rule set is included (very_good_analysis, flutter_lints, or custom strict rules)
  • [ ] All sub-packages in monorepos inherit or share the root analysis options

Enforcement:

  • [ ] No unresolved analyzer warnings in committed code
  • [ ] Lint suppressions (// ignore:) are justified with comments explaining why
  • [ ] flutter analyze runs in CI and failures block merges

Key rules to verify regardless of lint package:

  • [ ] prefer_const_constructors — performance in widget trees
  • [ ] avoid_print — use proper logging
  • [ ] unawaited_futures — prevent fire-and-forget async bugs
  • [ ] prefer_final_locals — immutability at variable level
  • [ ] always_declare_return_types — explicit contracts
  • [ ] avoid_catches_without_on_clauses — specific error handling
  • [ ] always_use_package_imports — consistent import style

State Management Quick Reference

The table below maps universal principles to their implementation in popular solutions. Use this to adapt review rules to whichever solution the project uses.

Principle BLoC/Cubit Riverpod Provider GetX MobX Signals Built-in
State container Bloc/Cubit Notifier/AsyncNotifier ChangeNotifier GetxController Store signal() StatefulWidget
UI consumer BlocBuilder ConsumerWidget Consumer Obx/GetBuilder Observer Watch setState
Selector BlocSelector/buildWhen ref.watch(p.select(...)) Selector N/A computed computed() N/A
Side effects BlocListener ref.listen Consumer callback ever()/once() reaction effect() callbacks
Disposal auto via BlocProvider .autoDispose auto via Provider onClose() ReactionDisposer manual dispose()
Testing blocTest() ProviderContainer ChangeNotifier directly Get.put in test store directly signal directly widget test

Sources

Version history

  1. v2.2.3 GitHub ↗
    Original release notes

    # ECC 2.2.3 ECC 2.2.3 is a naming and release-reliability update. The project is called ECC everywhere it ships, starting with the `pi/core` profile, and the release workflow now waits long enough for npm to serve a freshly published version. ## Naming - `pi/core` no longer expands the project name: its README and the bundled `blueprint` skill refer to ECC only. The profile contents are otherwise unchanged: 123 curated skills and 24 prompt commands, 35,006 characters of skill description text. - Downstream packagers need no changes. The package is still `ecc-pi-core`, the directory is still `pi/core/`, and existing install paths keep working. ## Release workflow - After `npm publish`, the release workflow polls the registry for up to five minutes before verifying the published artifact. In 2.2.2 it gave up after about 30 seconds while npm was still processing the upload, so the run failed before promoting `latest` and creating the GitHub Release, and had to be re-run. Downstream consumption is unchanged: poll `/releases`, download `archive/refs/tags/vX.Y.Z.tar.gz`, pin its sha256, copy `pi/core/`, and load it offline.

  2. v2.2.2 GitHub ↗
    Original release notes

    # ECC 2.2.2 ECC 2.2.2 adds `pi/core`, a curated Pi-native skills+prompts-only profile built for downstream packagers that mirror GitHub Releases, plus a set of packaging, memory, hooks, and Windows compatibility fixes. ## Pi core profile `pi/core/` is a self-contained package (`ecc-pi-core`) that downstream mirrors of the release tarball can copy directly: no build step, no extensions, no hooks, no runtime downloads, and no network or SaaS dependencies. - 123 curated skills (language and framework patterns, testing/TDD, code review, non-offensive security review, planning, refactoring, docs, and git/PR workflows) and 24 prompt commands that are pure prompt workflows. - Generated deterministically from the explicit include/exclude lists in `manifests/pi-core.json` by `scripts/build-pi-core.js` and committed, so the release tarball contains it verbatim. `pi/core/CURATION.md` lists every excluded skill and command with its reason; the `council` skill ships as `ecc-council` inside pi/core to avoid catalog name clashes. - The build fails on safety violations: non-allowlisted URL hosts, pipe-to-shell or fetch-and-run download forms, secrets or tokens, absolute per-user home paths, symlinks, invalid SKILL.md frontmatter, and duplicate skill names. - CI rebuilds pi/core on every PR and verifies it is up to date, then installs the Pi coding agent CLI and proves the profile loads fully offline (`PI_OFFLINE=1`), asserting that every curated command actually registers. - The release workflow additionally verifies that `VERSION` matches the tag and that pi/core is current before publishing. Downstream consumption: poll `/releases`, download `archive/refs/tags/vX.Y.Z.tar.gz`, pin its sha256, copy `pi/core/`, and load it offline with `pi --offline --skill pi/core/skills --prompt-template pi/core/commands`. ## Packaging - The compiled OpenCode payload is explicitly included in the npm package, and packing is verified from a clean state with lifecycle scripts enabled. ## Memory and MCP - Incomplete memory reads are distinguished from missing records, and directory traversal failures are classified. - The reserved `_meta` parameter is accepted on memory MCP ping requests. ## Hooks and Windows compatibility - `hooks.json` stays within Claude Code's schema; stable hook metadata moved into a validated sidecar. - The no-verify guard handles stuck optional values and long-option prefixes. - Windows linter paths and ESLint 9 are supported, and settings updates tolerate missing Windows device IDs while retaining full-precision inode checks. ## Workflow guidance, catalog, and dependency security - Epic sync filters issues by label; dependency bumps no longer document auto-merge; naming and Boolean guidance is language-neutral; the `prp-pr` command alias is distinguished; Rails skill discovery, invoice tax calculation order, and framework documentation were corrected; Serply and Squish catalog entries were removed. - `lru` updated to 0.18.2 (RUSTSEC-2026-0253) and `js-yaml` to 4.3.2 (GHSA-2883-xcg3-v3hh).

  3. v2.2.1 GitHub ↗
    Original release notes

    # ECC 2.2.1 ECC 2.2.1 is a bug and security patch for ECC 2.2. It keeps the published `v2.2.0` history immutable. These notes describe the prepared patch; publication and signing evidence are tracked separately in the release checklist. ## Security and data protection - GateGuard and governance capture recognize destructive PowerShell commands, including the native PowerShell tool path. Dynamic command handling prevents later variable assignments from concealing earlier unresolved invocations ([#2961](https://github.com/affaan-m/ECC/pull/2961)). - Relative GateGuard exemption globs stay within the project root. Explicit absolute exemptions remain supported ([#2921](https://github.com/affaan-m/ECC/issues/2921)). - Installer writes reject collisions with untracked user-owned files. Failed installs refresh ownership hashes only for files they actually wrote, preserving the previous ownership hashes of untouched managed files ([#2964](https://github.com/affaan-m/ECC/issues/2964)). - Guided setup revalidates its preview before ownership filtering, so files appearing between preview and apply cause a clear retry instead of a false success. Existing identical user files stay outside ECC ownership. - Uninstall respects `ECC_DRY_RUN=1`, including legacy Codex paths, and rejects invalid dry-run values instead of silently allowing deletion ([#2952](https://github.com/affaan-m/ECC/issues/2952)). - Observer analysis retains observations on unsuccessful or unconfirmed processing. Exit code zero alone no longer permits archival ([#2971](https://github.com/affaan-m/ECC/pull/2971)). - The Yarn lockfile updates `toml` to 4.3.0, matching the npm lockfile and removing the affected older resolution. ## Hooks and installation - Manual Claude installs register ECC-owned hook entries in Claude settings. Repair, consent changes, and uninstall reconcile those entries while preserving unrelated settings. Atomic settings updates check directory identity and retry detected concurrent edits ([#2992](https://github.com/affaan-m/ECC/pull/2992)). - Direct hook entrypoints handle larger JSON payloads with bounded, UTF-8-safe reads instead of silently truncating valid inputs. Existing production wrapper limits remain unchanged ([#2924](https://github.com/affaan-m/ECC/issues/2924)). - The Pi adapter selects an actual Node runtime instead of recursively executing a compiled OMP host as Node ([#2909](https://github.com/affaan-m/ECC/issues/2909)). - Installer listing and control-pane help avoid eager third-party dependency loading. Features that require absent runtime packages report the missing dependency explicitly ([#2994](https://github.com/affaan-m/ECC/pull/2994)). - Autonomous harness setup documentation replaces nonexistent package names and unsupported CLI flags with documented interfaces, and distinguishes session scheduling from a durable external scheduler ([#2957](https://github.com/affaan-m/ECC/issues/2957)). ## Installer and release-surface hardening - Public and packaged install docs now consistently point at the published `ecc-universal` commands instead of stale or unrelated package names. - The AdaL adapter docs use the correct `npx ecc-universal doctor --target adal` command. - Claude setup preflights `git` before provider-specific work starts, so missing prerequisites fail fast with the right action. - Guided setup dry runs use isolated HOME, config, XDG, temp, and Windows app data roots to avoid ambient host state affecting review or tests. - The exact packed artifact now has stronger lifecycle coverage for Claude and Kimi setup, update, doctor, repeat install, uninstall, and dry-run flows. - Identifier regression coverage blocks stale `ecc`, `ecc-install`, and other mismatched release-path commands from creeping back into user-facing docs. ## Current-main documentation included in this patch - The canonical Itô workflow now documents `ecc ito accept <ticket-id>` and the `ito_accept` MCP tool. - Acceptance is explicitly bounded to buyer-authority routing. It routes the active desk quote to human review and does not claim to place a trade. ## Provenance boundary - `v2.2.1` is intended to be a signed annotated tag on exact green `main`. - `v2.2.0` remains the immutable historical unsigned exception. Do not move, recreate, or reuse that tag. ## Scope and limitations - Plugin dependency handling does not bundle or automatically install missing modules. Database and schema-validation features require their declared runtime dependencies. - Ownership protection covers untracked collisions and failed-install checkpoints. Successful upgrades retain the existing contract for replacing previously managed files. Back up intentional edits before upgrading. - This patch does not introduce new harness platforms or claim that every open community issue is resolved. ## Upgrade After the release workflow publishes 2.2.1 and verifies registry integrity, install or update the package, then run the same ECC command path you already use. Until publication completes, the exact-version command below returns E404. ```bash npm install -g [email protected] ecc doctor ``` For first-time or guided terminal setup: ```bash npx ecc-universal setup ``` The native Claude marketplace path remains supported: ```text /plugin marketplace add https://github.com/affaan-m/ECC /plugin install ecc@ecc ```

  4. v2.2.0 GitHub ↗
    Original release notes

    ECC 2.2 is here, led by one guided installer for Claude Code, Codex, and Kimi. It also adds native Antigravity 2.0 support and an experimental, opt-in Nasiko CLI lifecycle bridge. The release pipeline is stricter too: the exact npm archive must pass lifecycle tests on Linux, macOS, and Windows before `latest` moves. ## One guided path into ECC ![ECC 2.2 terminal welcome after a successful install](https://github.com/affaan-m/ECC/releases/download/v2.2.0/ecc-cli-install-banner.png) Start the guided installer with: ```bash npx --yes [email protected] install --guided ``` The installer checks every selected harness before writing files, then applies the setup as one operation. Provider-owned model and authentication settings stay under the provider's control. The terminal welcome appears only after a successful interactive install. ## Nasiko: experimental, opt-in, and explicit ![Nasiko's open-source agent dashboard, shown as product context for the ECC CLI lifecycle bridge](https://github.com/affaan-m/ECC/releases/download/v2.2.0/nasiko-control-pane.png) ECC 2.2 can inspect, install, and remove one pinned Nasiko `v0.1.0` CLI build: ```bash npm install -g [email protected] ecc nasiko status --json ecc nasiko install --version v0.1.0 --dry-run --json ecc nasiko install --version v0.1.0 --yes --json ``` Downloads are content-addressed and SHA-256 verified, status is read-only, and uninstall protects modified or unqualified binaries. The dashboard above is Nasiko's own product. ECC does not connect agents, start a server, enable telemetry, share data, or operate that control plane. The bridge remains experimental and opt-in. Learn more in the [Nasiko repository](https://github.com/Nasiko-Labs/nasiko). ## More reliable across every harness - **Native Antigravity 2.0:** ECC installs to `.agents/{rules,workflows,skills,agents}` and safely migrates legacy ownership. - **Reliable uninstall:** repeated selective installs keep a complete ownership ledger, so unchanged ECC-managed files can be removed cleanly. - **Safer migrations:** OpenCode uses `~/.config/opencode`, while OpenCode and Codex preserve edited or untracked files during cleanup. - **More workflows:** Pi, Itô, agent evaluation, multi-model council, dev-team, living docs, secure terminal, TasteForge, and `skill-comply` all expand the shipped distribution. ECC 2.2 ships **68 agents, 286 skills, and 94 command shims**, plus the rules, hooks, memory, continuous-learning, and installation surfaces around them. ## Release assurance The tagged commit must match `origin/main`. One npm archive is packed, hashed, and tested on all three operating systems, then published under a staging tag. Registry integrity must match before `latest` moves. The prior 2.1.0 package remains the immediate rollback target. ## Install or upgrade For the native Claude Code plugin: ```text /plugin marketplace add https://github.com/affaan-m/ECC /plugin install ecc@ecc ``` Existing Claude installs can run `/plugin update ecc`. ## Thank you A special thank you to returning contributors [@gaurav0107](https://github.com/gaurav0107), [@Seekers2001](https://github.com/Seekers2001), and [@t0kubetsu](https://github.com/t0kubetsu) for substantial work on learning workflows, collaborative skills, and shared testing. Among our first-time contributors, [@renan-tiberio](https://github.com/affaan-m/ECC/pull/2759) brought Pi support, [@romanclaudersoai1](https://github.com/affaan-m/ECC/pull/2664) repaired `/evolve`, and [@djpjronline-netizen](https://github.com/affaan-m/ECC/pull/2405) hardened hook parsing. Eighteen people made their first ECC contribution in 2.2. Thank you to everyone who tested the installer, reported issues, and helped harden the release across harnesses and operating systems. ### New contributors - @AlbertChiu777 in [#2483](https://github.com/affaan-m/ECC/pull/2483) - @djpjronline-netizen in [#2405](https://github.com/affaan-m/ECC/pull/2405) - @shanujans in [#2538](https://github.com/affaan-m/ECC/pull/2538) - @HouMinXi in [#2609](https://github.com/affaan-m/ECC/pull/2609) - @agent-jeong in [#2670](https://github.com/affaan-m/ECC/pull/2670) - @karimfarahat in [#2462](https://github.com/affaan-m/ECC/pull/2462) - @romanclaudersoai1 in [#2664](https://github.com/affaan-m/ECC/pull/2664) - @Peopleoftech in [#2668](https://github.com/affaan-m/ECC/pull/2668) - @alejandorosumah-mansa in [#2700](https://github.com/affaan-m/ECC/pull/2700) - @imkp1 in [#2637](https://github.com/affaan-m/ECC/pull/2637) - @shivaG5 in [#2446](https://github.com/affaan-m/ECC/pull/2446) - @vitalii-novikov in [#2520](https://github.com/affaan-m/ECC/pull/2520) - @etisamhaq in [#2364](https://github.com/affaan-m/ECC/pull/2364) - @phumchai1515-prog in [#2723](https://github.com/affaan-m/ECC/pull/2723) - @cagrisolakoglu in [#2618](https://github.com/affaan-m/ECC/pull/2618) - @brianjkelly in [#2703](https://github.com/affaan-m/ECC/pull/2703) - @renan-tiberio in [#2759](https://github.com/affaan-m/ECC/pull/2759) - @ronimuliawan in [#2793](https://github.com/affaan-m/ECC/pull/2793) Join us in the [ECC Discord](https://discord.gg/36yGMHGFbR). Full changelog: <https://github.com/affaan-m/ECC/compare/v2.1.0...v2.2.0>

  5. v2.1.0 GitHub ↗
    Original release notes

    # ECC 2.1.0: Plan Canvas, Kimi Harness, and Self-Hosted Compute ECC 2.1 turns plan review into a visual loop and opens the harness to self-hosted models. Plan Canvas lets you review agent plans in the browser. Point at the part you mean instead of retyping it in chat. A new Kimi Code install target and a verified Itô GPU path make ECC + open-source models a first-class setup, backed by our public sponsors: Moonshot AI (Kimi), Itô, and Atlas Cloud. ## Plan Canvas: review plans by pointing, not retyping ![Plan Canvas demo: reviewing an ECC plan, attaching an annotation, chatting with the agent, and approving the plan](https://raw.githubusercontent.com/affaan-m/ECC/main/docs/releases/2.1.0/assets/ecc-plan-canvas-demo.gif) [Download the MP4 demo](https://raw.githubusercontent.com/affaan-m/ECC/main/docs/releases/2.1.0/assets/ecc-plan-canvas-demo.mp4) `/plan` ends with a confirm gate, and until now that review was a wall of markdown in the terminal. Now the agent opens the plan in a loopback-only browser canvas: - Click elements or select text to attach numbered annotations - Chat with the agent from a side rail while it works in the terminal - **Approve plan** / **Request changes** buttons map directly onto `/plan`'s CONFIRM gate - Mermaid diagrams, tables, and task lists render natively; file edits live-reload the page - Model- and harness-agnostic: a plain CLI + JSON protocol (`ecc-plan-canvas`), no Claude-only dependency ## Kimi harness: Moonshot AI partnership ECC now installs directly into [Kimi Code](https://moonshotai.github.io/kimi-cli/) (`--target kimi`). Kimi Code discovers the installed `.kimi/AGENTS.md` instructions and `.kimi/skills/` workflows natively: ```bash bash ./install.sh --target kimi --profile minimal npx ecc doctor --target kimi kimi ``` ## Self-host on Itô GPUs Run ECC against any self-hosted open-source model. If you need GPU capacity, [Itô](https://compute.itomarkets.com) is ECC's preferred compute sponsor. The integration shipped guarded end to end: - `ecc ito find`: opt-in bridge to the canonical Itô CLI that submits a live, authenticated RFQ (it does not reserve capacity) - Guarded live node qualification and read-only compute handoff - Credential-bearing CLI shims are rejected outright The sponsorship link itself is passive: it does not invoke an RFQ, reserve capacity, provision compute, or configure serving. Managed inference through Itô is not live yet. Any GPU provider works, and ECC stays provider-agnostic. ## Partners [Moonshot AI (Kimi)](https://www.moonshot.ai), [Itô](https://compute.itomarkets.com), and [Atlas Cloud](https://www.atlascloud.ai) are now public sponsors of ECC. The README documents a recommended self-host path: Itô for GPU capacity, a Kimi checkpoint served behind a compatible endpoint, then Kimi Code + ECC on top. Each choice remains separate and swappable. ## Also in 2.1 - **Hermes and OpenClaw install targets**: two more harnesses join Claude Code, Codex, OpenCode, Cursor, Gemini, Zed, Copilot, and Kimi - **Codex ECC navigation guide**: find the right skill/command surface from inside Codex - **GateGuard path exemptions** (`GATEGUARD_EXEMPT_GLOBS`) and configurable instinct injection (count + confidence threshold) - **PostToolUse hooks consolidated** into sync/async dispatchers, with fewer processes per tool call - **Supply-chain hardening**: the installer runtime passes strict vetting, and the pre-commit secret scan now catches Anthropic API keys (`sk-ant-...`) - A long tail of community fixes across OpenCode, Windows, bun lockfiles, the dashboard, and project detection The catalog now stands at **67 agents, 281 skills, and 94 command shims** (2.0.0 shipped 64/261/84), plus hooks, rules, memory, continuous learning, and AgentShield. ## Install or upgrade ```text /plugin marketplace add https://github.com/affaan-m/ECC /plugin install ecc@ecc ``` Existing installs: `/plugin update ecc` ## Community Join the ECC community for release announcements, questions, and Show and Tell: <https://discord.gg/36yGMHGFbR> Full changelog: <https://github.com/affaan-m/ECC/compare/v2.0.0...v2.1.0> ## New Contributors * @legeZZZ made their first contribution in https://github.com/affaan-m/ECC/pull/2200 * @tongshu2023 made their first contribution in https://github.com/affaan-m/ECC/pull/2216 * @mohameddsh3ban made their first contribution in https://github.com/affaan-m/ECC/pull/2195 * @fiedler-itlabs made their first contribution in https://github.com/affaan-m/ECC/pull/2240 * @daiki75 made their first contribution in https://github.com/affaan-m/ECC/pull/2245 * @wellkilo made their first contribution in https://github.com/affaan-m/ECC/pull/2194 * @rameshvr made their first contribution in https://github.com/affaan-m/ECC/pull/2144 * @aaronjmars made their first contribution in https://github.com/affaan-m/ECC/pull/2185 * @orbisai0security made their first contribution in https://github.com/affaan-m/ECC/pull/2149 * @xwang4-svg made their first contribution in https://github.com/affaan-m/ECC/pull/2186 * @kriptoburak made their first contribution in https://github.com/affaan-m/ECC/pull/2199 * @lamenting-hawthorn made their first contribution in https://github.com/affaan-m/ECC/pull/2235 * @mdayan8 made their first contribution in https://github.com/affaan-m/ECC/pull/2100 * @Naominour made their first contribution in https://github.com/affaan-m/ECC/pull/2188 * @Malphite10 made their first contribution in https://github.com/affaan-m/ECC/pull/2197 * @cogiwimute367-create made their first contribution in https://github.com/affaan-m/ECC/pull/2251 * @z3tz3r0 made their first contribution in https://github.com/affaan-m/ECC/pull/2250 * @rockwellwindsor made their first contribution in https://github.com/affaan-m/ECC/pull/2258 * @stroland02 made their first contribution in https://github.com/affaan-m/ECC/pull/2202 * @hretheum made their first contribution in https://github.com/affaan-m/ECC/pull/2221 * @BERORINPO made their first contribution in https://github.com/affaan-m/ECC/pull/2234 * @Victor-Casado made their first contribution in https://github.com/affaan-m/ECC/pull/2236 * @itkdm made their first contribution in https://github.com/affaan-m/ECC/pull/2241 * @leoeletronics made their first contribution in https://github.com/affaan-m/ECC/pull/2267 * @Seekers2001 made their first contribution in https://github.com/affaan-m/ECC/pull/2118 * @lucaszhu-hue made their first contribution in https://github.com/affaan-m/ECC/pull/2279 * @kapil971390 made their first contribution in https://github.com/affaan-m/ECC/pull/2292 * @danielnguyenfinhub made their first contribution in https://github.com/affaan-m/ECC/pull/2342 * @gpitrella made their first contribution in https://github.com/affaan-m/ECC/pull/2355 * @Angad2005 made their first contribution in https://github.com/affaan-m/ECC/pull/2366 * @quadcent made their first contribution in https://github.com/affaan-m/ECC/pull/2133 * @SiaoZeng made their first contribution in https://github.com/affaan-m/ECC/pull/2383 * @Tahiti18 made their first contribution in https://github.com/affaan-m/ECC/pull/2307 * @phobicdotno made their first contribution in https://github.com/affaan-m/ECC/pull/2343 * @sshworld made their first contribution in https://github.com/affaan-m/ECC/pull/2358 * @cd1amond made their first contribution in https://github.com/affaan-m/ECC/pull/2346 * @Tanaka-VivereGratis made their first contribution in https://github.com/affaan-m/ECC/pull/2388 * @KyawZinLatt made their first contribution in https://github.com/affaan-m/ECC/pull/2319 * @dieudonneAwa made their first contribution in https://github.com/affaan-m/ECC/pull/2288 * @carloscarvallo made their first contribution in https://github.com/affaan-m/ECC/pull/2273 * @mc856 made their first contribution in https://github.com/affaan-m/ECC/pull/2274 * @jvirgovic made their first contribution in https://github.com/affaan-m/ECC/pull/2338 * @m18897829375 made their first contribution in https://github.com/affaan-m/ECC/pull/2336 * @jack-finance-able made their first contribution in https://github.com/affaan-m/ECC/pull/2390 * @yerros made their first contribution in https://github.com/affaan-m/ECC/pull/2275 * @YuhaoLin2005 made their first contribution in https://github.com/affaan-m/ECC/pull/2377 * @Cb2i made their first contribution in https://github.com/affaan-m/ECC/pull/2437 * @28winz-bot made their first contribution in https://github.com/affaan-m/ECC/pull/2422 * @sutazca made their first contribution in https://github.com/affaan-m/ECC/pull/2425 * @nidelson made their first contribution in https://github.com/affaan-m/ECC/pull/2420 * @juujb made their first contribution in https://github.com/affaan-m/ECC/pull/2416 * @Zalasyu made their first contribution in https://github.com/affaan-m/ECC/pull/2432 * @Lxcardoza993 made their first contribution in https://github.com/affaan-m/ECC/pull/2433 * @haelyra made their first contribution in https://github.com/affaan-m/ECC/pull/2467 * @thejesh23 made their first contribution in https://github.com/affaan-m/ECC/pull/2515 * @nankingjing made their first contribution in https://github.com/affaan-m/ECC/pull/2501 * @samartomar made their first contribution in https://github.com/affaan-m/ECC/pull/2503 * @fletcherm-hub made their first contribution in https://github.com/affaan-m/ECC/pull/2460 * @someiyoshino-lab made their first contribution in https://github.com/affaan-m/ECC/pull/2471 * @WinterSold1er made their first contribution in https://github.com/affaan-m/ECC/pull/2511 * @EmadDoughan made their first contribution in https://github.com/affaan-m/ECC/pull/2543 * @Oleksandr-Kh4 made their first contribution in https://github.com/affaan-m/ECC/pull/2529 * @latreon made their first contribution in https://github.com/affaan-m/ECC/pull/2536 **Full Changelog**: https://github.com/affaan-m/ECC/compare/v2.0.0...v2.1.0

Only the five most recent versions are shown. View full version history at the source ↗

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 提供全面、库无关的 Flutter/Dart 代码审查清单
  • 覆盖状态管理、性能优化、无障碍、安全等关键开发领域
  • 面向实际开发场景,具有高实用价值
Trigger Precision95/100

Highlights

  • 触发描述清晰明确,覆盖多种使用场景
  • 边界定义清晰,不易与其他 Skill 混淆
Structure and Standards90/100

Areas to improve

  • 文档长度略长 Reported severity: Minor

    文档约600行,略超理想长度(建议≤500行)

    Recommendation: 可考虑将部分内容拆分为子文档或简化部分章节

Highlights

  • 结构清晰,分15个逻辑章节
  • 包含具体代码示例和最佳实践对比
  • frontmatter 完整规范
Execution Reliability93/100

Highlights

  • 基于官方文档和行业标准最佳实践
  • 覆盖全面,包含错误处理、性能、安全等关键方面
  • 提供具体实现建议和代码示例
Evidence Verifiability (mean of the first four)93/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • dart.dev
  • docs.flutter.dev

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

[ ] Localization solution configured (Flutter's built-in ARB/l10n, easy_localization, or equivalent) [ ] Supported locales declared in app configuration

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.