金色时刻 · 15:48
让好资源,触手可及
AGENT SKILL

go-testing

go-testing 是面向测试与安全的 Agent Skill,来自 alex-ilgayev/MCPSpy。查看技能说明、操作步骤与使用约定,并通过原项目了解详细用法。

Handles all Golang testing tasks including running tests, writing new tests, and fixing test failures. Follows MCPSpy testing conventions with require for critical assertions and assert for non-critical ones.

SKILL.md

下载 MD ↓
namego-testing
descriptionHandles all Golang testing tasks including running tests, writing new tests, and fixing test failures. Follows MCPSpy testing conventions with require for critical assertions and assert for non-critical ones.

Go Testing Skill

Provides guidance and automation for Golang testing tasks in the MCPSpy project.

Testing Philosophy

  • Use require library for assertions that should stop test execution on failure
  • Use assert library for non-critical assertions where test should continue
  • Choose internal vs external package testing based on what needs to be tested
  • Test internal functions by placing test files in the same package (no _test suffix)
  • Avoid creating externally facing functions solely for testing purposes

When to Use This Skill

  • Running unit tests with go test
  • Writing new test files and test cases
  • Debugging and fixing failing tests
  • Implementing test fixtures and mocks
  • Improving test coverage for the MCPSpy project

来源:alex-ilgayev/MCPSpy · Apache-2.0 许可 · 许可原文 · MD 为来源页保存的历史版本