跳转到正文
报告库
用途分类 / 数据分析

Golang Popular Libraries Skill 安全审计

作者说它能做什么(原文)

Golang library and framework selection — vetted production-ready options by category (web, database, testing, logging, messaging), new and experimental stdlib packages, standard-library-first tradeoffs, and maturity signals (maintenance, license, importer counts). Apply when the user asks for library suggestions, wants to compare alternatives, needs to choose a library for a specific task, or when

第三方安全检查结论

发现安全风险

已检查文件
5
发现的风险
2
会不会运行危险命令?检查是否下载程序后直接运行、让他人远程控制电脑,或藏起要运行的命令。未发现风险
会不会泄露文件和密钥?检查是否发送含密码或密钥的文件,以及代码里是否直接写了密钥。未发现风险
会不会删除文件或一直在后台运行?检查是否大范围删除文件、改写磁盘,或设置自动启动。未发现风险
会不会绕过安全保护?检查是否跳过网站安全验证、开放过多文件权限,或取消操作前的确认。发现 1 项风险
中风险

只读的选库顾问申请了执行命令、编辑文件和 Git 操作权限

原文依据:5 处
发现了什么

其声明用途是推荐 Go 库,但 allowed-tools 同时包含 Read、Edit、Write、多类 Bash、Git、联网搜索及 Agent。正文没有说明完成推荐为何需要修改项目或运行 Git。

为什么需要注意

若宿主按此字段授予能力,Skill 被调用时将拥有超出回答选库问题所需的权限。遇到错误指令或不可信的联网内容时,影响范围可能包括修改项目文件、执行 Go 工具、下载依赖或改变 Git 工作区。证据只表明能力被申请,并不表明这些操作已经发生。

该 Skill 的公开用途是选库建议,但它申请了 Edit、Write、任意匹配的 Go/Git 命令、联网检索和 Agent 等能力。查询文档、检查维护状态或读取已解析源码可以解释 Read、搜索及部分 Go 工具,却看不出为何一般推荐任务需要修改用户文件或执行广泛的 Git 操作。若宿主按此清单授予并允许模型调用,这些额外能力可能改变项目文件或仓库状态。用户可要求作者缩减为只读工具,并仅在用户明确要求安装或修改项目时临时授权写入与 Git。

SKILL.md:2来自说明文档打开原文件
---name: golang-popular-librariesdescription: "Golang library and framework selection — vetted production-ready options by category (web, database, testing, logging, messaging), new and experimental stdlib packages, standard-library-first tradeoffs, and maturity signals (maintenance, license, importer counts). Apply when the user asks for library suggestions, wants to compare alternatives, needs to choose a library for a specific task, or when a new dependency is being added to the project. Not for a specific library's API once chosen (→ See that library's dedicated skill, e.g. `samber/cc-skills-golang@golang-samber-lo`), nor for go.mod mechanics, upgrades, or vulnerability audits (→ See `samber/cc-skills-golang@golang-dependency-management` skill)."user-invocable: true
查看另外 4 个位置
SKILL.md:17来自说明文档打开原文件
    install: []allowed-tools: Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) Agent WebFetch WebSearch AskUserQuestion mcp__context7__resolve-library-id mcp__context7__query-docs Bash(godig:*) Bash(gopls:*) LSP mcp__gopls__*---
SKILL.md:3来自说明文档打开原文件
name: golang-popular-librariesdescription: "Golang library and framework selection — vetted production-ready options by category (web, database, testing, logging, messaging), new and experimental stdlib packages, standard-library-first tradeoffs, and maturity signals (maintenance, license, importer counts). Apply when the user asks for library suggestions, wants to compare alternatives, needs to choose a library for a specific task, or when a new dependency is being added to the project. Not for a specific library's API once chosen (→ See that library's dedicated skill, e.g. `samber/cc-skills-golang@golang-samber-lo`), nor for go.mod mechanics, upgrades, or vulnerability audits (→ See `samber/cc-skills-golang@golang-dependency-management` skill)."user-invocable: true
SKILL.md:16来自说明文档打开原文件
        - go    install: []allowed-tools: Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) Agent WebFetch WebSearch AskUserQuestion mcp__context7__resolve-library-id mcp__context7__query-docs Bash(godig:*) Bash(gopls:*) LSP mcp__gopls__*---
SKILL.md:41来自说明文档打开原文件
This skill is not exhaustive — refer to library documentation and code examples for more information:- When exploring a candidate library, → See `samber/cc-skills-golang@golang-pkg-go-dev` skill (`godig`) for docs, symbols, versions, importers, and known vulnerabilities — prefer it over Context7 for Go package facts.- Once a candidate is added to your build, → See `samber/cc-skills-golang@golang-gopls` skill (`gopls`) to browse its actual resolved source and compare candidates side by side.- Context7 remains a fallback for docs not indexed on pkg.go.dev.
会不会误导 AI 或隐藏内容?检查工作说明是否要求 AI 忽略你的指令、干扰检查结果,或夹带看不见的文字。未发现风险
会不会偷偷改推广链接或收款方?检查是否强制替换推广链接或收款对象,同时要求隐瞒更改。发现 1 项风险
中风险

作者自己的库被反复推荐,但未向用户披露这一利益关联

原文依据:6 处
发现了什么

元数据显示作者为 samber;目录随后推荐 samber/hot、samber/do、samber/lo、samber/mo 等同一作者名下的库,并把用户引向相应专用 Skill。内容没有明确告诉用户这些推荐与 Skill 作者有关,也没有在条目旁提供其声称必须检查的许可证、导入者数量或独立比较结果。

为什么需要注意

依赖该目录的用户可能把“vetted”理解为独立筛选,从而在缓存、依赖注入或工具库选择中偏向作者项目。这会影响依赖和维护决策,并扩大供应链暴露;现有证据不能证明作者获得付款或推荐本身恶意。

元数据把作者标为 samber,而推荐目录和交叉引用多次推广 samber 名下的 hot、do、lo、mo、oops 等项目。可见文本没有在这些推荐旁披露作者关联,也未展示其自己要求的维护状态、许可证、导入者数量或独立对比。此证据不证明这些库不安全或作者有恶意,但会形成未披露的利益关联,可能影响用户的依赖选择。用户可要求作者明确披露关联,并为同作者与独立替代方案提供一致的可核验证据。

SKILL.md:7来自说明文档打开原文件
compatibility: Designed for Claude Code, Codex or similar harness, and for projects using Golang.metadata:  author: samber  version: "1.2.2"  openclaw:
查看另外 5 个位置
references/libraries.md:119来自说明文档打开原文件
## Caching**hot** (<https://github.com/samber/hot>) In-memory caching library for Go with 9 eviction algorithms (LRU, LFU, TinyLFU, W-TinyLFU, S3FIFO, ARC, TwoQueue, SIEVE, FIFO), TTL, loaders with singleflight deduplication, sharding, and stale-while-revalidate.**Ristretto** (<https://github.com/dgraph-io/ristretto>) High-performance memory-bound Go cache.
references/libraries.md:209来自说明文档打开原文件
## Dependency Injection**do** (<https://github.com/samber/do>) Dependency injection library for Go. Simple, runtime DI with service locator pattern and health checks.**Wire** (<https://github.com/google/wire>) Code-generated dependency injection for Go. Compile-time dependency injection without reflection.**Dig** (<https://github.com/uber-go/dig>) Dependency injection container for Go. Runtime DI with lifecycle management.**Fx** (<https://github.com/uber-go/fx>) Application framework for Go. Built on Dig, provides lifecycle management, dependency injection, and observability.## Functional Programming & Utilities**lo** (<https://github.com/samber/lo>) A generics-based helper library for Go. Slice, map, and tuple operations with functional programming style.**mo** (<https://github.com/samber/mo>) Monads and functional programming helpers for Go. Option, Either, Try, and other functional patterns.
references/libraries.md:219来自说明文档打开原文件
## Functional Programming & Utilities**lo** (<https://github.com/samber/lo>) A generics-based helper library for Go. Slice, map, and tuple operations with functional programming style.**mo** (<https://github.com/samber/mo>) Monads and functional programming helpers for Go. Option, Either, Try, and other functional patterns.
SKILL.md:51来自说明文档打开原文件
1. **Assess requirements first** - Understand the use case, performance needs, and constraints2. **Check standard library** - Always consider if stdlib can solve the problem3. **Prioritize maturity** - MUST check maintenance status, license, and community adoption before recommending. Use a module's `imported-by` count on pkg.go.dev as a popularity and indirect quality signal — widely-imported libraries are more battle-tested and have stronger backward-compatibility pressure; → See `samber/cc-skills-golang@golang-pkg-go-dev` skill to count importers and compare alternatives4. **Consider complexity** - Simpler solutions are usually better in Go5. **Think about dependencies** - More dependencies = more attack surface and maintenance burden
SKILL.md:69来自说明文档打开原文件
- → See `samber/cc-skills-golang@golang-dependency-management` skill for adding, auditing, and managing dependencies- → See `samber/cc-skills-golang@golang-pkg-go-dev` skill to vet a candidate library on pkg.go.dev — versions, importers, licenses, and known vulnerabilities — before adopting it- → See `samber/cc-skills-golang@golang-samber-do` skill for samber/do dependency injection details- → See `samber/cc-skills-golang@golang-samber-hot` skill for samber/hot in-memory caching details- → See `samber/cc-skills-golang@golang-samber-oops` skill for samber/oops error handling details- → See `samber/cc-skills-golang@golang-stretchr-testify` skill for testify testing details- → See `samber/cc-skills-golang@golang-grpc` skill for gRPC implementation details

Skill 逻辑拆解

5 个说明模块

该 Skill 的实际用途是为 Go 项目推荐和比较库,并要求先了解需求、优先考虑标准库,再检查维护状态、许可证及采用情况。

查看原文
SKILL.md:49来自说明文档打开原文件
When recommending libraries:1. **Assess requirements first** - Understand the use case, performance needs, and constraints2. **Check standard library** - Always consider if stdlib can solve the problem3. **Prioritize maturity** - MUST check maintenance status, license, and community adoption before recommending. Use a module's `imported-by` count on pkg.go.dev as a popularity and indirect quality signal — widely-imported libraries are more battle-tested and have stronger backward-compatibility pressure; → See `samber/cc-skills-golang@golang-pkg-go-dev` skill to count importers and compare alternatives4. **Consider complexity** - Simpler solutions are usually better in Go5. **Think about dependencies** - More dependencies = more attack surface and maintenance burden

主要内容是静态目录:它列出 Web、数据库、测试、认证、消息等类别中的候选库,并链接外部代码仓库;目录本身不安装这些库。

查看原文
SKILL.md:33来自说明文档打开原文件
## Reference Catalogs- [Standard Library - New & Experimental](./references/stdlib.md) — v2 packages, promoted x/exp packages, golang.org/x extensions- [Libraries by Category](./references/libraries.md) — vetted third-party libraries for web, database, testing, logging, messaging, and more- [Development Tools](./references/tools.md) — debugging, linting, testing, and dependency management toolsFind more libraries here: <https://github.com/avelino/awesome-go>

随附的 evals 文件是用于检查模型回答倾向的测试材料,不是安装或执行脚本;例如它要求模型在 Kafka 场景中优先推荐 franz-go。

查看原文
evals/evals.json:88来自说明文档打开原文件
    "id": 7,    "name": "franz-go-for-kafka",    "description": "Tests whether the model recommends franz-go for Kafka instead of only the legacy sarama client",    "prompt": "I need a Kafka client for my Go application. What library should I use?",    "trap": "Without the skill, the model recommends sarama (the legacy, most commonly referenced Kafka client) instead of franz-go which is modern, higher-performance, and better maintained",    "assertions": [      {"id": "7.1", "text": "Recommends franz-go (github.com/twmb/franz-go) as a primary recommendation"},      {"id": "7.2", "text": "Describes franz-go as modern, high-performance, and feature-complete"},      {"id": "7.3", "text": "Does NOT recommend only sarama without mentioning franz-go"},      {"id": "7.4", "text": "May mention sarama as an alternative but positions franz-go as the preferred modern choice"}    ]
从这里开始 · 工作说明SKILL.md
golang-popular-libraries
连线表示工作说明包含的模块,不是实际运行顺序。点击模块可查看原文。

文件引用关系图

3 处引用
哪些文件发起引用引用了什么
连线表示真实的文件引用,不是运行顺序。点击节点可高亮相关连线,并查看具体文件和原文位置。虚线表示还有文件需要定位。
文件与检查记录5 个文件

检查范围与遗漏

逐文件查看涉及的内容

下方列出本次涉及的原文范围;纳入检查不代表已查清所有问题。

  • SKILL.md已纳入全文
  • references/libraries.md已纳入全文
  • references/stdlib.md已纳入全文
  • references/tools.md已纳入全文
  • evals/evals.json已纳入全文

这份报告只针对上方版本。我们看了拿到的代码和说明文件,没有实际运行 Skill,也没有检查它另外安装的软件包。因此,这不是“保证安全”的承诺;换了版本或使用环境,结果也可能不同。

  • SKILL.md工作说明
  • evals/evals.json配套文件
  • references/libraries.md配套文件
  • references/stdlib.md配套文件
  • references/tools.md配套文件

代码和说明中提到的操作

连接外部网站
SKILL.md:12来自说明文档打开原文件
    emoji: "📚"    homepage: https://github.com/samber/cc-skills-golang    requires:
SKILL.md:39来自说明文档打开原文件
Find more libraries here: <https://github.com/avelino/awesome-go>
references/libraries.md:35来自说明文档打开原文件
**Gin** (<https://github.com/gin-gonic/gin>) High-performance HTTP web framework with minimalist API. Up to 40x faster than some alternatives. Great for building REST APIs and microservices.
运行命令
SKILL.md:17来自说明文档打开原文件
    install: []allowed-tools: Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) Agent WebFetch WebSearch AskUserQuestion mcp__context7__resolve-library-id mcp__context7__query-docs Bash(godig:*) Bash(gopls:*) LSP mcp__gopls__*---
读取了多少行
530
文件校验值(用于核对版本)
6fab39f315959b41b17a8f55cdd544b28a4917b4ea11892c7adb221cf70b9a36