一键导入
api-best-practices
Apply modern standards and best practices for designing scalable, secure, and maintainable REST APIs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Apply modern standards and best practices for designing scalable, secure, and maintainable REST APIs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Configure Aspire AppHost to emit explicit app config via environment variables; keep app code free of Aspire clients and service discovery.
Write integration tests using .NET Aspire's testing facilities with xUnit. Covers test fixtures, distributed application setup, endpoint discovery, and patterns for testing ASP.NET Core apps with real dependencies.
Test email sending locally using Mailpit with .NET Aspire. Captures all outgoing emails without sending them. View rendered HTML, inspect headers, and verify delivery in integration tests.
Provides guidance for implementing OpenTelemetry instrumentation in .NET codebases, covering tracing (Activities/Spans), metrics, naming conventions, error handling, performance, and API design best practices.
GitHub Copilot Agent Skills catalog from awesome-copilot repository. Trigger: When user wants to browse, search, or use Agent Skills from the awesome-copilot collection.
Use when generating or updating a CHANGELOG.md file, writing release notes, or summarizing changes between versions based on git commits or PR history.
| name | api-best-practices |
| description | Apply modern standards and best practices for designing scalable, secure, and maintainable REST APIs. |
Designing a robust REST API is critical for frontend-backend communication and third-party integrations. This skill covers the structural rules, status codes, naming conventions, and security measures essential for building professional APIs. Invoke this skill when architecting a new backend service, refactoring existing endpoints, or reviewing API designs.
/v1/, header, or query param)./users, /orders, /products). Use plurals consistently.GET: Retrieve a resource or collection.POST: Create a new resource.PUT: Completely replace an existing resource.PATCH: Partially update an existing resource.DELETE: Remove a resource./users/123/orders is good; /users/123/orders/456/items/789 is bad.{ "error": { "code": 404, "message": "Not found" } }). Use correct HTTP status codes (2xx for success, 4xx for client errors, 5xx for server errors).POST /articles, not POST /createArticle).