声明的权限超出上下文编程指南通常所需范围
原文依据:2 处该 Skill 可请求编辑、写入、任意 `go`、`golangci-lint` 和 `git` 子命令以及启动代理。其说明用途包括设计和调试,但正文并未要求这些广泛权限。若宿主按该声明授权,`git:*` 可覆盖会修改历史、分支或远端仓库的命令,`go:*` 也可能编译或运行仓库代码。
被此 Skill 引导的代理可能修改 Go 文件、执行项目代码,或改变本地及远端 Git 状态;影响取决于代理实际选择的命令及当前凭据。
风险成立,但这是权限声明带来的潜在能力,并非已执行命令的证据。该 Skill 的用途是 Go context 设计与调试,却声明了写文件、所有 go/golangci-lint/git 子命令和 Agent。若宿主直接按此授权,Skill 可修改项目;不受限的 git 子命令还可能改变分支、历史或远端。用户可要求作者将权限缩到具体只读或必要命令,并由宿主继续确认写入及 Git 操作。
name: golang-contextdescription: "Idiomatic context.Context usage in Golang — propagation through API boundaries, cancellation, timeouts and deadlines, request-scoped values, context.WithoutCancel for background work outliving requests. Apply when designing context propagation across layers, debugging leaked or unexpired contexts, choosing between context.Background/TODO/WithoutCancel, or storing values in context. Not for code that merely accepts ctx as first parameter."user-invocable: true查看另外 1 个位置
install: []allowed-tools: Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) Agentpaths: - "**/*.go"---