मुख्य सामग्री पर जाएँ
Skillpedia
API और सर्वर (backend)12k · #11405

api-designer

यह क्या करती है

यह AI एजेंट को API बनाने से पहले उसके संसाधन, एंडपॉइंट और अनुबंध की योजना बनाने का मार्गदर्शन देती है। यह उन डेवलपर्स और आर्किटेक्ट के लिए है जिन्हें साफ़ API डिज़ाइन चाहिए।

कब इस्तेमाल करें

  • ✓जब आप नई REST या GraphQL API डिज़ाइन कर रहे हैं।
  • ✓जब आपको OpenAPI स्पेसिफ़िकेशन लिखना और जाँचना हो।
  • ✓जब आपको पेजिनेशन, एरर हैंडलिंग या वर्ज़निंग के नियम तय करने हों।

Skill का लिंक

https://github.com/Jeffallan/claude-skills/blob/main/skills/api-designer/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/Jeffallan/claude-skills/blob/main/skills/api-designer/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरे बुकिंग ऐप के लिए एक REST API डिज़ाइन कीजिए और उसका OpenAPI स्पेक लिखिए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट संसाधनों और उनके आपसी संबंधों का मॉडल बनाता है, एंडपॉइंट और schemas तय करता है, और एक OpenAPI 3.1 फ़ाइल लिखता है। फिर वह उसे linter से जाँचता है और mock server पर टेस्ट करता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

API Designer

Senior API architect specializing in REST and GraphQL APIs with comprehensive OpenAPI 3.1 specifications.

Core Workflow

  1. Analyze domain — Understand business requirements, data models, and client needs
  2. Model resources — Identify resources, relationships, and operations; sketch entity diagram before writing any spec
  3. Design endpoints — Define URI patterns, HTTP methods, request/response schemas
  4. Specify contract — Create OpenAPI 3.1 spec; validate before proceeding: npx @redocly/cli lint openapi.yaml
  5. Mock and verify — Spin up a mock server to test contracts: npx @stoplight/prism-cli mock openapi.yaml
  6. Plan evolution — Design versioning, deprecation, and backward-compatibility strategy

Reference Guide

Load detailed guidance based on context:

Topic Reference Load When
REST Patterns references/rest-patterns.md Resource design, HTTP methods, HATEOAS
Versioning references/versioning.md API versions, deprecation, breaking changes
Pagination references/pagination.md Cursor, offset, keyset pagination
Error Handling references/error-handling.md Error responses, RFC 7807, status codes
OpenAPI references/openapi.md OpenAPI 3.1, documentation, code generation

Constraints

MUST DO

  • Follow REST principles (resource-oriented, proper HTTP methods)
  • Use consistent naming conventions (snake_case or camelCase — pick one, apply everywhere)
  • Include comprehensive OpenAPI 3.1 specification
  • Design proper error responses with actionable messages (RFC 7807)
  • Implement pagination for all collection endpoints
  • Version APIs with clear deprecation policies
  • Document authentication and authorization
  • Provide request/response examples

MUST NOT DO

  • Use verbs in resource URIs (use /users/{id}, not /getUser/{id})
  • Return inconsistent response structures
  • Skip error code documentation
  • Ignore HTTP status code semantics
  • Design APIs without a versioning strategy
  • Expose implementation details in the API surface
  • Create breaking changes without a migration path
  • Omit rate limiting considerations

Templates

OpenAPI 3.1 Resource Endpoint (copy-paste starter)

openapi: "3.1.0"
info:
  title: Example API
  version: "1.1.0"
paths:
  /users:
    get:
      summary: List users
      operationId: listUsers
      tags: [Users]
      parameters:
        - name: cursor
          in: query
          schema: { type: string }
          description: Opaque cursor for pagination
        - name: limit
          in: query
          schema: { type: integer, default: 20, maximum: 100 }
      responses:
        "200":
          description: Paginated list of users
          content:
            application/json:
              schema:
                type: object
                required: [data, pagination]
                properties:
                  data:
                    type: array
                    items: { $ref: "#/components/schemas/User" }
                  pagination:
                    $ref: "#/components/schemas/CursorPage"
        "400": { $ref: "#/components/responses/BadRequest" }
        "401": { $ref: "#/components/responses/Unauthorized" }
        "429": { $ref: "#/components/responses/TooManyRequests" }
  /users/{id}:
    get:
      summary: Get a user
      operationId: getUser
      tags: [Users]
      parameters:
        - name: id
          in: path
          required: true
          schema: { type: string, format: uuid }
      responses:
        "200":
          description: User found
          content:
            application/json:
              schema: { $ref: "#/components/schemas/User" }
        "404": { $ref: "#/components/responses/NotFound" }

components:
  schemas:
    User:
      type: object
      required: [id, email, created_at]
      properties:
        id:    { type: string, format: uuid, readOnly: true }
        email: { type: string, format: email }
        name:  { type: string }
        created_at: { type: string, format: date-time, readOnly: true }

    CursorPage:
      type: object
      required: [next_cursor, has_more]
      properties:
        next_cursor: { type: string, nullable: true }
        has_more:    { type: boolean }

    Problem:                       # RFC 7807 Problem Details
      type: object
      required: [type, title, status]
      properties:
        type:     { type: string, format: uri, exampl
अक्सर पूछे जाने वाले सवाल

स्पेक की जाँच कौन-से टूल करते हैं?

यह OpenAPI फ़ाइल को मान्य करने के लिए linter और अनुबंध टेस्ट करने के लिए mock server इस्तेमाल करती है।

क्या यह API वर्ज़निंग कवर करती है?

हाँ। यह वर्ज़निंग, deprecation और बैकवर्ड-कम्पैटिबल बदलावों की योजना बनाती है।

क्या यह पेजिनेशन कवर करती है?

हाँ। यह cursor, offset और keyset पेजिनेशन पैटर्न कवर करती है।

जानकारी

लेखक का मूल विवरण

Use when designing REST or GraphQL APIs, creating OpenAPI specifications, or planning API architecture. Invoke for resource modeling, versioning strategies, pagination patterns, error handling standards.

repo: Jeffallan/claude-skills

लोकप्रियता

GitHub स्टार
12k
रैंकिंग में स्थान
#11405
लाइसेंस
MIT
अपडेट की गई
30/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

angular-architect

12k

आपके एजेंट को standalone कॉम्पोनेंट, lazy-loaded रूटिंग, NgRx स्टेट, RxJS पैटर्न और परफ़ॉर्मेंस सुधार के साथ Angular 17 और नए ऐप बनाने में मदद करती है।

कोडिंगवेबसाइट और UI (frontend)

architecture-designer

12k

आपके एजेंट को सिस्टम आर्किटेक्चर डिज़ाइन करने, पैटर्न और तकनीकों की तुलना करने, और हर चुनाव समझाने वाले Architecture Decision Records लिखने में मदद करती है।

कोडिंगसामान्य कोडिंग

atlassian-mcp

12k

MCP के ज़रिए Jira इश्यू खोजने और अपडेट करने, और Confluence पेज संभालने में मदद करती है, JQL और CQL क्वेरी, स्प्रिंट और दस्तावेज़ सिंक के साथ।

प्रोडक्टिविटीटास्क और प्रोजेक्ट

chaos-engineer

12k

आपके एजेंट को नियंत्रित केओस प्रयोग योजना बनाने में मदद करती है, जो सिस्टम के कुछ हिस्सों को जानबूझकर तोड़ते हैं, ताकि असली विफलता से पहले कमज़ोरियाँ मिलें।

कोडिंगटेस्टिंग

मिलती-जुलती skills