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
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
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