go-backend-engineering

go-backend-engineering is a cursor rule for Cursor from kidboy-man/vibe-engineering. It costs 0 tokens per session (616 once invoked), scanned A, original, MIT.

A set of standards for building backend services in Go, a programming language. It covers software structure, error handling, concurrent work, and API design.

In plain words
What is it for?
It is for developing and reviewing Go services, including their architecture, errors, concurrency, and APIs.
Why use it?
It gives Go backend code consistent guidelines for handling failures, parallel operations, service structure, and communication between systems.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit It is for developing and reviewing Go services, including their architecture, errors, concurrency, and APIs.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/kidboy-man/vibe-engineering/go-backend-engineering
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/kidboy-man/vibe-engineering

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 go-backend-engineering

README.md
[![agentmods](https://agentmods.dev/badge/rules/kidboy-man/vibe-engineering/go-backend-engineering/github.svg)](https://agentmods.dev/rules/kidboy-man/vibe-engineering/go-backend-engineering)
Your own site
<a href="https://agentmods.dev/rules/kidboy-man/vibe-engineering/go-backend-engineering"><img src="https://agentmods.dev/badge/rules/kidboy-man/vibe-engineering/go-backend-engineering/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 go-backend-engineering

Your own site · 80×15
<a href="https://agentmods.dev/rules/kidboy-man/vibe-engineering/go-backend-engineering"><img src="https://agentmods.dev/badge/rules/kidboy-man/vibe-engineering/go-backend-engineering.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 616 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.00616
Opus 5.5 $0.00000 $0.00246
Sonnet 5.5 $0.00000 $0.00123
Haiku 4.5 $0.00000 $0.00062

Measured 3mo ago against content hash d096a0a6ae74, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

go-backend-engineering 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 3mo 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.

agents/kits/cursor/templates/cursor/rules/go-backend-engineering.mdc · 69 lines

How it starts

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

Go Backend Engineering

Core Go Standards

  • Write production-quality Go code. No toy examples, no shortcuts.
  • Keep code simple, explicit, and readable.
  • context.Context is the first parameter for request-scoped or cancellable work.
  • Propagate cancellation and deadlines.
  • Always handle errors. Do not discard errors with _ unless there is a documented reason.
  • Wrap errors with context using %w when propagating: fmt.Errorf("doing X: %w", err).
  • Prefer returning errors over panicking. Reserve panic for unrecoverable programmer errors.
  • Avoid init() except when unavoidable; prefer explicit initialization.
  • Use meaningful names. Single-letter names are only for short-lived loop variables or conventional cases.

Architecture

  • Follow clean/hexagonal architecture.
  • Domain/core logic must not depend on infrastructure packages.
  • Put interfaces at the consumer boundary, not beside the implementation by default.
  • Pass dependencies explicitly through constructors or function parameters. Avoid globals and hidden singletons.
  • Keep handlers/controllers thin: parse, validate, authorize, call application service, translate response.
  • Keep domain/application services focused on business behavior and invariants.
  • Infrastructure implements ports/adapters and owns external system details.

API Design

  • Validate input at the boundary.
  • Return structured, consistent errors with stable codes where the project supports them.
  • Use appropriate HTTP status codes and consistent naming.
  • Do not leak internal implementation details, secrets, tokens, or stack traces in API responses.
  • Keep public API changes backward-compatible unless explicitly requested.
  • Make idempotency explicit for retryable operations.

Transactions and Consistency

  • Use transactions for operations that must be atomic.
  • Keep transaction scope as small as correctness allows.
  • Avoid network calls inside database transactions unless deliberately justified.
  • Pass transaction/context boundaries explicitly; do not hide them in global state.
  • Reason about partial failure, retries, and idempotency for multi-step operations.

Read the full file on GitHub · 69 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. 3mo ago First seen · 69 lines · 0 tokens per session scan A d096a0a6ae74

Subscribe to this mod's changes

go-backend-engineering is a cursor rule published in the GitHub repository kidboy-man/vibe-engineering (2 stars, last pushed 18d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 616 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-08-31.

Related

go-backend-engineering compared with cursor rules from other repositories

go-backend-engineering next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
go-backend-engineeringkidboy-man/vibe-engineeringCursor rule218d agoMITA0Cursor
go-backend-scalability-cursorrules-prompt-filePatrickJS/awesome-cursorrulesCursor rule41k6mo agoCC0-1.0A1,200Cursor
go-servemux-rest-api-cursorrules-prompt-filePatrickJS/awesome-cursorrulesCursor rule41k6mo agoCC0-1.0A389Cursor
go-backend-scalabilityholtwood/awesome-cursorrules-zhCursor rule2441mo agoMITA0Cursor
go-grpc-service-ruleholtwood/awesome-cursorrules-zhCursor rule2441mo agoMITA140Cursor
go-grpc-service-rulepaulpham157/paul-s-cursor-rulesCursor rule271y agoMITA0Cursor
protocol-buffer-definitions-rulepaulpham157/paul-s-cursor-rulesCursor rule271y agoMITA0Cursor