Review provided documents including PRD, UX-UI Specification, and main Architecture Document. Focus on extracting technical implementation details needed for AI frontend tools and developer agents. Ask the user for any of these documents if you are unable to locate and were not provided.
instruction:Define exact directory structure for AI tools based on the chosen framework. Be specific about where each type of file goes. Generate a structure that follows the framework's best practices and conventions.
elicit:true
type:code
language:plaintext
- id:component-standards
title:Component Standards
instruction:Define exact patterns for component creation based on the chosen framework.
elicit:true
sections:
- id:component-template
title:Component Template
instruction:Generate a minimal but complete component template following the framework's best practices. Include TypeScript types, proper imports, and basic structure.
type:code
language:typescript
- id:naming-conventions
title:Naming Conventions
instruction:Provide naming conventions specific to the chosen framework for components, files, services, state management, and other architectural elements.
- id:state-management
title:State Management
instruction:Define state management patterns based on the chosen framework.
elicit:true
sections:
- id:store-structure
title:Store Structure
instruction:Generate the state management directory structure appropriate for the chosen framework and selected state management solution.
type:code
language:plaintext
- id:state-template
title:State Management Template
instruction:Provide a basic state management template/example following the framework's recommended patterns. Include TypeScript types and common operations like setting, updating, and clearing state.
type:code
language:typescript
- id:api-integration
title:API Integration
instruction:Define API service patterns based on the chosen framework.
elicit:true
sections:
- id:service-template
title:Service Template
instruction:Provide an API service template that follows the framework's conventions. Include proper TypeScript types, error handling, and async patterns.
type:code
language:typescript
- id:api-client-config
title:API Client Configuration
instruction:Show how to configure the HTTP client for the chosen framework, including authentication interceptors/middleware and error handling.
type:code
language:typescript
- id:routing
title:Routing
instruction:Define routing structure and patterns based on the chosen framework.
elicit:true
sections:
- id:route-configuration
title:Route Configuration
instruction:Provide routing configuration appropriate for the chosen framework. Include protected route patterns, lazy loading where applicable, and authentication guards/middleware.
type:code
language:typescript
- id:styling-guidelines
title:Styling Guidelines
instruction:Define styling approach based on the chosen framework.
elicit:true
sections:
- id:styling-approach
title:Styling Approach
instruction:Describe the styling methodology appropriate for the chosen framework (CSS Modules, Styled Components, Tailwind, etc.) and provide basic patterns.
- id:global-theme
title:Global Theme Variables
instruction:Provide a CSS custom properties (CSS variables) theme system that works across all frameworks. Include colors, spacing, typography, shadows, and dark mode support.
type:code
language:css
- id:testing-requirements
title:Testing Requirements
instruction:Define minimal testing requirements based on the chosen framework.
elicit:true
sections:
- id:component-test-template
title:Component Test Template
instruction:Provide a basic component test template using the framework's recommended testing library. Include examples of rendering tests, user interaction tests, and mocking.
type:code
language:typescript
- id:testing-best-practices
title:Testing Best Practices
type:numbered-list
items:
- "**Unit Tests**: Test individual components in isolation"
- "**Integration Tests**: Test component interactions"
- "**E2E Tests**: Test critical user flows (using Cypress/Playwright)"