nextjs15-performance
87
总安装量
88
周安装量
#2634
全站排名
安装命令
npx skills add https://github.com/srbhr/resume-matcher --skill nextjs15-performance
Agent 安装分布
opencode
67
claude-code
63
codex
62
gemini-cli
58
github-copilot
55
antigravity
53
Skill 文档
Before writing Next.js code
- Read
docs/agent/architecture/nextjs-critical-fixes.mdfor full patterns - Check existing components in
apps/frontend/components/for examples
Critical Rules (always apply)
Waterfalls
- Use
Promise.all()for independent fetches - Wrap slow data in
<Suspense>boundaries - Defer
awaitinto branches where needed
Bundle Size
- NO barrel imports:
import X from 'lucide-react'â - YES direct imports:
import X from 'lucide-react/dist/esm/icons/x'â - Use
next/dynamicfor heavy components (editors, charts, PDF viewers) - Defer analytics with
ssr: false
Server Actions
- ALWAYS check auth INSIDE the action, not just middleware
- Verify resource ownership before mutations
Production Build
- Users run
npm run build && npm run start, NOTnpm run dev - Docker must use standalone output, not dev mode
Quick Check Before PR
[ ] No sequential awaits for independent data
[ ] Icons imported directly
[ ] Heavy components use next/dynamic
[ ] Server Actions have auth inside
[ ] Suspense around slow fetches