api-tester
Skill9 starsChanged 3 months agoMITView on GitHub
API 연동 테스트 스킬. 프론트-백엔드 통신 검증, 프록시 설정 확인, CORS, JWT 토큰, 에러 응답, 파일 업로드 테스트. "API 테스트해줘"로 실행.
- Reads credentials
- Sends data out
8 other projects use a version of this.
Adopted by
Most recently taken up by
- trac3r00/core-skillstheir own version, first seen Nov 29, 2026
- laolaoshiren/claude-code-skills-zhtheir own version, first seen Nov 25, 2026
- trac3r00/agent-skillstheir own version, first seen Nov 23, 2026
- iberi22/skillstheir own version, first seen Oct 15, 2026
- zeroclaw-labs/zeroclaw-skillstheir own version, first seen Sep 24, 2026
- Laffey-82/cn-agent-skillstheir own version, first seen Aug 29, 2026
Used with
Projects with it also use log-analyzer.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
nek1987Skilllog-analyzer
Parse and analyze application logs to identify errors, patterns, and insights.
Also in 3 projects that use this
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- laolaoshiren/claude-code-skills-zh★ 927same name
- zeroclaw-labs/zeroclaw-skills★ 65same name
- onlyoneaman/agent-skills★ 10same name
- sumulige/sumulige-claude★ 2same name
- Laffey-82/cn-agent-skills★ 1same name
- iberi22/skills★ 0same name
- trac3r00/agent-skills★ 0same name
- trac3r00/core-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository110 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/orchestrator/mcp-server/AGENTS.mdAGENTS.md
- skills/supabase-postgres-best-practices/AGENTS.mdAGENTS.md
- skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- agent-md-refactorSkill
- agent-team-codexSkill
- agent-teamSkill
- antigravity-mnemoSkill
- antigravitySkill
- api-handoffSkill
- argosSkill
- atlasSkill
- auto-continue-loopSkill
- autoresearchSkill
- biz-strategySkill
- ceoSkill
- clioSkill
- code-reviewerSkill
- codex-mnemoSkill
- codexSkill
- command-creatorSkill
- commit-workSkill
- consistency-auditSkill
- crafting-effective-readmesSkill
- daily-meeting-updateSkill
- database-schema-designerSkill
- datadog-cliSkill
- data-visualizationSkill
- dependency-updaterSkill
- deprecation-and-migrationSkill
- design-planSkill
- design-system-starterSkill
- devin-mnemoSkill
- diagram-designSkill
- docker-db-backupSkill
- docker-deploySkill
- documentation-and-adrsSkill
- docxSkill
- domain-dictionarySkill
- domain-name-brainstormerSkill
- dotnet-coding-standardsSkill
- draw-ioSkill
- estimateSkill
- excalidrawSkill
- excel2mdSkill
- explainSkill
- find-skillsSkill
- flow-verifierSkill
- frontend-designSkill
- fullstack-coding-standardsSkill
- game-changing-featuresSkill
- grok-mnemoSkill
- gs-certificationSkill
- health-dataSkill
- hestiaSkill
- humanizerSkill
- irisSkill
- jiraSkill
- ko-en-translatorSkill
- llm-provider-setupSkill
- The first 60 shown.
The file
Files
API Tester
프론트엔드 ↔ 백엔드 API 연동을 실제로 검증하는 테스트 스킬.
사용법
"로그인 API 테스트해줘"
"프론트-백엔드 연동 검증해줘"
"/api-tester"워크플로우
1. 환경 감지
서버 실행 상태 확인:
# 백엔드 포트 확인
curl -s http://localhost:8000/health || curl -s http://localhost:3001/health
# 프론트엔드 포트 확인
curl -s http://localhost:3000 || curl -s http://localhost:5173프록시 설정 확인 (vite.config.ts, next.config.js, package.json proxy 등):
# Vite 프록시
grep -r "proxy" vite.config.* 2>/dev/null
# Next.js rewrites
grep -r "rewrites\|destination" next.config.* 2>/dev/null
# CRA proxy
grep "proxy" package.json 2>/dev/null2. CORS 검증
# preflight OPTIONS 요청
curl -v -X OPTIONS http://localhost:8000/api/users \
-H "Origin: http://localhost:3000" \
-H "Access-Control-Request-Method: POST" \
-H "Access-Control-Request-Headers: Content-Type,Authorization" \
2>&1 | grep -i "access-control"기대 결과:
Access-Control-Allow-Origin: 프론트엔드 origin 포함Access-Control-Allow-Methods: 필요한 HTTP 메서드 포함Access-Control-Allow-Headers: Content-Type, Authorization 포함Access-Control-Allow-Credentials: true (쿠키 사용 시)
3. 인증 흐름 검증
# 로그인 → 토큰 발급
TOKEN=$(curl -s -X POST http://localhost:8000/api/auth/login \
-H "Content-Type: application/json" \
-d '{"email":"test@example.com","password":"test1234"}' \
| jq -r '.token // .access_token // .accessToken')
echo "Token: ${TOKEN:0:20}..."
# 보호된 API 호출
curl -s http://localhost:8000/api/users/me \
-H "Authorization: Bearer $TOKEN" | jq .
# 만료/잘못된 토큰
curl -s -w "\nHTTP Status: %{http_code}\n" \
http://localhost:8000/api/users/me \
-H "Authorization: Bearer invalid-token"기대 결과:
- 올바른 토큰: 200 + 사용자 정보
- 잘못된 토큰: 401 Unauthorized
- 토큰 없음: 401 또는 403
3-1. API 직접 호출·서버 검증 (관련 API 필수)
상세 기준은 skills/code-reviewer/references/security-audit.md의 API 직접 호출·서버 검증 계약이다.
프로젝트에 없으면 현재 CLI 활성 루트, 이어서 SKILLS-CATALOG.md의 code-reviewer 원본 경로로
해석하고 그 모듈의 참조를 직접 읽는다. source-only를 slash 호출하거나 전역 활성화하지 않는다.
참조 누락은 NOT RUN으로 남긴다. 대상 API에 계약 ID별 사례를 매핑하고 기존 QA의 누락을 보충한다.
UI 입력만으로 끝내지 않고 독립 계정의 직접 HTTP 요청(기존 API 테스트 또는 Playwright request)을 실행한다.
정상 대조군·거부 응답·저장/상태/부수 효과의 전후 비교와 실행 증거를 계약 형식으로 남긴다.
기존 증거는 대상 버전·환경·조건이 같을 때 재사용한다. 서버·계정·관찰 수단 부족은 NOT RUN이며,
필수 사례 미실행을 전체 PASS로 표시하지 않는다. 명시적 UI-only 범위에서는 API 시험을 확장하지 않고
API 보안 검증 제외를 보고한다. 테스트를 통과시키려고 검증을 제거하거나 거부 기대값을 완화하지 않는다.
3-2. 재시도·부분 성공의 신뢰성 (관련 API만)
상태 변경·외부 부수 효과가 있는 API는 위와 같은 경로 해석으로 code-reviewer의
references/reliability-contract.md를 직접 읽고 관련 사례를 기존 QA에 연결한다. 같은 업무 요청의
순차/동시 반복, 커밋 후 응답 유실·재시도, 키 충돌·범위 격리를 계약에 맞게 실행하고 응답과 실제
저장·부수 효과를 대조한다. 메시지 소비·복구까지 요청되면 기존 worker/통합 하네스의 실행 증거를
연결하며 HTTP 성공만으로 그 범위를 PASS 처리하지 않는다. UI-only 범위는 유지하고, 적용 가능한
검사의 참조·환경·관측 수단이 없으면 해당 범위를 NOT RUN으로 남긴다.
4. CRUD 엔드포인트 검증
# CREATE
curl -s -X POST http://localhost:8000/api/items \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-d '{"name":"테스트 항목","description":"테스트용"}' | jq .
# READ (목록) — 페이지네이션 응답 형태 확인 (items + page/size/total 또는 nextCursor)
curl -s "http://localhost:8000/api/items?page=1&size=20" \
-H "Authorization: Bearer $TOKEN" | jq '{count: (.items | length), page, size, total, nextCursor}'
# READ (목록) — size 상한: 큰 값을 요청해도 상한 건수 이하만 와야 함
curl -s "http://localhost:8000/api/items?size=1000" \
-H "Authorization: Bearer $TOKEN" | jq '.items | length'
# READ (목록) — 허용 안 된 정렬 컬럼은 400
curl -s "http://localhost:8000/api/items?sort=password,asc" \
-H "Authorization: Bearer $TOKEN" -w "\nHTTP: %{http_code}\n"
# READ (단건)
curl -s http://localhost:8000/api/items/1 \
-H "Authorization: Bearer $TOKEN" | jq .
# UPDATE
curl -s -X PUT http://localhost:8000/api/items/1 \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-d '{"name":"수정된 항목"}' | jq .
# DELETE
curl -s -X DELETE http://localhost:8000/api/items/1 \
-H "Authorization: Bearer $TOKEN" -w "\nHTTP: %{http_code}\n"5. 에러 응답 검증
# 404 Not Found
curl -s http://localhost:8000/api/items/99999 \
-H "Authorization: Bearer $TOKEN" | jq .
# 400 Bad Request (유효성 검증)
curl -s -X POST http://localhost:8000/api/items \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-d '{"name":""}' | jq .
# 409 Conflict (중복)
curl -s -X POST http://localhost:8000/api/auth/register \
-H "Content-Type: application/json" \
-d '{"email":"test@example.com","password":"test1234"}' | jq .에러 응답 포맷 확인:
{
"error": "EMAIL_DUPLICATE",
"message": "사용자 친화적 메시지",
"details": {}
}error는 프론트가 분기하는 대문자 스네이크 코드, message는 표시용 문구, details는 선택(검증 오류는 { "fields": { "email": "INVALID_FORMAT" } }). 젭마인 api-spec.md Conventions의 공통 에러 형식과 같은 형태입니다.
6. 파일 업로드 검증
# 파일 업로드
curl -s -X POST http://localhost:8000/api/upload \
-H "Authorization: Bearer $TOKEN" \
-F "file=@test-file.pdf" | jq .
# 크기 제한 테스트 (100MB+)
dd if=/dev/zero of=/tmp/large-file.bin bs=1M count=101 2>/dev/null
curl -s -X POST http://localhost:8000/api/upload \
-H "Authorization: Bearer $TOKEN" \
-F "file=@/tmp/large-file.bin" -w "\nHTTP: %{http_code}\n"
rm -f /tmp/large-file.bin7. 응답 시간 검증
# 응답 시간 측정
for endpoint in "/api/health" "/api/users" "/api/items"; do
TIME=$(curl -s -o /dev/null -w "%{time_total}" \
http://localhost:8000$endpoint \
-H "Authorization: Bearer $TOKEN")
echo "$endpoint: ${TIME}s"
done기준: 일반 API < 500ms, 목록 API < 1000ms, 파일 업로드 < 5000ms
체크리스트
필수 (CRITICAL)
- CORS 설정 올바름 (preflight 통과)
- 프록시 경로 정상 작동 (
/api/*→ 백엔드) - JWT 토큰 발급/검증 정상
- 에러 응답 포맷 일관적 (
error코드 +message+details) - 목록 API 페이지네이션 (offset
page/size+total또는 cursornextCursor), size 상한 동작 - 목록 API의 허용 안 된 정렬 컬럼 → 400
권장 (HIGH)
- 인증 실패 시 적절한 상태 코드 (401/403)
- 유효성 검증 실패 시 400 + 상세 메시지
- 파일 업로드 크기/확장자 제한
- 응답 시간 기준 충족 (< 500ms)
선택 (MEDIUM)
- Rate Limiting 동작
- 캐싱 헤더 (ETag, Cache-Control)
문제 해결
| 증상 | 원인 | 해결 |
| CORS 에러 | 백엔드 CORS 미설정 | Access-Control-Allow-Origin 추가 |
| 프록시 404 | 경로 불일치 | vite.config/next.config 프록시 경로 확인 |
| 토큰 거부 | 비밀키 불일치 | .env SECRET_KEY 일치 확인 |
| 타임아웃 | 서버 미실행 | docker ps 또는 프로세스 확인 |
| 413 Payload Too Large | 업로드 제한 | nginx/express body-parser 설정 |
| 목록 API 느림 (> 1000ms) | 필터·정렬 컬럼 인덱스 없음, 행마다 추가 쿼리(N+1), 페이지네이션 없음 | 실행 계획(EXPLAIN) 확인 → 인덱스 추가, 조인·일괄 조회, 페이지네이션 적용 |
보고서 형식
# API 연동 테스트 결과
**날짜:** {date}
**환경:** 로컬 / 스테이징 / 프로덕션
## 결과 요약
| 항목 | 상태 | 비고 |
|------|------|------|
| CORS | ✅/❌ | |
| 프록시 | ✅/❌ | |
| 인증 | ✅/❌ | |
| CRUD | ✅/❌ | |
| 에러 응답 | ✅/❌ | |
| 파일 업로드 | ✅/❌ | |
| 응답 시간 | ✅/❌ | |
## 발견된 문제
1. {issue description}
- **심각도:** Critical / High / Medium
- **재현:** {steps}
- **권장 조치:** {fix}Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

