Ralph
Implementa un issue de GitHub end-to-end (modelos → schemas → repositorios → servicios → endpoints → migración → tests → handoff)…
Claude CodeGeneric
---
description: Implementa un issue de GitHub end-to-end (modelos → schemas → repositorios → servicios → endpoints → migración → tests → handoff). Uso: /ralph <número_de_issue>
---
Ejecuta el script de automatización Ralph para implementar el issue #$ARGUMENTS end-to-end.
Corre el siguiente comando bash y sigue su ejecución:
```bash
bash ralph/once.sh $ARGUMENTS
Si el script falla porque falta GITHUB_TOKEN, pídele al usuario que lo exporte:
export GITHUB_TOKEN=<su_token>
Si el script falla porque falta jq o curl, instálalos o usa la alternativa con gh:
GITHUB_REPO="${GITHUB_REPO:-JohnEduar/reservas-ia}"
gh issue view $ARGUMENTS --repo "$GITHUB_REPO" --json title,body,labels,comments
Una vez tengas el contenido del issue, implementa end-to-end siguiendo el orden:
- Lee todos los archivos relevantes antes de editar cualquiera.
- Models — agrega modelos SQLAlchemy en
backend/app/models/si se necesitan. - Schemas — agrega schemas Pydantic v2 con patrón Create/Update/Response.
- Repository — agrega clase que extiende
BaseRepository. - Service — agrega servicio con clases de excepciones tipadas. Sin try/except en servicios.
- Endpoints — agrega router limpio. Sin try/except. Registra en
backend/app/api/v1/router.py. - Exception handler — agrega nuevas excepciones a
_EXCEPTION_STATUS_MAPenbackend/app/core/exception_handlers.py. - Migration — crea migración Alembic con nombre descriptivo. Ajusta
down_revisiona la última migración existente. - Tests — agrega
backend/tests/test_<feature>.py. Cubre: happy path, 401, 403, 404, 409, 422 según aplique. - Handoff — agrega entrada en
handoffs.mddescribiendo lo construido.
No hagas commit. No inicies el servidor. ```
Maintain Ralph?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[Ralph on getagentictools](https://getagentictools.com/loops/johneduar-ralph?ref=badge)