api-analyzer
できること
このツールは、与えられたルールに基づいて、インターネットサービス(APIと呼ばれます)へのリクエストが正しく書かれているかをチェックします。リクエストを実行することはなく、パスワードやキーなどの認証情報が正しいかも確認しません。確認するのは書式だけです。
使う場面
- ✓書いたAPIリクエストの文法が正しいかを確認したいとき。
- ✓思い通りに動かないAPIのエンドポイントをデバッグしたいとき。
- ✓送信する前に、APIリクエストがルールに沿っているかを確認したいとき。
スキルのリンク
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/api-analyzer/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“次のリクエストをチェックしてください:POST /users、ボディ {"name": "Ana"}、ヘッダー Content-Type: application/json”
毎週5つの新しいスキル。1分で読めます。
仕組み
ツールは、リクエストの詳細(メソッド、アドレス、ヘッダー、ボディ、認証など)を、与えられたルールと比較します。すべて一致していれば正しいと判定します。誤りがあれば、その箇所を指摘し、修正方法を提案します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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
- Method — check the documented operation; GET content has no generally defined semantics and POST/PUT/PATCH body requirements are contract-specific
- 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 is known
- Query params — required ones present, correctly encoded
- 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.
よくある質問
「contract」とはどういう意味ですか?
コントラクトとは、APIリクエストの行い方を定めたルールの集まりのことです。どのような情報が必要か、どの形式で書くかなどが含まれます。
ツールは実際にAPIリクエストを送信するのですか?
いいえ。文法をチェックするだけです。サーバーに送信したり、認証情報をテストしたりはしません。
リクエストが間違っていたらどうなりますか?
ツールがエラーを示し、簡単な修正方法を提案します。
詳細
作者による元の説明
Validates whether an API request is correct based on provided inputs (method, URL, headers, body, auth, query params).
人気
- GitHubのスター
- 48k
- ランキング
- #3763
- ライセンス
- MIT
- 更新日
- 2026/10/15
コメント
- …
このリポジトリの他のスキル
00-andruia-consultant
48kエージェントがAIプロジェクトの立ち上げや改善を支援します。コードを分析し、ツールを提案し、スペイン語で行動計画を作成します。
007
48kエージェントがセキュリティ監査と脅威モデリングを行えるようにします。攻撃や脆弱性からプロジェクトを守るのに役立ちます。
10-andruia-skill-smith
48kエージェントがAIツールの作成や改善を支援します。ツールの動作を定義し、ドキュメントを書き、構造を検証します。
20-andruia-niche-intelligence
48kエージェントが特定の業界に関する要約を作成できるようにします。信頼できる情報源を使って、プロジェクトの背景、ルール、利用パターン、リスクを把握するのに役立ちます。
似ているスキル
api-connector-builder
280kエージェントが既存のパターンに従って、新しいAPI連携を構築します。新しい方式を作らずに、もう一つ連携を追加したいときに使います。
api-design
280kエージェントがベストプラクティスに沿ってREST APIを設計できるようにします。APIの通信方法、エラーの表示方法、データの整理方法を決めるのに役立ちます。
backend-patterns
280kエージェントのサーバーサイドのアーキテクチャパターンとデータベースの最適化を支援します。サーバー上で動くコードを作成またはレビューするときに役立ちます。