본문으로 건너뛰기
Skillpedia
테스트58k · #3255

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/HKUDS/CLI-Anything/blob/main/skills/cli-anything-wiremock/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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 명령으로 파일에서 불러올 수 있습니다.

시간에 따라 바뀌는 응답도 처리하나요?

네. 여러 요청의 순서에 따라 응답이 바뀌는 상태 기반 시나리오 명령이 포함되어 있습니다.

상세 정보

작성자의 원본 설명

Python CLI harness for WireMock HTTP mock server administration

repo: HKUDS/CLI-Anything

인기도

GitHub 스타
58k
순위
#3255
라이선스
Apache-2.0
업데이트
2026. 9. 21.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬