首页/前端开发/nextjs15-performance
N

nextjs15-performance

by @srbhrv1.0.0
0.0(0)

提供Next.js 15性能优化指南和最佳实践,确保代码质量和应用效率,参考现有组件范例。

Next.js 15Web PerformanceReact FrameworkSSR/SSGGitHub
安装方式
npx skills add srbhr/resume-matcher --skill nextjs15-performance
compare_arrows

Before / After 效果对比

1
使用前
1在没有 `nextjs15-performance` 技能指导时,Next.js 15 应用可能存在性能瓶颈,例如数据瀑布式请求(waterfalls)、过大的打包体积或不当的 Suspense 使用,导致页面加载缓慢和用户体验不佳。
使用后
1使用 `nextjs15-performance` 技能后,可以遵循关键规则对 Next.js 15 应用进行性能优化。技能会指导开发者使用 `Promise.all()` 处理独立的数据请求、将慢速数据包裹在 `<Suspense>` 边界中、延迟 `await` 到需要的分支,并避免 barrel imports 以减小打包体积,从而显著提升应用性能和用户体验。

description SKILL.md

nextjs15-performance

Before writing Next.js code Read docs/agent/architecture/nextjs-critical-fixes.md for 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 boundaries Defer await into 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/dynamic for 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, NOT npm 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 Weekly Installs190Repositorysrbhr/resume-matcherGitHub Stars26.3KFirst SeenJan 22, 2026Security AuditsGen Agent Trust HubPassSocketPassSnykPassInstalled onopencode166codex160gemini-cli157github-copilot150cursor136claude-code135

forum用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价,来写第一条吧

统计数据

安装量0
评分0.0 / 5.0
版本1.0.0
更新日期2026年3月17日
对比案例1 组

用户评分

0.0(0)
5
0%
4
0%
3
0%
2
0%
1
0%

为此 Skill 评分

0.0

兼容平台

🔧Claude Code

时间线

创建2026年3月17日
最后更新2026年3月17日