.agents/skills/nextjs-rsc-architect/SKILL.md
Expert guidance for Next.js 15+ App Router applications. Enforces security for Server Actions, proper Data Access Layer (DAL) separation, and React Server Component (RSC) best practices.
npx skillsauth add thesammykins/dotfiles nextjs-rsc-architectInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
"use server")."use server";
import { z } from "zod";
import { verifySession } from "@/lib/dal";
const schema = z.object({ id: z.string() });
export async function deleteItem(formData: FormData) {
const session = await verifySession(); // Security Check
if (!session.isAdmin) throw new Error("Unauthorized");
const parsed = schema.safeParse(Object.fromEntries(formData));
if (!parsed.success) return { error: "Invalid data" };
// ... logic
}
data/ folder (DAL).app/page.tsx -> calls getDashboardData()data/dashboard.ts -> calls db.query() AND performs React cache() if needed.Promise.all in the parent component where possible.<Suspense fallback={<Skeleton />}>."use client" down the tree as far as possible (Leaf nodes).useState in them.development
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
development
Autonomous feature development - setup and execution. Triggers on: ralph, set up ralph, run ralph, run the loop, implement tasks. Two phases: (1) Setup - chat through feature, create tasks with dependencies (2) Loop - pick ready tasks, implement, commit, repeat until done.
tools
Enforces the 2025 Python stack. Replaces legacy tools (pip, flake8, isort) with modern, fast equivalents (uv, ruff). Mandates strict type hints.
documentation
Generate a Product Requirements Document (PRD) for a new feature. Use when planning a feature, starting a new project, or when asked to create a PRD. Triggers on: create a prd, write prd for, plan this feature, requirements for, spec out.