一键导入
modular-architecture
Guidelines for maintaining a modular architecture in FinanzApp Frontend
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Guidelines for maintaining a modular architecture in FinanzApp Frontend
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Mandatory rule requiring a corresponding test file for every business logic file and UI component.
Guidelines for frontend component and E2E testing in FinanzApp.
Component organization and modern React principles for the FrontEnd.
Catalog of all specialized skills used across the FinanzApp project (Frontend & Backend).
Reglas obligatorias para garantizar la accesibilidad web (A11y) en FinanzApp. Sigue estándares WCAG 2.1 para usuarios con discapacidad visual y navegación por teclado.
Guidelines for cross-layer testing (Hooks + UI + Services) using real logic and MSW for network interception.
| name | modular-architecture |
| description | Guidelines for maintaining a modular architecture in FinanzApp Frontend |
This project follows a strict modular architecture to ensure scalability and maintainability.
Type Separation:
src/types/.type aliases instead of interface unless extending is strictly necessary.Service Layer:
src/services/) should only contain API calls and data transformation logic.src/types/.Hooks Layer:
src/hooks/) should encapsulate reusable logic, state, and side effects.src/utils/.Components:
src/components/, src/app/) should focus on UI and interaction.src/types/.Directory Structure:
src/types/: Centralized type definitions.src/services/: API integration services.src/hooks/: Custom React hooks for logic and state.src/components/: Reusable UI components.src/app/: Next.js App Router pages and layouts.src/lib/: Third-party library configurations (e.g., Axios client).When adding a new feature (e.g., "Orders"):
src/types/order.types.ts.src/services/OrderService.ts importing those types.src/hooks/useOrders.ts to manage state and fetch data using the service.src/components/orders/ using the hook and types.