Nextjs
Next.js conventions for VioletDashboard and Connect
Install
/plugin marketplace add Freddy-CHEN-ux/00_claude_skillsThe repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.
npx skills add Freddy-CHEN-ux/00_claude_skills --skill nextjsgit clone --depth 1 https://github.com/Freddy-CHEN-ux/00_claude_skills.git /tmp/00_claude_skills
mkdir -p ~/.claude/skills
cp -r /tmp/00_claude_skills/skills/nextjs ~/.claude/skills/nextjsPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Next.js Conventions
## Stack Overview
- **Framework**: Next.js 12.x with TypeScript
- **React Version**: React 17
- **State**: Redux Toolkit with redux-saga for side effects
- **Styling**: SCSS modules
- **Testing**: Jest + Playwright
## Dynamic Routing Pattern
Violet Connect uses nested dynamic routes:
```
pages/
├── [appAlias]/
│ └── [platformsMode]/
│ └── [platform]/
│ └── index.tsx
```
- `[appAlias]` - App/channel subdomain (e.g., 'andydev')
- `[platformsMode]` - Either 'platforms' or 'merchant-migration'
- `[platform]` - E-commerce platform (shopify, bigcommerce, etc.)
## API Routes
Next.js API routes with middleware pipeline:
```typescript
// pages/api/validate_cookie.ts
import { withValidation, withAuth } from '@/middlewares';
async function handler(req: NextApiRequest, res: NextApiResponse) {
// Handler logic
}
export default withAuth(withValidation(handler));
```
## Authentication Flow
- Cookie-based authentication via `/api/validate_cookie`
- AppContext component handles auth state and routing
- Supports merchant login and BigCommerce embedded app flows
```typescript
// Using auth context
const { isAuthenticated, user } = useAuth();
if (!isAuthenticated) {
return <LoginPage />;
}
```
---
## AppContext Pattern (VioletConnect)
**CRITICAL**: AppContext is VioletConnect's application-wide context provider. **ALWAYS check what AppContext already handles before creating new contexts or duplicating functionality.**Details
- Skill name
nextjs- Repository
- Freddy-CHEN-ux/00_claude_skills
- Path
skills/nextjs/SKILL.md- Repo updated
- 10 January 2026
FAQ
What does the Nextjs skill do?
Next.js conventions for VioletDashboard and Connect
How do I install the Nextjs skill?
Claude Code plugin: /plugin marketplace add Freddy-CHEN-ux/00_claude_skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Nextjs popular?
It lives in Freddy-CHEN-ux/00_claude_skills, which has 8 GitHub stars and 3 forks.
Related skills
Add Integration
8Freddy-CHEN-ux/00_claude_skills
Build a new API integration for Nexus. Load when user mentions "add integration", "new integration", "integrate with", "connect to [service]", or "build [service] integration". Interactive workflow that discovers API endpoints, plans the integration, and creates a project for implementation.
AI Agents
8Freddy-CHEN-ux/00_claude_skills
Production-grade AI agent patterns with MCP integration, agentic RAG, handoff orchestration, multi-layer guardrails, and observability (modern best practices)
AI LLM
8Freddy-CHEN-ux/00_claude_skills
Production LLM engineering skill. Covers strategy selection (prompting vs RAG vs fine-tuning), dataset design, PEFT/LoRA, evaluation workflows, deployment handoff to inference serving, and lifecycle operations with cost/safety controls.
Shadcn Vue
8Freddy-CHEN-ux/00_claude_skills
Context and reference for building UI with shadcn-vue components. Load when adding, modifying, or debugging UI components.
Maplibre Layers
8Freddy-CHEN-ux/00_claude_skills
Use when adding map layers, managing GeoJSON sources, styling markers, or handling layer interactions. Load for layer registration patterns, markRaw usage, MglGeoJsonSource components, data-driven styling, and layer event handling. Covers the mapLayers store and dynamic layer composition.
Software Frontend
8Freddy-CHEN-ux/00_claude_skills
Production-grade frontend development with Next.js 16 App Router, TypeScript 5.9+ strict mode, Tailwind CSS v4, shadcn/ui, React 19.2 Server Components, state management (Zustand/Recoil), performance optimization (Turbopack stable, ISR/SSR/SSG), and accessibility best practices. Includes TanStack Query for server-state, Vitest for testing, and modern React patterns.
Browse the most popular Claude skills, all frontend & design skills, or write your own with the skills generator.