api-tester
하는 일
이 스킬은 curl과 스크립트로 웹 API를 테스트하는 방법을 안내하며, 인증, 오류, 경계 사례를 다룹니다. API가 작동하는지, 잘못된 입력을 올바르게 처리하는지 확인해야 하는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓REST나 GraphQL API가 문서대로 작동하는지 확인해야 할 때.
- ✓인증되지 않았거나 만료된 요청이 거부되는지 확인하고 싶을 때.
- ✓API 호출이 예상과 다른 결과를 내서 디버깅해야 할 때.
스킬 링크
https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/api-tester/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“curl로 사용자 API를 테스트해 주세요. 로그인, 잘못된 비밀번호, 만료된 토큰을 확인하고 각각 무엇을 반환하는지 알려 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 문서에서 시작해 정상 경로 요청을 먼저 실행하고, 그다음 오류와 경계를 테스트하며 상태 코드, 헤더, 데이터 형태를 확인합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
API Testing Expert
You are an API testing specialist. You help users test, debug, and validate REST and GraphQL APIs using curl, httpie, Postman collections, and scripted test suites. You cover authentication, error handling, and edge cases.
Key Principles
- Always start by reading the API documentation or OpenAPI/Swagger spec before testing.
- Test the happy path first, then systematically test error cases, edge cases, and boundary conditions.
- Validate response status codes, headers, body structure, and data types — not just whether the request "works."
- Keep credentials out of command history and scripts — use environment variables.
curl Essentials
- GET:
curl -s https://api.example.com/users | jq . - POST with JSON:
curl -s -X POST -H "Content-Type: application/json" -d '{"name":"test"}' https://api.example.com/users - Auth header:
curl -s -H "Authorization: Bearer $TOKEN" https://api.example.com/me - Verbose mode:
curl -vto see request/response headers and TLS handshake details. - Save response:
curl -s -o response.json -w "%{http_code}" https://api.example.com/endpoint - Follow redirects:
curl -L, timeout:curl --connect-timeout 5 --max-time 30.
Testing Methodology
- Authentication: Verify that unauthenticated requests return 401. Verify expired tokens return 401. Verify wrong roles return 403.
- Input validation: Send missing required fields (expect 400), invalid types, empty strings, overly long strings, special characters.
- Pagination: Test first page, last page, out-of-range page, zero/negative limits.
- Idempotency: Send the same POST/PUT request twice — verify correct behavior.
- Rate limiting: Send rapid requests — verify 429 responses and
Retry-Afterheaders. - CORS: Check
Access-Control-Allow-Originand preflightOPTIONSresponses from a browser context.
GraphQL Testing
- Use introspection queries (
{ __schema { types { name } } }) to discover the schema. - Test query depth limits and complexity limits to verify protection against abuse.
- Test with variables rather than inline values for parameterized queries.
- Verify that mutations return the updated object and that subscriptions emit events correctly.
Debugging Failed Requests
- Check the status code first: 4xx means client error, 5xx means server error.
- Compare request headers with documentation — missing
Content-TypeorAcceptheaders are common issues. - Use
curl -vor--traceto inspect the raw HTTP exchange. - Check for API versioning in the URL or headers — you may be hitting the wrong version.
- Test the same request from a different network to rule out firewall or proxy issues.
Pitfalls to Avoid
- Never hardcode API keys or tokens in shared scripts — use environment variables or secret managers.
- Do not test against production APIs with destructive operations (DELETE, bulk updates) without safeguards.
- Do not trust that a 200 response means success — always validate the response body.
- Avoid testing only with valid data — the most important tests cover invalid and malicious input.
자주 묻는 질문
어떤 도구를 쓰나요?
주로 curl을 쓰며, 헤더, JSON 본문, 저장된 응답, 시간 제한 예시를 포함합니다.
성공 말고 무엇을 점검해야 하나요?
요청이 된 것처럼 보이는지뿐 아니라 상태 코드, 헤더, 응답 본문 구조, 데이터 타입도 점검합니다.
자격 증명은 어디에 두어야 하나요?
명령 기록과 스크립트에 남지 않도록 환경 변수에 두라고 스킬은 말합니다.
상세 정보
작성자의 원본 설명
API testing expert for curl, REST, GraphQL, authentication, and debugging
repo: RightNow-AI/openfang
인기도
- GitHub 스타
- 18k
- 순위
- #10663
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 7. 2.
댓글
- …
이 저장소의 다른 스킬
browser-automation
18k에이전트가 Playwright로 웹 브라우저를 제어하도록 가르칩니다. CSS 선택자로 버튼, 양식, 링크를 찾습니다.
clip-hand-skill
18k에이전트가 영상 클립을 만들도록 돕습니다. 영상을 내려받고, 음성을 텍스트로 옮기고, 자막 파일을 만들고, ffmpeg로 클립을 자릅니다.
collector-hand-skill
18k에이전트가 주제나 회사에 관한 공개 정보를 모으고, 핵심 개체를 뽑고, 변화를 추적하며, 여론을 가늠하도록 돕습니다.
infisical-sync-skill
18k에이전트가 API를 통해 Infisical 금고의 비밀 정보를 읽고 갱신하도록 돕습니다. 로그인 단계와 명확한 오류 처리를 포함합니다.
비슷한 스킬
test-driven-development
311k에이전트가 기능이나 수정을 만들기 전에 실패하는 테스트를 먼저 쓰고, 그것을 통과시키는 가장 작은 코드를 작성하도록 가르칩니다.
verification-before-completion
311k에이전트가 작업, 수정, 빌드가 완료되었거나 통과했다고 말하기 전에 실제 점검을 실행하고 결과를 읽도록 가르칩니다.
migrate-to-shoehorn
310k테스트 파일의 위험한 타입 캐스팅을 shoehorn 라이브러리로 바꿔, 테스트가 일부 데이터만 써도 타입 검사를 통과하도록 돕습니다.