← ClaudeAtlas

code-qualitylisted

Dart/Flutter code review — clean code, widget patterns, type safety, accessibility, performance. Use when user says "review code", "refactor", "check this PR", or before merging changes.
IuliaIvanaPatras/claude-code-templates · ★ 0 · Code & Development · score 65
Install: claude install-skill IuliaIvanaPatras/claude-code-templates
# Code Quality Review Skill Systematic Flutter/Dart code review combining clean code principles, widget patterns, Dart type safety, Riverpod conventions, accessibility, and performance best practices. ## When to Use - "review this code" / "code review" / "check this PR" - "refactor" / "clean this code" / "improve readability" - "review widget" / "check patterns" - Before merging PR or releasing a Flutter feature ## Review Strategy 1. **Quick scan** - Understand intent, identify scope (feature, widget, provider) 2. **Checklist pass** - Apply relevant categories below 3. **Summary** - List findings by severity (Critical > Important > Smell > Good) --- ## Clean Code in Dart ### DRY - Don't Repeat Yourself (Use Extensions) **Violation:** ```dart // ❌ Duplicated formatting logic across widgets class OrderSummary extends StatelessWidget { @override Widget build(BuildContext context) { final formatted = '\$${(price / 100).toStringAsFixed(2)}'; return Text(formatted); } } class CartItem extends StatelessWidget { @override Widget build(BuildContext context) { final formatted = '\$${(price / 100).toStringAsFixed(2)}'; return Text(formatted); } } ``` **Fix:** ```dart // ✅ Shared extension on int (cents to dollars) extension CurrencyFormatting on int { String toCurrency({String symbol = '\$'}) { return '$symbol${(this / 100).toStringAsFixed(2)}'; } } // Usage — clean and consistent Text(order.totalCents.toCurrency()); Text(item.priceCents.to