Unify the use of mockery + go:generate to generate mocks for Go interfaces; hand-written mock structs are prohibited. Enable this Skill when you need to create mocks for interfaces while implementing code or writing unit tests.
IPackAuthAccountRepo)编写或更新单元测试,需要 Mock 其依赖。//go:generate mockery --name=<Interface> --with-expecter=true 注释:
//go:generate mockery --name=IPackAuthAccountRepo --with-expecter=true
type IPackAuthAccountRepo interface {
// ...
}
go generate ./...
以生成或更新 Mock 文件。mocks 包导入 Mock 类型(例如 domain/dmservice/mocks)。New<Interface>(t) 创建 Mock 实例,并通过 EXPECT()/AssertExpectations 配置与校验调用。go:generate 注释必须使用 mockery --name=<Interface> --with-expecter=true 这一形式,必要时由 Skill 自动补齐。mocks/ 子目录中,以避免循环依赖和命名混乱。reference.md。Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer