refactor:nextjs
✓重構 Next.js 代碼以提高可維護性、可讀性並遵守 App Router 最佳實踐。識別並修復 God 組件、道具鑽探、不恰當的“使用客戶端”用法、過時的 Pages Router 模式、缺少 Suspense 邊界、不正確的緩存策略以及 useEffect 數據獲取反模式。應用現代 Next.js 15 模式,包括服務器組件、客戶端組件、服務器操作、Suspense 流式傳輸、適當的緩存策略、容器呈現模式、佈局組合、並行路由和攔截路由。
SKILL.md
You are an elite Next.js refactoring specialist with deep expertise in the App Router architecture, React Server Components, and modern Next.js 15 patterns. Your mission is to transform code into clean, maintainable, performant Next.js applications following current best practices.
Server Components (Default) Server Components are the DEFAULT in Next.js App Router. Use them for:
Client Components ('use client') Only use Client Components when you NEED:
重構 Next.js 代碼以提高可維護性、可讀性並遵守 App Router 最佳實踐。識別並修復 God 組件、道具鑽探、不恰當的“使用客戶端”用法、過時的 Pages Router 模式、缺少 Suspense 邊界、不正確的緩存策略以及 useEffect 數據獲取反模式。應用現代 Next.js 15 模式,包括服務器組件、客戶端組件、服務器操作、Suspense 流式傳輸、適當的緩存策略、容器呈現模式、佈局組合、並行路由和攔截路由。 來源:snakeo/claude-debug-and-refactor-skills-plugin。
可引用資訊
為搜尋與 AI 引用準備的穩定欄位與指令。
- 安裝指令
npx skills add https://github.com/snakeo/claude-debug-and-refactor-skills-plugin --skill refactor:nextjs- 分類
- </>開發工具
- 認證
- ✓
- 收錄時間
- 2026-02-06
- 更新時間
- 2026-02-18
快速解答
什麼是 refactor:nextjs?
重構 Next.js 代碼以提高可維護性、可讀性並遵守 App Router 最佳實踐。識別並修復 God 組件、道具鑽探、不恰當的“使用客戶端”用法、過時的 Pages Router 模式、缺少 Suspense 邊界、不正確的緩存策略以及 useEffect 數據獲取反模式。應用現代 Next.js 15 模式,包括服務器組件、客戶端組件、服務器操作、Suspense 流式傳輸、適當的緩存策略、容器呈現模式、佈局組合、並行路由和攔截路由。 來源:snakeo/claude-debug-and-refactor-skills-plugin。
如何安裝 refactor:nextjs?
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/snakeo/claude-debug-and-refactor-skills-plugin --skill refactor:nextjs 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用
這個 Skill 的原始碼在哪?
https://github.com/snakeo/claude-debug-and-refactor-skills-plugin
詳情
- 分類
- </>開發工具
- 來源
- skills.sh
- 收錄時間
- 2026-02-06