بنقرة واحدة
api-patterns
RESTful API design patterns and best practices
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
RESTful API design patterns and best practices
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | api-patterns |
| description | RESTful API design patterns and best practices |
| triggers | ["context","api","backend","endpoint"] |
Purpose: Apply professional RESTful API design principles
This skill provides guidance for designing clean, consistent, and scalable APIs following industry best practices.
/users, /orders, /products/getUsers → ✅ /usersGET /api/v1/users # List users
POST /api/v1/users # Create user
GET /api/v1/users/:id # Get user
PATCH /api/v1/users/:id # Update user
DELETE /api/v1/users/:id # Delete user
/api/v1/, /api/v2/Accept: application/vnd.api+json;version=1{
"data": { ... },
"meta": {
"timestamp": "2026-02-06T00:00:00Z",
"requestId": "uuid"
}
}
{
"error": {
"code": "VALIDATION_ERROR",
"message": "Email is required",
"details": [{ "field": "email", "issue": "required" }]
}
}
| Code | Usage |
|---|---|
| 200 | Success |
| 201 | Created |
| 204 | No Content (delete) |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 409 | Conflict |
| 422 | Unprocessable Entity |
| 500 | Internal Server Error |
{
"data": [...],
"pagination": {
"page": 1,
"limit": 20,
"total": 100,
"totalPages": 5
}
}
| Pattern | Example |
|---|---|
| List | GET /users |
| Create | POST /users |
| Get | GET /users/123 |
| Update | PATCH /users/123 |
| Delete | DELETE /users/123 |
| Nested | GET /users/123/orders |
| Filter | GET /users?status=active |
| Search | GET /users?q=john |
| Sort | GET /users?sort=-createdAt |
Pull request lifecycle domain knowledge — branch strategy detection, PR size classification, confidence-scored review, git-aware context, PR analytics, dependency management, and split/merge/describe operations.
Production readiness audit domains, weighted scoring criteria, and check specifications for the /preflight workflow.
Application scaffolding orchestrator. Creates full-stack applications from requirements, selects tech stack, coordinates agents.
Production deployment workflows, rollback strategies, and CI/CD best practices.
Internationalization and localization patterns for multi-language applications
Mobile UI/UX patterns for iOS and Android. Touch-first, platform-respectful design with React Native/Expo focus.