Skip to content
/ kimi-template Public template

A production-ready Next.js 16 template with 29 AI-assisted development skills, featuring React 19, Tailwind CSS 4, Better Auth, i18n, and comprehensive testing. Perfect for building modern web apps with AI pair programming.

License

Notifications You must be signed in to change notification settings

CaseReed/kimi-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

52 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Kimi k2.5 Template

Use this template Live Demo Deploy with Vercel

Production-ready Next.js 16 template optimized for AI-assisted development with 29 specialized skills.


✨ About

This project is a demo/template specifically designed for Kimi k2.5, showcasing:

  • πŸ€– Optimal integration with Kimi k2.5 via a structured skill system
  • πŸ—οΈ A modern tech stack (Next.js 16, React 19, Tailwind CSS 4)
  • πŸ“š 29 specialized skills to accelerate development
  • 🎯 Patterns and best practices validated for React 19 and Next.js App Router

πŸ› οΈ Tech Stack

Technology Version Description
Next.js 16.1.6 React framework with App Router
React 19.2.4 UI library with Server Components
TypeScript 5.9.3 Strict type safety
Tailwind CSS 4.1.18 Utility-first CSS with @theme
Geist Font latest Vercel font family (Sans + Mono)
pnpm - Fast package manager

UI & Data Libraries


πŸŽ“ Kimi Skills (29 Specializations)

The project includes 29 specialized skills in .agents/skills/ to guide Kimi k2.5:

🎯 Planning & Architecture

Skill Description
plan-master Systematic planning methodology
subagent-tasker Best practices for parallel tasks
post-review Systematic post-implementation code review

πŸ—οΈ Frontend Development

Skill Description
nextjs-16-tailwind-4 Next.js 16 + Tailwind 4 + React 19 patterns
shadcn-ui shadcn/ui components and Charts
frontend-design Distinctive, production-grade UI design
motion-animations Motion (Framer Motion) animations
component-generator React component generator
next-intl-i18n Internationalization (i18n)
forms-master Forms with React 19 + Zod + Server Actions

πŸ”„ Data & State Management

Skill Description
tanstack-query Data fetching with TanStack Query
zustand-state State management with Zustand
drizzle-orm Drizzle ORM + Neon PostgreSQL
neon-postgresql Neon PostgreSQL serverless database
react-custom-hooks Custom React hooks

πŸ”§ Backend & API

Skill Description
next-api-routes API Routes & Server Actions
better-auth Authentication with Better Auth

βœ… Quality & Security

Skill Description
testing-vitest Testing with Vitest + React Testing Library
accessibility-a11y Web accessibility (a11y)
security-best-practices Security best practices
git-workflow Git best practices (commits, branches, PRs)
source-of-truth Official documentation reference
migration-refactor Refactoring and migrations
deployment-vercel Vercel deployment
docker-deployment Docker containerization
nextjs-seo SEO optimization (metadata, OG, sitemap)
performance-optimization Performance & Core Web Vitals
vercel-react-best-practices React & Next.js best practices (Vercel)

πŸ“ Project Structure

kimi-template/
β”œβ”€β”€ .agents/
β”‚   └── skills/                 # πŸŽ“ Kimi Skills (29 specializations)
β”‚       β”œβ”€β”€ SKILL_AUDIT_MASTER.md
β”‚       β”œβ”€β”€ plan-master/
β”‚       β”œβ”€β”€ nextjs-16-tailwind-4/
β”‚       β”œβ”€β”€ shadcn-ui/
β”‚       β”œβ”€β”€ tanstack-query/
β”‚       β”œβ”€β”€ motion-animations/
β”‚       └── ...
β”‚
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ app/                    # πŸ“± Next.js App Router
β”‚   β”‚   β”œβ”€β”€ layout.tsx          # Root layout with fonts & metadata
β”‚   β”‚   β”œβ”€β”€ page.tsx            # Home page
β”‚   β”‚   β”œβ”€β”€ dashboard/          # Example: Dashboard page
β”‚   β”‚   β”‚   └── page.tsx
β”‚   β”‚   β”œβ”€β”€ globals.css         # Global styles + Tailwind theme
β”‚   β”‚   └── favicon.ico
β”‚   β”‚
β”‚   β”œβ”€β”€ components/             # 🧩 React Components
β”‚   β”‚   β”œβ”€β”€ ui/                 # shadcn/ui components
β”‚   β”‚   β”‚   β”œβ”€β”€ button.tsx
β”‚   β”‚   β”‚   β”œβ”€β”€ card.tsx
β”‚   β”‚   β”‚   β”œβ”€β”€ chart.tsx
β”‚   β”‚   β”‚   └── ...
β”‚   β”‚   β”œβ”€β”€ animations/         # Motion animation components
β”‚   β”‚   β”‚   β”œβ”€β”€ fade-in.tsx
β”‚   β”‚   β”‚   β”œβ”€β”€ card-hover.tsx
β”‚   β”‚   β”‚   └── ...
β”‚   β”‚   β”œβ”€β”€ dashboard/          # Dashboard business components
β”‚   β”‚   β”‚   β”œβ”€β”€ stats-grid.tsx
β”‚   β”‚   β”‚   β”œβ”€β”€ revenue-chart.tsx
β”‚   β”‚   β”‚   └── ...
β”‚   β”‚   └── providers/          # React Providers
β”‚   β”‚       └── query-provider.tsx
β”‚   β”‚
β”‚   β”œβ”€β”€ hooks/                  # 🎣 Custom hooks
β”‚   β”‚   └── use-dashboard.ts
β”‚   β”‚
β”‚   └── lib/                    # πŸ“š Utilities and config
β”‚       β”œβ”€β”€ utils.ts            # Utility functions (cn, etc.)
β”‚       β”œβ”€β”€ query-client.ts     # TanStack Query config
β”‚       β”œβ”€β”€ query-keys.ts       # Query keys
β”‚       β”œβ”€β”€ api/                # API clients
β”‚       β”‚   └── dashboard.ts
β”‚       └── types/              # TypeScript types
β”‚           └── dashboard.ts
β”‚
β”œβ”€β”€ public/                     # πŸ“¦ Static assets
β”œβ”€β”€ package.json                # Dependencies
β”œβ”€β”€ next.config.ts              # Next.js config
β”œβ”€β”€ tsconfig.json               # TypeScript config
β”œβ”€β”€ eslint.config.mjs           # ESLint config
└── AGENTS.md                   # πŸ“– Complete agent documentation

πŸš€ Quick Start

Option 1: Use GitHub Template (Recommended)

Click the green "Use this template" button at the top of this page, or:

# Create a new repo from this template
git clone --depth 1 https://github.com/CaseReed/kimi-template.git my-app
cd my-app
rm -rf .git
git init

Option 2: Clone Directly

git clone https://github.com/CaseReed/kimi-template.git
cd kimi-template

Prerequisites

  • Node.js 20+
  • pnpm (recommended)

Setup

# Install dependencies
pnpm install

# Set up environment variables
cp .env.example .env.local
# Edit .env.local with your values

# Start the development server
pnpm dev

Open http://localhost:3000 to see the result.

🌐 Live Demo

See it in action: kimi-template.vercel.app

Available Scripts

pnpm dev          # Development server
pnpm build        # Production build
pnpm start        # Start production server
pnpm lint         # ESLint
pnpm clean        # Full cleanup (node_modules, .next, etc.)

πŸ” Authentication

The project includes a complete authentication system powered by Better Auth:

  • πŸ”‘ Email/Password authentication with secure session management
  • πŸ” OAuth providers (GitHub, Google) - configurable
  • πŸ›‘οΈ Protected routes with Server Components
  • πŸ“§ Session management with HTTP-only cookies
  • 🌍 i18n support for login/register pages

Quick Start Auth

# 1. Start PostgreSQL database
docker-compose -f docker-compose.db.yml up -d

# 2. Configure environment
cp .env.example .env.local
# Edit .env.local with your values

# 3. Run migrations
pnpm db:push

# 4. Create admin user
pnpm db:seed:admin

# 5. Start the app
pnpm dev

Configure OAuth Providers

See Better Auth Documentation for detailed instructions on configuring GitHub and Google OAuth.


🎨 Example: Included Dashboard

The project includes a complete Dashboard page (/dashboard) demonstrating:

  • πŸ“Š Charts with Recharts (revenue, categories)
  • πŸ“ˆ Statistics with Motion animations
  • πŸ“‹ Transaction table with pagination
  • πŸ”„ Data fetching with TanStack Query
  • 🎯 Optimistic UI with React 19

Perfect for understanding how skills integrate in a real-world case!


πŸ“ How to Use Skills

In Kimi k2.5, use skills with the /skill:skill-name syntax:

# Examples:
/skill:plan-master          # To plan a complex feature
/skill:component-generator  # To generate a new component
/skill:shadcn-ui           # To add UI components
/skill:tanstack-query      # To implement data fetching
/skill:forms-master        # To create a form
/skill:post-review         # To review code after implementation

πŸ’‘ Golden Rule: Always end with /skill:post-review before marking a feature as complete!


πŸ“– Documentation

  • AGENTS.md β€” Complete project documentation for agents
  • SKILL_AUDIT_MASTER.md β€” Skills audit and status
  • Individual skills β€” See .agents/skills/<skill-name>/SKILL.md

πŸ” Security

  • Environment variables: use .env.local (never committed)
  • Only NEXT_PUBLIC_* variables are exposed to the client
  • ESLint includes React and Next.js security rules

πŸ“„ License

MIT β€” Free to use for your own projects.


Built with ❀️ for Kimi k2.5

About

A production-ready Next.js 16 template with 29 AI-assisted development skills, featuring React 19, Tailwind CSS 4, Better Auth, i18n, and comprehensive testing. Perfect for building modern web apps with AI pair programming.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages