GoNavi is a cross-platform desktop client for connecting to and working with many kinds of data sources, including SQL databases, caches, message queues, vector stores, and search systems. It is for developers who query, edit, audit, and synchronize data or provide structured context to coding agents.
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.
git clone --depth 1 https://github.com/Syngnat/GoNaviWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/rules/syngnat/gonavi/gonavi-go)<a href="https://agentmods.dev/rules/syngnat/gonavi/gonavi-go"><img src="https://agentmods.dev/badge/rules/syngnat/gonavi/gonavi-go/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/syngnat/gonavi/gonavi-go"><img src="https://agentmods.dev/badge/rules/syngnat/gonavi/gonavi-go.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What 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.1 | $0.00000 | $0.00491 |
| Opus 5.5 | $0.00000 | $0.00196 |
| Sonnet 5.5 | $0.00000 | $0.00098 |
| Haiku 4.5 | $0.00000 | $0.00049 |
Grade A, and why
gonavi-go 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 29d ago.
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
GoNavi Go
Java 跟阿里巴巴手册。Go 跟仓库根目录 GO_STYLE.md(Uber Go Style + Google/Code Review Comments + Effective Go + 本仓库叠加)。不适用于 third_party/。
拆包
internal/app/methods_<领域>.go,超标再拆(已有methods_db_objects.go)。internal/db/<引擎>_impl.go,过大拆 catalog/query/exec/ssh,包名仍为db。- 平台:
*_windows.go/*_darwin.go/*_stub.go。 - 禁止往
methods_file.go、methods_db.go、app.go净增职责。函数体 ≤120 行。
错误 / context / 接口
// ❌ rows, _ := inst.Query(q)
// ✅
data, fields, err := a.runQuery(ctx, config, q)
if err != nil {
logger.Error(err, "DBQuery failed: %s", formatConnSummary(config))
return connection.QueryResult{Success: false, Message: a.appText("db.backend.error.query_failed", map[string]any{"detail": err.Error()})}
}
- 绑定层只返回
connection.QueryResult;领域层fmt.Errorf("...: %w", err)+errors.Is/As。 ctx第一参数,必须传到 Query/HTTP;禁止panic。Database保持小;特有能力用可选接口。var _ db.Database = (*MySQLDB)(nil)。
并发与日志
- 每个 goroutine 有退出条件;无缓冲 channel 为默认;持锁不做网络 IO。
- 只用
internal/logger;禁止密码/DSN。用户文案走shared/i18n。
测试
- 同包
xxx_test.go,表驱动,不连生产库。纯函数必带测。
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.
- 29d ago First seen · 42 lines · 0 tokens per session scan A e59ff3eef7d5
gonavi-go is a cursor rule published in the GitHub repository Syngnat/GoNavi (2,072 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 491 tokens. 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-09-17.
Other cursor rules, from other repositories
go
Idiomatic Go rules. Explicit error handling, interface-based design, context-first concurrency.
schema_test_implementation_guide
A concise and practical guide for building GoZod Schema test files, updated with the latest practices from stringtest.go, objecttest.go, and complextest.go.
unit-tests-tdd
TDD for behavior changes; co-located tests; keep touched areas well covered.
go
Go development guidelines — error handling, concurrency, interfaces, context propagation, and testing. Applied when working with Go code.
mockery
Mockery Mock Generation Rules.
go-test
Go test conventions — parallelism, table-driven tests, assertions.