vibes-plug / rules
Cursor rule129 starsChanged 10 days agoMITView on GitHub
Vibes-Plug Backend & Systems Engineering — Node 24, Bun 1.2, Hono, Fastify, Prisma 6, Drizzle, PostgreSQL DDL with RLS, and RFC 9457 errors
- Deletes or force-pushes
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 4,373 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository372 other files it gives its agents.
- AGENTS.mdAGENTS.md
- rules/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/vibes-plug-anti-slop.mdcCursor rule
- .cursor/rules/vibes-plug-core.mdcCursor rule
- .cursor/rules/vibes-plug-devops.mdcCursor rule
- .cursor/rules/vibes-plug-frontend.mdcCursor rule
- .cursor/rules/vibes-plug-mcp.mdcCursor rule
- .cursor/rules/vibes-plug-skills.mdcCursor rule
- .cursor/rules/vibes-plug-testing.mdcCursor rule
- llms-full.txtllms.txt
- llms.txtllms.txt
- showcase/llms-full.txtllms.txt
- showcase/llms.txtllms.txt
- a2a-agent-protocol-expertSkill
- accessibility-testing-expertSkill
- adaptive-model-cascadeSkill
- affective-computing-emotion-aiSkill
- agentic-coding-workflow-expertSkill
- agentic-m2m-settlementSkill
- agentic-memory-architectSkill
- agentic-micro-economy-architectSkill
- ai-code-review-autonomousSkill
- ai-llm-integration-expertSkill
- ai-media-generation-expertSkill
- ai-prompt-engineering-expertSkill
- ai-safety-governance-expertSkill
- angular-expertSkill
- anti-slopSkill
- api-design-expertSkill
- api-gateway-proxy-expertSkill
- app-analyzer-optimizerSkill
- apple-ecosystem-expertSkill
- app-promo-media-expertSkill
- astro-framework-expertSkill
- async-queue-temporal-expertSkill
- authentication-identity-expertSkill
- autonomous-api-drift-healerSkill
- autonomous-red-teamerSkill
- autonomous-tdd-debuggerSkill
- biome-linter-formatter-expertSkill
- blockchain-web3-expertSkill
- brainstormingSkill
- browser-automation-expertSkill
- browser-extension-mv3-proSkill
- bun-runtime-expertSkill
- chatbot-messaging-expertSkill
- ci-cd-devops-architectSkill
- cloudflare-workers-expertSkill
- cloud-hosting-expertSkill
- coderabbitSkill
- compliance-gdpr-privacy-expertSkill
- composable-mach-architectSkill
- computer-use-os-agent-expertSkill
- context-window-engineerSkill
- cron-scheduler-expertSkill
- database-orm-expertSkill
- data-pipeline-etl-expertSkill
- data-telemetry-expertSkill
- data-visualization-expertSkill
- The first 60 shown.
The file
We split this vibes-plug-backend.mdc into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
When editing backend APIs, server routes, database schemas, or microservices, Cursor AI MUST enforce these standards:
- Very specific: line 12
PostgreSQL DDL: Every table MUST have id UUID PRIMARY KEY DEFAULT gen_random_uuid(), created_at TIMESTAMPTZ NOT NULL DEFAULT now(), …
- Very specific: line 13
Foreign Keys: Every foreign key MUST have an explicit index (CREATE INDEX idx_...
- Very specific: line 14
Multi-Tenant Security: Every tenant-partitioned table MUST enable Row Level Security (ALTER TABLE ...
- Very specific: line 15
Safe Migrations: Never use destructive DROP TABLE or DROP COLUMN in production migrations without multi-step deprecation.
- Very specific: line 21
Idempotency: All mutation endpoints (POST/PUT/PATCH) handling financial transactions or billing MUST enforce idempotency keys …
≈ “Common” is an estimate: at least 1 in 5 of the 7,324 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
---
alwaysApply: false
description: "Vibes-Plug Backend & Systems Engineering — Node 24, Bun 1.2, Hono, Fastify, Prisma 6, Drizzle, PostgreSQL DDL with RLS, and RFC 9457 errors"
globs: "**/*.{sql,prisma,go,rs,py,route.ts,controller.ts,model.ts,service.ts,entity.ts}"
---
# 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).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

