style: apply formatting fixes and yaml standardization
- Auto-formatting applied by prettier and yaml-format tools - Standardized YAML code blocks to use 'yaml' instead of 'yml' - Fixed quote escaping in YAML strings 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1650,7 +1650,7 @@ Document the choice and key services that will be used.]]
|
||||
|
||||
Use appropriate diagram type for clarity.]]
|
||||
|
||||
```mermaid
|
||||
````mermaid
|
||||
{{architecture_diagram}}
|
||||
```text
|
||||
|
||||
@@ -1763,7 +1763,7 @@ After presenting all data models, apply `tasks#advanced-elicitation` protocol]]
|
||||
model_interface;
|
||||
}
|
||||
}
|
||||
```
|
||||
````
|
||||
|
||||
**Relationships:**
|
||||
|
||||
@@ -1787,7 +1787,7 @@ After presenting all data models, apply `tasks#advanced-elicitation` protocol]]
|
||||
|
||||
**TypeScript Interface:**
|
||||
|
||||
```typescript
|
||||
````typescript
|
||||
interface User {
|
||||
id: string;
|
||||
email: string;
|
||||
@@ -1841,13 +1841,13 @@ servers:
|
||||
'[object Object]': null
|
||||
description:
|
||||
'[object Object]': null
|
||||
```
|
||||
````
|
||||
|
||||
^^/CONDITION: has_rest_api^^
|
||||
|
||||
^^CONDITION: has_graphql_api^^
|
||||
|
||||
```graphql
|
||||
````graphql
|
||||
# GraphQL Schema
|
||||
{{graphql_schema}}
|
||||
```text
|
||||
@@ -1863,7 +1863,7 @@ servers:
|
||||
trpc_routers;
|
||||
}
|
||||
}
|
||||
```
|
||||
````
|
||||
|
||||
^^/CONDITION: has_trpc_api^^
|
||||
|
||||
@@ -2010,11 +2010,11 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
|
||||
```text
|
||||
{{component_structure}}
|
||||
```
|
||||
```text
|
||||
|
||||
**Component Template:**
|
||||
|
||||
```typescript
|
||||
````typescript
|
||||
{
|
||||
{
|
||||
component_template;
|
||||
@@ -2034,7 +2034,7 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
state_structure;
|
||||
}
|
||||
}
|
||||
```
|
||||
````
|
||||
|
||||
**State Management Patterns:**
|
||||
|
||||
@@ -2053,7 +2053,7 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
|
||||
**Protected Route Pattern:**
|
||||
|
||||
```typescript
|
||||
````typescript
|
||||
{
|
||||
{
|
||||
protected_route_example;
|
||||
@@ -2073,11 +2073,11 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
api_client_setup;
|
||||
}
|
||||
}
|
||||
```
|
||||
````
|
||||
|
||||
**Service Example:**
|
||||
|
||||
```typescript
|
||||
````typescript
|
||||
{
|
||||
{
|
||||
service_example;
|
||||
@@ -2098,9 +2098,11 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
^^CONDITION: serverless^^
|
||||
**Function Organization:**
|
||||
|
||||
```
|
||||
````
|
||||
|
||||
{{function_structure}}
|
||||
```text
|
||||
|
||||
````text
|
||||
|
||||
**Function Template:**
|
||||
|
||||
@@ -2110,7 +2112,7 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
function_template;
|
||||
}
|
||||
}
|
||||
```
|
||||
````
|
||||
|
||||
^^/CONDITION: serverless^^
|
||||
|
||||
@@ -2119,11 +2121,11 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
|
||||
```text
|
||||
{{controller_structure}}
|
||||
```
|
||||
```text
|
||||
|
||||
**Controller Template:**
|
||||
|
||||
```typescript
|
||||
````typescript
|
||||
{
|
||||
{
|
||||
controller_template;
|
||||
@@ -2141,11 +2143,11 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
|
||||
```sql
|
||||
{{database_schema}}
|
||||
```
|
||||
````
|
||||
|
||||
**Data Access Layer:**
|
||||
|
||||
```typescript
|
||||
````typescript
|
||||
{
|
||||
{
|
||||
repository_pattern;
|
||||
@@ -2161,11 +2163,11 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
|
||||
```mermaid
|
||||
{{auth_flow_diagram}}
|
||||
```
|
||||
````
|
||||
|
||||
**Middleware/Guards:**
|
||||
|
||||
```typescript
|
||||
````typescript
|
||||
{
|
||||
{
|
||||
auth_middleware;
|
||||
@@ -2231,7 +2233,7 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
├── package.json # Root package.json
|
||||
├── {{monorepo_config}} # Monorepo configuration
|
||||
└── README.md
|
||||
```
|
||||
````
|
||||
|
||||
@{example: vercel_structure}
|
||||
apps/
|
||||
@@ -2253,7 +2255,7 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
|
||||
**Prerequisites:**
|
||||
|
||||
```bash
|
||||
````bash
|
||||
{{prerequisites_commands}}
|
||||
```text
|
||||
|
||||
@@ -2261,11 +2263,11 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
|
||||
```bash
|
||||
{{setup_commands}}
|
||||
```
|
||||
````
|
||||
|
||||
**Development Commands:**
|
||||
|
||||
```bash
|
||||
````bash
|
||||
# Start all services
|
||||
{{start_all_command}}
|
||||
|
||||
@@ -2292,7 +2294,7 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
|
||||
# Shared
|
||||
{{shared_env_vars}}
|
||||
```
|
||||
````
|
||||
|
||||
## Deployment Architecture
|
||||
|
||||
@@ -2315,7 +2317,7 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
|
||||
### CI/CD Pipeline
|
||||
|
||||
```yml
|
||||
````yaml
|
||||
'[object Object]': null
|
||||
```text
|
||||
|
||||
@@ -2375,12 +2377,15 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
|
||||
### Testing Pyramid
|
||||
|
||||
```
|
||||
````
|
||||
|
||||
E2E Tests
|
||||
/ \
|
||||
Integration Tests
|
||||
/ \
|
||||
Frontend Unit Backend Unit
|
||||
|
||||
/ \
|
||||
Frontend Unit Backend Unit
|
||||
|
||||
```text
|
||||
|
||||
### Test Organization
|
||||
@@ -2388,20 +2393,26 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
**Frontend Tests:**
|
||||
|
||||
```
|
||||
|
||||
{{frontend_test_structure}}
|
||||
|
||||
```text
|
||||
|
||||
**Backend Tests:**
|
||||
|
||||
```
|
||||
```text
|
||||
|
||||
{{backend_test_structure}}
|
||||
|
||||
```text
|
||||
|
||||
**E2E Tests:**
|
||||
|
||||
```
|
||||
|
||||
{{e2e_test_structure}}
|
||||
```text
|
||||
|
||||
````text
|
||||
|
||||
### Test Examples
|
||||
|
||||
@@ -2413,11 +2424,11 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
frontend_test_example;
|
||||
}
|
||||
}
|
||||
```
|
||||
````
|
||||
|
||||
**Backend API Test:**
|
||||
|
||||
```typescript
|
||||
````typescript
|
||||
{
|
||||
{
|
||||
backend_test_example;
|
||||
@@ -2433,7 +2444,7 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
e2e_test_example;
|
||||
}
|
||||
}
|
||||
```
|
||||
````
|
||||
|
||||
## Coding Standards
|
||||
|
||||
@@ -2474,7 +2485,7 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
|
||||
### Error Flow
|
||||
|
||||
```mermaid
|
||||
````mermaid
|
||||
{{error_flow_diagram}}
|
||||
```text
|
||||
|
||||
@@ -2490,11 +2501,11 @@ interface ApiError {
|
||||
requestId: string;
|
||||
};
|
||||
}
|
||||
```
|
||||
````
|
||||
|
||||
### Frontend Error Handling
|
||||
|
||||
```typescript
|
||||
````typescript
|
||||
{
|
||||
{
|
||||
frontend_error_handler;
|
||||
@@ -2510,7 +2521,7 @@ interface ApiError {
|
||||
backend_error_handler;
|
||||
}
|
||||
}
|
||||
```
|
||||
````
|
||||
|
||||
## Monitoring and Observability
|
||||
|
||||
|
||||
Reference in New Issue
Block a user