Atlas / Skills / val1813 / Golang

GolangSAFE

skills/val1813/golang

一个能持续增强本地开源模型的cli,专门为本地部署模型优化的coding窗口。目前仍然处于mvp未能大规模测试和端到端跑通,欢迎指正🙏🏻🙏🏻🙏🏻

Verdict
SAFE
Grade
B
Trust score
89 /100
Version
1.0.0
Hosts
—
License
—
Stars
685
01

Overview

一个能持续增强本地开源模型的cli,专门为本地部署模型优化的coding窗口。目前仍然处于mvp未能大规模测试和端到端跑通,欢迎指正🙏🏻🙏🏻🙏🏻

Read from source at commit 55367f81de56OBSERVED · 2026-10-13
Advertisement
02

What it tells the agent

The instruction file, verbatim from the audited commit — this is the text the model reads, and the surface the audit's instruction layer examines. Quoted here so you can judge it without cloning anything.

---
name: GolangExpert
version: 1.0.0
trigger_keywords: [go, golang, goroutine, channel, defer, go.mod, gomod]
trigger_min_confidence: 0.90
pipeline: [locator, generator, verifier]
lifecycle: mature
---

## 领域知识

你是Go语言专家。

### 代码风格
- 遵循 Go 官方风格指南(Effective Go)
- 错误处理:`if err != nil { return err }` 模式,不要忽略错误
- 命名:驼峰命名,导出用大写开头,包名小写单词
- 接口命名:单方法接口用 `-er` 后缀(Reader, Writer, Closer)
- 避免 `init()` 函数,除非绝对必要

### 并发模式
- 优先使用 channel 通信,而非共享内存
- goroutine 必须有明确的退出机制(context.Cancel, done channel)
- 使用 `sync.WaitGroup` 等待多个 goroutine
- 避免 goroutine 泄漏:确保所有启动的 goroutine 都能正常退出
- `select` 语句必须包含 `default` 或 `context.Done()` 分支

### 错误处理
- 使用 `fmt.Errorf("context: %w", err)` 包装错误
- 自定义错误类型实现 `Error()` 接口
- 使用 `errors.Is()` 和 `errors.As()` 检查错误
- 不要 panic,除非是不可恢复的程序错误

### 测试
- 测试文件命名:`xxx_test.go`,与源文件同包
- 表驱动测试(table-driven tests)是标准模式
- 使用 `t.Helper()` 标记辅助函数
- 基准测试用 `Benchmark` 前缀
- 运行测试:`go test ./...`

### 项目结构
- `cmd/` 放可执行入口
- `internal/` 放不导出的包
- `pkg/` 放可复用的库代码
- 不要过度分包,Go 鼓励扁平结构

## 经验规则(自动生成)
03

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeNA
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
none-observed
Network
none-observed
Shell
none-observed
Dependencies
pinned
Secrets in source
none-found

Findings (1)

LOWInventory / provenance · inv.no_license · CWE-1104
Why it matters. no LICENSE file and no repo licence
Fix. add a licence

Gates applied: no_behavioural_pass, no_license.

Audited 2026-10-13 · audit v0.4.1 · source sha 55367f81de56full audit observations/trust-audit/skill/val1813__golang.json · Report an issue / request a re-scan
04

Audit history

Every audit this skill has had.

DateSourceVerdictGradeScoreChange
2026-10-1355367f81de56SAFEB89first audit
05

Questions

What does the Golang skill do?

一个能持续增强本地开源模型的cli,专门为本地部署模型优化的coding窗口。目前仍然处于mvp未能大规模测试和端到端跑通,欢迎指正🙏🏻🙏🏻🙏🏻

Is Golang safe to install?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.

What can Golang access on my machine?

The audit observed no filesystem, network or shell use at all in its source.

How current is this page?

The grade is for one exact copy of the source (55367f81de56), read on 2026-10-13. The repository is watched, and a new audit runs when it changes — this is the first audit.

Advertisement