no-mocking-validation-gates
CommunityBlock mocks and enforce real-system validation
Software Engineering#validation#evidence#mocking#code-patterns#test-files#pre-tool-hook#developer-guardrails
Authorkrzemienski
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill prevents the creation of mock files and mock/stub code patterns that produce false-positive test results and hidden production bugs, ensuring validation is performed against real systems and real user interfaces.
Core Features & Use Cases
- Pre-tool-use Blocking: Rejects write/edit operations that would add test files, mock directories, or known mocking API usage.
- Mock Pattern Detection: Scans for language-specific mock APIs and test patterns to prevent accidental introduction of stubs and spies.
- Developer Workflow Correction: Guides developers through diagnose, fix, and verify steps to make real dependencies available and capture evidence.
- Use Case: Prevents a developer from committing a Jest mock that would hide an API contract regression and redirects them to run the real backend, seed data, and capture evidence.
Quick Start
Run the pre-tool-use hook to block any new mock or test artifacts and follow the three-step correction: diagnose the missing dependency, fix it so it runs, and verify using the real system.
Dependency Matrix
Required Modules
None requiredComponents
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: no-mocking-validation-gates Download link: https://github.com/krzemienski/validationforge/archive/main.zip#no-mocking-validation-gates Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.