rest-endpoint-conventions
ทำอะไรได้บ้าง
Use when adding or modifying a REST endpoint. Enforces the project's auth check, validation, error shape and pagination conventions.
การติดตั้งจะเปิดรายการนี้ในแอปเดสก์ท็อป AgentsRoom ของคุณ หากยังไม่ได้ติดตั้งแอป ระบบจะพาคุณไปยังหน้าดาวน์โหลด
SKILL.md
---
name: rest-endpoint-conventions
description: Use when adding or modifying a REST endpoint. Enforces the project's auth check, validation, error shape and pagination conventions.
---
# REST endpoint conventions
When adding or modifying a REST endpoint:
1. Auth check FIRST: 401 if unauthenticated, 403 if forbidden — never silently empty.
2. Validate the input with the project's existing validation lib (zod, joi, ...) — do not introduce a new one.
3. Errors return `{ error: "CODE", message: "<human-readable>" }`. Status codes follow REST semantics (400 / 404 / 409 / 422 / 500).
4. List endpoints paginate by default (cursor or offset, match what the project already does).
5. Side effects (emails, webhooks) fire AFTER the DB commit, never inside the transaction.
แท็ก
เจาะลึกเพิ่มเติม
โฆษณา Claude: ทักษะ Claude Code ที่ตรวจสอบบัญชีโฆษณาของคุณ
โฆษณา Claude เป็นทักษะโอเพนซอร์สสำหรับ Claude Code: การตรวจสอบมากกว่า 250 รายการบน Google, Meta, LinkedIn, TikTok หรือ Amazon Ads, คะแนนจาก 100 และแผนปฏิบัติการที่จัดลำดับความสำคัญในประมาณสิบ นาที ติดตั้ง คำสั่ง ข้อจำกัด และวิธีการจัดการมันใน AgentsRoom.
AGENTS.md: ไฟล์บริบทเดียวสำหรับทุกเอเจนต์การเขียนโค้ด (Codex, Antigravity, Claude)
AGENTS.md คือไฟล์คำแนะนำที่พกพาได้ซึ่งเอเจนต์การเขียนโค้ด AI ของคุณอ่านก่อนที่จะสัมผัสโค้ดของคุณ ว่าควรใส่อะไรในนั้น มันแตกต่างจาก CLAUDE.md อย่างไร และจะรักษาบริบทเดียวกันระหว่าง Codex, Antigravity และ Claude ได้อย่างไร
ดาวน์โหลด AgentsRoom
รันเอเจนต์ AI ทั้งหมดของคุณในทุกโปรเจกต์ จากหน้าต่างเดียว
แอปคู่หู: ตรวจสอบเอเจนต์ของคุณได้ทุกที่
นำของคุณเอง: Claude, Codex, Antigravity CLI, หรือผู้ให้บริการ AI อื่น ๆ
ส่งข้อบกพร่องและคำขอไปยังแบ็คล็อกสาธารณะของคุณโดยตรง
มองเห็น AgentsRoom ในการทำงาน