rename folder

This commit is contained in:
sanjeed5
2025-02-27 00:04:07 +05:30
parent 519c3fa882
commit f7fa52c998
879 changed files with 0 additions and 0 deletions
@@ -0,0 +1,77 @@
---
description: Rules specific to Flutter projects, including directory structure, feature organization, and naming conventions to ensure a scalable and maintainable codebase.
globs: lib/**/*
---
- Implement code following this directory structure:
lib/features/products/
├── data/
│ ├── models/
│ │ ├── product_dto.dart
│ │ └── product_category_dto.dart
│ └── product_repository.dart
├── presentation/
│ ├── screens/
│ │ ├── product_list_screen.dart
│ │ └── product_details_screen.dart
│ ├── controllers/
│ │ └── product_list_controller.dart
│ ├── widgets/
│ │ └── product_card.dart
├── domain/
│ ├── models/
│ │ ├── product.dart
│ │ └── product_category.dart
│ └── get_products_use_case.dart
└── shared/
└── models/
└── address.dart
- Placement Rules:
- **lib/**: Contains all Dart code.
- **features/**: Feature-specific code.
- **models/**: Global models (use sparingly).
- **providers/**: Global providers (minimize use).
- **routes/**: App navigation.
- **core/**: Core app logic (networking, errors, DI).
- **app.dart**: Root widget.
- **main.dart**: Entry point.
- features/ Structure:
- **<feature_name>/**: A feature (e.g., authentication, products).
- **data/**: Data access.
- **models/**: Data Transfer Objects (DTOs).
- **<feature_name>_repository.dart**: Data access logic.
- **presentation/**: UI.
- **screens/**: UI screens (<feature_name>_<screen_name>_screen.dart).
- **controllers/**: State management (<feature_name>_controller.dart).
- **widgets/**: Feature-specific widgets (<widget_name>.dart).
- **domain/**: Business logic.
- **models/**: Domain models.
- **<feature_name>.dart**: Main entity.
- **use_cases/**: User interactions (<use_case_name>.dart).
- **shared/models/**: Models shared between *related* features.
- shared/ (Top-Level) Structure:
- **providers/**: Providers shared across *unrelated* features.
- **widgets/**: Widgets shared across *unrelated* features.
- **models/**: Models shared across *unrelated* features (use cautiously).
- **services/**: Utility classes.
- models/ (Top-Level) Structure:
- Global models (use sparingly).
- providers/ (Top-Level) Structure:
- Global providers (minimize use).
- core/ Structure:
- **network/**: Networking code.
- **errors/**: Error handling.
- **di/**: Dependency injection.
- Naming Conventions:
- **Files:** snake_case (e.g., product_list_screen.dart).
- **Classes:** PascalCase (e.g., ProductListScreen).
- **Variables/Functions:** camelCase (e.g., productList).
- Key Principles:
- **Feature Isolation:** Self-contained feature code.
- **Separation of Concerns:** Separate data, logic, and UI.
- **Single Responsibility:** One purpose per class/file.
- **DRY:** Avoid code duplication.
- **Prefer Feature-Specific:** Prioritize feature-level placement.
@@ -0,0 +1,32 @@
---
description: General instructions for the AI assistant to follow when executing tasks, including analysis, execution, quality control, and reporting.
globs: *
---
- You are an AI assistant with advanced problem-solving capabilities. Please follow the instructions to execute tasks efficiently and accurately.
- First, confirm the instructions received from the user:
<instructions>
{{instructions}}
</instructions>
- Please proceed with the following process based on these instructions:
- Summarize the main tasks concisely.
- Review the specified tech stack and consider implementation methods within those constraints. **Note: Do not change versions listed in the tech stack without approval**
- Identify key requirements and constraints.
- List potential challenges.
- Enumerate specific steps for task execution in detail.
- Determine the optimal execution order for these steps.
- Before implementation, verify: Existence of similar functionality, Functions or components with identical or similar names, Duplicate API endpoints, Identification of processes that can be shared.
- Take sufficient time for analysis as it guides the entire process.
- Execute identified steps one by one, reporting progress concisely after each step.
- Adhere to proper directory structure and naming conventions, and appropriate placement of shared processes.
- Quickly verify the execution results of each task. If errors occur, isolate the problem, create and implement countermeasures, and verify the fix.
- Record verification results, including items, expected results, actual results, discrepancies, and required countermeasures.
- Evaluate the entire deliverable once all tasks are completed.
- Verify consistency with original instructions and make adjustments as needed.
- Perform final confirmation that there are no duplicates in implemented functions.
- Report final results in the specified format, including overview, execution steps, deliverables, issue resolution, and notes/suggestions.
- Always confirm any unclear points before beginning work.
- Report and obtain approval for any important decisions as they arise.
- Report unexpected problems immediately and propose solutions.
- **Do not make changes that are not explicitly instructed.** If changes seem necessary, first report them as proposals and implement only after approval
- **UI/UX design changes (layout, colors, fonts, spacing, etc.) are prohibited** unless approved after presenting justification
- **Do not arbitrarily change versions listed in the tech stack** (APIs, frameworks, libraries, etc.). If changes are necessary, clearly explain the reason and wait for approval before making any changes
@@ -0,0 +1,12 @@
---
description: Specifies the tech stack to be used, including AI Model, Frontend framework (Flutter), State Management (Riverpod), and BaaS (Firebase).
globs: *
---
- Core Technologies:
- AI Model: GPT-4
- Frontend:
- Flutter: ^3.22.0
- State Management:
- Riverpod: ^2.6.1
- BaaS:
- Firebase