# consistent-code-structure > API endpoints should follow the same structure: validation, authorization, business logic, response Use when maintaining consistent code style. Style category skill. - Author: OmniaffixDave - Repository: OmniaffixDave/SessionGuardian - Version: 20260205125233 - Stars: 0 - Forks: 1 - Last Updated: 2026-02-08 - Source: https://github.com/OmniaffixDave/SessionGuardian - Web: https://mule.run/skillshub/@@OmniaffixDave/SessionGuardian~consistent-code-structure:20260205125233 --- --- name: consistent-code-structure description: "API endpoints should follow the same structure: validation, authorization, business logic, response Use when maintaining consistent code style. Style category skill." metadata: category: Style priority: medium is-built-in: true session-guardian-id: builtin_consistent_code_structure --- # Consistent Code Structure API endpoints should follow the same structure: validation, authorization, business logic, response. React components should organize hooks, handlers, and render consistently. Test files should have consistent describe/it structures. When similar operations exist, they should look similar. Consistency enables developers to understand new code quickly by pattern recognition.