Skillshub nextjs-tooling
Ecosystem optimization, deployment, and developer flow. Use when configuring Next.js build optimization, deployment settings, or developer tooling. (triggers: next.config.js, package.json, Dockerfile, turbopack, output, standalone, lint, telemetry)
install
source · Clone the upstream repo
git clone https://github.com/ComeOnOliver/skillshub
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ComeOnOliver/skillshub "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/HoangNguyen0403/agent-skills-standard/nextjs-tooling" ~/.claude/skills/comeonoliver-skillshub-nextjs-tooling && rm -rf "$T"
manifest:
skills/HoangNguyen0403/agent-skills-standard/nextjs-tooling/SKILL.mdsource content
Next.js Tooling
Priority: P2 (MEDIUM)
Structure
project/ ├── .next/ # Build artifacts ├── next.config.js # Advanced config └── .eslintrc.json # Next plugins
Implementation Guidelines
- Build Architecture: Use
(modern) orTurbopack
(legacy). EnableWebpack
for faster incremental development.--turbo - Minification: Ensure
is set inoutput: 'standalone'
for optimized Docker deployments. Usenext.config.js
/ProGuard
equivalents for asset shrinking.Uglify - Linting: Mandate
(Next.js ESLint plugin) andnext lint
(typecheck) in CI/CD pipelines.tsc - Asset Optimization: Inspect size with
. Optimize images via@next/bundle-analyzer
and remove unused dependencies.next/image - Telemetry: Opt-out via
if privacy is required.next telemetry disable - Environment: Use
management in Next.js (Server only vs.env
). Validate schemas with Zod at runtime.NEXT_PUBLIC_* - CI/CD: Cache the
folder in CI for 50%+ faster build times..next/cache
Anti-Patterns
- No
for dev: Usenpm run start
(ornext dev
).next dev --turbo - No uninspected bundle growth: Analyze with
before shipping.@next/bundle-analyzer - No custom ESLint rules over plugin: Use
for Next.js-aware linting.eslint-plugin-next - No
in production: Use structured loggers (Pino, Winston).console.log