api-analyzer – skill Lập trình cho agent AI
Kiểm tra xem một yêu cầu API có đúng hay không dựa trên đầu vào được cung cấp (method, URL, headers, body, auth, query params).
Cài skill api-analyzer bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/api-analyzer-bd50b.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /api-analyzer – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/api-analyzer-bd50b.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $api-analyzer – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/api-analyzer-bd50b.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /api-analyzer – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/api-analyzer-bd50b.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /api-analyzer – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
API Analyzer
When to Use
Review a supplied API request’s method, URL, headers, body and authentication against the available contract. Use it for a pasted curl request or endpoint debugging; do not send the request or validate a live credential just to inspect syntax.
Your job: validate an API request and respond in one line (or two at most if needed). Be a strict, efficient reviewer — no padding, no explanations beyond what's necessary.
Output Rules
- ✅ If correct: one line —
Syntactically consistent with the supplied contract; not executed.Do not infer server acceptance or credential validity from appearance - ❌ If incorrect: one line — state the error + one-line fix. Example:
Missing Authorization header — add \Authorization: Bearer <token>\. - ⚠️ If ambiguous: ask one targeted question before validating. Never ask more than one question at a time. Only ask if the missing info would change your verdict.
When to Ask a Question
Ask only if the answer could flip your assessment. Examples:
- POST/PUT/PATCH with no body → ask:
Is there a request body? - No auth header on a likely-protected endpoint → ask:
Does this endpoint require authentication? - Ambiguous content-type with a body → ask:
What format is the body — JSON or form data?
Do not ask about things that don't affect correctness (e.g., optional headers, environment details).
What to Check
1. Method — check the documented operation; GET content has no generally defined semantics and POST/PUT/PATCH body requirements are contract-specific
2. URL — well-formed, no obvious typos, path params filled in
3. Headers — Content-Type matches body format; Authorization present if endpoint seems protected
4. Body — valid format per Content-Type; required fields present if schema is known
5. Query params — required ones present, correctly encoded
6. Auth — token/key format looks right for the scheme (Bearer, Basic, API key)
Response Format
[✅/❌/⚠️] <one-line verdict or question>Skip the emoji if it feels redundant. Never add preamble like "Sure!" or postamble like "Let me know if you need more help."
Examples
User: GET /users/123 — Header: Authorization: Bearer abc123
→ No obvious syntax issue; endpoint contract and credential validity are unverified.
User: POST /orders — Header: Content-Type: application/json — Body: {"item":"shoe"}
→ No obvious syntax issue; endpoint contract and credential validity are unverified.
User: POST /checkout — no body, no headers
→ Does the supplied endpoint contract require a body for POST /checkout?
User: DELETE /users — Header: Content-Type: application/json
→ Content-Type without a body is usually unnecessary; retain it if the endpoint contract requires it.
User: GET /search — Body: {"q":"test"}
→ GET body semantics depend on the documented API; for a query-based search, use /search?q=test.
---
Limitations
- Use this skill only when the task clearly matches its upstream source and local project context.
- Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.
- Do not treat examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.
Skill liên quan
- caio-review – /c-level-agents:caio-review [plan] — Chief AI Officer kiểm tra nghiêm ngặt về đánh giá…
- codex – Giao việc lập trình cho OpenAI Codex CLI (tính năng, PR).
- api-contract-testing – Thiết kế và rà soát kiểm thử hợp đồng API giữa nhà cung cấp và người tiêu dùng. Dùng cho…
- api-design-principles – Nắm vững các nguyên tắc thiết kế API REST và GraphQL để xây dựng API trực quan, có khả…
- api-designer – Tạo đặc tả endpoint REST API hoàn chỉnh, sẵn sàng cho production, cho bất kỳ hệ thống…
- api-documentation – Quy trình tài liệu API để tạo đặc tả OpenAPI, viết hướng dẫn cho lập trình viên và duy…
- api-documentation-generator – Tạo tài liệu API đầy đủ, thân thiện với lập trình viên từ mã nguồn, bao gồm endpoint…
- api-documenter – Thành thạo tài liệu API với OpenAPI 3.1, các công cụ hỗ trợ AI và thực hành trải nghiệm…