code-audit

Audit Next.js projects for code quality, architecture, and standards.

1|1|Updated Dec 14, 2025
One-click install
npx skills add https://github.com/pkuntik/xhs_ad_agent --skill code-audit-pkuntik
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-audit
Source: https://github.com/pkuntik/xhs_ad_agent/tree/main/.claude/skills/code-audit
Command: npx skills add https://github.com/pkuntik/xhs_ad_agent --skill code-audit-pkuntik

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automatically audits code quality, architecture, and development guidelines to help teams locate issues, plan refactors, and improve overall health.

Core Features & Use Cases

  • Next.js and Server Actions best practices checks to ensure modern architecture and performance.
  • Code duplication and reuse analysis to promote DRY code.
  • Readability and structure evaluation to improve maintainability.
  • Documentation and dependency health assessment to reduce tech debt.
  • Actionable remediation planning and upgrade suggestions for targeted improvements.
  • Use Case: Quickly identify top hotspots to prioritize refactors and avoid regression.

Quick Start

Please use /code-audit to perform a comprehensive project-wide audit, or focus on a specific module.

Frequently Asked Questions about code-audit

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

FAQPage Schema
How do I audit code quality in a Next.js project?

Code audits analyze your Next.js codebase for quality issues across architecture, duplication, readability, documentation, and dependencies. Use /code-audit to scan your entire project or target specific modules for actionable remediation suggestions.

Can I check if my Server Actions follow Next.js best practices?

Yes. Server Actions validation checks your implementation against Next.js best practices for performance and modern architecture patterns, identifying configuration and usage issues that need correction.

What code duplication detection does the audit perform?

The audit scans for duplicated code patterns and reuse opportunities across your project, reporting violations of DRY principles with specific locations so you can consolidate and refactor efficiently.

How does the audit evaluate code readability and maintainability?

Readability analysis assesses code structure, naming conventions, and organization to identify maintainability gaps. The audit flags issues affecting long-term code health and suggests improvements for better team onboarding.

Can the audit check dependency health and documentation completeness?

Yes. The audit validates third-party dependency hygiene and assesses documentation coverage across your codebase, highlighting tech debt and missing documentation that impacts maintainability.

What should I do before running a project-wide audit?

Ensure your Next.js project is accessible and ready for analysis. The audit examines Server Actions, API routing, frontend patterns, and dependencies without modifying code, so no special setup is required.