proto

proto is a cursor rule for Cursor from hiromaily/go-crypto-wallet. It costs 0 tokens per session (1,053 once invoked), scanned A, original, MIT.

Rules for editing Protocol Buffer files, which define structured messages and service interfaces used by software systems.

In plain words
What is it for?
Use them when changing .proto files or generating Go or TypeScript code from them.
Why use it?
They help prevent incompatible interface changes and ensure code generation and checks use the project's approved commands.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use them when changing .proto files or generating Go or TypeScript code from them.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/hiromaily/go-crypto-wallet/proto
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/hiromaily/go-crypto-wallet

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 proto

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

Your own site · 80×15
<a href="https://agentmods.dev/rules/hiromaily/go-crypto-wallet/proto"><img src="https://agentmods.dev/badge/rules/hiromaily/go-crypto-wallet/proto.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,053 The whole file, excluding the scripts and references it only reads on demand.
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.00000 $0.01053
Opus 5 $0.00000 $0.00526
Sonnet 5 $0.00000 $0.00211
Haiku 4.5 $0.00000 $0.00105

Measured 7d ago against content hash b94ef60f2426, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

proto 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 7d 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/proto.mdc · 180 lines

How it starts

The opening of the file, as written. The whole thing — 180 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Protocol Buffer File Rules

⚠️ XRP Protocol Buffers DEPRECATED

Status: proto/rippleapi/ is DEPRECATED and no longer used.

Reason: XRP functionality migrated to native Go implementation. gRPC server (apps/xrpl-grpc-server/) has been replaced with native xrpl-go libraries.

Overview

Rules for modifying Protocol Buffer files (*.proto) in go-crypto-wallet.

Applicable Directories

Directory Description Status
proto/rippleapi/ Ripple API definitions ❌ DEPRECATED

Verification Commands

Command Purpose Required
make proto-lint Lint proto files (buf only, requires PROTO_TOOL=buf) When buf supports Edition 2024
make proto-breaking Check for breaking changes Recommended

Prohibited Actions

NEVER use protoc command directly. Always use Make targets for code generation.

# ❌ PROHIBITED - Never run protoc directly
protoc --go_out=... proto/*.proto

# ✅ CORRECT - Always use Make targets
make proto      # Go only
make proto-ts   # TypeScript only
make proto-all  # Both

Code Generation [DEPRECATED for XRP]

⚠️ Note: Proto generation commands no longer needed for XRP.

Command Purpose XRP Status
make proto Generate Go code from proto files ⚠️ No longer generates XRP
make proto-ts Generate TypeScript code from proto files ❌ XRP TypeScript deprecated
make proto-all Generate all proto files (Go + TypeScript) ⚠️ XRP not included
make proto-fmt Format proto files ⚠️ XRP protos deprecated
make clean-pb Clean all generated protobuf files ⚠️ XRP files no longer generated

Generation Workflow

# 1. Edit proto files
# proto/rippleapi/*.proto

# 2. Format
make proto-fmt

# 3. Check breaking changes (optional)
make proto-breaking

# 4. Generate code
make proto      # Go only
make proto-ts   # TypeScript only
make proto-all  # Both Go and TypeScript

# 5. Verify build
make check-build

Read the full file on GitHub · 180 lines

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. 7d ago First seen · 180 lines · 0 tokens per session scan A b94ef60f2426

Subscribe to this mod's changes

proto is a cursor rule published in the GitHub repository hiromaily/go-crypto-wallet (127 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,053 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-03.