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.
التثبيت
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
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