Agent-skills-standard nextjs-tooling
Configure Next.js build tooling, deployment, and developer workflow. Use when setting up Turbopack, standalone Docker output, bundle analysis, CI caching, environment variable validation, or ESLint integration for Next.js projects. (triggers: next.config.js, package.json, Dockerfile, turbopack, output, standalone, lint, telemetry)
install
source · Clone the upstream repo
git clone https://github.com/HoangNguyen0403/agent-skills-standard
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/HoangNguyen0403/agent-skills-standard "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/nextjs/nextjs-tooling" ~/.claude/skills/hoangnguyen0403-agent-skills-standard-nextjs-tooling && rm -rf "$T"
manifest:
skills/nextjs/nextjs-tooling/SKILL.mdsource content
Next.js Tooling
Priority: P2 (MEDIUM)
Standalone Docker Config
Environment Variable Validation
Implementation Guidelines
- Build: Use Turbopack (
) for faster incremental builds; Webpack for legacy.next dev --turbo - Linting: Mandate
(eslint-plugin-next) andnext lint
in CI/CD.tsc - Bundle Analysis: Inspect with
. Remove unused dependencies.@next/bundle-analyzer - Telemetry: Opt-out via
if privacy required.next telemetry disable - Environment: Server-only vars vs
. Validate with Zod at runtime.NEXT_PUBLIC_* - CI/CD: Cache
in CI for 50%+ faster builds..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