flutter-feature-generator

Generate Flutter feature scaffolds with clean-architecture layers via a shell script.

6|3|Updated Aug 19, 2025
One-click install
npx skills add https://github.com/utakata-code/flutter_init --skill flutter-feature-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: flutter-feature-generator
Source: https://github.com/utakata-code/flutter_init/tree/main/.agent/skills/flutter-feature-generator
Command: npx skills add https://github.com/utakata-code/flutter_init --skill flutter-feature-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the creation of feature directories and clean architecture scaffolding for new Flutter features, saving developers from repetitive setup and ensuring architectural consistency.

Core Features & Use Cases

  • Auto-creates feature directory structure (Domain, Infrastructure, Application, Presentation) following the 4-layer template.
  • Supports generating feature for different permissions (admin, user, shared, direct) and ensures correct placement under lib/features.
  • Simplifies onboarding of new team members by providing a ready-to-use skeleton that adheres to the project's conventions.

Quick Start

Run the generator with -n <FeatureName> -p <permission> to create the full four-layer feature skeleton.

Frequently Asked Questions about flutter-feature-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a Flutter feature scaffold with clean architecture layers?

To generate a Flutter feature scaffold, run the generator script with the feature name and permission to create a four-layer skeleton containing Domain, Infrastructure, Application, and Presentation directories under lib/features.

What is the best way to automate clean architecture scaffolding for new Flutter features?

Automating clean architecture scaffolding uses a dedicated script to enforce naming conventions and project guidelines, instantly creating the lib/features/<permission>/<FeatureName>/ structure with all four architectural layers pre-configured.

Can I generate Flutter features for different permissions like admin or shared?

Yes, you can generate Flutter features for different permissions by passing the desired permission type as an argument, ensuring correct placement under the appropriate lib/features subdirectory.

How do I ensure my new Flutter feature follows existing architectural guidelines?

To ensure architectural compliance, the generator validates inputs and enforces naming conventions during the scaffold creation, automatically preserving the project's established architectural guidelines across all generated layers.

Does the Flutter feature generator validate naming conventions for directories?

Yes, the Flutter feature generator validates inputs and enforces naming conventions before creating the directory structure, preventing inconsistent feature names and maintaining project-wide architectural standards.