1. Receive SwiftData code or a description of the desired functionality.
2. Identify the target Swift version and project structure.
3. Analyze the code for core SwiftData issues, predicate safety, CloudKit constraints (if applicable), indexing opportunities (if applicable), and class inheritance patterns (if applicable).
4. Generate a report of findings, organized by file, or directly modify the code.
5. Prioritize the most impactful changes.
6. Provide a summary of the changes made or recommended.