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 Ads: مهارة Claude Code التي تدقّق حساباتك الإعلانية
Claude Ads مهارة مفتوحة المصدر لـ Claude Code: أكثر من 250 فحصاً على Google وMeta وLinkedIn وTikTok وAmazon Ads، مع درجة من 100 وخطة عمل مرتّبة حسب الأولوية، خلال عشر دقائق تقريباً. التثبيت والأوامر والحدود، وكيفية تشغيلها ضمن AgentsRoom.
AGENTS.md: ملف سياق واحد لكل وكيل برمجة (Codex وAntigravity وClaude)
AGENTS.md هو ملف التعليمات المحمول الذي تقرأه وكلاء البرمجة لديك قبل أن تلمس شيفرتك. ما الذي تضعه فيه، وكيف يختلف عن CLAUDE.md، وكيف تحافظ على سياق واحد عبر Codex وAntigravity وClaude.
تحميل AgentsRoom
شغّل كل وكلاء الذكاء الاصطناعي لديك، في كل مشاريعك، من نافذة واحدة.
التطبيق المرافق: تابع وكلاءك أينما كنت
استخدم Claude أو Codex أو Antigravity CLI أو أي مزود AI آخر.
أرسل الأخطاء والطلبات مباشرة إلى قائمة المهام العامة.