coding-standards

Define coding standards for the Flutter_Base project.

1|1|Updated Jun 21, 2025
One-click install
npx skills add https://github.com/AdhamHashim/Flutter_Base --skill coding-standards-adhamhashim
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coding-standards
Source: https://github.com/AdhamHashim/Flutter_Base/tree/main/.claude/skills/coding-standards
Command: npx skills add https://github.com/AdhamHashim/Flutter_Base --skill coding-standards-adhamhashim

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide to enforce consistent and high-quality coding practices within the Flutter_Base project, reducing technical debt and improving maintainability.

Core Features & Use Cases

  • Code Consistency: Enforces uniform styling for imports, colors, sizes, text styles, and spacing.
  • Best Practices: Details correct usage of navigation, localization, form handling, and entity safety.
  • Widget & Extension Usage: Guides developers to leverage existing core widgets and extensions before creating new ones.
  • Use Case: A new developer joins the Flutter_Base team. By consulting this Skill, they can immediately understand and apply the project's specific coding conventions for colors, text styles, and navigation, ensuring their code integrates seamlessly with the existing codebase.

Quick Start

Follow the coding standards outlined in this skill for all new Flutter development.

Frequently Asked Questions about coding-standards

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

FAQPage Schema
What are the best practices for managing imports and styling in Flutter?

Flutter coding standards enforce uniform import management and centralized definitions for colors, sizes, and text styles. This ensures consistency across your project, reducing technical debt and improving overall maintainability.

How do I handle navigation and localization in Flutter?

Handle navigation using the Go class and implement localization with LocaleKeys. These Flutter development guidelines ensure correct routing and text translations, maintaining code consistency across multiple regions.

What is the standard way to handle multiple scrollable elements in Flutter?

The standard approach for multiple scrollable elements in Flutter is using CustomScrollView with slivers. This coding convention ensures smooth scrolling performance and proper layout structure.

How do I ensure entity safety and proper form handling in Flutter?

Ensure entity safety by using initial() and fromJson defaults. For form handling, utilize FormMixin and apply Arabic number conversion to maintain data integrity and formatting consistency.

Should I create custom widgets or use existing core widgets and extensions?

You should leverage existing core widgets and extensions before creating new ones. Following these Flutter coding standards prevents code duplication, reduces bundle size, and maintains project consistency.

Does this Flutter coding standard support RTL compliance?

Yes, these Flutter coding standards emphasize RTL compliance and proper access modifiers. Adhering to these guidelines ensures your application layout works correctly for right-to-left languages.