nextjs-upstream

Guide Next.js project setup, optimization, and deployment best practices.

Updated Apr 16, 2026
One-click install
npx skills add https://github.com/aliepratama/ecofin --skill nextjs-upstream
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs-upstream
Source: https://github.com/aliepratama/ecofin/tree/main/.agents/skills/nextjs/upstream
Command: npx skills add https://github.com/aliepratama/ecofin --skill nextjs-upstream

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and scripts (resource) and assets (resource) components.

What problem does it solve?

This Skill provides comprehensive guidelines and checklists for developing, optimizing, and maintaining Next.js applications according to official best practices.

Core Features & Use Cases

  • Code Quality and Convention Enforcement: Ensures project file structures, naming, and use of directives align with Next.js standards.
  • Performance Optimization Tips: Guides on image handling, font management, bundling, and script loading strategies.
  • Error Handling and Debugging: Offers patterns for error boundaries, hydration troubleshooting, and advanced debugging with MCP.
  • Deployment Strategies: Details self-hosting, standalone output, cache management, and production best practices for scalable deployment.

Quick Start

Review the documentation to implement structured, optimized, and secure Next.js projects, following the criteria outlined in the core modules.

Frequently Asked Questions about nextjs-upstream

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are the best practices for structuring a Next.js project?

Next.js project setup best practices involve standardizing file structures, naming conventions, and directives to align with official framework standards for maintainable code organization. This ensures project directories remain predictable as the application scales.

How do I optimize performance for images, fonts, and scripts in Next.js?

Next.js performance optimization requires applying specific strategies for image handling, font management, bundling, and script loading to reduce layout shift and improve core web vitals. Proper asset loading directly impacts rendering speed.

What is the best way to handle errors and debug hydration issues in Next.js?

Next.js error handling utilizes error boundaries and advanced debugging patterns to troubleshoot hydration mismatches and runtime issues effectively. Structured debugging approaches isolate component failures and prevent full application crashes.

How do I configure a Next.js standalone deployment for self-hosting?

Next.js self-hosting deployment uses standalone output configurations and cache management strategies to ensure scalable production builds. This minimizes server footprint and optimizes runtime performance for dedicated infrastructure.

Can I use these Next.js guidelines for both new and existing applications?

Next.js best practices apply to both new setups and existing applications through comprehensive checklists for code quality, performance tuning, and deployment. You can incrementally adopt these standards to refactor and optimize current projects.