Skills Plugins MCP Prompt Model 博客 我的中心
開発 #design #api #ai

api-design-principles

Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.

DeepseekModel キュレーション済みスキル 品質 優秀 · 90 v1.0.0

取得

https://deepseekmodel.com/api/download.php?id=wshobson-agents-plugins-backend-development-skills-api-design-principles-skill-md&format=skill
ダウンロード .skill 標準形式。system_prompt と model_config を収録し、任意の Agent で利用可能
.skill ファイルの system_prompt フィールドの実際の内容。
name api-design-principles description Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards. API Design Principles Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers and stand the test of time. When to Use This Skill Designing new REST or GraphQL APIs Refactoring existing APIs for better usability Establishing API design standards for your team Reviewing API specifications before implementation Migrating between API paradigms (REST to GraphQL, etc.) Creating developer-friendly API documentation Optimizing APIs for specific use cases (mobile, third-party integrations) Core Concepts 1. RESTful Design Principles Resource-Oriented Architecture Resources are nouns (users, orders, products), not verbs Use HTTP methods for actions (GET, POST, PUT, PATCH, DELETE) URLs represent resource hierarchies Consistent naming conventions HTTP Methods Semantics: GET : Retrieve resources (idempotent, safe) POST : Create new resources PUT : Replace entire resource (idempotent) PATCH : Partial resource updates DELETE : Remove resources (idempotent) 2. GraphQL Design Principles Schema-First Development Types define your domain model Queries for reading data Mutations for modifying data Subscriptions for real-time updates Query Structure: Clients request exactly what they need Single endpoint, multiple operations Strongly typed schema Introspection built-in 3. API Versioning Strategies URL Versioning: /api/v1/users /api/v2/users Header Versioning: Accept: application/vnd.api+json; version=1 Query Parameter Versioning: /api/users?version=1 Detailed patterns and worked examples Detailed pattern documentation lives in references/details.md . Read that file when the navigation tier above is insufficient. Best Practices REST APIs Consistent Naming : Use plural nouns for collections ( /users , not /user ) Stateless : Each request contains all necessary information Use HTTP Status Codes Correctly : 2xx success, 4xx client errors, 5xx server errors Version Your API : Plan for breaking changes from day one Pagination : Always paginate large collections Rate Limiting : Protect your API with rate limits Documentation : Use OpenAPI/Swagger for interactive docs GraphQL APIs Schema First : Design schema before writing resolvers Avoid N+1 : Use DataLoaders for efficient data fetching Input Validation : Validate at schema and resolver levels Error Handling : Return structured errors in mutation payloads Pagination : Use cursor-based pagination (Relay spec) Deprecation : Use @deprecated directive for gradual migration Monitoring : Track query complexity and execution time Common Pitfalls Over-fetching/Under-fetching (REST) : Fixed in GraphQL but requires DataLoaders Breaking Changes : Version APIs or use deprecation strategies Inconsistent Error Formats : Standardize error responses Missing Rate Limits : APIs without limits are vulnerable to abuse Poor Documentation : Undocumented APIs frustrate developers Ignoring HTTP Semantics : POST for idempotent operations breaks expectations Tight Coupling : API structure shouldn't mirror database schema
このスキルを起動するキーワード。クリックでコピーできます。

このスキルにはトリガーワードがありません。

ダウンロードした .skill に含まれるフィールド。
フィールド 説明
formatフォーマット識別子(skill/v1)
skill_idスキル固有 ID
nameスキル名
versionバージョン
description説明
categoryカテゴリ(配列)
trigger_wordsトリガーワード
tagsタグ
sourceソース
source_urlソース URL(本ページ)
exported_atエクスポート日時(ダウンロード毎)
system_promptシステムプロンプト本文
model_configモデル設定:provider / model / temperature / max_tokens / top_p
examplesサンプル
install_guide各プラットフォームの導入説明(Coze / Dify / Claude / カスタム)
同じスキルを各プラットフォーム形式で出力できます。
.skill 標準形式。system_prompt と model_config を収録し、任意の Agent で利用可能 ダウンロード
.skillpro 拡張形式。scripts / tools / dependencies / hooks を含む ダウンロード
.json 純粋な JSON 出力。system_prompt とモデル設定のみ ダウンロード
Coze frontmatter 付き Markdown。Coze へのインポート用 ダウンロード
Dify Dify DSL。アプリ作成後にそのままインポート ダウンロード

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。