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.
Installation
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
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