nextjs-frontend-audit
Audita el frontend de proyectos Next.js con TypeScript y produce un reporte de hallazgos por severidad.
Skill by 2003gdb
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/2003gdb-nextjs-frontend-audit
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: frontend, security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/nextjs-frontend-audit
What's inside
- Skill name
nextjs-frontend-audit- Description
- Audita el frontend de proyectos Next.js con TypeScript y produce un reporte de hallazgos por severidad. Usa esta skill siempre que el usuario pida auditar, revisar, evaluar o diagnosticar un proyecto, repositorio o código Next.js/React/TypeScript, mencione "auditoría", "code review", "calidad del código", "deuda técnica", "rendimiento del frontend" o pida verificar buenas prácticas, seguridad o accesibilidad en una app Next.js.
- License
- MIT
- Instructions
- 97 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- name: "nextjs-frontend-audit" does not match folder "audit-frontend"
Files (1)
- SKILL.md
SKILL.md (first lines)
# Auditoría de Frontend Next.js + TypeScript
Audita en este orden. Reporta solo hallazgos reales con archivo y línea; no inventes problemas para llenar el reporte.
## 1. Diagnóstico automatizado (correr primero)
```bash
npx tsc --noEmit # errores de tipos
npx eslint . --max-warnings=0 # lint (o npx next lint en versiones < 15)
npm audit --omit=dev # vulnerabilidades de dependencias de producción
npx next build 2>&1 | tail -40 # confirma que compila; revisa warnings y tamaños de bundle
```
Si algo falla, eso ya es un hallazgo. Anota la salida relevante.
## 2. Configuración
- `tsconfig.json`: `strict: true` es obligatorio. Marcar si falta o si hay `strictNullChecks: false`, `noImplicitAny: false`.
- `next.config.*`: marcar `typescript.ignoreBuildErrors: true` y `eslint.ignoreDuringBuilds: true` como hallazgos altos.
- Verificar que exista configuración de ESLint con `eslint-config-next`.
## 3. TypeScript
Buscar con grep y revisar contexto:
```bash
grep -rn "any\b" --include="*.ts" --include="*.tsx" src/ app/ | grep -v "// eslint"
grep -rn "@ts-ignore\|@ts-nocheck\|as unknown as" --include="*.ts*" .
```
- `any` explícito, `@ts-ignore`, dobles casteos: deuda de tipos.
- Props sin tipar, respuestas de API sin interfaz/zod: hallazgo medio.
## 4. Next.js específico
- **Server vs Client Components** (App Router): `"use client"` en componentes que no usan estado, efectos ni eventos es innecesario y agranda el bundle. Components con fetch de datos deberían ser Server Components cuando sea posible.
- **Imágenes**: `<img>` en vez de `next/image` (pierde optimización y lazy loading).
- **Fuentes**: links a Google Fonts en vez de `next/font`.
- **Navegación**: `<a>` interno en vez de `next/link`; `window.location` para rutas internas.
- **Data fetching**: fetch en `useEffect` cuando podría ser Server Component, route handler o librería como React Query; falta de manejo de loading/error.
- **Metadata/SEO**: páginas sin `metadata` o `generateMetadata`; falta de `alt` en imágenes.
## 5. React y rendimiento
- Dependencias incorrectas o faltantes en `useEffect`/`useMemo`/`useCallback` (eslint-plugin-react-hooks debe estar activo).
- `useEffect` que actualiza estado de sus propias dependencias (loops).
- Listeners, intervals o suscripciones sin cleanup (memory leaks).
- `key={index}` en listas dinámicas.
- Objetos/funciones inline pasados a componentes memorizados.
- Componentes gigantes (>300 líneas) que mezclan datos, lógica y UI.
- Imports pesados sin `next/dynamic` (gráficas, editores, mapas).
## 6. Seguridad
```bash
grep -rn "NEXT_PUBLIC_" .env* 2>/dev/null
grep -rn "dangerouslySetInnerHTML\|eval(" --include="*.tsx" --include="*.ts" .
grep -rni "api[_-]key\|secret\|password\s*=" --include="*.ts*" src/ app/ lib/
```
- Secretos o API keys con prefijo `NEXT_PUBLIC_` (quedan expuestos al cliente): hallazgo crítico.
- Secretos hardcodeados en el código: crítico.
- `dangerouslySetInnerHTML` sin sanitizar (XSS): alto.
- Tokens en `localStorage` sin estrategia de expiración; lógica de autorización solo en el cliente.
- Falta de validación de inputs en route handlers / server actions.
## 7. Accesibilidad (revisión rápida)
- `div`/`span` con `onClick` en vez de `button`.
- Inputs sin `label` o `aria-label`; imágenes sin `alt`.
- Contraste y foco visibles si hay estilos personalizados de focus.
## 8. Formato del reporte
Entregar un reporte con esta estructura, ordenado por severidad:
```
# Auditoría Frontend: <proyecto>
## Resumen
2-4 frases: estado general, riesgos principales, qué priorizar.
## Hallazgos
### Crítico
- [archivo:línea] Descripción del problema. Por qué importa. Cómo corregirlo.
### Alto / Medio / Bajo
(mismo formato)
## Lo que está bien
2-5 puntos positivos concretos.
## Plan de acción sugerido
Lista numerada, máximo 7 pasos, del más urgente al menos.
```
Severidades: **Crítico** = seguridad o build roto; **Alto** = bugs probables o impacto fuerte en rendimiento; **Medio** = deuda técnica y malas prácticas; **Bajo** = estilo y mejoras opcionales.From 2003gdb/My-Claude-Workflows, MIT.
More from 2003gdb/My-Claude-Workflows
- 0.524score
auth-emulator-e2e
2003gdb
Use when setting up or debugging browser e2e tests (Playwright or similar) that authenticate through a local auth-provider emulator/stub — Firebase Auth…
SkillBFreshness: BClaude Code +9 - 0.474score
exploiting-jwt-algorithm-confusion-attack
2003gdb
Exploits JWT algorithm confusion vulnerabilities where the server's token verification library accepts the algorithm specified in the JWT header rather than…
SkillCFreshness: CClaude Code +9 - 0.474score
exploiting-api-injection-vulnerabilities
2003gdb
Tests APIs for injection vulnerabilities including SQL injection, NoSQL injection, OS command injection, LDAP injection, and Server-Side Request Forgery…
SkillCFreshness: CClaude Code +9 - 0.474score
exploiting-excessive-data-exposure-in-api
2003gdb
Tests APIs for excessive data exposure where endpoints return more data than the client application needs, relying on the frontend to filter sensitive fields.
SkillCFreshness: CClaude Code +9 - 0.474score
exploiting-broken-function-level-authorization
2003gdb
Tests APIs for Broken Function Level Authorization (BFLA) vulnerabilities where regular users can invoke administrative functions or access privileged API…
SkillCFreshness: CClaude Code +9 - 0.471score
configuring-oauth2-authorization-flow
2003gdb
Configure secure OAuth 2.0 authorization flows including Authorization Code with PKCE, Client Credentials, and Device Authorization Grant.
SkillCFreshness: CClaude Code +9 - 0.471score
detecting-api-enumeration-attacks
2003gdb
Detect and prevent API enumeration attacks including BOLA and IDOR exploitation by monitoring sequential identifier access patterns and authorization failures.
SkillCFreshness: CClaude Code +9 - 0.471score
detecting-shadow-api-endpoints
2003gdb
Discover and inventory shadow API endpoints that operate outside documented specifications using traffic analysis, code scanning, and API discovery platforms.
SkillCFreshness: CClaude Code +9 - 0.471score
exploiting-insecure-deserialization
2003gdb
Identifying and exploiting insecure deserialization vulnerabilities in Java, PHP, Python, and .NET applications to achieve remote code execution during…
SkillCFreshness: CClaude Code +9 - 0.471score
exploiting-mass-assignment-in-rest-apis
2003gdb
Discover and exploit mass assignment vulnerabilities in REST APIs to escalate privileges, modify restricted fields, and bypass authorization controls by…
SkillCFreshness: CClaude Code +9 - 0.471score
exploiting-http-request-smuggling
2003gdb
Detecting and exploiting HTTP request smuggling vulnerabilities caused by Content-Length and Transfer-Encoding parsing discrepancies between front-end and…
SkillCFreshness: CClaude Code +9 - 0.471score
exploiting-idor-vulnerabilities
2003gdb
Identifying and exploiting Insecure Direct Object Reference vulnerabilities to access unauthorized resources by manipulating object identifiers in API…
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jun 12, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/2003gdb/My-Claude-Workflows
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from 2003gdb
- 0.524score
auth-emulator-e2e
2003gdb
Use when setting up or debugging browser e2e tests (Playwright or similar) that authenticate through a local auth-provider emulator/stub — Firebase Auth…
SkillBFreshness: BClaude Code +9 - 0.474score
exploiting-excessive-data-exposure-in-api
2003gdb
Tests APIs for excessive data exposure where endpoints return more data than the client application needs, relying on the frontend to filter sensitive fields.
SkillCFreshness: CClaude Code +9 - 0.474score
exploiting-broken-function-level-authorization
2003gdb
Tests APIs for Broken Function Level Authorization (BFLA) vulnerabilities where regular users can invoke administrative functions or access privileged API…
SkillCFreshness: CClaude Code +9 - 0.474score
exploiting-api-injection-vulnerabilities
2003gdb
Tests APIs for injection vulnerabilities including SQL injection, NoSQL injection, OS command injection, LDAP injection, and Server-Side Request Forgery…
SkillCFreshness: CClaude Code +9 - 0.474score
exploiting-jwt-algorithm-confusion-attack
2003gdb
Exploits JWT algorithm confusion vulnerabilities where the server's token verification library accepts the algorithm specified in the JWT header rather than…
SkillCFreshness: CClaude Code +9 - 0.471score
exploiting-idor-vulnerabilities
2003gdb
Identifying and exploiting Insecure Direct Object Reference vulnerabilities to access unauthorized resources by manipulating object identifiers in API…
SkillCFreshness: CClaude Code +9
Cite this page
nextjs-frontend-audit skill. Agent Mart. https://agentmart.dev/skills/2003gdb-nextjs-frontend-audit (last updated 2026-10-24)