Token导航 LogoToken导航TokenDH.com
前端设计敏感数据github未标认证来源可访问许可证需确认审计通过

coding-go编码去

Agent Skill

coding-go 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

392

周安装

16

GitHub Stars

4

下载量

125
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:coding-go(编码去)
来源仓库:https://github.com/alphaonedev/openclaw-graph
仓库路径:skills/coding-go
安装命令:
npx skills add https://github.com/alphaonedev/openclaw-graph --skill coding-go
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/alphaonedev/openclaw-graph --skill coding-go

简介

coding-go 支持 Go 1.23+ 高级特性,包括泛型、接口设计与虚拟线程并发模型。

  • 适用于构建高并发服务端、微服务架构与模块化系统,强化错误处理与资源管理。
  • 集成标准测试套件与基准性能分析,支持跨平台编译与依赖版本锁定。
  • 使用前请确认项目是否启用 Go modules 并配置正确的 go.mod 文件路径。
  • coding-go 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

coding-go

Purpose

This skill equips the AI to handle Go programming tasks using features from Go 1.23+, focusing on advanced concurrency, modular code, and robust error management. Use it to generate, debug, and optimize Go code in real-time interactions.

When to Use

Apply this skill for concurrent programming needs, like building scalable servers with goroutines and channels. Use it when developing modular applications with interfaces and generics, or for testing and error-prone codebases in Go 1.23+. Avoid it for basic scripting; opt for other languages if Go's ecosystem isn't required.

Key Capabilities

  • Goroutines: Spawn lightweight threads for concurrency; e.g., use go func() {fmt.Println("Task")}() to run asynchronously.
  • Channels: Facilitate safe communication between goroutines; declare with ch:= make(chan int) and send/receive via ch <- 5 or <-ch.
  • Interfaces: Define contracts for polymorphism; e.g., type Writer interface {Write([]byte) error}.
  • Error Handling: Check errors explicitly, as in if err!= nil {return err}, with support for wrapped errors via errors.Is().
  • Modules: Manage dependencies with go mod; initialize via go mod init example.com/project.
  • Testing: Write unit tests using the testing package; e.g., func TestAdd(t *testing.T) {if add(1,2)!= 3 {t.Error("Failed")}}.
  • Generics: Use type parameters in functions; e.g., func Map[T any](slice []T, f func(T) T) []T {...}.

Usage Patterns

To implement concurrency, always pair goroutines with channels to avoid race conditions; for example, create a channel first, then launch goroutines that send data to it. For modular code, structure packages with interfaces to decouple dependencies—import modules via go get and use import "example.com/pkg". When handling errors, wrap them for context using fmt.Errorf("wrap: %w", err) and propagate up the call stack. For generics, define type constraints like [T comparable] to ensure type safety in functions. Test code by running go test -v in the package directory after writing tests in _test.go files.

Common Commands/API

Use the Go CLI for building and running code:

  • go run main.go: Compile and execute a file; add -race flag for detecting race conditions, e.g., go run -race main.go.
  • go build -o output.bin: Compile to an executable; include -trimpath for security, e.g., go build -trimpath -o app.
  • go mod tidy: Clean up dependencies in go.mod; run after adding imports.
  • go test -cover: Run tests with coverage; e.g., go test -coverprofile=coverage.out./pkg. API patterns include standard library functions like sync.WaitGroup for goroutine synchronization (e.g., var wg sync.WaitGroup; wg.Add(1); go func() {defer wg.Done();...}(); wg.Wait()). For external tools, set environment variables like $GO111MODULE=on to enable modules.

Integration Notes

Integrate this skill by ensuring the AI has access to a Go 1.23+ environment; install via brew install go on macOS or download from golang.org. For authenticated tools like GitHub integration with Go modules, use env vars such as $GITHUB_TOKEN for go get commands. Configure the AI's workspace with a go.mod file: create one using go mod init myproject, then reference it in prompts. If using IDE extensions, specify paths like $GOPATH/src and ensure the AI prefixes commands with the correct working directory, e.g., cd /path/to/project && go run main.go.

Error Handling

Always check errors after operations that can fail, such as file I/O or API calls; use if err:= os.Open("file.txt"); err!= nil {log.Fatal(err)}. For wrapped errors, employ errors.Unwrap() to inspect chains. In concurrent code, handle panics with recover() inside goroutines: e.g., go func() {defer func() {if r:= recover(); r!= nil {log.Error(r)}}(); riskyFunction()}(). Use go vet to catch common issues: run go vet./... in the project root.

Concrete Usage Examples

  1. Concurrent Data Processing: To process a list concurrently, use goroutines and channels: ch:= make(chan int); go func() {for i:= 0; i < 10; i++ {ch <- i*2}}(); result:= <-ch; fmt.Println(result).
  2. Generic Function for Sorting: Implement a generic sort helper: func Sort[T []int](slice T) {sort.Slice(slice, func(i, j int) bool {return slice[i] < slice[j]})} main() {nums:= []int{3,1,2}; Sort(nums); fmt.Println(nums)}.

Graph Relationships

  • Related to: coding (cluster), specifically coding-python and coding-java via shared tags like "coding".
  • Connected via tags: "go" links to general programming skills; "goroutine" and "channel" relate to concurrency-focused skills like coding-concurrency.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.07%
按下载量换算44

Claude

28.96%
按下载量换算36

Cursor

19.1%
按下载量换算24

Gemini CLI

9.28%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills