api-analyzer
Check a single pasted HTTP request (curl command, method + URL, headers, body, auth, query params) for correctness and answer with a one-line verdict and fix. Use when the user asks whether a specific API call is right or why it fails; use designing-apis to design or review an API itself.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- api-analyzer
- risk
- none
- source
- https://github.com/LambdaTest/agent-skills/tree/main/api-skill/api-analyzer
- license
- MIT
- date_added
- 1782864000000
- description
- Check a single pasted HTTP request (curl command, method + URL, headers, body, auth, query params) for correctness and answer with a one-line verdict and fix. Use when the user asks whether a specific API call is right or why it fails; use designing-apis to design or review an API itself.
- source_repo
- LambdaTest/agent-skills
- source_type
- community
- license_source
- https://github.com/LambdaTest/agent-skills/blob/main/LICENSE
03 SKILL.md 正文
API Analyzer
When to Use
Use when user pastes one concrete API call (curl command, HTTP request, or method + URL + headers + body) and asks whether it is correct, why it is rejected, or what is missing. Not for designing endpoints or reviewing whole API (use designing-apis).
Job: validate API request, respond in one line (two at most if needed). Strict, efficient reviewer: no padding, no explanation beyond what's necessary.
Output Rules
- ✅ If correct: one line —
Looks correct.orValid request. - ❌ If incorrect: one line — error + one-line fix. Example:
Missing Authorization header — add \Authorization: Bearer <token>`.` - ⚠️ If ambiguous: ask one targeted question before validating. Never more than one question at a time.
When to Ask a Question
Ask only if answer could flip assessment. Examples:
- POST/PUT/PATCH with no body → ask:
Is there a request body? - No auth header on likely-protected endpoint → ask:
Does this endpoint require authentication? - Ambiguous content-type with 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
- Method — correct verb for operation (GET has no body; POST/PUT/PATCH usually do)
- URL — well-formed, no obvious typos, path params filled in
- Headers — Content-Type matches body format; Authorization present if endpoint seems protected
- Body — valid format per Content-Type; required fields present if schema known
- Query params — required ones present, correctly encoded
- Auth — token/key format fits scheme (Bearer, Basic, API key)
Response Format
[✅/❌/⚠️] <one-line verdict or question>
Skip emoji if 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
→ Looks correct.
User: POST /orders — Header: Content-Type: application/json — Body: {"item":"shoe"}
→ Looks correct.
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 header is unnecessary on a DELETE with no body — remove it.
User: GET /search — Body: {"q":"test"}
→ GET requests should not have a body — move \q` to a query param: `/search?q=test`.`
Accuracy Notes
- Judge against API's own docs or OpenAPI spec when user provides them or they are in repository; otherwise judge only general HTTP correctness and say so if verdict depends on specific API.
- Never echo real tokens or API keys back in full; call them
<token>.
04 同仓库更多 Skills
wiki-builder
Create and maintain a local Markdown research wiki (sources with provenance, compiled concept/source pages, index, maintenance log) driven by a per-wiki config. Use when the user wants to start a wiki or knowledge base, ingest sources into one, or query and update it; use wiki-page-writer for a single code deep-dive page.
refactoring-guru
Diagnose a named code smell and apply the smallest behavior-preserving refactoring, with verification before and after and an explicit stop condition. Use for structural refactors (extract, move, consolidate, change ownership), not for feature or bug work; for readability cleanup of recent changes use code-simplification.
legacy-seams
When changing untested legacy code, pin the observed results with characterization tests and open the smallest seam that substitutes only the blocking dependency, separate from any later logic change. Use when a clock, random source, I/O, global, or hidden constructor blocks a test or a safe edit. Use test-driven-development for a new behavior or a bug, refactoring-guru for one named structural refactor after the seam exists, and code-refactoring-tech-debt to choose which legacy to replace.
idea-refine
Refine a raw idea into a one-page brief (problem statement, recommended direction, assumptions to validate, MVP scope, not-doing list) through divergent then convergent thinking. Use when an idea is still vague or you want options and a stress test before committing; use interview-me when the goal itself is unclear and spec-driven-development once the direction is chosen.
code-review-and-quality
Review rubric and approval standard for any change before merge, including code written by you, another agent, or a human: five axes (correctness, readability, architecture, security, performance), change sizing, structural remedies, severity labels, and feedback technique. Use to judge whether a change is fit to merge; use code-review to run a PR or diff review end to end.
code-perfection
Smell and style gate for code you write or change. Bans known code smells (long method, large class, primitive obsession, long parameter list, data clumps, duplicate code, dead code, feature envy, shotgun surgery, flag arguments, message chains) and enforces behavior-preserving structure. On Scala files, enforces worxbend style. Use while implementing, reviewing a diff for smells, or when a smell or style violation is suspected. Routine construction stays with code-complete. SOLID and DRY stay with clean-code-guard. One named structural refactor stays with refactoring-guru.