What problem does it solve?
This Skill provides guidance and code examples for implementing modern, maintainable, and scalable frontend patterns in Vue.js and Angular applications, helping developers avoid common pitfalls and write higher-quality code.
Core Features & Use Cases
- Reusable Logic: Implement composable functions (Vue) and injectable services (Angular) for stateful logic.
- State Management: Utilize Pinia (Vue) and NgRx Signals (Angular) for type-safe state management.
- Type Safety: Enforce data integrity with Zod for form validation and TypeScript best practices.
- Component Architecture: Understand and apply smart vs. dumb component patterns.
- Routing Security: Implement route guards for authentication and authorization.
- Testing: Examples for component testing with Testing Library and E2E testing with Playwright.
- Use Case: Refactor a large Vue component by extracting stateful logic into a composable, improving reusability and testability.
Quick Start
Apply the composable pattern to extract reusable stateful logic into a composable function in Vue.js.