vibes-plug-backend

vibes-plug-backend is a cursor rule for Cursor from roedyrustam/vibes-plug. It costs 0 tokens per session (431 once invoked), scanned A, original, MIT.

Backend and systems-engineering rules for Node, Bun, Hono, Fastify, Prisma, Drizzle, and PostgreSQL services. They specify database structure, tenant isolation, input validation, migrations, and HTTP error responses.

In plain words
What is it for?
Use them when editing backend routes, APIs, database schemas, or services. They guide PostgreSQL tables and indexes, row-level security, RFC 9457 error responses, and runtime validation.
Why use it?
They give agents consistent safeguards for data isolation, schema changes, validation, and error handling. This reduces the chance of unsafe migrations, unvalidated inputs, or unclear API errors.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use them when editing backend routes, APIs, database schemas, or services. They guide PostgreSQL tables and indexes, row-level security, RFC 9457 error responses, and runtime validation.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/roedyrustam/vibes-plug/vibes-plug-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/roedyrustam/vibes-plug

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 vibes-plug-backend

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

Your own site · 80×15
<a href="https://agentmods.dev/rules/roedyrustam/vibes-plug/vibes-plug-backend"><img src="https://agentmods.dev/badge/rules/roedyrustam/vibes-plug/vibes-plug-backend.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 431 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.00431
Opus 5.5 $0.00000 $0.00172
Sonnet 5.5 $0.00000 $0.00086
Haiku 4.5 $0.00000 $0.00043

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

Security

Grade A, and why

vibes-plug-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 today.

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/vibes-plug-backend.mdc · 22 lines

What it actually says

Vibes-Plug Backend & Systems Engineering (2026 Edition)

When editing backend APIs, server routes, database schemas, or microservices, Cursor AI MUST enforce these standards:

1. Schema & Database Invariants

  • PostgreSQL DDL: Every table MUST have id UUID PRIMARY KEY DEFAULT gen_random_uuid(), created_at TIMESTAMPTZ NOT NULL DEFAULT now(), updated_at TIMESTAMPTZ NOT NULL DEFAULT now().
  • Foreign Keys: Every foreign key MUST have an explicit index (CREATE INDEX idx_... ON ...(...)).
  • Multi-Tenant Security: Every tenant-partitioned table MUST enable Row Level Security (ALTER TABLE ... ENABLE ROW LEVEL SECURITY;) with an explicit tenant isolation policy (CREATE POLICY tenant_isolation ...).
  • Safe Migrations: Never use destructive DROP TABLE or DROP COLUMN in production migrations without multi-step deprecation.

2. API Contract & Error Resilience

  • Error Standard: Return RFC 9457 Problem Details ({ type, title, status, detail, instance }) on all HTTP 4xx/5xx responses.
  • Validation: Strict runtime validation at every boundary using Zod or TypeSpec.
  • Zero Silent Errors: Catch blocks that swallow errors (catch (e) {}) are strictly banned. Always log structured context via Pino or Sentry.
  • Idempotency: All mutation endpoints (POST/PUT/PATCH) handling financial transactions or billing MUST enforce idempotency keys (Idempotency-Key header with atomic database locking).
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. today First seen · 22 lines · 0 tokens per session scan A ef972a3d7683

Subscribe to this mod's changes

vibes-plug-backend is a cursor rule published in the GitHub repository roedyrustam/vibes-plug (114 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 431 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-10-27.