con un clic
bug-investigation
Systematic bug investigation and root cause analysis
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Systematic bug investigation and root cause analysis
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Design RESTful APIs following best practices
Review code quality, patterns, and best practices
Generate commit messages following conventional commits with scope detection
Generate and update technical documentation
Break down features into implementable tasks
Review pull requests against team standards and best practices
| type | skill |
| name | Bug Investigation |
| description | Systematic bug investigation and root cause analysis |
| skillSlug | bug-investigation |
| phases | ["E","V"] |
| generated | "2026-02-08T00:00:00.000Z" |
| status | filled |
| scaffoldVersion | 2.0.0 |
Use this skill when investigating bugs in the Smart Farming application. It provides a systematic approach to trace issues through the Clean Architecture layers.
Determine the category:
Follow the data path through the architecture:
User Action (browser)
→ HTMX request / form submission
→ Flask View (src/app/infra/views/{domain}_views/)
→ Factory (src/app/infra/factories/use_cases/)
→ Use Case (src/app/core/use_cases/{domain}/)
→ Repository (src/app/infra/repositories/{domain}/)
→ MySQL (src/app/infra/database/mysql.py)
→ Database
| Symptom | Where to Look |
|---|---|
| Page not loading | infra/views/ — check route registration, blueprint |
| Form validation error | infra/forms/ — check WTForms validators |
| Data not displaying | infra/repositories/ — check SQL query |
| Wrong calculation | core/use_cases/ — check business logic |
| Chart not rendering | src/ui/static/scripts/ — check JavaScript |
| HTMX not working | Template — check hx-* attributes and target IDs |
| Login failing | infra/authentication/ — check Flask-Login config |
| Database error | infra/database/mysql.py — check connection, query syntax |
| Template error | src/ui/templates/ — check Jinja2 syntax, variable names |
| Scheduled job failing | infra/jobs/ — check APScheduler config |
.env configured? Check MYSQL_DATABASE_*, SECRET_KEYinfra/constants/mysql.py?src/app/)database hostname resolving? (Docker Compose service name)hx-target ID exist in the DOM?{{ form.hidden_tag() }} included in form templates?docker compose uppytest to verify no regressions## Bug Report
**Summary**: (one-line description)
**Layer**: UI / View / Use Case / Repository / Database / Auth
**Steps to Reproduce**:
1. ...
**Expected Behavior**: ...
**Actual Behavior**: ...
**Root Cause**: ...
**Fix Applied**: ...
**Tests Added**: Yes / No