cli-anything-wiremock
하는 일
이 스킬은 AI 에이전트가 테스트 중에 웹 서비스를 대신하는 도구 WireMock을 제어하도록 합니다. 실제 백엔드 없이 테스트용 가짜 응답이 필요한 개발자에게 맞습니다.
사용하는 경우
- ✓테스트 환경에 가짜 API 응답을 설정하고 싶을 때.
- ✓목 서버가 실제로 어떤 요청을 받았는지 확인해야 할 때.
- ✓실제 백엔드 트래픽을 기록해 목 응답으로 다시 쓰고 싶을 때.
스킬 링크
https://github.com/HKUDS/CLI-Anything/blob/main/skills/cli-anything-wiremock/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“테스트 서버에 가짜 응답을 설정해서 /orders 페이지에 대해 상태 코드 200을 돌려주게 해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트가 WireMock의 관리 인터페이스에 명령을 보내 스텁 매핑을 만들고, 나열하고, 지우며 요청을 확인합니다. 변경 사항은 실행 중인 목 서버에 바로 적용됩니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Overview
cli-anything-wiremock is a command-line interface that wraps the WireMock Admin REST API (/__admin/). It allows agents and developers to manage HTTP stub mappings, inspect served requests, control stateful scenarios, and record real backend traffic — all from the terminal or from agent tool calls.
WireMock is commonly used in integration testing environments to replace real HTTP backends with controllable mock responses.
Command Groups
stub — Manage HTTP stub mappings
| Command | Description |
|---|---|
stub list |
List all registered stubs |
stub get <id> |
Get details of a specific stub by UUID |
stub create <json> |
Create a stub from a JSON string |
stub quick M URL S |
Quickly create a stub: METHOD URL STATUS_CODE |
stub delete <id> |
Delete a stub by UUID |
stub reset |
Reset all stubs to the defaults on disk |
stub save |
Persist in-memory stubs to disk |
stub import <file> |
Import stubs from a JSON file |
request — Inspect served requests
| Command | Description |
|---|---|
request list |
List recent served requests |
request find <pattern> |
Find requests matching a JSON pattern |
request count <pattern> |
Count requests matching a JSON pattern |
request unmatched |
List requests that matched no stub (404s) |
request reset |
Clear the request journal |
scenario — Stateful scenario management
| Command | Description |
|---|---|
scenario list |
List all scenarios and current states |
scenario set N S |
Set scenario NAME to STATE |
scenario reset |
Reset all scenarios to their initial state |
record — Record traffic from a real backend
| Command | Description |
|---|---|
record start <url> |
Start proxying + recording to TARGET_URL |
record stop |
Stop recording, return captured stubs |
record status |
Check if currently recording |
record snapshot |
Snapshot in-memory requests as stubs |
settings — Global server settings
| Command | Description |
|---|---|
settings get |
Get current global WireMock settings |
settings version |
Show WireMock server version |
Top-level commands
| Command | Description |
|---|---|
status |
Check if WireMock is running |
reset |
Full reset: stubs + requests + scenarios |
shutdown |
Gracefully shut down the WireMock server |
Key Examples
# Check connectivity
cli-anything-wiremock status
# Create a stub using quick form
cli-anything-wiremock stub quick GET /api/users 200 --body '[{"id":1}]'
# Create a stub using full JSON
cli-anything-wiremock stub create '{
"request": {"method": "POST", "url": "/api/orders"},
"response": {"status": 201, "body": "{\"id\":99}"}
}'
# Verify a POST was made exactly once
cli-anything-wiremock --json request count '{"method":"POST","url":"/api/orders"}'
# → {"count": 1}
# Scenario: advance state
cli-anything-wiremock scenario set "cart-flow" "item-added"
# Record a real backend
cli-anything-wiremock record start https://api.example.com
# ... make requests ...
cli-anything-wiremock record stop
Agent Guidance
Always use --json in agent contexts
Use --json for all invocations in scripts or agent tool calls. JSON output varies by command type (these are distinct response types, no
자주 묻는 질문
WireMock이 실행 중이어야 하나요?
네. 스킬은 WireMock 관리 API와 통신하므로 목 서버가 실행 중이어야 합니다.
스텁을 디스크에 저장할 수 있나요?
네. save 명령으로 메모리에 있는 스텁을 파일로 저장하고, import 명령으로 파일에서 불러올 수 있습니다.
시간에 따라 바뀌는 응답도 처리하나요?
네. 여러 요청의 순서에 따라 응답이 바뀌는 상태 기반 시나리오 명령이 포함되어 있습니다.
상세 정보
인기도
- GitHub 스타
- 58k
- 순위
- #3255
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 9. 21.
댓글
- …
이 저장소의 다른 스킬
cli-anything-3mf
58k에이전트가 3D 프린팅 파일을 검사하고 고치도록 돕습니다. 둥근 구멍 찾기, 크기 조정, 메시 수리, 두 파일 비교가 가능합니다.
cli-anything-qgis
58k에이전트가 터미널에서 QGIS 지도 프로젝트를 열고 편집하고 내보내도록 돕습니다. 레이어, 피처, 인쇄 레이아웃, 처리 도구를 포함합니다.
cli-anything-adguardhome
58k에이전트가 네트워크 전체의 광고 차단기인 AdGuard Home을 관리하도록 돕습니다. 필터, DNS 재작성, 클라이언트, 쿼리 로그를 포함합니다.
cli-anything-anygen
58k에이전트가 AnyGen 서비스를 이용해 글로 된 프롬프트로 슬라이드, 문서, 웹사이트, 다이어그램을 만들도록 돕습니다.
비슷한 스킬
test-driven-development
311k에이전트가 기능이나 수정을 만들기 전에 실패하는 테스트를 먼저 쓰고, 그것을 통과시키는 가장 작은 코드를 작성하도록 가르칩니다.
verification-before-completion
311k에이전트가 작업, 수정, 빌드가 완료되었거나 통과했다고 말하기 전에 실제 점검을 실행하고 결과를 읽도록 가르칩니다.
migrate-to-shoehorn
310k테스트 파일의 위험한 타입 캐스팅을 shoehorn 라이브러리로 바꿔, 테스트가 일부 데이터만 써도 타입 검사를 통과하도록 돕습니다.