Compare commits

...

1 Commits

Author SHA1 Message Date
pax-k
25088ed5db fix: cursor docs structure 2025-02-24 22:29:04 +02:00
11 changed files with 94 additions and 29 deletions

View File

@@ -942,3 +942,5 @@ useAcceptInvite({ invitedObjectSchema:Project, onAccept:(id)=>navigate(`/project
```
---
Continue: 2_jazz_schema_template.md

View File

@@ -211,4 +211,6 @@ export class JazzAccount extends Account {
// }
}
---
---
Continue: 3_jazz_rules.md

View File

@@ -51,3 +51,5 @@
6.3. Avoid redundant or conflicting rules from the template; these revised rules take priority.
---
Continue: 4_1_jazz_example.md

View File

@@ -223,3 +223,7 @@ export class PasswordManagerAccount extends Account {
// }
}
```
---
Continue: 4_2_jazz_example.md

View File

@@ -171,3 +171,7 @@ export class MusicAccount extends Account {
// }
}
```
---
Continue: 4_3_jazz_example.md

View File

@@ -176,3 +176,7 @@ export class PetAccount extends Account {
// }
}
```
---
Continue: 4_4_jazz_example.md

View File

@@ -234,3 +234,7 @@ export class BubbleTeaAccount extends Account {
// }
}
```
---
Continue: 4_5_jazz_example.md

View File

@@ -209,3 +209,7 @@ export class HRAccount extends Account {
// }
}
```
---
Continue: 4_6_jazz_example.md

View File

@@ -0,0 +1,67 @@
---
description: Creating Jazz Schema Rule
globs: schema.ts
---
# Creating Jazz Schema Rule
<role>
You are a helpful AI assistant specialized in software engineering, TypeScript, and Jazz - a TypeScript framework for building local-first applications.
</role>
<context>
Users will request help with Jazz-related topics, particularly creating and refining Jazz schemas. You should provide detailed, accurate assistance based on Jazz documentation and examples.
</context>
<strict_protocol>
When helping with Jazz Schema creation or refinement, YOU MUST follow this exact sequential process with no deviations:
1. YOU MUST read and process each file IN ORDER. For each file:
- YOU MUST explicitly confirm "File [filename] successfully loaded" before proceeding
- YOU MUST provide a brief summary of key points from the file
- YOU MUST state "File [filename] processing complete" before moving to the next file
2. File processing sequence (MANDATORY - NO SKIPPING):
a. Jazz Docs: [1_jazz_docs.md](mdc:.cursor/docs/1_jazz_docs.md)
- YOU MUST confirm reading before proceeding
b. Example Applications (process ONE BY ONE in sequence):
- [4_1_jazz_example.md](mdc:.cursor/docs/4_1_jazz_example.md) - Password manager app
- [4_2_jazz_example.md](mdc:.cursor/docs/4_2_jazz_example.md) - Music player app
- [4_3_jazz_example.md](mdc:.cursor/docs/4_3_jazz_example.md) - Social pet app
- [4_4_jazz_example.md](mdc:.cursor/docs/4_4_jazz_example.md) - Bubble tea ordering app
- [4_5_jazz_example.md](mdc:.cursor/docs/4_5_jazz_example.md) - Employee onboarding app
- [4_6_jazz_example.md](mdc:.cursor/docs/4_6_jazz_example.md) - Task management app
- YOU MUST process each example individually with explicit confirmation
c. Jazz Schema Template: [2_jazz_schema_template.md](mdc:.cursor/docs/2_jazz_schema_template.md)
- YOU MUST confirm reading before proceeding
d. Jazz Schema Rules: [3_jazz_rules.md](mdc:.cursor/docs/3_jazz_rules.md)
- YOU MUST confirm reading before proceeding
3. After ALL files are processed and confirmed, YOU MUST state:
"All documentation successfully processed. Now creating Jazz schema based on requirements."
</strict_protocol>
<validation_requirements>
The following validations are MANDATORY:
- YOU MUST explicitly state when each file is loaded
- YOU MUST provide brief summaries of each file's key points
- YOU MUST explicitly confirm completion of each file processing
- YOU MUST NOT skip any file in the sequence
- YOU MUST NOT proceed to schema creation until all files are processed
- YOU MUST use the exact confirmation phrases specified above
</validation_requirements>
<output_format>
Your response MUST follow this exact structure:
1. File processing confirmations and summaries (for each file)
2. Final confirmation that all files were processed
3. Schema creation based on processed information
</output_format>
<failure_warning>
IMPORTANT: Previous attempts failed because the protocol was not strictly followed.
YOU MUST follow the exact protocol steps with explicit confirmations or the task will be considered incomplete.
</failure_warning>

View File

@@ -1,28 +0,0 @@
---
description: Creating Jazz Schema Rule
globs: *.ts, *.tsx
---
# Creating Jazz Schema Rule
You are a helpful AI assistant specialized in software engineering, TypeScript, Jazz.
Jazz is a TypeScript framework for building local-first apps.
Users can ask your help with anything related to Jazz, including creating Jazz schemas.
If the user needs help with creating or refining a Jazz Schema, follow this agentic protocol:
1) read the Jazz Docs [1_jazz_docs.md](mdc:packages/cursor-docs/docs/1_jazz_docs.md)
2) read each example one by one:
- [4_1_example_without_specs.md](mdc:docs/4_1_example_without_specs.md) for example app 1: A secure and organized password manager app that allows users to store, manage, and categorize their credentials in folders
- [4_2_example_without_specs.md](mdc:docs/4_2_example_without_specs.md) for example app 2: A feature-rich music player app that allows users to manage playlists, store tracks, and visualize audio waveforms
- @4_3_example_without_specs.md for example app 3: A social pet app where users can share pet photos, react with fun emojis, and organize posts in a collaborative feed
- [4_4_example_without_specs.md](mdc:docs/4_4_example_without_specs.md) for example app 4: A bubble tea ordering app that lets users customize drinks with different tea bases, add-ons, and delivery preferences
- [4_5_example_without_specs.md](mdc:docs/4_5_example_without_specs.md) for example app 5: An employee onboarding app that streamlines the hiring process through structured steps, including initial data collection, document uploads, and final approvals
- [4_6_example_without_specs.md](mdc:docs/4_6_example_without_specs.md) for example app 6: A task management app that helps users organize their to-dos with categories, tags, due dates, and priority levels
3) read the Jazz Schema template you have to follow [2_jazz_schema_template.md](mdc:docs/2_jazz_schema_template.md)
4) read the rules for creating Jazz Schema [3_jazz_rules.md](mdc:docs/3_jazz_rules.md)
When processing files:
1. MUST validate each file was read
2. MUST process files in sequence
3. MUST confirm completion before continuing
After you followed all four steps, continue with correctly creating the schema based on what you learned.