mock-contract-advisor

Community

Design robust mock contracts for testing.

Authortikazyq
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill prevents common anti-patterns in mock and stub design, ensuring your tests are reliable and accurately reflect system interactions without over-mocking or creating recursive dependencies.

Core Features & Use Cases

  • Mock Strategy Generation: Creates a checklist and rules based on test_suites.md to guide mock design.
  • Contract Definition: Helps define clear input/output contracts for mocked services.
  • Anti-Pattern Detection: Identifies and advises against recursive mocking, global mocks, and excessive mocking.
  • Use Case: When defining the mock strategy for a payment gateway integration, this Skill ensures that the mock contract clearly specifies request parameters, expected responses, and error conditions, while also verifying that the mock itself is not overly complex or dependent on other mocks.

Quick Start

Generate a mock contract design report for the payment service based on the provided test_suites.md and design documents.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: mock-contract-advisor
Download link: https://github.com/tikazyq/agentic-spec-forge/archive/main.zip#mock-contract-advisor

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.