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 के लिए एक ओपन-सोर्स स्किल है: Google, Meta, LinkedIn, TikTok या Amazon Ads पर 250 से ज़्यादा जाँचें, 100 में से एक स्कोर और प्राथमिकता के हिसाब से बनी एक्शन प्लान, वो भी करीब दस मिनट में। इंस्टॉलेशन, कमांड, सीमाएँ, और इसे AgentsRoom में कैसे चलाएँ।
AGENTS.md: हर coding agent के लिए एक ही context file (Codex, Antigravity, Claude)
AGENTS.md वह portable instructions file है जिसे आपके AI coding agents आपके code को छूने से पहले पढ़ते हैं। इसमें क्या डालें, यह CLAUDE.md से कैसे अलग है, और Codex, Antigravity और Claude के बीच एक ही context कैसे बनाए रखें।
AgentsRoom डाउनलोड करें
अपने सभी AI एजेंट्स को, अपने सभी प्रोजेक्ट्स पर, एक ही विंडो से चलाएं।
कंपेनियन ऐप: चलते-फिरते अपने एजेंट्स मॉनिटर करें
Claude, Codex, Antigravity CLI या किसी अन्य AI प्रदाता का उपयोग करें।
बग और अनुरोध सीधे अपने सार्वजनिक बैकलॉग में भेजें।