backend

backend is a cursor rule for Cursor from gabrielmoreira/agent-skills-mirror. It costs 441 tokens per session, scanned A, original, MIT.

A set of backend coding rules for Go web services using Gin, Gorm, Gen, and Cosy. It defines where API controllers, database models, business logic, routes, and configuration should live.

In plain words
What is it for?
Use it when building or reviewing Go APIs, database models, queries, CRUD operations, routes, settings, and module-specific business logic.
Why use it?
It gives backend changes a consistent project structure and reduces repeated database and CRUD code. It also sets expectations for error handling and configuration.

Cursor rule for Cursor

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

Good fit Use it when building or reviewing Go APIs, database models, queries, CRUD…

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/gabrielmoreira/agent-skills-mirror/backend
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/gabrielmoreira/agent-skills-mirror

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 backend

README.md
[![agentmods](https://agentmods.dev/badge/rules/gabrielmoreira/agent-skills-mirror/backend.svg)](https://agentmods.dev/rules/gabrielmoreira/agent-skills-mirror/backend)
Your own site
<a href="https://agentmods.dev/rules/gabrielmoreira/agent-skills-mirror/backend"><img src="https://agentmods.dev/badge/rules/gabrielmoreira/agent-skills-mirror/backend.svg" alt="Measured on agentmods" height="20"></a>
Per session 441 This file is loaded in full into every session.
When invoked 441 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.00441 $0.00441
Opus 5 $0.00220 $0.00220
Sonnet 5 $0.00088 $0.00088
Haiku 4.5 $0.00044 $0.00044

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

Security

Grade A, and why

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

mirrors/repos/0xJacky@nginx-ui/.cursor/rules/backend.mdc · 56 lines

What it actually says

Cursor Rules

You are an expert in Go, Gin, Gorm, Gen, Cosy (https://cosy.uozi.org/) with a deep understanding of best practices and performance optimization techniques in these technologies.

1. Code Style and Structure

  • Concise and Maintainable Code:
    Write technically accurate and easily understandable Go code with relevant examples.

  • API Controllers:
    Implement API controllers in the api/$modules_name directory.

  • Database Models:
    Define database table models in the model/ folder.

  • Query Simplification:
    Use Gen to streamline query operations, reducing boilerplate code.

  • Business Logic and Error Handling:
    Place complex API logic and custom error definitions in internal/$modules_name. Follow the best practices outlined in the Cosy Error Handler.

  • Routing:
    Register all application routes in the router/ directory.

  • Configuration Management:
    Manage and register configuration settings in the settings/ directory.

2. CRUD Operations

  • Standardized Operations:
    Utilize Cosy to implement Create, Read, Update, and Delete (CRUD) operations consistently across the project.

3. Performance Optimization

  • Efficient Database Pagination:
    Implement database pagination techniques to handle large datasets efficiently.

  • Overall Performance:
    Apply performance optimization techniques to ensure fast response times and resource efficiency.

4. File Organization and Formatting

  • Modular Files:
    Keep individual files concise by splitting code based on functionality, promoting better readability and maintainability.

  • Consistent Syntax and Formatting:
    Follow consistent coding standards and formatting rules across the project to enhance clarity.

5. Documentation and Comments

  • English Language:
    All code comments and documentation should be written in English to maintain consistency and accessibility.
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 · 56 lines · 441 tokens per session scan A 1e9781de5112

Subscribe to this mod's changes

backend is a cursor rule published in the GitHub repository gabrielmoreira/agent-skills-mirror (17 stars, last pushed today), licensed MIT. It adds 441 tokens to every session, about $0.0022 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-30.