gonavi-core

gonavi-core is a cursor rule for Cursor from Syngnat/GoNavi. It costs 417 tokens per session, scanned A, original, Apache-2.0.

A core rule set for the GoNavi repository, covering code size, separation between interface and backend layers, frontend structure, translations, logging, and database safety.

In plain words
What is it for?
Use it when planning or reviewing changes in GoNavi's Go backend, React frontend, database layer, logs, or version-control workflow.
Why use it?
It keeps new work from making large files harder to maintain and sets boundaries for generated code, user-visible text, credentials, and production data.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions AGENTS.md.

Good fit Use it when planning or reviewing changes in GoNavi's Go backend, React frontend, database layer, logs, or version-control workflow.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/syngnat/gonavi/gonavi-core
About the project

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.

Syngnat/GoNavi · 2,072 stars · on GitHub · gonavi.org

Install

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.

Clone the repo
git clone --depth 1 https://github.com/Syngnat/GoNavi

Made for: Cursor.

Wrote 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.

agentmods badge for gonavi-core

README.md
[![agentmods](https://agentmods.dev/badge/rules/syngnat/gonavi/gonavi-core/github.svg)](https://agentmods.dev/rules/syngnat/gonavi/gonavi-core)
Your own site
<a href="https://agentmods.dev/rules/syngnat/gonavi/gonavi-core"><img src="https://agentmods.dev/badge/rules/syngnat/gonavi/gonavi-core/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.

agentmods 80×15 button for gonavi-core

Your own site · 80×15
<a href="https://agentmods.dev/rules/syngnat/gonavi/gonavi-core"><img src="https://agentmods.dev/badge/rules/syngnat/gonavi/gonavi-core.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 417 This file is loaded in full into every session.
When invoked 417 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00417 $0.00417
Opus 5.5 $0.00167 $0.00167
Sonnet 5.5 $0.00083 $0.00083
Haiku 4.5 $0.00042 $0.00042

Measured 29d ago against content hash 7fe195680755, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

gonavi-core 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.

.cursor/rules/gonavi-core.mdc · 27 lines

What it actually says

GoNavi 核心规约

完整正文:仓库根目录 AGENTS.md。Go 专属手册:GO_STYLE.md(不要拿阿里巴巴 Java 手册套 Go)。本规则只强调全局硬约束。

【强制】拆分

  • 新建生产文件建议 ≤400 行,硬上限 800 行。函数/组件体建议 ≤80 行,硬上限 120 行。
  • 禁止让这些文件再变长:QueryEditor.tsx、App.tsx、store.ts、DataGrid.tsx、Sidebar.tsx、QueryEditorHelpers.ts、methods_file.go、methods_db.go、app.go。
  • 触碰超标文件时:本次新逻辑抽到新文件;旧文件只保留接线。范例:components/queryEditor/、DataGridShell/DataGridCore、methods_db_objects.go。

【强制】分层

  • Wails 绑定(internal/app)保持薄:校验 → 调 internal/db 等 → connection.QueryResult。
  • 驱动特有能力用可选接口,不把方法堆进 Database。
  • 禁止手改 frontend/wailsjs/。UI 栈:React 函数组件 + antd 5 + Zustand + v2-theme-*.css。
  • 用户可见文案只进 shared/i18n/*.json,用 t() / localizer.T。

【强制】安全

  • 日志禁止密码、token、完整 DSN。不绕过只读连接与生产库确认。
  • 未要求时不 commit、不 push。
Changes

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.

  1. 29d ago First seen · 27 lines · 417 tokens per session scan A 7fe195680755

Subscribe to this mod's changes

gonavi-core is a cursor rule published in the GitHub repository Syngnat/GoNavi (2,072 stars, last pushed today), licensed Apache-2.0. It adds 417 tokens to every session, about $0.0017 per session on Opus 5.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-09-17.