Langsung ke konten
Skillpedia
API & server (backend)48k Β· #3763

api-analyzer

Fungsinya

Alat ini memeriksa apakah permintaan ke layanan internet (disebut API) ditulis dengan benar sesuai aturan yang diberikan. Alat ini tidak menjalankan permintaan tersebut dan tidak memverifikasi apakah kredensial Anda (seperti kata sandi atau kunci) sudah benar, hanya formatnya saja.

Kapan dipakai

  • βœ“Saat Anda punya permintaan API yang sudah ditulis dan ingin tahu apakah sintaksisnya benar.
  • βœ“Untuk membantu men-debug endpoint API yang tidak bekerja seperti yang diharapkan.
  • βœ“Untuk memeriksa apakah permintaan API mengikuti aturan sebelum dikirim.

Link skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/api-analyzer/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/api-analyzer/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œPeriksa permintaan ini: POST /users dengan body {"name": "Ana"} dan header Content-Type: application/json”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Alat ini membandingkan detail permintaan Anda (seperti method, alamat, header, body, dan autentikasi) dengan aturan yang telah diberikan. Jika semuanya cocok, alat ini menyatakan bahwa permintaannya benar. Jika ada error, alat ini akan menunjukkannya dan memberikan saran cara memperbaikinya.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

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 β†’ Is there a request body? POST to /checkout typically requires one.

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.
Pertanyaan umum

Apa arti 'contract'?

Contract (kontrak) adalah kumpulan aturan yang mendefinisikan bagaimana sebuah permintaan API harus dibuat, termasuk informasi apa yang diharapkan dan dalam format apa.

Apakah alat ini benar-benar mengirim permintaan API?

Tidak, alat ini hanya memeriksa sintaksis permintaan. Alat ini tidak mengirimnya ke server maupun menguji kredensial Anda.

Apa yang terjadi jika permintaannya salah?

Alat ini akan menyebutkan errornya dan memberikan saran sederhana tentang cara memperbaikinya.

Detail

Deskripsi asli dari pembuat

Validates whether an API request is correct based on provided inputs (method, URL, headers, body, auth, query params).

repo: sickn33/agentic-awesome-skills

Popularitas

Bintang GitHub
48k
Peringkat
#3763
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa