Mock Detector

Community

Detect mock code, enforce real implementations.

Authorturbobeest
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Placeholder or mock implementations can inadvertently make their way into operational code, leading to false positives in testing and unexpected failures in production. This skill rigorously scans the codebase to detect and prevent mock/simulated code in non-test environments, ensuring code integrity.

Core Features & Use Cases

  • Forbidden Pattern Detection: Scans source code for patterns indicative of mock implementations (e.g., MockClass, simulate_*(), return "success" without logic), identifying potential issues.
  • Test File Exclusion: Intelligently distinguishes between operational code and test files, allowing mocks only in designated test directories, preventing false alarms.
  • Immediate Pipeline Blockage: Stops the development pipeline immediately upon detecting mock code in operational components, preventing false successes from reaching production.
  • Enforcement Actions: Generates a detailed violation report and requires human intervention to replace mocks with real implementations or explicit failure mechanisms, ensuring robust code.

Quick Start

Scan the codebase for any mock implementations in operational code.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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 Detector
Download link: https://github.com/turbobeest/claude-dev-system/archive/main.zip#mock-detector

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.