api-designer
Skill này làm gì
Công cụ này tạo một kế hoạch chi tiết về cách các phần khác nhau của phần mềm có thể giao tiếp với nhau qua internet (gọi là endpoint REST API). Nó xác định mỗi “cánh cửa” giao tiếp làm gì, gửi và nhận thông tin gì và xử lý lỗi thế nào.
Khi nào nên dùng
- ✓Khi bạn cần lên kế hoạch cách ứng dụng giao tiếp với các dịch vụ khác.
- ✓Khi tạo cấu trúc cơ bản cho một hệ thống hoặc tính năng mới.
- ✓Khi xác định các “điểm vào dữ liệu” cho website hoặc ứng dụng.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/api-designer/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tạo các endpoint REST API cho một hệ thống quản lý công việc đơn giản, gồm người dùng, công việc và bình luận.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
AI phân tích mô tả hệ thống của bạn và tạo danh sách các “cánh cửa” (endpoint) mà phần mềm có thể dùng. Với mỗi cánh cửa, nó mô tả cách gọi (phương thức, đường dẫn), dữ liệu gửi đi (request body), phản hồi thành công mong đợi và các lỗi có thể xảy ra.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Supporting material availability
This catalog copy contains the inline guidance below, but does not include the following supporting paths. They are external prerequisites, not bundled files:
<support-root>/references/domains.md<support-root>/references/testmu_example.md
Obtain the required material from the declared upstream source, or from a user-provided installation of that source. Resolve each path relative to that installation, inspect its contents, and verify any applicable license and execution prerequisites. Do not run a command or claim a referenced procedure was followed until its required file exists. Do not fabricate the missing scripts or treat an unrelated file with the same name as equivalent. Independent steps fully documented here can proceed within the user’s authorized scope; report any dependent step as unavailable.
API Designer Skill
When to Use
Use this skill when you need generates complete, production-ready REST API endpoint specifications for any system or domain the user describes. Use this skill whenever the user asks about API design, API endpoints, REST APIs, API URLs, or says things like "what endpoints do I need for...", "design an API for...",...
You are an expert API architect.
Ask the user if they want just the endpoints or complete detailed response (Enpoints Only/Detail Design). Do not ask these options if the user has specified the details of his requirement in the input already. If the user says Endpoints Only:
- Output only the endpoints If the user says Detail Design:
- Output complete design as the structure described in this skill.
Output Format
First list down all the endpoints one after another as output then expand each in this exact structure for each endpoint group (resource):
RESOURCE NAME
METHOD /path/to/endpoint
Short description of what this endpoint does. Not more than two lines.
Headers
| Header | Value | Required |
|---|---|---|
Content-Type |
application/json |
Yes |
Authorization |
Bearer <token> |
Yes/No |
X-Api-Key |
<api-key> |
Yes/No |
| (add others as relevant) |
Request Body (omit for GET/DELETE if no body)
{
"field": "type — description",
"field2": "type — description"
}
Success Response — STATUS_CODE Description
{
"field": "value or type"
}
Error Codes
| Code | Meaning |
|---|---|
400 |
Bad Request — invalid or missing fields |
401 |
Unauthorized — missing or invalid token |
403 |
Forbidden — insufficient permissions |
404 |
Not Found |
409 |
Conflict — e.g. duplicate resource |
422 |
Unprocessable Entity — validation failed |
500 |
Internal Server Error |
Rules for Output
- Cover all major resources for the described system. Infer resources if the user doesn't list them.
- Always include CRUD (Create, Read, Update, Delete) where applicable, plus domain-specific actions.
- Use RESTful conventions: plural nouns for collections, nested paths for relationships (e.g.
/hotels/{id}/rooms). - Auth: Default to Bearer token (JWT) for protected routes. Add API key header where relevant (e.g. third-party integrations). Mark public endpoints clearly.
- Request body: Show realistic JSON with field names, types, and brief descriptions. Mark required vs optional fields in comments.
- Responses: Show the success response shape with realistic fields. Always include the HTTP status code.
- Error codes: List the relevant subset per endpoint — don't always paste all 7. Use judgement.
- Pagination: For list endpoints, include query params (
page,limit,sort,filter) and wrap responses in a paginated envelope. - Versioning: Prefix all paths with
/api/v1/unless the user specifies otherwise. - Group endpoints by resource (e.g. "Authentication", "Hotels", "Rooms", "Bookings", "Payments", "Reviews").
Pagination Envelope (for list endpoints)
{
"data": [...],
"pagination": {
"total": 100,
"page": 1,
"limit": 20,
"totalPages": 5
}
}
Common Auth Patterns
Choose based on context:
| Scenario | Auth Method |
|---|---|
| User-facing apps | Authorization: Bearer <JWT> |
| Server-to-server | X-Api-Key: <key> |
| Public endpoints | No auth header needed |
…
Câu hỏi thường gặp
REST API endpoint là gì?
Đó giống như một địa chỉ cụ thể trên internet mà một chương trình dùng để yêu cầu hoặc gửi thông tin đến chương trình khác. Ví dụ, một địa chỉ để “liệt kê tất cả công việc” hoặc “tạo công việc mới”.
“Production-ready” nghĩa là gì?
Nghĩa là kế hoạch do AI tạo ra tuân theo các thực hành tốt nhất và sẵn sàng dùng trong hệ thống thật, an toàn và hiệu quả.
AI có viết code API không?
Không, công cụ này chỉ tạo “kế hoạch” hoặc “đặc tả” về cách API nên hoạt động. Code thực tế cần được lập trình viên viết.
Chi tiết
Mô tả gốc của tác giả
Generates complete, production-ready REST API endpoint specifications for any system or domain the user describes.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #3767
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
canvas
394kCho phép agent của bạn hiện một widget trực quan được lưu trữ trên bảng Mac đã kết nối, rồi ẩn bảng hoặc chuyển nó sang trang khác.
control-ui
394kGiúp agent của bạn sắp xếp và khắc phục sự cố Control UI của OpenClaw, gồm các phiên, bảng điều khiển và Gateway đã kết nối.
diagram-maker
394kGiúp agent của bạn vẽ sơ đồ rõ ràng dạng SVG, HTML hoặc Excalidraw có thể sửa, cho quy trình, kiến trúc hệ thống và bản phác bảng trắng.