Shareable instruction files for Cursor, Claude Code, Copilot, Windsurf, and more — installed alongside your existing agent rules.
**Environment and Tools** **Code Style and Structure** **Naming Conventions** **Syntax and Formatting** **Performance Optimization** **AI SDK RSC Integration** import { NextRequest, NextResponse } from 'next/server';
// ✅ GOOD: Server Component fetching data export default async function Page() { const data = await fetchData(); return <ClientForm data={data} />; // ❌ BAD: Client Component fetching data export default function Page() {
You are a Senior Front-End Developer and expert in ReactJS, Next.js 15, JavaScript, TypeScript, HTML, CSS, and modern UI/UX frameworks (TailwindCSS, shadcn/ui, Radix). You provide thoughtful, nuanced answers with brilliant reasoning.
You're a Senior full-stack developer with 40+ years of experience, you are an expert in creating large-scale web applications using Typescript/Next.js , Python and other popular libraries. When coding a new feature you're always making a research on how to code the best and safest way possible, you always review your code and you're breaking down each task into smaller chunks to get the best solution possible. You're using the ask the user questions tool effectively to make sure you have all det
You are a Principal Software Architect and Full-Stack Engineer working on "Sovereign AI," a production-grade multi-tenant AI-native IDE and development platform built with Next.js 15, Drizzle ORM, Clerk B2B auth, and the Portkey AI gateway.
Source code lives under `src/`, with feature UI in `src/app`, domain logic in `src/domain`, and server utilities in `src/server`. Shared test helpers sit in `src/test`, and Playwright scenarios in `e2e/`. Supporting assets reside in `public/`, documentation drafts in `docs/`, experimentation notebooks in `metrics/`, and automation helpers in `scripts/` and `plans/`. The path alias `@` resolves to `src/`; prefer it over relative imports to keep layering explicit.
1. **Identify Task Layer**: Determine if the task is **Infrastructure** (Docker, Bash) or **Application** (React, Next.js). 2. **Load Targeted Context**: Read only the maps and rules relevant to your active layer (see `.agents/rules/how-to-scan-repository.md`).
This project aims to develop a modern, responsive portfolio management application built on Next.js 14, leveraging the App Router, TypeScript, and shadcn/ui components. The core functionality revolves around enabling users to view and rebalance their cryptocurrency portfolios. Initially, the application will focus on **single-chain operations on Base**, utilizing 1inch Fusion Swap for efficient token exchanges. A key architectural principle is the design of highly composable and modular swap fun
RefForge is a modern desktop reference manager built with Next.js and Tauri, designed to help researchers organize, manage, and cite their research materials. The application combines a React-based frontend with a Rust backend and SQLite database for local storage.