Code Generation Skill
This skill guides you in generating code that adheres to the project's architectural and stylistic guidelines.
Instructions
- •Context Awareness: Before generating code, read
docs/architecture.mdanddocs/domain-money.mdif relevant. - •Security First: Always implement RLS and validation before writing the business logic.
- •Type Safety: Generate full TypeScript definitions first.
- •Minimal Changes: When modifying existing code, touch only what is necessary.
Key Patterns
- •Server Actions: Use for mutations.
- •Server Components: Use for fetching data.
- •Client Components: Use for interactivity.
- •Zod: Use for validation.
Formatting
- •Use strict TypeScript.
- •Add JSDoc for complex functions.