What problem does it solve?
This Skill ensures that all backend interactions within the Ernit app follow a standardized and robust architectural pattern, preventing inconsistencies and improving maintainability.
Core Features & Use Cases
- Standardized Service Layer: Defines patterns for service instantiation (singleton vs. object literal), error handling, real-time listeners, and CRUD operations.
- Error Handling: Mandates consistent logging and error reporting for all service methods.
- Data Normalization: Enforces proper conversion of Firestore Timestamps and default values for optional fields.
- Use Case: When developing a new feature that requires fetching user data from Firestore, consult this Skill to ensure the
UserService is implemented using the correct singleton pattern, error handling, and data normalization practices.
Quick Start
Use the service-patterns skill to ensure the new UserService follows the class-based singleton pattern and includes robust error handling for all its methods.