vuralserhat86/antigravity-agentic-skills/api-design

Claude Code and agent skill by vuralserhat86/antigravity-agentic-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

API tasarımı, GraphQL schema, OpenAPI spec, versioning. ⚠️ Tasarım aşaması için kullan. Uygulama/security için → backend-api.

Install

npx vskill@latest install vuralserhat86/antigravity-agentic-skills/api-design

SKILL.md

🔌 API Design

RESTful ve GraphQL API tasarımı rehberi.

⚡ Quick Reference

HTTP Methods

GET(read) · POST(create) · PUT(full-update) · PATCH(partial) · DELETE

Status Codes

2xx Success · 4xx Client Error · 5xx Server Error

CodeKullanım
200/201/204OK/Created/No Content
400/401/403/404/422Bad/Unauth/Forbidden/NotFound/Validation
500/503Server Error/Unavailable

📐 Endpoint Design

Pattern: /api/v{n}/{resource}/{id?}/{sub-resource?}
✅ GET /api/v1/users
✅ GET /api/v1/users/{id}
✅ POST /api/v1/users
❌ GET /api/v1/getUsers (verb kullanma!)
Query Params

?page=1&limit=20 · ?status=active · ?sort=createdAt&order=desc · ?fields=id,name


📦 Response Format

typescript
// Success
{ success: true, data: T, meta?: { page, total } }
// Error
{ success: false, error: { code: string, message: string, details?: [] } }

🔄 Versioning

YöntemÖrnekÖneri
URL (önerilen)/api/v1/users✅ En yaygın
HeaderAccept: ...version=1Opsiyonel
Query?version=1Kaçın

📊 GraphQL Essentials

graphql
type Query {
user(id: ID!): User
users(filter: Filter, pagination: Pagination): UserConnection!
}
type Mutation {
createUser(input: CreateUserInput!): UserPayload!
}

N+1 Çözümü: DataLoader, Batch loading, Query complexity limiting


📝 OpenAPI Temel

yaml
openapi: 3.0.3
info: { title: API, version: 1.0.0 }
paths:
/users:
get:
responses:
'200': { $ref: '#/components/schemas/UserList' }

API Design v2.0 - Compact

🔄 Workflow

Aşama 1: Design Phase (Spec-First)
  • [ ] Define Resources: Identify nouns (Users, Orders) and relationships.
  • [ ] Draft OpenAPI/Schema: Write openapi.yaml or schema.graphql BEFORE coding.
  • [ ] Mocking: Use tools like Prism/Stoplight to generate mock servers from spec.
  • [ ] Review: Get stakeholder feedback on the mock API.
Aşama 2: Implementation
  • [ ] Codegen: Generate TypeScript types/interfaces from the spec.
  • [ ] Business Logic: Implement controllers/resolvers connecting to services.
  • [ ] Validation: Ensure Zod/Joi schemas match the OpenAPI spec.
Aşama 3: Testing & Security
  • [ ] Contract Testing: Verify implementation matches spec (e.g., using Dredd/Pact).
  • [ ] Security Audit: Check Rate Limiting, AuthN/AuthZ scopes.
  • [ ] Error Handling: Verify standard error responses (RFC 7807).
Aşama 4: Documentation (Auto)
  • [ ] Publish: Deploy Swagger UI / Redoc.
  • [ ] Changelog: Document breaking changes if any (versioning strategy).
Kontrol Noktaları
AşamaDoğrulama
1OpenAPI spec onaylandı (lint geçerli)
2Kod ve Spec tipleri senkronize (codegen)
3Contract testleri geçiyor
4Dokümantasyon canlı ve güncel

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
42
Repository forks
12
7-day trend score
19

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 30 Mar 2026, 8 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/vuralserhat86/antigravity-agentic-skills/api-design/badge)](https://verified-skill.com/skills/vuralserhat86/antigravity-agentic-skills/api-design)

Something wrong with this skill or its page? Tell us.