Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/tools-only/X-Skills --skill debug-api명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
| name | debug-api |
| description | Debug API failures using OpenAPI specs and HTTP logs |
Systematically debug REST API failures by analyzing OpenAPI specifications and HTTP request/response logs.
When the user requests API debugging, follow this comprehensive approach:
Use load_openapi to parse the OpenAPI spec:
- Accepts JSON or YAML format
- Extracts all endpoints, parameters, and expected responses
- Identifies authentication requirements
- Captures base URLs and server information
Example:
load_openapi({
filePath: "/path/to/openapi.yaml",
name: "my-api"
})
Use ingest_logs to import request/response data:
- Supports HAR (HTTP Archive) format from browser DevTools
- Accepts direct log arrays
- Automatically categorizes successful vs failed requests
- Calculates status code and method distributions
Example (HAR file):
ingest_logs({
filePath: "/path/to/requests.har",
format: "har"
})
Example (direct logs):
ingest_logs({
logs: [
{
timestamp: "2025-10-10T12:00:00Z",
method: "POST",
url: "https://api.example.com/users",
statusCode: 400,
requestBody: { "name": "John" },
responseBody: { "error": "Missing required field: email" }
}
]
})
Use explain_failure to understand why requests failed:
- Identifies root causes based on HTTP status codes
- Compares actual behavior with OpenAPI spec expectations
- Suggests specific fixes
- Assesses severity (critical, high, medium, low)
Example:
explain_failure({
logIndex: 0, // Index from ingest_logs
specName: "my-api" // Compare against loaded spec
})
Use make_repro to create cURL commands:
- Generates executable cURL command
- Includes alternative formats (HTTPie, JavaScript fetch)
- Useful for documentation, bug reports, and testing
Example:
make_repro({
logIndex: 0,
includeHeaders: true,
pretty: true // Format for readability
})
The debugging workflow produces:
pretty: true for readable cURL commands (good for docs)pretty: false for one-liner cURL (good for scripts)User: "My API is returning 400 errors, help me debug"
You:
1. First, do you have an OpenAPI spec? If yes, I'll load it.
2. How are you capturing HTTP logs? (HAR file, JSON logs, manual entry?)
3. Let me analyze the failures and suggest fixes.
[After receiving spec and logs]
I've loaded your API spec and found 5 failed requests:
- 3x POST /users → 400 (Missing required field: email)
- 2x GET /users/{id} → 404 (Invalid user ID format)
Let me explain the first failure...
[Uses explain_failure]
Here's a working cURL command to test the fix:
[Uses make_repro]
SOC 직업 분류 기준