project-bloc

Scaffold BLoC packages for Flutter using Mason templates.

2|Updated Jul 3, 2025
One-click install
npx skills add https://github.com/gsmlg-app/flutter-app-template --skill project-bloc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: project-bloc
Source: https://github.com/gsmlg-app/flutter-app-template/tree/main/.claude/skills/project-bloc
Command: npx skills add https://github.com/gsmlg-app/flutter-app-template --skill project-bloc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the creation and management of BLoC (Business Logic Component) packages within a Flutter project, ensuring adherence to established conventions for events, states, and structure.

Core Features & Use Cases

  • Guided BLoC Creation: Provides templates for simple, list, and form BLoCs.
  • Enforces Project Structure: Ensures BLoC packages are correctly placed and organized.
  • Adheres to Conventions: Guides on naming, state structure, and event handling.
  • Use Case: When starting a new feature that requires complex state management, use this skill to scaffold the necessary BLoC files and set up the initial structure according to project standards.

Quick Start

Use the project-bloc skill to create a new BLoC for managing user profiles.

Frequently Asked Questions about project-bloc

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

FAQPage Schema
How do I scaffold a new BLoC package for my Flutter application?

Flutter BLoC scaffolding provides templates for simple, list, and form BLoCs by generating event definitions, state classes with status enums, and BLoC classes with event handlers to ensure correct package placement and project structure conventions.

What is the best way to manage state structure when creating a Flutter BLoC?

Managing Flutter BLoC state structure involves adhering to project-specific conventions for events, states, and structure by utilizing status enums in state classes and defining event handlers in BLoC classes.

Does this BLoC scaffolding approach support different types of BLoCs?

Yes, BLoC scaffolding supports different types of BLoCs by providing guided templates for simple, list, and form BLoCs to implement business logic with state management.

When do I need to scaffold a BLoC package instead of writing it manually?

You need to scaffold a BLoC package when starting a new Flutter feature that requires complex state management, ensuring the initial structure adheres to project standards for events and states without manual setup.

Why should I use Mason templates for generating BLoC files?

You should use Mason templates for generating BLoC files because they streamline the creation process, ensuring adherence to established conventions for events, states, and structure within your Flutter project.