AgentHubAgentHub

nextjs-bundle-optimizer

SkillSkillsMP

io.github.pproenca/dot-skills/nextjs-bundle-optimizer · vmaster

Next.js 16 bundle-size and build-time optimization — runs a data-driven iteration loop: measure baseline → analyze top offenders → apply ONE recipe → re-measure → verify nothing broke (build + types + tests + no regression) → commit or revert. Built for Next.js 16 with Turbopack default, and falls back to webpack-mode tooling when the project hasn't migrated yet. Triggers on phrases like "First Load JS is huge", "bundle size", "build takes too long", "page is slow to TTI", "reduce bundle", "tree-shake", or when the user shares output from `next experimental-analyze` / `@next/bundle-analyzer` — even if the user doesn't say "optimize" explicitly.

概览

nextjs-bundle-optimizer 是一个Agent Skill,收录自 SkillsMP。本页提供 Cursor、Claude Code 等客户端的安装配置片段。

Agent Skill 是带 SKILL.md 的指令包。安装后,AI 会根据 description 在匹配任务时自动加载,无需每次手动粘贴提示词。

安装

选择你的平台查看安装方式

# 通用 CLI(Cursor / Claude Code / Codex 等均支持)
npx skills add pproenca/dot-skills@nextjs-bundle-optimizer

使用方式

安装完成后,在对话中直接描述你的任务(或提及技能名称)。Agent 会先读取 SKILL.md 的 description 判断是否启用,再按其中的步骤执行。可用 /skills(Claude Code)或在设置中查看已加载的 Skills。

相关资源

统一 Manifest

{
  "id": "io.github.pproenca/dot-skills/nextjs-bundle-optimizer",
  "type": "skill",
  "version": "master",
  "displayName": "nextjs-bundle-optimizer",
  "description": "Next.js 16 bundle-size and build-time optimization — runs a data-driven iteration loop: measure baseline → analyze top offenders → apply ONE recipe → re-measure → verify nothing broke (build + types + tests + no regression) → commit or revert. Built for Next.js 16 with Turbopack default, and falls back to webpack-mode tooling when the project hasn't migrated yet. Triggers on phrases like \"First Load JS is huge\", \"bundle size\", \"build takes too long\", \"page is slow to TTI\", \"reduce bundle\", \"tree-shake\", or when the user shares output from `next experimental-analyze` / `@next/bundle-analyzer` — even if the user doesn't say \"optimize\" explicitly.",
  "author": {
    "name": "pproenca",
    "url": "https://github.com/pproenca"
  },
  "repository": {
    "url": "https://github.com/pproenca/dot-skills",
    "source": "github",
    "subfolder": "skills/.experimental/nextjs-bundle-optimizer"
  },
  "homepage": "https://skillsmp.com/skills/pproenca-dot-skills-skills-experimental-nextjs-bundle-optimizer-skill-md",
  "distribution": {
    "packages": [
      {
        "registryType": "source",
        "identifier": "pproenca/dot-skills@nextjs-bundle-optimizer",
        "version": "master",
        "runtimeHint": "npx skills add"
      }
    ],
    "remotes": []
  },
  "dependencies": [],
  "installTargets": [
    "claude-code",
    "claude-desktop",
    "cursor",
    "codex",
    "vscode"
  ],
  "keywords": [
    "stars:158"
  ],
  "provenance": {
    "origin": "skillsmp",
    "originalId": "pproenca-dot-skills-skills-experimental-nextjs-bundle-optimizer-skill-md",
    "originalUrl": "https://skillsmp.com/skills/pproenca-dot-skills-skills-experimental-nextjs-bundle-optimizer-skill-md",
    "isOfficial": false,
    "status": "active"
  }
}
nextjs-bundle-optimizer — Agent Skill 安装与配置 · AgentHub