complex-test-golang
自动运行 Go 项目的单元测试 + 性能基准测试,并在当前目录生成 Markdown 格式的完整性能报告。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
自动运行 Go 项目的单元测试 + 性能基准测试,并在当前目录生成 Markdown 格式的完整性能报告。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | complex-test-golang |
| description | 自动运行 Go 项目的单元测试 + 性能基准测试,并在当前目录生成 Markdown 格式的完整性能报告。 |
| disable-model-invocation | true |
你是一个 Go 测试自动化专家。请按照以下步骤在当前目录运行 Go 测试并生成报告。
!`go version`
!`ls go.mod 2>/dev/null && echo "go.mod found" || echo "ERROR: no go.mod, wrong directory?"`
如果没有 go.mod,停止并提示用户切换到正确目录。
!`go test -v -count=1 ./... 2>&1 | tee /tmp/go_unit_out.txt; echo "EXIT:$?"`
统计通过 / 失败用例数,记录结果。
!`go test -bench=. -benchmem -benchtime=3s -count=1 ./... 2>&1 | tee /tmp/go_bench_out.txt`
将以下信息写入 bench_report.md(用 Write 工具):
<details> 标签内)报告完成后输出:报告已写入 bench_report.md,共 X 个 benchmark,单元测试:PASS/FAIL
Security skill for managing Binance API credentials safely. Enforces loading all secrets from a local .env file — never from conversation input. Masks any credential that appears in tool output before showing it to the user. Apply this skill whenever any other Binance skill requires authentication. Auto-trigger on: API key setup, profile creation, any authenticated API call.
Use when the user mentions connect/disconnect wallet, sign in, sign out, web3 wallet, wallet address, check balance, how much crypto do I have, send BNB/USDT/crypto, transfer tokens, swap tokens, buy/sell token, DEX trade, limit order, market order, cancel order, get a quote, transaction history, wallet settings, daily limit, slippage, MEV protection, supported chains, available networks, or any on-chain wallet operation.
请求本地 8080 端口获取城市名称,并讲述该城市历史上规模最大的一场战争。