用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/johnalbertini14-glitch/openclaw-skills --skill go命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Use this skill to create a Polymarket wallet for your agent and trade on prediction markets. Browse markets, place bets, manage positions — all without exposing private keys.
ClawSec suite manager with embedded advisory-feed monitoring, cryptographic signature verification, approval-gated malicious-skill response, and guided setup for additional security skills.
Automated daily security audits for OpenClaw agents with email reporting. Runs deep audits and sends formatted reports.
基于 SOC 职业分类
正在显示 SKILL.md
| name | Go |
| slug | go |
| version | 1.0.2 |
| description | Write reliable Go code avoiding goroutine leaks, interface traps, and common concurrency bugs. |
| metadata | {"clawdbot":{"emoji":"🐹","requires":{"bins":["go"]},"os":["linux","darwin","win32"]}} |
| Topic | File |
|---|---|
| Concurrency patterns | concurrency.md |
| Interface and type system | interfaces.md |
| Slices, maps, strings | collections.md |
| Error handling patterns | errors.md |
for range on channel loops forever until channel closed—sender must close(ch)ctx.Done() in loopselect with multiple ready cases picks randomly—not first listeddefer log(time.Now()) captures nowdefer func() { err = wrap(err) }() worksvar p *MyType; var i interface{} = p; i != nil is truev, ok := i.(Type)any accepts anything but loses type safety—avoid when possible*T has the methoderr != nil after every call—unchecked errors are silent bugserrors.Is for wrapped errors—== doesn't work with fmt.Errorf("%w", err)var ErrFoo = errors.New() not recreateda[1:3] shares memory with avar s []int vs s := []int{}copy() copies min of lengths—doesn't extend destinationsync.Map or mutex&m[key] doesn't compilerange over string iterates runes, not bytes—index jumps for multi-byte charslen(s) is bytes, not characters—use utf8.RuneCountInString()var wg sync.WaitGroup works, no constructor neededgo build caches aggressively—use -a flag to force rebuild_ import for side effects onlyinit() runs before main, order by dependency—not file ordergo:embed paths relative to source file—not working directoryGOOS=linux GOARCH=amd64 go build—easy but test on target