util-resolve-serviceresult-errors
Installation
SKILL.md
Resolve ServiceResult Errors
Purpose
Systematic diagnostic and fix workflow for ServiceResult pattern mistakes in tests and service implementations, focusing on mock configuration errors, async patterns, and type safety.
Quick Start
Diagnose and fix common mistakes when working with the ServiceResult pattern in project-watch-mcp, focusing on test failures caused by incorrect mock configurations and improper ServiceResult usage.
Most common use case:
# Test fails with: 'dict' object has no attribute 'success'
❌ WRONG:
mock_service.get_data = AsyncMock(return_value={"items": []})
Related skills