AgentSkillsCN

API Mocking Skill

使用Mountebank与Testcontainers搭建API模拟基础设施,进行可靠的集成测试。

SKILL.md
--- frontmatter
name: API Mocking Skill
id: ce.skill.api-mocking
description: Scaffold API mocking infrastructure using Mountebank and Testcontainers for reliable integration testing.
version: 1.0.0

API Mocking Skill

This skill automates the setup of API mocking infrastructure. It leverages Mountebank (for over-the-wire mocks) and Testcontainers (for ephemeral environment management) to create robust, hermetic integration tests.

Commands

CommandDescriptionUsage
/vibepro.mock.initInitialize mocking infrastructure (fixtures, dependencies check)./vibepro.mock.init
/vibepro.mock.exampleGenerate a reference implementation of a mock-backed test./vibepro.mock.example

Usage Examples

Initialize Mocking Support

bash
/vibepro.mock.init

Create Example Test

bash
# This creates tests/integration/test_mock_example.py
/vibepro.mock.example