Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .agents/react-doctor/AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# React Doctor

Run after making React changes to catch issues early. Use when reviewing code, finishing a feature, or fixing bugs in a React project.

Scans your React codebase for security, performance, correctness, and architecture issues. Outputs a 0-100 score with actionable diagnostics.

## Usage

```bash
npx -y react-doctor@latest . --verbose --diff
```

## Workflow

Run after making changes to catch issues early. Fix errors first, then re-run to verify the score improved.
19 changes: 19 additions & 0 deletions .agents/react-doctor/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: react-doctor
description: Run after making React changes to catch issues early. Use when reviewing code, finishing a feature, or fixing bugs in a React project.
version: 1.0.0
---

# React Doctor

Scans your React codebase for security, performance, correctness, and architecture issues. Outputs a 0-100 score with actionable diagnostics.

## Usage

```bash
npx -y react-doctor@latest . --verbose --diff
```

## Workflow

Run after making changes to catch issues early. Fix errors first, then re-run to verify the score improved.
4 changes: 4 additions & 0 deletions .cursor/environment.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"agentCanUpdateSnapshot": true,
"snapshot": "snapshot-20250608-c36a2efe-a6e1-4055-9384-a6476fcfd377"
}
53 changes: 53 additions & 0 deletions .cursor/notepads/ai-task.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
title: AI Task Tracker
description: Template for tracking and documenting AI tasks and progress
---

# AI Task Documentation

## Current Task
- [ ] Task Name:
- [ ] Description:
- [ ] Status: (Not Started | In Progress | Completed)
- [ ] Priority: (Low | Medium | High)

## Requirements
- [ ] Requirement 1
- [ ] Requirement 2
- [ ] Requirement 3

## Progress
- [ ] Step 1
- [ ] Step 2
- [ ] Step 3

## Files Modified
- [ ] File 1: Description of changes
- [ ] File 2: Description of changes
- [ ] File 3: Description of changes

## Testing
- [ ] Unit tests added/updated
- [ ] Integration tests added/updated
- [ ] Manual testing completed
- [ ] Edge cases considered

## Documentation
- [ ] Code comments added
- [ ] API documentation updated
- [ ] README updated if needed
- [ ] Architecture decisions documented

## Review
- [ ] Code follows project standards
- [ ] Security considerations addressed
- [ ] Performance impact considered
- [ ] Accessibility requirements met

## Notes
- Additional context
- Decisions made
- Future considerations

@ai-persona.md
@project.mdc
82 changes: 82 additions & 0 deletions .cursor/notepads/api-route.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
---
title: API Route Generator
description: Template for creating Next.js API routes with proper error handling and validation
---

# API Route Template

## Basic Structure
```ts
import { NextResponse } from "next/server"
import { z } from "zod"

// Input validation schema
const inputSchema = z.object({
// Define input fields
})

// Response type
type ApiResponse = {
data?: unknown
error?: string
}

export async function POST(req: Request) {
try {
// Parse and validate input
const body = await req.json()
const input = inputSchema.parse(body)

// Handle request
const result = await handleRequest(input)

// Return success response
return NextResponse.json({ data: result })

} catch (error) {
// Handle different error types
if (error instanceof z.ZodError) {
return NextResponse.json(
{ error: "Invalid input" },
{ status: 400 }
)
}

console.error("API Error:", error)
return NextResponse.json(
{ error: "Internal server error" },
{ status: 500 }
)
}
}
```

## Best Practices
- Always validate input with Zod
- Use proper HTTP status codes
- Implement rate limiting for public routes
- Add proper error handling
- Log errors appropriately
- Add request validation middleware
- Document API endpoints

## Security Considerations
- Validate authentication
- Check authorization
- Sanitize inputs
- Handle sensitive data
- Set proper CORS headers
- Rate limit requests
- Monitor for abuse

## Testing
- Add integration tests
- Test error cases
- Validate response formats
- Check rate limiting
- Test authentication
- Verify authorization
- Monitor performance

@security.mdc
@error-handling.mdc
Loading
Loading