frontend-audit-fix

Audit Next.js and Ant Design frontend projects for mock data, API consistency, and test reliability.

57|13|Updated Jul 12, 2025
One-click install
npx skills add https://github.com/heidsoft/itsm --skill frontend-audit-fix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-audit-fix
Source: https://github.com/heidsoft/itsm/tree/main/itsm-frontend/.trae/skills/frontend-audit-fix
Command: npx skills add https://github.com/heidsoft/itsm --skill frontend-audit-fix

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This workflow audits frontend projects to enforce the no-mock data rule, aligns API data shapes (camelCase vs snake_case), and stabilizes test health for Jest and Ant Design.

Core Features & Use Cases

  • Enforce "No Mock Data" Rule: verify http-client.ts uses real API endpoints and remove mockData objects; ensure 404 errors are handled by backend routes rather than mocks.
  • API Consistency Checks: ensure interfaces use camelCase to match backend responses, and fix conversion logic if needed.
  • Test Health & Verification: address common Jest/Antd issues, mock environment requirements, and run validations in CI.

Quick Start

Run the frontend-audit-fix workflow on your Next.js project to validate mocks, API-casing, and test integrity.

Frequently Asked Questions about frontend-audit-fix

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

FAQPage Schema
How do I remove mock data and enforce real API endpoints in a Next.js project?

Remove mock data by auditing http-client.ts to verify real API endpoint usage and eliminate mockData objects. This enforces a no-mock rule by ensuring 404 errors route to backend handlers rather than fallback mocks, stabilizing frontend QA validation.

What is the best way to align camelCase API interfaces with backend snake_case responses?

Align API interfaces by enforcing camelCase usage across frontend interfaces to match backend responses. Static analysis checks identify casing mismatches and fix conversion logic, ensuring consistent API data shapes between Next.js and backend systems.

Why do my Jest tests fail with Ant Design components during CI pipeline builds?

Jest tests fail with Ant Design during CI builds due to missing environment mocks or incorrect test adjustments. Stabilize test health by configuring required antd mock environments and applying static analysis to address common Jest issues.

Does this frontend QA audit work with Next.js and Ant Design tech stacks?

Yes, this frontend QA audit specifically applies to Next.js and Ant Design applications. It validates API consistency, enforces no mock data rules, and stabilizes Jest test health during QA, build validation, and CI pipelines.

How to validate frontend test integrity and API consistency in a CI pipeline?

Validate frontend test integrity in CI pipelines by running workflow audits that check for real endpoint usage, enforce camelCase interfaces, and apply Jest and Ant Design test mocks. This ensures build validation and test reliability.