Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/wentf9/xops-cli/agents-mdgit clone --depth 1 https://github.com/wentf9/xops-cliWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00942 | $0.00942 |
| Opus 5 | $0.00471 | $0.00471 |
| Sonnet 5 | $0.00188 | $0.00188 |
| Haiku 4.5 | $0.00094 | $0.00094 |
Grade A, and why
xops-cli AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
AI 助手开发协作指南 (AGENTS.md)
🎨 1. 编码规范 (Coding Standards)
- 语言版本:Go 1.26+ (严禁降级)。
- 命名规范:遵循 Go 社区的缩写命名惯例,ID, URL, SSH, CLI, SFTP, TCP 必须全大写(例如:使用
nodeID,禁止使用nodeId)。 - 绝对禁止资源泄漏:
- 所有的
net.Conn、os.File等资源必须有确定的Close()路径,无论正常结束还是 error 返回,必须使用defer确保关闭。 - 启动任何 Goroutine 时,必须明确它何时、何种情况下会退出(防止 Goroutine Leak)。必须通过
context.Context传递取消信号。
- 严格的超时控制:
- 所有网络操作(Dial, Read, Write)必须设置超时时间(Deadline)。
- 禁止无限阻塞的 I/O 调用。
- 错误处理:
- 严禁吞咽错误(
_ = err)或直接panic。 - 错误必须包含上下文(使用
fmt.Errorf("do xyz failed: %w", err)包装)。 - 错误字符串不应以标点符号(如
!或.)或换行符结尾。
- 并发安全:共享状态必须使用
sync.RWMutex或并发安全结构保护,粒度要尽量小,严防死锁。 - 变量赋值:避免无效赋值,若变量赋值后不再使用,必须删除或使用下划线忽略。
- 文档同步:更新代码的同时,必须同步更新相关的文档(如
README.md、CLI 帮助信息、代码注释等)。
📦 2. Git 规范 (Git Standards)
- Commit 规范:提交信息必须遵循以下格式:
feat: ...(新功能)fix: ...(修复)chore: ...(配置/维护)ci: ...(流水线修改)docs: ...(文档更新)test: ...(测试用例)
- 分支与合并:仓库设置了强制 PR 规则,紧急修复 Lint 或 CI 配置文件时,可利用管理员 Bypass 权限直接推送到
master。
🛠️ 3. 测试、构建与 CI (Testing, Building & CI)
- 强制要求测试 (核心红线):必须为所有新增功能、核心逻辑或修复的 Bug 编写对应的测试用例(Unit Test 或 Integration Test)。拒绝任何无测试覆盖的代码修改。
- 强制校验规范:在任何
git push或提交 PR 之前,必须在本地终端执行并成功通过:go build ./...(确保编译通过)go test ./...(确保逻辑正确且测试通过)golangci-lint run ./...(确保代码质量 0 Issues)
- Linter 配置:使用 golangci-lint v2.x。修改
.golangci.yml后,必须运行golangci-lint config verify进行格式检查。 - 常用命令:
make build:本地编译二进制文件make test:运行所有测试golangci-lint run ./...:运行全量代码扫描golangci-lint run --fix ./...:自动修复可修正的 Lint 问题
- CI/CD:依赖 GitHub Actions 进行 CI/CD,启用 Dependabot 进行依赖自动更新。处理 Dependabot PR 时优先本地
go build验证。
提示:在任何时候,代码的“干净程度”优于实现的“速度”。
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 50 lines · 942 tokens per session scan A c6ceb0f01004
xops-cli AGENTS.md is an instructions file published in the GitHub repository wentf9/xops-cli (10 stars, last pushed 8d ago), licensed MIT. It adds 942 tokens to every session, about $0.0047 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other instructions, from other repositories
ollama CLAUDE.md
Instructions for ollama/ollama: See AGENTS.md for the shared agent instructions for this repository.
openscreen AGENTS.md
Instructions for getopenscreen/openscreen, covering agents.md, setup commands, development principles, project layout and code style.
azure-sdk-for-go go-code.instructions.md
Instructions for Azure/azure-sdk-for-go: All code should follow the guidelines from the Azure Go SDK Guidelines. This document is a summary of the most important guidelines to follow when contributing to the Azure Go SDK.
chatgpt-cli CLAUDE.md
Instructions for kardolus/chatgpt-cli, covering chatgpt-cli — release runbook, prerequisites, 1. cut the release, 2. publish the github release + binaries and 3. update the homebrew tap.
Sighthound AGENTS.md
Instructions for Corgea/Sighthound, covering claude, commands, python / django test naming and agent skill.
moonproxy-desktop AGENTS.md
Instructions for MoonProxyHQ/moonproxy-desktop, covering moonproxy, 功能, 技术栈, 目录结构 and 配置与数据存储.