Communitygithub.com

JantonioFC/skillsbank

Next.js 16+ und Turbopack – inkrementelles Bündeln, FS-Caching, Entwicklungsgeschwindigkeit und Entscheidungshilfe: Turbopack vs. webpack.

Was ist skillsbank?

Dieses Skill beschreibt den Einsatz von Turbopack in Next.js 16+ und darüber hinaus. Turbopack ist ein inkrementeller Bundler, der in Rust geschrieben ist und standardmäßig für die lokale Entwicklung in Next.js 16+ verwendet wird. Er beschleunigt den Kaltstart und Hot Module Replacement (HMR) erheblich, insbesondere bei großen Anwendungen. Das Skill erklärt, wann Turbopack (Standard für die Entwicklung) und wann webpack (bei Bugs oder webpack-spezifischen Plugins) verwendet werden sollte, und geht auf die Dateisystem-Caching-Mechanismen und den experimentellen Bundle Analyzer ab Next.js 16.1 ein. Es richtet sich an Entwickler, die Next.js 16+ Apps entwickeln, debuggen oder deren Build-Performance optimieren möchten, und bietet praktische Befehle und Best Practices für den täglichen Einsatz.

Funktioniert mit~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/JantonioFC/skillsbank/tree/HEAD/skills/ck

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Next.js und Turbopack

Next.js 16+ verwendet standardmäßig Turbopack für die lokale Entwicklung: ein inkrementeller Bundler, geschrieben in Rust, der den Entwicklungsstart und die Aktualisierungen erheblich beschleunigt.

Wann verwenden

  • Turbopack (Standard-Entwicklung): Verwenden Sie es für die tägliche Entwicklung. Schnellerer Kaltstart und HMR, besonders bei großen Apps.
  • Webpack (Legacy-Entwicklung): Verwenden Sie es nur, wenn Sie auf einen Turbopack-Fehler stoßen oder auf ein webpack-spezifisches Plugin in der Entwicklung angewiesen sind. Deaktivieren Sie es mit --webpack (oder --no-turbopack, abhängig von Ihrer Next.js-Version; überprüfen Sie die Dokumentation Ihrer Version).
  • Produktion: Das Verhalten des Produktionsbuilds (next build) kann je nach Next.js-Version Turbopack oder webpack verwenden; überprüfen Sie die offizielle Next.js-Dokumentation für Ihre Version.

Verwenden Sie es, wenn Sie Next.js 16+ Apps entwickeln oder debuggen, langsamen Entwicklungsstart oder HMR diagnostizieren oder Produktions-Bundles optimieren.

Wie es funktioniert

  • Turbopack: Inkrementeller Bundler für die Next.js-Entwicklung. Nutzt Dateisystem-Caching, sodass Neustarts viel schneller sind (z. B. 5–14x bei großen Projekten).
  • Standard in der Entwicklung: Ab Next.js 16 läuft next dev mit Turbopack, sofern nicht deaktiviert.
  • Dateisystem-Caching: Neustarts nutzen vorherige Arbeit wieder; der Cache befindet sich normalerweise unter .next; für die grundlegende Nutzung ist keine zusätzliche Konfiguration erforderlich.
  • Bundle Analyzer (Next.js 16.1+): Experimenteller Bundle Analyzer zur Überprüfung der Ausgabe und zum Auffinden schwerer Abhängigkeiten; aktivieren Sie ihn über die Konfiguration oder ein experimentelles Flag (siehe Next.js-Dokumentation für Ihre Version).

Beispiele

Befehle

next dev
next build
next start

Nutzung

Führen Sie next dev für die lokale Entwicklung mit Turbopack aus. Verwenden Sie den Bundle Analyzer (siehe Next.js-Dokumentation), um die Code-Aufteilung zu optimieren und große Abhängigkeiten zu reduzieren. Bevorzugen Sie den App Router und Server-Komponenten, wo möglich.

Best Practices

  • Bleiben Sie auf einer aktuellen Next.js 16.x-Version für stabiles Turbopack und Caching-Verhalten.
  • Wenn die Entwicklung langsam ist, stellen Sie sicher, dass Sie Turbopack (Standard) verwenden und der Cache nicht unnötig gelöscht wird.
  • Bei Problemen mit der Produktions-Bundle-Größe nutzen Sie die offiziellen Next.js-Bundle-Analyse-Tools Ihrer Version.

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

JantonioFC/skillsbank

AI-powered image editing with style transfer and object removal

JantonioFC/skillsbank

Internationalization and localization patterns. Detecting hardcoded strings, managing translations, locale files, RTL support.

JantonioFC/skillsbank

Analise e auditoria de editais de leilao judicial e extrajudicial. Riscos ocultos, clausulas perigosas, debitos, ocupante e classificacao da oportunidade.

JantonioFC/skillsbank

Embed Photopea in web apps using photopea.js. Covers embedding, file I/O, scripting, exporting, layers, text, filters, and the full Photoshop-compatible API.

JantonioFC/skillsbank

Best practices for Remotion - Video creation in React

JantonioFC/skillsbank

Generate walkthrough videos from Stitch projects using Remotion with smooth transitions, zooming, and text overlays

JantonioFC/skillsbank

Seek and analyze video content using Memories.ai Large Visual Memory Model for persistent video intelligence

JantonioFC/skillsbank

Writes complete, structured landing pages optimized for SEO ranking, AEO citation, and visitor conversion. Activate when the user wants to write or generate a landing page for a product, service, or offer.

JantonioFC/skillsbank

Video and audio perception, indexing, and editing. Ingest files/URLs/live streams, build visual/spoken indexes, search with timestamps, edit timelines, add overlays/subtitles, generate media, and create real-time alerts.

JantonioFC/skillsbank

Upload, stream, search, edit, transcribe, and generate AI video and audio using the VideoDB SDK.

JantonioFC/skillsbank

Skill for discovering and researching autonomous AI agents, tools, and ecosystems using the AgentFolio directory.

JantonioFC/skillsbank

Expert in building portfolios that actually land jobs and clients - not just showing work, but creating memorable experiences. Covers developer portfolios, designer portfolios, creative portfolios, and portfolios that convert visitors into opportunities.

JantonioFC/skillsbank

Tool lifecycle UI components for React/Next.js from ui.inference.sh. Display tool calls: pending, progress, approval required, results. Capabilities: tool status, progress indicators, approval flows, results display. Use for: showing agent tool calls, human-in-the-loop approvals, tool output. Triggers: tool ui, tool calls, tool status, tool approval, tool results, agent tools, mcp tools ui, function calling ui, tool lifecycle, tool pending

JantonioFC/skillsbank

Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project.

JantonioFC/skillsbank

When the user wants help with paid advertising campaigns on Google Ads, Meta (Facebook/Instagram), LinkedIn, Twitter/X, or other ad platforms. Also use when the user mentions 'PPC,' 'paid media,' 'ROAS,' 'CPA,' 'ad campaign,' 'retargeting,' 'audience targeting,' 'Google Ads,' 'Facebook ads,'...

JantonioFC/skillsbank

Create AI avatar and talking head videos with OmniHuman, Fabric, PixVerse via inference.sh CLI. Models: OmniHuman 1.5, OmniHuman 1.0, Fabric 1.0, PixVerse Lipsync. Capabilities: audio-driven avatars, lipsync videos, talking head generation, virtual presenters. Use for: AI presenters, expla...

JantonioFC/skillsbank

Create AI marketing videos for ads, promos, product launches, and brand content. Models: Veo, Seedance, Wan, FLUX for visuals, Kokoro for voiceover. Types: product demos, testimonials, explainers, social ads, brand videos. Use for: Facebook ads, YouTube ads, product launches, brand awarene...

JantonioFC/skillsbank

Generate AI videos with Google Veo, Seedance, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 1.5 Pro, Wan 2.5, Grok Imagine Video, OmniHuman, Fabric, HunyuanVideo. Capabilities: text-to-video, image-to-video, lipsync, avatar animation, video upscaling, fole...

JantonioFC/skillsbank

Production-ready CI/CD configurations for Playwright — GitHub Actions, GitLab CI, CircleCI, Azure DevOps, Jenkins, Docker, parallel sharding, reporting, code coverage, and global setup/teardown.

JantonioFC/skillsbank

You are an expert copy editor specializing in marketing and conversion copy. Your goal is to systematically improve existing copy through focused editing passes while preserving the core message.

Verwandte Skills