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:
@@ -2622,7 +2622,7 @@ You are now operating as a Documentation Indexer. Your goal is to ensure all doc
|
||||
|
||||
The index should be organized as follows:
|
||||
|
||||
```markdown
|
||||
````markdown
|
||||
# Documentation Index
|
||||
|
||||
## Root Documents
|
||||
@@ -2654,7 +2654,8 @@ Documents within the `another-folder/` directory:
|
||||
### [Nested Document](./another-folder/document.md)
|
||||
|
||||
Description of nested document.
|
||||
```text
|
||||
|
||||
````text
|
||||
|
||||
### Index Entry Format
|
||||
|
||||
@@ -2664,7 +2665,8 @@ Each entry should follow this format:
|
||||
### [Document Title](relative/path/to/file.md)
|
||||
|
||||
Brief description of the document's purpose and contents.
|
||||
```
|
||||
````
|
||||
````
|
||||
|
||||
### Rules of Operation
|
||||
|
||||
@@ -5631,7 +5633,7 @@ Document the choice and key services that will be used.]]
|
||||
|
||||
Use appropriate diagram type for clarity.]]
|
||||
|
||||
```mermaid
|
||||
````mermaid
|
||||
{{architecture_diagram}}
|
||||
```text
|
||||
|
||||
@@ -5744,7 +5746,7 @@ After presenting all data models, apply `tasks#advanced-elicitation` protocol]]
|
||||
model_interface;
|
||||
}
|
||||
}
|
||||
```
|
||||
````
|
||||
|
||||
**Relationships:**
|
||||
|
||||
@@ -5768,7 +5770,7 @@ After presenting all data models, apply `tasks#advanced-elicitation` protocol]]
|
||||
|
||||
**TypeScript Interface:**
|
||||
|
||||
```typescript
|
||||
````typescript
|
||||
interface User {
|
||||
id: string;
|
||||
email: string;
|
||||
@@ -5822,13 +5824,13 @@ servers:
|
||||
'[object Object]': null
|
||||
description:
|
||||
'[object Object]': null
|
||||
```
|
||||
````
|
||||
|
||||
^^/CONDITION: has_rest_api^^
|
||||
|
||||
^^CONDITION: has_graphql_api^^
|
||||
|
||||
```graphql
|
||||
````graphql
|
||||
# GraphQL Schema
|
||||
{{graphql_schema}}
|
||||
```text
|
||||
@@ -5844,7 +5846,7 @@ servers:
|
||||
trpc_routers;
|
||||
}
|
||||
}
|
||||
```
|
||||
````
|
||||
|
||||
^^/CONDITION: has_trpc_api^^
|
||||
|
||||
@@ -5991,11 +5993,11 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
|
||||
```text
|
||||
{{component_structure}}
|
||||
```
|
||||
```text
|
||||
|
||||
**Component Template:**
|
||||
|
||||
```typescript
|
||||
````typescript
|
||||
{
|
||||
{
|
||||
component_template;
|
||||
@@ -6015,7 +6017,7 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
state_structure;
|
||||
}
|
||||
}
|
||||
```
|
||||
````
|
||||
|
||||
**State Management Patterns:**
|
||||
|
||||
@@ -6034,7 +6036,7 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
|
||||
**Protected Route Pattern:**
|
||||
|
||||
```typescript
|
||||
````typescript
|
||||
{
|
||||
{
|
||||
protected_route_example;
|
||||
@@ -6054,11 +6056,11 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
api_client_setup;
|
||||
}
|
||||
}
|
||||
```
|
||||
````
|
||||
|
||||
**Service Example:**
|
||||
|
||||
```typescript
|
||||
````typescript
|
||||
{
|
||||
{
|
||||
service_example;
|
||||
@@ -6079,9 +6081,11 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
^^CONDITION: serverless^^
|
||||
**Function Organization:**
|
||||
|
||||
```
|
||||
````
|
||||
|
||||
{{function_structure}}
|
||||
```text
|
||||
|
||||
````text
|
||||
|
||||
**Function Template:**
|
||||
|
||||
@@ -6091,7 +6095,7 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
function_template;
|
||||
}
|
||||
}
|
||||
```
|
||||
````
|
||||
|
||||
^^/CONDITION: serverless^^
|
||||
|
||||
@@ -6100,11 +6104,11 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
|
||||
```text
|
||||
{{controller_structure}}
|
||||
```
|
||||
```text
|
||||
|
||||
**Controller Template:**
|
||||
|
||||
```typescript
|
||||
````typescript
|
||||
{
|
||||
{
|
||||
controller_template;
|
||||
@@ -6122,11 +6126,11 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
|
||||
```sql
|
||||
{{database_schema}}
|
||||
```
|
||||
````
|
||||
|
||||
**Data Access Layer:**
|
||||
|
||||
```typescript
|
||||
````typescript
|
||||
{
|
||||
{
|
||||
repository_pattern;
|
||||
@@ -6142,11 +6146,11 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
|
||||
```mermaid
|
||||
{{auth_flow_diagram}}
|
||||
```
|
||||
````
|
||||
|
||||
**Middleware/Guards:**
|
||||
|
||||
```typescript
|
||||
````typescript
|
||||
{
|
||||
{
|
||||
auth_middleware;
|
||||
@@ -6212,7 +6216,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/
|
||||
@@ -6234,7 +6238,7 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
|
||||
**Prerequisites:**
|
||||
|
||||
```bash
|
||||
````bash
|
||||
{{prerequisites_commands}}
|
||||
```text
|
||||
|
||||
@@ -6242,11 +6246,11 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
|
||||
```bash
|
||||
{{setup_commands}}
|
||||
```
|
||||
````
|
||||
|
||||
**Development Commands:**
|
||||
|
||||
```bash
|
||||
````bash
|
||||
# Start all services
|
||||
{{start_all_command}}
|
||||
|
||||
@@ -6273,7 +6277,7 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
|
||||
# Shared
|
||||
{{shared_env_vars}}
|
||||
```
|
||||
````
|
||||
|
||||
## Deployment Architecture
|
||||
|
||||
@@ -6296,7 +6300,7 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
|
||||
### CI/CD Pipeline
|
||||
|
||||
```yml
|
||||
````yaml
|
||||
'[object Object]': null
|
||||
```text
|
||||
|
||||
@@ -6356,12 +6360,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
|
||||
@@ -6369,20 +6376,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
|
||||
|
||||
@@ -6394,11 +6407,11 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
frontend_test_example;
|
||||
}
|
||||
}
|
||||
```
|
||||
````
|
||||
|
||||
**Backend API Test:**
|
||||
|
||||
```typescript
|
||||
````typescript
|
||||
{
|
||||
{
|
||||
backend_test_example;
|
||||
@@ -6414,7 +6427,7 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
e2e_test_example;
|
||||
}
|
||||
}
|
||||
```
|
||||
````
|
||||
|
||||
## Coding Standards
|
||||
|
||||
@@ -6455,7 +6468,7 @@ After presenting this section, apply `tasks#advanced-elicitation` protocol]]
|
||||
|
||||
### Error Flow
|
||||
|
||||
```mermaid
|
||||
````mermaid
|
||||
{{error_flow_diagram}}
|
||||
```text
|
||||
|
||||
@@ -6471,11 +6484,11 @@ interface ApiError {
|
||||
requestId: string;
|
||||
};
|
||||
}
|
||||
```
|
||||
````
|
||||
|
||||
### Frontend Error Handling
|
||||
|
||||
```typescript
|
||||
````typescript
|
||||
{
|
||||
{
|
||||
frontend_error_handler;
|
||||
@@ -6491,7 +6504,7 @@ interface ApiError {
|
||||
backend_error_handler;
|
||||
}
|
||||
}
|
||||
```
|
||||
````
|
||||
|
||||
## Monitoring and Observability
|
||||
|
||||
|
||||
Reference in New Issue
Block a user