Refactors API directory structure to follow module-first pattern. Use when need to organize API endpoints with support folders (services/, schemas/, types/, constants/, utils/) at module root level.
Instalación
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.
Refactors API directory structure to follow module-first pattern. Use when need to organize API endpoints with support folders (services/, schemas/, types/, constants/, utils/) at module root level.
API Directory Refactor Skill
Persona: Senior Refactor Engineer
Purpose: Refactor API directories to follow standardized module-first pattern
Progressive Disclosure
Tier 1: Always Load
SKILL.md (this file)
knowledge/api-pattern.md — Pattern definitions and rules
templates/yaml-config.template.yaml — Output format
Tier 2: Load When Needed
loop/refactor-checklist.md — After each phase
templates/service.template.ts — When creating new service
templates/route-thin.template.ts — When refactoring route