next-cache-components-optimizer
Pass
Audited by Gen Agent Trust Hub on Aug 20, 2026
Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
- Automated Command Execution: The skill identifies and executes project-specific build and test commands (e.g.,
next build,playwright test) as part of its optimization loop. This is a core component of its intended functionality to verify performance improvements. - Project Discovery and Configuration: The agent is instructed to inspect the repository (e.g.,
package.json,next.config.js, CI configurations) to create a project-specific rig file (instant-nav.rig.md). This facilitates an automated workflow tailored to the existing development environment. - Code Refactoring Patterns: The skill provides templates and instructions for refactoring React Server Components. This includes hoisting static content and wrapping dynamic data fetches in
<Suspense>boundaries to optimize rendering paths. - Integration with Official Tools: The workflow utilizes official Next.js utilities and APIs, such as
@next/playwrightand theexperimental.exposeTestingApiInProductionBuildconfiguration flag. These are documented practices for testing Partial Prerendering behavior in production-like environments. - Environment-Aware Testing: It emphasizes the use of production builds rather than development servers to ensure performance metrics are accurate and trustworthy, demonstrating a focus on reliable software engineering practices.
Audit Metadata