Package detail

@appiq/flutter-workflow

your-username0MIT2.1.1

πŸš€ Professional Flutter development with AI-powered agent coordination & intelligent parallel execution - Complete workflow system with crash recovery and state management by AppIQ Solutions

flutter, workflow, agent, development

readme

πŸš€ AppIQ Flutter Workflow v2.1.0

Professional Flutter development with AI-powered agent coordination, intelligent parallel execution, and independent agent mode.

NPM Version License: MIT Support Development

🌟 What's New in v2.1.0

🎯 Independent Agent Mode

  • Direct Agent Access: Call any agent directly for specific tasks (@ui-agent, @cubit-agent, etc.)
  • Smart Feature Detection: Agents automatically find related features to update
  • Lightweight Tracking: Full progress tracking without workflow overhead
  • Seamless Escalation: Automatic upgrade to full workflow when complexity requires it

🧠 Intelligent Agent Coordination

  • Advanced Parallel Execution: UI+Domain and Security+Test agents run simultaneously
  • Dynamic Conflict Resolution: Automatic detection and resolution of agent conflicts
  • Event-Driven Coordination: Real-time agent communication and handoff optimization
  • Resource Load Balancing: Intelligent allocation of system resources

πŸ›‘οΈ Crash Recovery & State Management

  • 100% Crash Recovery: Never lose progress due to IDE crashes or interruptions
  • Automatic State Preservation: Continuous backup every 5 minutes with zero data loss
  • Recovery Checkpoints: Manual and automatic checkpoint creation at critical phases
  • State Validation: Comprehensive integrity checking and corruption detection

πŸš€ Quick Start

Installation

npm install -g @appiq/flutter-workflow

Option 1: Independent Agent Usage (NEW!)

Work directly with any agent for specific tasks:

# UI improvements
@ui-agent "Make the login screen more modern and add dark mode support"

# State management updates  
@cubit-agent "Add loading states and better error handling to the user profile"

# Domain logic enhancements
@domain-agent "Add validation rules for user registration"

Agent will automatically:

  1. πŸ” Find related features in your project
  2. 🎯 Offer appropriate approach (standalone, feature update, or full workflow)
  3. πŸ“Š Track all work with complete history
  4. πŸ”„ Coordinate with other agents when needed

Option 2: Full Workflow Mode

For complete feature development:

# Initialize workflow system
npx @appiq/flutter-workflow install

# Create new feature
npx @appiq/flutter-workflow create-feature user-authentication

# Start feature development with FeatureMaster
@feature-manager "Start development for user-authentication feature"

🎯 Agent Capabilities

πŸ’– Support This Project

If this workflow saves you time and helps you build better Flutter apps, consider supporting the development:

Donate with PayPal

Your support helps maintain and improve this open-source project! πŸš€


🎯 Overview

AppIQ Flutter Workflow is a comprehensive, agent-based development system that automates Flutter feature development using specialized AI agents. Each agent handles a specific layer of Clean Architecture, ensuring consistent, high-quality, and maintainable Flutter applications.

πŸ€– Agent Ecosystem

🎭 Orchestrator (Conductor)

Master workflow controller and quality assurance manager

  • Coordinates all specialized agents
  • Manages feature lifecycle from conception to deployment
  • Enforces quality gates and architectural compliance
  • Provides comprehensive status tracking and reporting

πŸ“‹ PO Agent (Phoenix)

Product Owner and requirements specialist

  • Transforms business requirements into technical specifications
  • Creates detailed task breakdowns across all architectural layers
  • Manages stakeholder coordination and communication
  • Validates feature readiness and business value

🎨 UI Agent (Maya)

Flutter UI/UX design specialist

  • Material Design 3 implementation and theming
  • Responsive design for all devices and screen sizes
  • Accessibility compliance (WCAG 2.1 AA standards)
  • Multi-language support and localization
  • Performance-optimized widget architectures

🧠 Cubit Agent (Alex)

State management and business logic specialist

  • Cubit/BLoC pattern implementation and architecture
  • Immutable state classes with comprehensive error handling
  • Performance-optimized reactive programming
  • Business logic coordination between UI and Domain layers

βš™οΈ Domain Agent (Jordan)

Clean Architecture domain layer architect

  • Framework-independent business logic implementation
  • Immutable business entities with comprehensive validation
  • Single-responsibility use cases with proper error handling
  • Repository interfaces for data access abstraction

πŸ—„οΈ Data Agent (Sam)

Backend integration and data layer specialist

  • Repository pattern implementation with error handling
  • API integration with security, caching, and offline support
  • Local storage optimization (Hive, SQLite, secure storage)
  • MCP service integration (Firebase, Supabase, AWS, etc.)

πŸ” Security Agent (Cipher)

Security and compliance specialist

  • COPPA compliance validation and implementation
  • Data protection and encryption for sensitive information
  • Secure authentication and authorization systems
  • Privacy controls and regulatory compliance (GDPR, CCPA)

πŸ§ͺ Test Agent (Trinity)

Testing and quality assurance specialist

  • Testing Pyramid implementation (70% Unit, 20% Widget, 10% Integration)
  • Comprehensive test coverage and quality assurance
  • Performance testing and benchmark validation
  • Security testing and accessibility compliance verification

πŸš€ Installation

Prerequisites

  • Node.js 14.0.0 or higher
  • Flutter SDK (latest stable version)
  • Your preferred IDE (Claude Desktop, Cursor, Windsurf, or Trae)

Install via NPX

# Navigate to your Flutter project directory
cd your-flutter-project

# Install AppIQ Flutter Workflow
npx @appiq/flutter-workflow install

Or install globally

# Install globally for easier access
npm install -g @appiq/flutter-workflow

# Then use anywhere
appiq-workflow install

Interactive Installation

The installer will guide you through:

  1. IDE Selection: Choose your development environment(s)
  2. Agent Installation: Automatically installs all 8 specialized agents
  3. Project Setup: Creates feature management structure
  4. Documentation: Sets up feature tracking and history system

πŸ“ Project Structure

After installation, your project will have:

your-flutter-project/
β”œβ”€β”€ .claude/agents/          # Claude Desktop agents
β”œβ”€β”€ .cursor/rules/           # Cursor IDE agents  
β”œβ”€β”€ .windsurf/rules/         # Windsurf IDE agents
β”œβ”€β”€ .trae/rules/             # Trae IDE agents
β”œβ”€β”€ docs/
β”‚   └── features/           # Feature documentation and tracking
β”‚       β”œβ”€β”€ feature-name.md        # Feature status and requirements
β”‚       └── feature-name_history.md # Complete development history
β”œβ”€β”€ lib/
β”‚   β”œβ”€β”€ features/           # Feature-based development structure
β”‚   β”‚   └── feature-name/
β”‚   β”‚       β”œβ”€β”€ data/       # Data layer (repositories, datasources, models)
β”‚   β”‚       β”œβ”€β”€ domain/     # Domain layer (entities, usecases, repositories)
β”‚   β”‚       └── presentation/ # Presentation layer (pages, widgets, cubit)
β”‚   β”œβ”€β”€ shared/             # Shared components and utilities
β”‚   └── core/               # Core application infrastructure
└── test/                   # Comprehensive testing structure
    β”œβ”€β”€ unit/               # Unit tests (70%)
    β”œβ”€β”€ widget/             # Widget tests (20%)
    └── integration/        # Integration tests (10%)

πŸ”„ Workflow Process

1. Feature Creation

# Create a new feature
npx @appiq/flutter-workflow create-feature livestream

# Or manually create in docs/features/livestream.md

2. Agent Workflow Chain

PO Agent β†’ UI Agent β†’ Cubit Agent β†’ Domain Agent β†’ Data Agent β†’ Security Agent β†’ Test Agent

3. Status Tracking

Each agent updates the feature status:

---
name: Livestream
ui: done
domain: in_progress  
data: open
security: open
test: open
status: in_progress
---

4. Quality Gates

  • Architecture Compliance: Clean Architecture principles enforced
  • Code Quality: DRY, SOLID, clean code standards
  • Test Coverage: Minimum 90% coverage requirement
  • Security Compliance: COPPA and privacy standards
  • Performance: Optimization and benchmark validation

🎯 Feature Development Example

Creating a Livestream Feature

  1. Create Feature Documentation: ```markdown

name: Livestream ui: open domain: open data: open security: open test: open

status: open

Livestream Feature

I want a livestream function like TikTok where users can:

  • Swipe up/down to navigate between streams
  • Comment via bottom sheet
  • Like with animation and counter
  • Bookmark streams for later viewing ```

  • Start Orchestrator: Load the Orchestrator agent in your IDE

  • Begin Workflow: The Orchestrator coordinates all agents automatically
  • Monitor Progress: Track status in feature documentation
  • Quality Validation: All agents enforce quality gates
  • Deployment Ready: Complete feature with comprehensive testing

πŸ›  Commands

CLI Commands

# Install workflow system
npx @appiq/flutter-workflow install

# Check installation status  
npx @appiq/flutter-workflow status

# Create new feature
npx @appiq/flutter-workflow create-feature <feature-name>

# Show help
npx @appiq/flutter-workflow --help

Agent Commands (in IDE)

All agents support commands with * prefix:

*help              # Show available commands
*start-feature     # Begin feature development (Orchestrator)
*analyze-feature   # Analyze requirements (PO Agent)
*design-ui         # Create UI implementation (UI Agent)
*implement-cubit   # Add state management (Cubit Agent)
*create-entities   # Build domain layer (Domain Agent)
*setup-api         # Implement data layer (Data Agent)
*validate-security # Add security measures (Security Agent)
*run-tests         # Execute test suite (Test Agent)

πŸ— Architecture Principles

Clean Architecture Layers

  • Presentation Layer: UI, widgets, state management
  • Domain Layer: Business logic, entities, use cases
  • Data Layer: Repositories, data sources, external APIs

Quality Standards

  • DRY: No code duplication, reusable components
  • Readable: Self-documenting code and clear structure
  • Maintainable: Modular architecture and proper separation
  • Performant: Optimized for mobile constraints
  • Testable: Comprehensive testing coverage

Development Patterns

  • Feature-Driven: Organized by business features
  • Immutable State: All state objects are immutable
  • Dependency Injection: Proper DI for testability
  • Error Handling: Comprehensive error management
  • Localization: Multi-language support by default

πŸ” Security & Compliance

COPPA Compliance

  • Age-appropriate design patterns
  • Parental consent mechanisms
  • Minimal data collection for minors
  • Secure data storage and transmission

Data Protection

  • Encryption at rest and in transit
  • Secure authentication and authorization
  • Privacy controls and user consent
  • GDPR and CCPA compliance

Security Best Practices

  • Input validation and sanitization
  • Secure API communication
  • Vulnerability scanning and testing
  • Regular security audits

πŸ“Š Testing Strategy

Testing Pyramid (70/20/10)

  • 70% Unit Tests: Business logic and domain layer
  • 20% Widget Tests: UI interactions and components
  • 10% Integration Tests: Complete user flows

Quality Requirements

  • Minimum 90% test coverage
  • All tests passing before deployment
  • Performance benchmarks met
  • Security tests validated
  • Accessibility compliance verified

🀝 MCP Integrations

The workflow supports various MCP (Model Context Protocol) services:

  • Fetcher MCP: Advanced data fetching and caching
  • Sequential Thinking MCP: Complex workflow analysis
  • Memory MCP: Context preservation across agents
  • Context7 MCP: Enhanced code analysis
  • Supabase MCP: Backend as a Service
  • Firebase MCP: Google Firebase services
  • Puppeteer MCP: Automated testing and screenshots

πŸ“– Documentation

Automatic Documentation

  • Feature development history tracking
  • Architectural decision records
  • Quality gate compliance reports
  • Test coverage and performance metrics

Generated Files

  • docs/features/feature-name.md: Status and requirements
  • docs/features/feature-name_history.md: Complete development history
  • Test reports and coverage analysis
  • Security audit and compliance reports

πŸ”§ Configuration

Environment Variables

APPIQ_WORKFLOW_MODE=production    # Development mode
APPIQ_TEST_COVERAGE_MIN=90        # Minimum test coverage
APPIQ_COPPA_COMPLIANCE=true       # COPPA compliance enforcement
APPIQ_SECURITY_SCAN=true          # Security scanning enabled

IDE Configuration

Each IDE receives optimized agent configurations:

  • Claude Desktop: Advanced AI coding assistance
  • Cursor: AI-first development environment
  • Windsurf: Collaborative AI coding
  • Trae: Enhanced development workflow

🚦 Status Indicators

Feature Status Levels

  • open: Ready for development planning
  • in_progress: Active development in progress
  • done: Completed and deployment-ready

Agent Status Tracking

  • pending: Not yet started
  • in_progress: Currently working
  • done: Completed successfully

Quality Gate Status

  • architecture_compliance: Clean Architecture verified
  • code_quality: Quality standards met
  • test_coverage: Coverage requirements achieved
  • security_compliance: Security standards verified
  • performance_validated: Performance benchmarks met

πŸ€” FAQ

Q: Can I use this with existing Flutter projects? A: Yes! The workflow integrates with existing projects and follows established patterns.

Q: Do I need all agents for small features? A: The Orchestrator will activate only necessary agents based on feature requirements.

Q: How does COPPA compliance work? A: The Security Agent automatically validates and implements COPPA requirements for child-facing features.

Q: Can I customize the workflow? A: Yes, agents can be customized and workflow patterns can be adapted to your team's needs.

Q: What happens if an agent fails? A: The Orchestrator provides failure recovery, rollback capabilities, and detailed error reporting.

πŸ’– Support This Project

If AppIQ Flutter Workflow helps you build better Flutter apps faster, consider supporting its development:

Donate with PayPal

Your support helps:

  • πŸš€ Maintain and improve the workflow system
  • πŸ€– Add new agent capabilities and integrations
  • πŸ“š Create better documentation and tutorials
  • πŸ› οΈ Provide community support and bug fixes

πŸ“„ License

MIT License - see LICENSE file for details.

Copyright (c) 2024 AppIQ Solutions

🀝 Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

πŸ“ž Support & Community

  • Issues: Report bugs and request features
  • Documentation: Comprehensive guides and examples
  • Community: Join discussions and get support
  • NPM Package: npmjs.com/@appiq/flutter-workflow

🏒 About AppIQ Solutions

AppIQ Solutions specializes in professional Flutter development workflows and AI-powered development tools. We create solutions that help developers build better apps faster.

πŸ™ Acknowledgments

  • Flutter team for the amazing framework
  • Clean Architecture principles by Robert C. Martin
  • Material Design team at Google
  • Open source Flutter community
  • All contributors and supporters

Built with ❀️ by AppIQ Solutions

Transform your Flutter development with AI-powered workflow automation

Donate