# Flutter Arch Skill

Implement, extend, or review Flutter features using a layered architecture including Page, Cubit, UseCase, Repository, and DataSource. Follow project-specific instructions and architecture guides.

**Canonical URL:** https://skillshunter.net/skills/discovered-744b4a0a919228a1e570082f9603f186b5d5933fa92dc075

**JSON URL:** https://skillshunter.net/api/public/v1/skills/discovered-744b4a0a919228a1e570082f9603f186b5d5933fa92dc075

**Markdown URL:** https://skillshunter.net/skills/discovered-744b4a0a919228a1e570082f9603f186b5d5933fa92dc075.md

**Instructions download URL:** https://skillshunter.net/skills/discovered-744b4a0a919228a1e570082f9603f186b5d5933fa92dc075/download

**Category:** Software & Development

**Source URL:** https://github.com/ultra-rony/flutter-arch-skill/blob/64517bf48ff36d79db4d3279ec03c6ca93668b6f/skills/flutter-arch-skill/SKILL.md

**Source commit:** 64517bf48ff36d79db4d3279ec03c6ca93668b6f

**Listing approved at:** 2026-11-30

**Created at:** 2026-11-29T11:05:27.000000Z

**Updated at:** 2026-11-30T06:52:12.000000Z

## Catalog information

The following descriptions are catalog information. Listing approval does not mean the skill has been tested or is safe for every environment.

### Editor's note

Ensure the target Flutter package's `pubspec.yaml` and `lib/` directory are accessible. Review applicable instructions such as `AGENTS.md`, local architecture guides, and existing implementations before proceeding.

### When to use it

- Implementing new Flutter features using Clean Architecture
- Extending existing Flutter features with layered components
- Reviewing Flutter code structure for adherence to architecture guidelines
- Setting up DI with Injectable, routing with AutoRoute, and model generation with Freezed or JSON

## Skill instructions

---
name: flutter-arch-skill
description: Implement, extend, or review Flutter features in a layered Page, Cubit, UseCase, Repository and DataSource architecture. Use for feature ownership, Mason scaffolding, Injectable DI, AutoRoute wiring, and Freezed or JSON model changes.
license: MIT
---

# Flutter Arch Skill

Work in the target Flutter package with `pubspec.yaml` and `lib/`. Read the project's applicable instructions, including `AGENTS.md` when present, local architecture guides, and the closest existing implementation. Follow the [feature architecture](references/architecture.md). Read [packages and tooling](references/tooling.md) for Mason, dependencies, DI, routes, or generated files. Use the [implementation examples](references/implementation-examples.md) for a complete data flow, shared cache, or workspace wiring.

Resolve bundled references and scripts relative to this `SKILL.md`. Run Flutter and Dart commands from the target Flutter package root.

For an architecture review, report findings by file using the architecture checks. Apply changes when the user requests them.

1. Identify the owner, entry point, and data contract. Extend the existing feature for work inside its workflow, use `lib/features/<name>/` for a new workflow, and reuse or extend the relevant module under `lib/shared/features/` for shared domain capabilities.
2. Start new features with the target project's configured generator. Use `make new_feature name=<snake_case>` when that Mason workflow is present. For a new screen without a project template, use the [bundled scaffold](references/tooling.md#bundled-scaffold). Complete the generated lifecycle and entry point and add the layers needed by the behavior.
3. Implement the request in the current session. Where it uses data, trace the operation from Page and Cubit through the use case and repository contract to the injected data source. Reuse configured clients and existing domain types, map DTOs in data, then wire DI and navigation at the feature's real entry point. Use the target app's packages and add dependencies only when the implementation needs them.
4. Regenerate affected code, inspect the diff against [the architecture checks](references/architecture.md#verification), and fix findings introduced by the task. Format touched Dart files, run the project's analyzer and relevant tests, and report the behavior and commands verified.

