Token导航 LogoToken导航

Agent Skill · 前端设计

go-dev(去开发)

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

go-dev 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有提醒项,按安装量在前端设计类的 10,216 个 Skill 里排第 8,200。

总安装 306周安装 13GitHub Stars 公开资料未说明下载 107核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/marsolab/skills --skill go-dev

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

go-dev 用于处理 GitHub 仓库、Issue、Pull Request 等协作信息,辅助开发流程。适合在 Codex、Claude、Cursor、Gemini CLI 中围绕代码变更、协作事项进行整理时使用。

通过 GitHub 安装,使用 npx skills add 命令添加,需结合原始 README 确认具体用法。安装前应核实权限范围、维护状态,以及是否涉及联网、命令执行或文件读写操作。go-dev 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/go-dev

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/marsolab/skills --skill go-dev;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

go-dev 怎么安装?

在终端执行 npx skills add https://github.com/marsolab/skills --skill go-dev。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

go-dev 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

go-dev 需要什么权限?

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

go-dev 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

go-dev 用的人多吗?

公开数据是累计安装 306 次,近一周安装 13 次,下载 107 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

go-dev 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
go-dev

去开发 · 本页

306—接触敏感数据未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Go Development

Write Go code that is readable, maintainable, and production-ready using battle-tested patterns from major production codebases.

For comprehensive coverage of all idioms, patterns, and pitfalls, read references/go-styleguide.md. This file focuses on quick decisions and workflows.

MCP

Always use Context7 MCP to fetch the latest documentation.

Libraries

  • Prefer well-maintained, zero-dependency libraries from the awesome-go list.
  • HTTP routing: Chi.
  • Logging: log/slog (structured, leveled, stdlib since Go 1.21).
  • Configuration: flags or environment variables — no external config frameworks.
  • Database access: sqlc for typesafe SQL code generation.
  • Migrations: goose.
  • Testing: stdlib testing package. Avoid third-party assertion libraries.

Linters

Run golangci-lint on every commit and pull request. Use the bundled .golangci.yml config:

# Setup linting for a project
scripts/setup_golangci_lint.sh /path/to/project

# Run all linters
golangci-lint run ./...

# Auto-fix
golangci-lint run --fix ./...

Run goimports before committing to keep imports formatted.

Quick Decision Trees

When to use generics?

Use generics (Go 1.18+) when:

  • Writing data structures (trees, caches, pools) that work across types.
  • Utility functions that operate on slices, maps, or channels of any type.
  • Type constraints reduce duplication without sacrificing readability.

Avoid generics when:

  • A concrete type or any suffices.
  • The function body would need type assertions anyway.
  • It makes the code harder to read for marginal DRY benefit.
// GOOD: generic utility
func Map[T, U any](s []T, f func(T) U) []U {
    result := make([]U, len(s))
    for i, v := range s {
        result[i] = f(v)
    }
    return result
}

// GOOD: constrained type
type Number interface {
    ~int | ~int64 | ~float64
}

func Sum[T Number](nums []T) T {
    var total T
    for _, n := range nums {
        total += n
    }
    return total
}

When to use interfaces?

Define interfaces at the consumption site, not the implementation:

// GOOD: consumer defines what it needs
package storage

type Store interface {
    Get(key string) ([]byte, error)
}

// BAD: implementation forces interface on consumers
package postgres

type PostgresStore interface { ... }

Interface size: 1 method is perfect, 2-3 if cohesive, 4+ consider splitting. Larger interfaces are acceptable for SaaS/enterprise products; keep them small for libraries.

Accept interfaces, return concrete types.

How to handle errors?

  1. Can I handle this completely here? → Log and continue.
  2. Does caller need programmatic access? → %w wrapping.
  3. Should I hide implementation details? → %v wrapping.
  4. Is this a library? → Never log, always return.
// Wrap with context
if err != nil {
    return fmt.Errorf("connect to database: %w", err)
}

Error strings: lowercase, no punctuation, no "failed to" prefix. Handle each error exactly once — log OR return, never both.

Use errors.Join (Go 1.20+) to combine multiple independent errors:

var errs []error
for _, item := range items {
    if err := process(item); err != nil {
        errs = append(errs, err)
    }
}
if err := errors.Join(errs...); err != nil {
    return fmt.Errorf("processing batch: %w", err)
}

When to use concurrency?

Leave concurrency to the caller unless building a server/daemon, worker pool, or managing background operations.

Before launching a goroutine, know when it will stop:

ctx, cancel := context.WithTimeout(ctx, 30*time.Second)
defer cancel()

go func() {
    for {
        select {
        case <-ctx.Done():
            return
        case work := <-ch:
            process(work)
        }
    }
}()

Context as first parameter. Always.

Iterators (Go 1.23+)

Use iter.Seq and iter.Seq2 for lazy iteration:

// Iterator that yields values
func FilterPositive(nums []int) iter.Seq[int] {
    return func(yield func(int) bool) {
        for _, n := range nums {
            if n > 0 {
                if !yield(n) {
                    return
                }
            }
        }
    }
}

// Consuming an iterator
for v := range FilterPositive(data) {
    fmt.Println(v)
}

Use range-over-int (Go 1.22+): for i:= range n instead of for i:= 0; i < n; i++.

Structured logging with slog

Use log/slog for all logging. Pass the logger as a dependency, never as a package-level global:

type Server struct {
    logger *slog.Logger
}

func NewServer(logger *slog.Logger) *Server {
    return &Server{logger: logger}
}

func (s *Server) HandleRequest(ctx context.Context, req *Request) {
    s.logger.InfoContext(ctx, "handling request",
        slog.String("method", req.Method),
        slog.String("path", req.Path),
    )
}

Use slog.With to add common attributes. Use LogValuer for expensive values that should only be computed when the log level is enabled.

Testing

Table-driven tests with map[string]testCase for descriptive names:

func TestProcess(t *testing.T) {
    type testCase struct {
        input   string
        want    string
        wantErr bool
    }

    tests := map[string]testCase{
        "valid input": {
            input: "hello",
            want:  "HELLO",
        },
        "empty input returns error": {
            input:   "",
            wantErr: true,
        },
    }

    for name, tc := range tests {
        t.Run(name, func(t *testing.T) {
            got, err := Process(tc.input)
            if (err != nil) != tc.wantErr {
                t.Fatalf("Process() error = %v, wantErr %v", err, tc.wantErr)
            }
            if got != tc.want {
                t.Errorf("Process() = %q, want %q", got, tc.want)
            }
        })
    }
}

Test helpers call t.Helper() so failure line numbers point to the actual test.

Integration tests skip when environment is not set:

func TestIntegration(t *testing.T) {
    if os.Getenv("INTEGRATION_TESTS") == "" {
        t.Skip("skipping integration tests")
    }
}

Common Workflows

Creating a new HTTP service

Project structure:

myservice/
├── cmd/server/main.go
├── internal/
│   ├── handler/
│   ├── service/
│   └── storage/
├── db/
│   ├── migrations/
│   └── queries/
├── go.mod
├── Makefile
└── .golangci.yml

main.go pattern — flags, graceful shutdown:

func main() {
    addr := flag.String("addr", ":8080", "listen address")
    flag.Parse()

    srv := &http.Server{
        Addr:         *addr,
        Handler:      setupRoutes(),
        ReadTimeout:  30 * time.Second,
        WriteTimeout: 30 * time.Second,
    }

    go func() {
        sigint := make(chan os.Signal, 1)
        signal.Notify(sigint, os.Interrupt)
        <-sigint

        ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
        defer cancel()
        srv.Shutdown(ctx)
    }()

    log.Printf("listening on %s", *addr)
    if err := srv.ListenAndServe(); err != http.ErrServerClosed {
        log.Fatalf("server error: %v", err)
    }
}

Working with SQL databases using sqlc

sqlc generates typesafe Go code from SQL queries. Write SQL, get Go.

1. Install and configure:

# sqlc.yaml
version: "2"
sql:
  - schema: "db/migrations"
    queries: "db/queries"
    engine: "postgresql"
    gen:
      go:
        package: "db"
        out: "internal/db"
        emit_json_tags: true
        emit_interface: true

2. Write migrations (with goose):

-- db/migrations/001_create_users.sql
-- +goose Up
CREATE TABLE users (
    id    BIGSERIAL PRIMARY KEY,
    email TEXT NOT NULL UNIQUE,
    name  TEXT NOT NULL,
    created_at TIMESTAMPTZ NOT NULL DEFAULT now()
);

-- +goose Down
DROP TABLE users;

3. Write queries with annotations:

-- db/queries/users.sql

-- name: GetUser :one
SELECT id, email, name, created_at
FROM users
WHERE id = $1;

-- name: ListUsers :many
SELECT id, email, name, created_at
FROM users
ORDER BY created_at DESC;

-- name: CreateUser :one
INSERT INTO users (email, name)
VALUES ($1, $2)
RETURNING id, email, name, created_at;

-- name: DeleteUser :exec
DELETE FROM users WHERE id = $1;

4. Generate and use:

sqlc generate
// internal/db/ now contains typesafe Go code
func (s *Service) GetUser(ctx context.Context, id int64) (db.User, error) {
    return s.queries.GetUser(ctx, id)
}

5. Testing with sqlc:

Enable emit_interface: true in sqlc.yaml to get a Querier interface for mocking in unit tests. Use a real database for integration tests.

Creating a CLI tool

mycli/
├── main.go
├── internal/command/
├── go.mod
└── .golangci.yml

Use flag.NewFlagSet for subcommands. Write errors to stderr, exit non-zero on failure.

Quick Reference

Naming: packages lowercase/singular, no Get prefix on getters, acronyms consistent case (URL not Url), constants in mixedCaps.

Structure: return early with guard clauses, success path left-aligned, imports grouped: stdlib → external → internal.

Critical pitfalls: loop variable capture in closures, nil interface vs nil value in interface, defer in loops (wrap in closure), map writes to nil map.

For the full reference on all patterns, see references/go-styleguide.md.

Linting Setup

Run the setup script to configure golangci-lint for a project:

scripts/setup_golangci_lint.sh /path/to/your/project

This copies the bundled .golangci.yml and optionally installs a pre-commit hook. Common commands:

golangci-lint run ./...         # run all linters
golangci-lint run --fix ./...   # auto-fix issues
golangci-lint run ./internal/...# lint specific paths

平台分布

Codex

34.81%
按下载量换算37

Claude

28.53%
按下载量换算31

Cursor

18.41%
按下载量换算20

Gemini CLI

10.28%
按下载量换算11

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

可疑

权限和风险

接触敏感数据

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills