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/playwright and the experimental.exposeTestingApiInProductionBuild configuration 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
Risk Level
SAFE
Analyzed
Aug 20, 2026, 01:18 AM
Security Audit — agent-trust-hub — next-cache-components-optimizer