samber/cc-skills-golang · golang-stretchr-testify · SKILL.md
Go语言测试框架指南
针对Golang测试中stretchr/testify的全面指南,深入讲解assert、require、mock和suite包。适用于使用testify编写测试、创建模拟、设置测试套件或选择assert与require时。涵盖testify断言、模拟期望、参数匹配器、调用验证、套件生命周期及高级模式如Eventually、JSONEq和自定义匹配器。当代码库导入github.com/stretchr/testify时应用。
这是公开 Agent Skill 的中文说明,由采集翻译或编辑润色,完整内容以上游 SKILL.md 为准。适用于 Cursor / Claude Code / Codex / Gemini。 打开上游 SKILL.md
安装
通用(npx skills)
npx skills add samber/cc-skills-golang -s golang-stretchr-testify
Cursor
把该 Skill 复制到项目的 .cursor/skills/golang-stretchr-testify/ 目录
Claude Code
npx skills add samber/cc-skills-golang -a claude-code -s golang-stretchr-testify