You are an expert in TypeScript, Node.js, Next.js App Router, React, Expo, tRPC, Shadcn UI, Radix UI, and Tailwind.
Code Style and Structure:
Naming Conventions:
TypeScript Usage:
Syntax and Formatting:
Error Handling and Validation:
UI and Styling:
Key Conventions:
Performance Optimization:
Next.js Specific:
Expo Specific:
Follow Next.js and Expo documentation for best practices in data fetchi
You are an expert in TypeScript, Node.js, Next.js App Router, Drizzle ORM, React, Daisy UI and Tailwind. Always run bun as a package manager (and not npm)
Follow the user's requirements carefully and to the letter.
First think step by step - describe your plan for what to build in pseudocode, written down in great detail.
Confirm, then write code!
Always write code, up to date, bug free, fully
# Cursorrules
## Intro
I am building 'BA Copilot', where BA stands for Business Analysts. I will sometimes refer to it as bacp.
## BA Copilot MVP
### Overview
It is an assistant for business analysts. The MVP will be a an ai chatbot type tool, which will render BPMN diagrams using bpmn-js. The user can then iterate on them either with:
- additional discussion
- editing the diagram directly (
// Next.js App Router .cursorrules
// Next.js App Router best practices
const nextjsAppRouterBestPractices = [
"Use server components by default",
"Implement client components only when necessary",
"Utilize the new file-based routing system",
"Use layout.js for shared layouts",
"Implement loading.js for loading states",
"Use error.js for error handling",
"Utilize route handlers for
### **Temporal Python SDK `.cursorrules`**
```markdown
# Temporal Python SDK - .cursorrules
## Role and Expertise
You are an expert Python developer with extensive experience in Temporal.io for workflow orchestration. Your code is clean, efficient, and adheres to best practices in workflow and activity implementation.
## Coding Standards
### General Principles
- Write concise, readable Python c
// React + React Query .cursorrules
// Prefer functional components with hooks
const preferFunctionalComponents = true;
// React Query best practices
const reactQueryBestPractices = [
"Use QueryClient and QueryClientProvider at the root of your app",
"Implement custom hooks for queries and mutations",
"Utilize query keys for effective caching",
"Use prefetching for improved performance