SkillsReviewed · evanca

Flutter Architecture — Feature-First

Architecture Feature-First is a skill for AI assistants helping Flutter developers organize apps by feature, but its architectural rules and partial examples need project-specific integration. It separates UI and data responsibilities, adds a domain layer only for complex logic, and accommodates several state-management approaches.

Researched 15 Nov 2026

In short.

Architecture Feature-First is an AI assistant skill for Flutter developers planning or refactoring app structure, with concrete conventions but no demonstrated assistant compatibility or runtime validation. It groups code by feature, assigns application data ownership to repositories, and uses constructor injection to connect components. Its examples illustrate the approach without providing a complete application or installation procedure.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete selected skills/architecture-feature-first folder represented by SKILL.md in the supplied manifest, plus the repository-root LICENSE as its related notice. Other skills, repository files and linked Flutter documentation are excluded. No commands or code were executed; installation, assistant behavior, compilation, runtime behavior, compatibility and performance remain unverified.

The overview

Identity

The resource is the architecture-feature-first skill in evanca/flutter-ai-rules. Its selected content is skills/architecture-feature-first/SKILL.md, a Markdown instruction file with a name, usage description, architectural rules and Dart examples.

The original folder is [https://github.com/evanca/flutter-ai-rules/tree/main/skills/architecture-feature-first]. The supplied snapshot identifies commit ced864ab5189956dbf719a84011c24d860092116; the main-branch address may subsequently change.

Assessment

The skill provides a concrete starting point for keeping related feature code together and deciding whether logic belongs in a view, state holder, repository, service or optional use case. Its folder tree and dependency examples make the conventions easier to apply.

Its rules are opinionated, including communication only between adjacent layers and repository ownership of application data changes. Fit depends on the project's architecture. Improved maintainability, generated-code quality and development speed are not established by results in the supplied material.

Users

It is relevant to Flutter developers creating features, restructuring folders, introducing repositories or services, wiring dependencies, or moving from type-based folders to feature-based organization.

Beginners get explicit component responsibilities and an implementation sequence. Experienced developers can map its business logic holder to a ViewModel, Controller, Cubit, Bloc, Provider or Notifier. Familiarity with Dart, Flutter state and asynchronous calls is needed to adapt the examples.

Capabilities

The skill specifies feature directories containing data and UI code, with an optional domain directory. It assigns shared infrastructure to core and shared models or widgets to shared.

It covers view responsibilities, state holders, repository caching and error handling, stateless services, constructor injection and interface-based dependency replacement. A seven-step feature sequence runs from creating folders through checking layer boundaries. No automated generator or enforcement tool is supplied.

Using it

Requirements

For assistant use, the host must be able to consume the skill's instructions. The file does not name supported assistants, an installation directory or a compatibility matrix.

Applying the Dart examples requires a Flutter project and suitable state-management and dependency-injection setup. The examples use ChangeNotifier and getIt, while the prose permits other approaches. Minimum Flutter and Dart versions, imports and complete dependency declarations are unspecified.

Mechanism

The skill influences an assistant through written instructions. It directs views to present state and forward user events, business logic holders to transform repository data into UI state, repositories to own application data, and services to wrap external data access.

It describes state flowing toward the UI and events flowing toward the data layer. Views must not call services directly. A domain layer is introduced for complex or reused logic, including coordination across repositories. Repository data ownership is distinct from the loading and error state maintained in the ViewModel example.

Setup

The captured skill file is available at [https://raw.githubusercontent.com/evanca/flutter-ai-rules/ced864ab5189956dbf719a84011c24d860092116/skills/architecture-feature-first/SKILL.md]. Loading it requires the chosen assistant's own instruction mechanism; host-specific steps are not documented.

For a new feature, the skill proposes creating data and UI folders, implementing the service and repository, adding the state holder and view, then registering dependencies. Domain code is optional. Existing project conventions and dependency registration need to be reconciled with this sequence.

Example

The authentication example places AuthRepository and AuthApiService under features/auth/data, with AuthViewModel and login_screen.dart under features/auth/ui. A login use case appears in an optional domain folder.

The AuthViewModel snippet receives its repository through the constructor. Its login method sets loading state, clears an earlier error, calls the repository, records an exception as text, returns a success flag and clears loading state in finally. A separate DI snippet constructs services and repositories and registers repositories with getIt. Complete implementations, imports and execution results are absent.

Assessment & evidence

Limitations

The selected content provides architecture guidance and illustrative snippets. It contains no complete app, automated architecture checks, test suite or assistant-specific integration instructions. Runtime correctness and assistant compliance remain unverified.

The login example leaves production decisions such as user-facing error messages and overlapping requests to the project. The DI example also needs surrounding setup and registrations. Broad statements about layers and mutation require careful interpretation when a project has an optional domain layer and locally mutable UI state.

Reasoning

Grouping a feature's UI and data code can make related changes easier to locate. Explicit repository and service boundaries can clarify ownership, while constructor injection can make dependencies easier to replace in tests. These are architectural implications of the design; measured benefits are unknown.

The instruction to reserve use cases for complex or shared logic helps limit extra layers in simple CRUD applications. The tradeoff is that teams still need to judge when complexity warrants a domain layer and where shared code belongs.

Alternatives

For direct architectural reading, the skill references Flutter's architecture guide [https://docs.flutter.dev/app-architecture/guide], Compass case study [https://docs.flutter.dev/app-architecture/case-study] and recommendations [https://docs.flutter.dev/app-architecture/recommendations]. Their contents were not supplied, so a detailed comparison is unavailable.

Within this skill's approach, ChangeNotifier, BLoC, Provider and Riverpod are accommodated state-management choices. The material does not establish which choice performs best or fits a particular application.

Evidence

The supplied source consists of the complete selected SKILL.md and the repository-level LICENSE at commit ced864ab5189956dbf719a84011c24d860092116. The capture timestamp is 2026-11-15T23:23:35.253Z. The SKILL.md SHA-256 is 524a76dc761f7eaaa0557c9e989066fbfc65e960f829c8a497e2bf9e0124dfae.

These files support the documented architecture, examples and licence terms. They provide no execution results, independent benchmarks or observed assistant behavior. Referenced Flutter documentation and other repository content are outside the supplied evidence.

Access & freshness

Costs

The skill supplies no pricing, token-use estimates or cost measurements. Charges for an assistant, model API or other services used alongside it are unknown. The source does not establish a total cost of use.

Rights

The skill declares MIT licensing, and the repository licence names Copyright (c) 2025 Ivanna. The notice permits use, copying, modification, distribution, sublicensing and sale, provided the copyright and permission notices accompany copies or substantial portions.

The material is provided without warranty, with the liability disclaimer stated in the licence. The captured notice is at [https://raw.githubusercontent.com/evanca/flutter-ai-rules/ced864ab5189956dbf719a84011c24d860092116/LICENSE].

Freshness

The findings describe the captured commit. The capture date does not establish the skill's publication or last-change date, and later changes on main are unknown.

No release number, supported Flutter or Dart versions, or assistant compatibility versions are supplied. Compatibility with a current project remains unverified.

Actions

Start with one bounded feature and map the skill's business logic holder to the project's chosen state-management approach. Decide whether a domain layer is warranted, then complete the service, repository and dependency registrations.

Review generated code for direct UI-to-service calls, misplaced application data changes and unresolved dependencies. Validate loading, success and failure paths with the project's analyzer and tests before wider adoption. Retain the MIT notices when copying or distributing the skill.

Evidence for this report

LICENSEnotice · checked 2026-11-15
skills/architecture-feature-first/SKILL.mdselected · checked 2026-11-15