·util-resolve-serviceresult-errors
</>

util-resolve-serviceresult-errors

修复导致测试失败和类型错误的 ServiceResult 模式错误。 当看到“dict object has no attribute success”、“mock not returned ServiceResult”时使用, 模拟断言失败,或者 ServiceResult 类型错误。分析 .py 测试文件 和服务实施。涵盖异步/等待模式、monad 操作(映射、绑定、平面映射)、 和正确的模拟配置。

4安装·0热度·@dawiddutoit

安装

$npx skills add https://github.com/dawiddutoit/custom-claude --skill util-resolve-serviceresult-errors

如何安装 util-resolve-serviceresult-errors

通过命令行快速安装 util-resolve-serviceresult-errors AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/dawiddutoit/custom-claude --skill util-resolve-serviceresult-errors
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:dawiddutoit/custom-claude。

SKILL.md

查看原文

Systematic diagnostic and fix workflow for ServiceResult pattern mistakes in tests and service implementations, focusing on mock configuration errors, async patterns, and type safety.

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.

Pattern for Multiple Mock Methods: Use MultiEdit to fix all mocks in one operation:

修复导致测试失败和类型错误的 ServiceResult 模式错误。 当看到“dict object has no attribute success”、“mock not returned ServiceResult”时使用, 模拟断言失败,或者 ServiceResult 类型错误。分析 .py 测试文件 和服务实施。涵盖异步/等待模式、monad 操作(映射、绑定、平面映射)、 和正确的模拟配置。 来源:dawiddutoit/custom-claude。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/dawiddutoit/custom-claude --skill util-resolve-serviceresult-errors
分类
</>开发工具
认证
收录时间
2026-02-25
更新时间
2026-03-10

Browse more skills from dawiddutoit/custom-claude

快速解答

什么是 util-resolve-serviceresult-errors?

修复导致测试失败和类型错误的 ServiceResult 模式错误。 当看到“dict object has no attribute success”、“mock not returned ServiceResult”时使用, 模拟断言失败,或者 ServiceResult 类型错误。分析 .py 测试文件 和服务实施。涵盖异步/等待模式、monad 操作(映射、绑定、平面映射)、 和正确的模拟配置。 来源:dawiddutoit/custom-claude。

如何安装 util-resolve-serviceresult-errors?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/dawiddutoit/custom-claude --skill util-resolve-serviceresult-errors 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/dawiddutoit/custom-claude