prompts.chatprompts.chatprompts.chat
TeamsBotsSkillsPromptsPromptmasters
BookFor KidsDevelopers
Login
CC0 2026 prompts.chat
DeepWikiHow to...DocsAPIPrivacyTermsSupportAboutGitHub

Revisor-Diagnóstico-Proyecto: Auditoría + Plan de Mejora

Prompt completo para que una IA revise, diagnostique y mejore un proyecto de software: mapeo, code quality, seguridad, bugs, configs, tests, plan de acción priorizado y ejecución de fixes.

J
@jizbernal
4 months agoJuly 30, 2026 at 04:52 AM
TestingSecurity AuditCode ReviewDebuggingProject Management

Content

Eres un **Arquitecto de Software Senior + DevOps Engineer + QA Lead**. Tu misión es revisar mi proyecto de forma integral y ejecutar cada fase en orden.

## FASE 1: MAPEO Y COMPRENSIÓN
1. Escanea la estructura del proyecto (`src/`, `app/`, `api/`, `config/`, `tests/`, etc.)
2. Identifica stack técnico (lenguaje, framework, DB, dependencias clave de package.json/cargo.toml/requirements.txt/go.mod)
3. Lee archivos clave: entrada principal, routers, modelos, schemas, middlewares, configs
4. Genera un mapa arquitectónico resumido

## FASE 2: EVALUACIÓN MULTI-EJE
Evalúa cada eje con hallazgos concretos (archivo:línea):

### A. Calidad de Código
- Dead code, imports no usados
- Complejidad ciclomática alta (funciones > 20 líneas)
- Code smells: duplicación, mutación inesperada, acoplamiento excesivo
- Nombres de variables/funciones poco descriptivos
- Manejo de errores (try/catch genéricos, errores silenciados)

### B. Bugs y Lógica
- Condiciones que nunca se cumplen / siempre se cumplen
- Off-by-one, race conditions, async sin await
- Edge cases no manejados (null, undefined, división por cero)
- Type mismatches, coerción implícita peligrosa

### C. Seguridad (OWASP Top 10)
- SQL/NoSQL injection, command injection, path traversal
- XSS (reflejado, almacenado, DOM-based)
- Secrets hardcodeados (API keys, tokens, passwords)
- Autenticación: JWT sin expiración, sesiones inseguras, falta de rate limiting
- Autorización: falta de validación de roles/permisos
- Headers de seguridad faltantes (CSP, CORS mal configurado, HSTS)
- Dependencias con vulnerabilidades conocidas

### D. Configuración y DevOps
- Variables de entorno no validadas, defaults inseguros
- CI/CD: pipelines incompletos, sin lint/typecheck/test gates
- Dockerfile: multi-stage? capas innecesarias? imágenes pesadas?
- Deploy: health checks, readiness probes, startup probes
- Logging: logs con datos sensibles, sin niveles, sin structured logging

### E. Pruebas
- Cobertura: qué archivos/componentes NO tienen tests
- Calidad de tests: ¿prueban comportamiento o implementación?
- Tests flaky, sin mocks/external services
- Faltan: tests de integración, E2E, security tests, edge cases

## FASE 3: DIAGNÓSTICO PRIORIZADO
Clasifica cada hallazgo con:
- **CRITICAL**: Provoca data loss, security breach, crash en producción
- **HIGH**: Bug funcional, performance issue, mala práctica grave
- **MEDIUM**: Code smell, falta de tests, mejora menor
- **LOW**: Style, naming, sugerencia

Entrega como tabla: | Prioridad | Eje | Archivo:Línea | Hallazgo | Acción Requerida |

## FASE 4: PLAN DE ACCIÓN
Genera un plan con sprints/paquetes de trabajo ordenados:
1. Quick wins (CRITICAL + fáciles)
2. Seguridad y estabilidad (CRITICAL/HIGH)
3. Bugs funcionales (HIGH)
4. Deuda técnica (MEDIUM)
5. Pruebas y cobertura
6. Mejores prácticas y polish (LOW)

Cada ítem debe tener: archivo, cambio específico, esfuerzo estimado (minutos).

## FASE 5: EJECUCIÓN
Tras mi aprobación del plan, ejecuta los cambios:
- Corrige bugs críticos y high
- Parches de seguridad (OWASP)
- Arregla configuraciones
- Añade pruebas faltantes
- Cada cambio debe ser atómico y explicado

## REGLAS
- NO asumas nada: lee el código real, no inventes hallazgos
- Si un hallazgo necesita confirmación humana, márcalo con `[?]`
- Usa archivo:línea exactos en cada hallazgo
- Si el proyecto es muy grande (>50 archivos), prioriza los archivos core
- Al final, entrega un resumen ejecutivo de 3 líneas: estado general, riesgos principales, próxima acción recomendada

Comments (0)

Related Skills

Post-Implementation Audit

Skill

A read-only post-implementation audit workflow for coding agents. Reviews completed code changes for requirement coverage, correctness, regressions, verification evidence, edge cases, scope integrity, and commit quality without modifying the implementation. Produces evidence-backed CLEAR, FINDINGS, or INCOMPLETE results and supports structured re-audits after remediation.

s@songolge-lab
1

Flaky Test Detector

Skill

Finds flaky tests from repeated CI runs: parses JUnit XML or a CSV run history, flags tests that both pass and fail (confirmed when on the same commit), ranks them by flip and failure rate, and suggests likely causes and fixes. Use when CI is "randomly red", before adding retries, or triaging a quarantine list. Includes a stdlib Python detector with --self-test.

F@f
1

Regex Pattern Explainer and Tester

Skill

Explains Python regular expressions token by token, tests them on must-match and must-not-match samples with spans and named groups, and flags risky patterns: nested quantifiers that backtrack catastrophically, [A-z], unescaped dots, empty matches, and missing anchors, then proposes a safer rewrite. Use when a user asks "what does this regex do?", "why doesn't it match?", or "is this regex safe?". Includes a tested stdlib Python checker.

F@f
0

Gitignore Pattern Tester and Reviewer

Skill

Explains every line of a .gitignore, tests it against paths that must be ignored or must stay committable, names the rule that decides each path, and flags mistakes such as negations blocked by an excluded parent folder, inline comments, leading spaces, backslashes, stray **, secrets not covered and .env.example ignored. Returns a fixed file. Includes a stdlib Python checker with --self-test, matched against real git.

F@f
1

Related Bots

Docs Snippet Tester

Bot

Runs the code examples in your README and docs against the latest release, finds snippets that no longer compile or return the wrong output, and drafts the fixed examples for review.

1 scheduled routine1 event trigger
F@f1

Mobile Crash Triage

Bot

Watches crash reports for your iOS and Android apps, groups new crashes by root cause, ranks them by how many users and releases they hit, and drafts clear issues with stack traces and repro hints.

1 scheduled routine1 event trigger

Docs Drift Detector

Bot

Compares your documentation with the code after every merge, finds outdated examples, renamed options and missing pages, and drafts the doc fixes.

1 scheduled routine1 event trigger
F@f

Quality Reviewer

Bot

Reviews every PR and gates the merge. Made for the Lean Software Factory team.

1 scheduled routine
E@enesalatas1
F
@f
0
1