Gastrobrain Refactoring Guide

Community

Make code cleaner with checkpointed refactoring.

Authoralemdisso
Version1.0.0
Installs0

System Documentation

What problem does it solve?

The Gastrobrain Refactoring Skill provides a structured, checkpoint-driven approach to improving code quality by isolating responsibilities into dedicated services, extracting UI logic, and enforcing SOLID principles in Flutter/Dart projects.

Core Features & Use Cases

  • 7-Checkpoint process: Guides through seven verification stages with user confirmation after each step.
  • Incremental refactoring: Breaks changes into Phase 1 (structure) and Phase 2 (architecture), reducing risk.
  • Service decomposition: Extracts business logic into testable services and wires UI to services via DI.
  • Documentation & patterns: Generates pattern templates, documentation, and a summary report.
  • Gastrobrain-specific guidance: Includes project scaffolding for common Gastrobrain patterns (screen decomposition, service injections, test mocks).

Quick Start

Start by analyzing a large screen and follow the seven checkpoints to refactor UI into a lean widget tree and extract data logic into services, then validate with tests.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: Gastrobrain Refactoring Guide
Download link: https://github.com/alemdisso/gastrobrain/archive/main.zip#gastrobrain-refactoring-guide

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.