dallin/t3-vibe-coder icon
public
Published on 4/7/2025
t3 Stack Vibe Coder

Vibe Coder for t3 stack

Rules
Prompts
Models
Context
anthropic Claude 3.7 Sonnet model icon

Claude 3.7 Sonnet

anthropic

200kinput·8.192koutput
anthropic Claude 3.5 Sonnet model icon

Claude 3.5 Sonnet

anthropic

200kinput·8.192koutput
mistral Codestral model icon

Codestral

mistral

voyage voyage-code-3 model icon

voyage-code-3

voyage

voyage Voyage AI rerank-2 model icon

Voyage AI rerank-2

voyage

relace Relace Instant Apply model icon

Relace Instant Apply

relace

This is a Typescript Next.js app which uses tRPC for the typesafe API, Prisma as the ORM, Tailwind for styling, next-auth for authentication, and eslint/prettier for linting. Use included core technologies to solve all problems, don't get clever unless an external package is absolutely needed. 

When updating the database schema, regenerate types (npx prisma generate).

Use best practice utility-first approach when styling with tailwind.
Codebase structure (non-exhaustive, excluding common config etc files):
├─ prisma
│  └─ schema.prisma (db schema)
├─ public (static assets)
├─ src
│  ├─ app
│  │  ├─ _components (shared components)
│  │  ├─ api (routes including next auth)
│  │  ├─ layout.tsx
│  │  └─ page.tsx
│  ├─ server
│  │  ├─ auth.ts
│  │  ├─ db.ts
│  │  └─ api
│  │     ├─ routers (backend endpoints)
│  │     │  └─ example.ts
│  │     ├─ trpc.ts
│  ├─ env.js (typesafe env)
│  └─ trpc (trpc config/setup)
Next Auth Docshttps://next-auth.js.org/getting-started/introduction

Prompts

Learn more
Next.js Optimizations Review
Check for any potential optimizations that are missing in your code
Please review my Next.js code with a focus on optimization areas.

Use the below as a starting point, but consider any other potential areas for improvement.

You do not need to address every single area below, only what is relevant to the user's code.

1. Images: Check for proper usage of next/image, responsive sizing, priority loading for LCP, and correct image formats.

2. Font Loading: Verify next/font implementation, font subsetting, and proper loading strategies.

3. Component Loading: Identify opportunities for lazy loading using next/dynamic, especially for client components and heavy libraries.

4. Metadata: Ensure proper metadata implementation for SEO using either config-based or file-based approaches.

5. Performance: Look for:
   - Layout shift issues
   - Proper static/dynamic component usage
   - Bundle size optimization opportunities
   - Correct usage of loading states

Please point out any issues and suggest specific optimizations based on Next.js best practices.
Next.js Security Review
Check for any potential security vulnerabilities in your code
Please review my Next.js code with a focus on security issues.

Use the below as a starting point, but consider any other potential issues

You do not need to address every single area below, only what is relevant to the user's code.

1. Data Exposure:
- Verify Server Components aren't passing full database objects to Client Components
- Check for sensitive data in props passed to 'use client' components
- Look for direct database queries outside a Data Access Layer
- Ensure environment variables (non NEXT_PUBLIC_) aren't exposed to client

2. Server Actions ('use server'):
- Confirm input validation on all parameters
- Verify user authentication/authorization checks
- Check for unencrypted sensitive data in .bind() calls

3. Route Safety:
- Validate dynamic route parameters ([params])
- Check custom route handlers (route.ts) for proper CSRF protection
- Review middleware.ts for security bypass possibilities

4. Data Access:
- Ensure parameterized queries for database operations
- Verify proper authorization checks in data fetching functions
- Look for sensitive data exposure in error messages

Key files to focus on: files with 'use client', 'use server', route.ts, middleware.ts, and data access functions.

Context

Learn more
@diff
Reference all of the changes you've made to your current branch
@url
Reference the markdown converted contents of a given URL
@terminal
Reference the last command you ran in your IDE's terminal and its output
@file
Reference any file in your current workspace
@problems
Get Problems from the current file
@open
Reference the contents of all of your open files
@currentFile
Reference the currently open file

No Data configured

MCP Servers

Learn more

Postgres

npx -y @modelcontextprotocol/server-postgres ${{ secrets.dallin/t3-vibe-coder/anthropic/postgres-mcp/CONNECTION_STRING }}