complex-test-golang
自动运行 Go 项目的单元测试 + 性能基准测试,并在当前目录生成 Markdown 格式的完整性能报告。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
自动运行 Go 项目的单元测试 + 性能基准测试,并在当前目录生成 Markdown 格式的完整性能报告。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
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 端口获取城市名称,并讲述该城市历史上规模最大的一场战争。
| 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