API Route Readability

Reviews and optionally refactors Next.js App Router handlers under src/app/api for human-scannable style: nested ternaries in status/guards, early returns, named booleans, and JSDoc on routes. Use when the user mentions API 接口格式, route 可读性, nested ternaries in route.ts, src/app/api, 嵌套三元, or asks to clean up API handler formatting without changing behavior.

hyk260 3210ab8 2 files · 8.5 KB Updated

File contents

hyk260/purechatnext/tree/main/.cursor/skills/api-route-readability commit 3210ab8b06

Frequently asked questions

npx skillmds@latest add hyk260/api-route-readability