ES

eduardo-sl/go-agent-skills

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

84 stars 质量 73 趋势 29MIT

为围棋项目策划的AI代理技能。

概览

为AI编码代理精心整理的围棋技能。一个命令,适用于所有地方。 代理的价值取决于你给它的上下文。没有 Go 专属指导,它会写出类似 Java 的 Go:裸露的错误返回、生产者端接口、无人停下的 goroutine、通用代码应在的界面{}。这 33 项技能编码了经验丰富的 Go 工程师的工作方式——基于 Uber Go 风格指南、有效 Go 和 Go 代码审查注释——它们会加载 ,因此在相关性之前无需花费任何费用。 通过npx技能CLI支持、、以及37+个更多的代理。 或者直接导入:npx 技能添加 eduardo-sl/go-agent-skills -a claude-code 光标自动发现了 .cursor/skills/ 和 .agents/skills/ 的技能。 副驾驶会自动从.github/skills/发现技能。 Codex会自动发现~/.agents/skills/和.agents/skills/的技能。 不确定哪种更合适?

概述(AI 翻译)

为AI编码代理精心策划的围棋技能。默认为惯用语,仅在关键时刻加载。

快速入门 · 使用情况 · 技能· 工作原理· 评价 · 定制 · 常见问题 · 贡献


为什么

AI编码代理写Go,并编译。写出读起来像Go的Go,则是Go 不止于此。如果默认,代理会返回没有上下文的错误, 在唯一的实现旁边声明接口,启动Goroutine,什么都不做 永远停止,并指向类型参数所在的interface{}。

go-agent-skills 赋予经纪人与经验丰富的围棋评测者相同的判断 带来:35项基于有效围棋的专注技能, Go 代码审查注释和模式 来自大规模生产围棋服务。他们关注开局 特工技能标准,任何兼容的特工都能工作, 然后按需加载。在技能相关之前,大约需要135代币。

精彩片段

  • 🎯 **涵盖六个领域的35项技能。**代码质量、架构、数据、安全与性能、测试以及工作流程。
  • 🪶 渐进披露。 启动时约有4,800个描述令牌。正文和62个参考文件仅在任务需要时加载。
  • 🧭 **用于重叠的路由器。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Curated Go skills for AI coding agents.Idiomatic by default, loaded only when they matter.

Quick start · Usage · Skills · How it works · Evaluations · Customizing · FAQ · Contributing

npx skills add eduardo-sl/go-agent-skills

Why

AI coding agents write Go that compiles. Writing Go that reads like Go takes more than that. Left to defaults, an agent returns errors with no context, declares interfaces next to their only implementation, starts goroutines nothing ever stops, and reaches for interface{} where a type parameter belongs.

go-agent-skills gives the agent the judgment an experienced Go reviewer brings: 35 focused skills grounded in Effective Go, Go Code Review Comments, and patterns from large-scale production Go services. They follow the open Agent Skills standard, work in any compatible agent, and load on demand. Until a skill is relevant, it costs about 135 tokens.

// ❌ Before: the caller gets "sql: no rows in result set" and nothing else
func (s *Service) User(id int) (*User, error) {
    u, err := s.repo.Find(id)
    if err != nil {
        return nil, err
    }
    return u, nil
}

// ✅ After (go-error-handling + go-context): cancellable, wrapped, still matchable
func (s *Service) User(ctx context.Context, id int) (*User, error) {
    u, err := s.repo.Find(ctx, id)
    if err != nil {
        return nil, fmt.Errorf("find user %d: %w", id, err)
    }
    return u, nil
}

Highlights

在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add eduardo-sl/go-agent-skills
新手?先看 mcpskill.org 教程 →